-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
122 lines (107 loc) · 2.49 KB
/
popup.html
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
<!DOCTYPE html>
<html>
<head>
<title>2Auth Safer</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}
h1 {
text-align: center;
}
#menu {
margin-bottom: 20px;
}
#menu ul {
list-style-type: none;
padding: 0;
margin: 0;
}
#menu ul li {
margin-bottom: 10px;
}
#menu label {
display: block;
margin-bottom: 5px;
}
#entries {
text-align: center;
}
#entries h2 {
margin-bottom: 10px;
}
#entries table {
margin: 0 auto;
border-collapse: collapse;
}
#entries table th,
#entries table td {
padding: 8px 16px;
border: 1px solid #ddd;
}
#entries table th {
background-color: #f2f2f2;
font-weight: bold;
}
#saveBtn {
padding: 8px 16px;
background-color: #4caf50;
border: none;
color: #fff;
cursor: pointer;
}
#saveBtn:hover {
background-color: #45a049;
}
.removeBtn {
padding: 8px 16px;
background-color: #f44336;
border: none;
color: #fff;
cursor: pointer;
}
.removeBtn:hover {
background-color: #d32f2f;
}
.alert {
padding: 12px 16px;
margin-bottom: 12px;
background-color: #f44336;
color: #fff;
}
</style>
</head>
<body>
<h1>2Auth Safer</h1>
<center>
<div id="menu">
<ul>
<li>
<label>Name:</label>
<input type="text" id="entryName" />
</li>
<li>
<label>Secret:</label>
<input type="password" id="entrySecret" />
</li>
<li>
<button id="saveBtn">Save Entry</button>
</li>
</ul>
</div>
<div id="entries">
<h2>Existing Entries:</h2>
<table id="entriesTable">
<tr>
<th>Name</th>
<th>OTP</th>
<th>Action</th>
</tr>
</table>
</div>
</center>
<script src="popup.js"></script>
</body>
</html>