Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
207 lines (201 loc) · 7.51 KB
/
Copy pathindex.html
File metadata and controls
207 lines (201 loc) · 7.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Password Manager</title>
<meta
name="description"
content="A python based Password Manager made using Flet & Fernet."
/>
<link rel="icon" type="image/x-icon" href="/images/icon.webp" />
<link href="fonts/googleSans.css" rel="preconnect stylesheet" />
<link href="fonts/sourceSansPro.css" rel="preconnect stylesheet" />
<link rel="stylesheet" type="text/css" href="style.css" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
crossorigin="anonymous"
/>
<style>
.navbar {
margin-bottom: 0 !important;
}
</style>
<noscript>
<meta http-equiv="refresh" content="0;url=noscript"></meta>
</noscript>
</head>
<body data-bs-theme="dark">
<div class="overlay"></div>
</div>
<div class="main">
<div class="otherDownloadsFrame">
<p class="subheading" style="margin-top: 10px">Other Downloads</p>
<div class="radio-toolbar">
<input
type="radio"
id="radioWindows"
name="radioOs"
value="Windows"
/>
<label for="radioWindows">Windows</label>
<input type="radio" id="radioMac" name="radioOs" value="Mac" />
<label for="radioMac">MacOS</label>
<input type="radio" id="radioUnix" name="radioOs" value="Unix" />
<label for="radioUnix">Unix</label>
</div>
<p> </p>
<button class="otherDownloadsButton" onclick="downloadOtherOsClick()">
Download
</button>
</div>
<div class="download_frame_parent">
<div class="download_frame">
<p class="download_title">
Download an open source password manager today.
</p>
<div class="downloadAutoButtons">
<button class="download_button">Download</button>
<button
class="otherDownloads"
title="More download options"
onclick="otherDownloadsClick()"
>
...
</button>
</div>
<p class="whichOsDownload"></p>
</div>
</div>
<h2 class="subheading" style="margin-bottom: 10px">
<strong>About the project:</strong>
</h2>
<img class="profile_pic" src="images/intercept.webp" alt="profile_pic" />
<h2 class="subheading">Intercept</h2>
<p class="txt">
This program was made using Python (flet & fernet) & the website was
made using HTML, CSS and JavaScript. You can contact me on the contact
page
<a href="contact">here.</a>
</p>
</div>
<script src="main.js" async defer></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"
></script>
<script>
const userAgent = navigator.userAgent;
const downloadButton = document.querySelector(".download_button");
const tooltipText = document.querySelector(".tooltip-text");
const otherDownloadsFrame = document.querySelector(
".otherDownloadsFrame"
);
const whichOsDownload = document.querySelector(".whichOsDownload");
const overlay = document.querySelector(".overlay");
const radioButtons = document.querySelectorAll("input[type='radio']");
const body = document.body;
let selectedValue;
let isMobile = false;
document.addEventListener("keyup", function (e) {
if (e.key === "Escape" && overlay.style.display == "block") {
overlay.style.display = "none";
otherDownloadsFrame.style.display = "none";
}
});
if (
/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(
navigator.userAgent || navigator.vendor || window.opera
)
) {
isMobile = true;
}
if (!isMobile) {
let os = "Unix";
let whichOsDownloadText = "For UNIX/GNU x64-bit systems.";
if (userAgent.indexOf("Mac OS X") !== -1) {
os = "Mac";
whichOsDownloadText = "For MacOS x64 & x32 bit systems.";
} else if (userAgent.indexOf("Windows") !== -1) {
os = "Windows";
whichOsDownloadText = "For Windows x64-bit systems.";
}
whichOsDownload.textContent = "*" + whichOsDownloadText;
}
document.addEventListener("DOMContentLoaded", function () {
if (
!isMobile &&
(userAgent.indexOf("Windows") !== -1 ||
userAgent.indexOf("Mac OS X") !== -1 ||
userAgent.indexOf("X11") !== -1 ||
userAgent.indexOf("Wayland") !== -1 ||
userAgent.indexOf("Linux") !== -1)
) {
downloadButton.addEventListener("click", function () {
let os = "Unix";
if (userAgent.indexOf("Mac OS X") !== -1) {
os = "Mac";
} else if (userAgent.indexOf("Windows") !== -1) {
os = "Windows";
}
download(os);
});
} else {
downloadButton.style.opacity = 0.3;
downloadButton.style.backgroundColor = "grey";
downloadButton.title =
"Password Manager is currently only supported on desktop UNIX or DOS devices. Please refer to the source code.";
}
});
function otherDownloadsClick() {
window.scrollTo(0, 0);
overlay.style.display = "block";
otherDownloadsFrame.style.display = "flex";
body.style.margin = "0";
body.style.height = "100%";
body.style.overflow = "hidden";
overlay.addEventListener("click", function () {
overlay.style.display = "none";
otherDownloadsFrame.style.display = "none";
body.style.margin = "unset";
body.style.height = "unset";
body.style.overflow = "unset";
});
}
function downloadOtherOsClick() {
radioButtons.forEach(function (radio) {
if (radio.checked) {
selectedValue = radio.value;
}
});
if (selectedValue == "Windows") {
os = "Windows";
} else if (selectedValue == "Mac") {
os = "Mac";
} else if (selectedValue == "Unix") {
os = "Unix";
}
download(os);
}
function download(os) {
let downloadUrl;
if (os == "Windows") {
downloadUrl =
"https://github.com/passmgrgui/passmgr/raw/binaries/windows/passmgrguisetup.exe";
} else if (os == "Mac") {
downloadUrl =
"https://github.com/passmgrgui/passmgr/raw/binaries/macos/passmgrgui.zip";
} else if (os == "Unix") {
downloadUrl = "https://github.com/passmgrgui/passmgr/raw/binaries/linux/passmgrgui.zip";
}
window.location.replace(downloadUrl);
setTimeout(function () {
window.location.href = `nextsteps?os=${os}`;
}, 1000);
}
</script>
</body>
</html>