-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
182 lines (162 loc) · 11.5 KB
/
popup.html
File metadata and controls
182 lines (162 loc) · 11.5 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bulma.min.css">
<link rel="stylesheet" href="css/popup.css" />
</head>
<body>
<!-- First Time Screen -->
<section id="homeScreen" style="display: grid; place-items: center; padding-top: 14%;">
<img src="icons/inv.png" style="padding-bottom: 5%;"/>
<div>
<button id="createAccountBtn" style="margin: 25px;"><b>Register</b></button>
<button id="importAccountBtn" style="margin: 25px;"><b>Login</b></button>
</div>
</section>
<!-- Create Screen -->
<section id="createAccountScreen" style="display: grid; place-items: center; padding-top: 8%;">
<img src="icons/inv.png" style="padding-bottom: 5%;"/>
<input id="createAccountPassword1" type="password" placeholder="Password"/>
<input id="createAccountPassword2" style="margin-top: 3%;" type="password" placeholder="Repeat password"/>
<span id="createAccountSubmitError" style="margin-top: 2%;"></span>
<button id="submitAccountPassowrdsBtn" style="font-size: medium; margin-top: 1%; box-shadow: 5px 5px #a883f8;"><b>Submit</b></button>
</section>
<!-- Import Screen -->
<section id="importAccountScreen" style="display: grid; place-items: center; padding-top: 2%;">
<img src="icons/inv.png" style="padding-bottom: 4%;"/>
<input id="loginScreenInputIPAddr" style="width: 55%;" placeholder="XXX.XXX.XXX.XXX"/>
<input id="loginScreenInputToken" style="width: 55%; margin-top: 2%;" placeholder="token"/>
<input id="loginScreenInputPassword" style="width: 55%; margin-top: 2%;" type="password" placeholder="Password"/>
<span id="loginScreenSubmitError" style="margin-top: 2%;"></span>
<button id="loginScreenSubmitLoginBtn" style="font-size: medium; margin-top: 1%; box-shadow: 5px 5px #a883f8;"><b>Submit</b></button>
</section>
<!-- Login Screen -->
<section id="loginAccountScreen" style="display: grid; place-items: center; padding-top: 14%;">
<img src="icons/inv.png" style="padding-bottom: 5%;"/>
<input id="submitLoginInput" type="password" placeholder="Password"/>
<span id="loginAccountSubmitError" style="margin-top: 2%;"></span>
<button id="submitLoginBtn" style="font-size: medium; margin-top: 2%; box-shadow: 5px 5px #a883f8;"><b>Submit</b></button>
</section>
<dialog id="progressBarDialog" style="width: 87%; height: 87%; z-index: 26;">
<progress class="progress is-large is-info" max="100" style="margin-top: 35%; padding-right: 10%; padding-left: 10%;"></progress>
</dialog>
<!-- Main User Screen -->
<section id="mainScreen" style="display: grid; place-items: center; padding-top: 4%;">
<!-- Add Note Dialog -->
<dialog id="addSecNoteDialog" style="width: 87%; height: 87%; z-index: 16;">
<form method="dialog">
<div style="padding-bottom: 2%; display: flex; justify-content: space-between; width: 100%;">
<h1 id="addSecNoteDialogTitle" class="title">Add Note</h1>
<button id="addSecNoteDialogClose" style="padding: 0px; width: 35px; height: 35px; box-shadow: 0px 0px; border-width: 2px;"><i class="fa fa-times" aria-hidden="true"></i></button>
</div>
<input id="addSecNoteInputTitle" style="width: 98%;" placeholder="title"/>
<textarea id="addSecNoteInputTextArea" style="width: 98%; height: 180px; resize: none;" placeholder="note"></textarea>
</form>
<button id="addSecNoteSaveBtn" style="width: 75px; height: 50px; padding: 0px; box-shadow: 0px 0px; border-width: 3px; margin-top: 8px;"><i class="fa fa-check" aria-hidden="true"></i></button>
<span id="addSecNoteSubmitError" style="margin-top: 2%; margin-left: 2%;"></span>
</dialog>
<!-- Add Password Dialog -->
<dialog id="addSecPasswordDialog" style="width: 87%; height: 87%; z-index: 16;">
<form method="dialog">
<div style="padding-bottom: 2%; display: flex; justify-content: space-between; width: 100%;">
<h1 id="addSecPasswordDialogTitle" class="title">Add Password</h1>
<button id="addSecPasswordDialogClose" style="padding: 0px; width: 35px; height: 35px; box-shadow: 0px 0px; border-width: 2px;"><i class="fa fa-times" aria-hidden="true"></i></button>
</div>
<input id="addSecPasswordInputWebsite" style="width: 98%;" placeholder="https://example.com/"/>
<input id="addSecPasswordInputUsername" style="width: 98%; margin-top: 6%;" placeholder="username"/>
<input id="addSecPasswordInputPassword" type="password" style="width: 98%; margin-top: 6%;" placeholder="password"/>
</form>
<button id="addSecPasswordSaveBtn" style="width: 75px; height: 50px; padding: 0px; box-shadow: 0px 0px; border-width: 2px; margin-top: 25px;"><i class="fa fa-check" aria-hidden="true"></i></button>
<span id="addSecPasswordSubmitError" style="margin-top: 2%; margin-left: 2%;"></span>
</dialog>
<!-- Refresh Dialog -->
<dialog id="refreshDialog" style="width: 87%; height: 70%; z-index: 16;">
<form method="dialog">
<div style="padding-bottom: 2%; display: flex; justify-content: space-between; width: 100%;">
<h1 id="refreshDialogTitle" class="title">Refresh Data</h1>
<button id="refreshDialogDialogClose" style="padding: 0px; width: 35px; height: 35px; box-shadow: 0px 0px; border-width: 2px;"><i class="fa fa-times" aria-hidden="true"></i></button>
</div>
<input id="refreshDialogInputIPAddr" style="width: 98%;" placeholder="XXX.XXX.XXX.XXX"/>
<input id="refreshDialogInputToken" style="width: 98%; margin-top: 6%;" placeholder="token"/>
</form>
<button id="refreshDialogSaveBtn" style="width: 75px; height: 50px; padding: 0px; box-shadow: 0px 0px; border-width: 2px; margin-top: 25px;"><i class="fa fa-check" aria-hidden="true"></i></button>
<span id="refreshDialogSubmitError" style="margin-top: 2%; margin-left: 2%;"></span>
</dialog>
<!-- Self Info Dialog -->
<dialog id="selfInfoDialog" style="width: 87%; height: 87%; z-index: 16;">
<div style="padding-bottom: 2%; display: flex; justify-content: space-between; width: 100%;">
<h1 id="selfInfoDialogTitle" class="title">Self Info</h1>
<button id="selfInfoDialogClose" style="padding: 0px; width: 35px; height: 35px; box-shadow: 0px 0px; border-width: 2px;"><i class="fa fa-times" aria-hidden="true"></i></button>
</div>
<div>
<div style="display: flex;"><b style="margin-right: 2%; font-size: x-large;">IP Address: </b><b id="selfInfoDialogIPAdd" style="font-size: x-large;"></b></div>
<div style="display: flex;"><b style="margin-right: 2%; font-size: x-large;">Token: </b><b id="selfInfoDialogToken" style="font-size: x-large;"></b></div>
</div>
<div id="selfInfoQRCode" style="display: grid; padding: 1.5%; place-items: center;">
</div>
</dialog>
<!-- Main Screen Header -->
<div style="padding-bottom: 3%; display: flex; justify-content: space-between; width: 100%;">
<button id="addSecNote" style="margin-left: 5%;">
<i class="fa fa-plus" aria-hidden="true"></i> <i class="fa fa-sticky-note" aria-hidden="true"></i></button>
</button>
<div id="searchBarNotePassword" style="width: 40%; height: 10%; margin-top: 1%;">
<input id="searchBarNotePasswordInput" style="width: 80%; box-shadow: 10px 5px #a883f8;" placeholder="search"/>
<button id="searchBarNotePasswordSubmit" style="margin: 0px; padding: 2%; height: 100%;"><i class="fas fa-search"></i></button>
</div>
<button id="addSecPassword" style="margin-right: 5%;">
<i class="fa fa-plus" aria-hidden="true"></i> <i class="fa fa-key" aria-hidden="true"></i>
</button>
<button href="#" id="import"><i class="fas fa-file-import"></i></button>
<button href="#" id="refresh"><i class="fas fa-sync-alt"></i></button>
<button href="#" id="info"><i class="fas fa-info"></i></button>
<button href="#" id="settings"><i class="fas fa-cog"></i></button>
</div>
<!-- List of Notes/Passwords -->
<div id="mainScreenSomethingFound" style="display: flex; justify-content: space-between; width: 100%;">
<div id="notesListDiv" style="overflow-y: scroll; height:335px; width: 300px;">
<ul id="notes-list" class="list">
</ul>
</div>
<div id="passesListDiv" style="overflow-y: scroll; height:335px; width: 300px;">
<ul id="passes-list" class="list">
</ul>
</div>
</div>
<!-- Nothing found page -->
<div id="mainScreenNothingFound" style="display: grid; padding: 4%; place-items: center;">
<!--#6c63ff old color-->
<img style="width: 350px;" src="icons/addkey.png"/>
<span style="color: gray; padding-top: 10px;"> Nothing found, add some! </span>
</div>
</section>
<!-- Settings Screen -->
<section id="settingsScreen" style="display: grid; place-items: center; padding-top: 2%;">
<div id="settingsScreenHeader" style="display: flex; justify-content: space-between; width: 100%; padding: 0% 4%;">
<span style="font-size: 3rem; font-weight: bold; color: black;">Settings</span>
<button id="settingsHomeButton" style="margin-right: 2%; margin-top: 2%; font-size: 1.35rem;"><i class="fas fa-arrow-left"></i></button>
</div>
<div id="settingsScreenMain" style="display: flex; width: 100%; margin-left: 8%; padding-top: 2%;">
<div id="timeOutTimeSetting" style="text-align: start;">
<span style="font-size: 1.45rem; color: black; font-weight: bold;">Timeout Period: </span> <span id="settingsTimeOutPreiodSpan" style="font-weight: bold; font-size: 1.15rem;"></span>
</div>
<div>
<input id="settingsTimeOutRangeSlider" style="box-shadow: 0px 0px; margin-left: 0.5rem;" min="1" max="100" value="5" step="1" type="range">
</div>
</div>
</section>
</body>
<script src="js/jquery.js"></script>
<script src="js/constants.js"></script>
<script src="js/all.js"></script>
<script src="js/crypto-js.min.js"></script>
<script src="js/loginItem.js"></script>
<script src="js/noteItem.js"></script>
<script src="js/helperfuncs.js"></script>
<script src="js/script.js"></script>
<script src="js/readables.js"></script>
<script src="js/saveItems.js"></script>
<script src="popup.js"></script>
</html>