-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.html
More file actions
90 lines (79 loc) · 3.52 KB
/
Copy pathapp.html
File metadata and controls
90 lines (79 loc) · 3.52 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OTP Generator</title>
<!-- PWA and Theme Information -->
<link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#007bff">
<!--Favicon and Icon Definitions (CORRECTED & ADDED) -->
<link rel="icon" href="faviconq.ico" type="image/x-icon">
<link rel="shortcut icon" href="faviconq.ico" type="image/x-icon">
<link rel="apple-touch-icon" href="icons/icon-192.png">
<link rel="stylesheet" href="style.css">
<meta http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; font-src 'self'; connect-src 'self' https://worldtimeapi.org ws:;">
</head>
<body>
<!-- The rest of the body remains unchanged -->
<div class="container">
<h1>OTP Generator</h1>
<div class="login-container">
<input type="password" id="pin-input" inputmode="numeric" pattern="[0-9]*" maxlength="4"
placeholder="Enter your PIN">
<button id="login-btn">Login</button>
<button id="login-webauthn-btn">Login with Fingerprint/PIN</button>
<button id="reset-btn-login" class="reset-button">Reset App</button>
</div>
<div class="otp-container hidden">
<div class="otp-header">
<div id="current-time"></div>
<span id="time-status"></span>
</div>
<div class="toggle-button-container">
<label class="switch">
<input type="checkbox" id="summer-time-toggle">
<span class="slider round"></span>
</label>
<span class="toggle-label">Summer Time</span>
</div>
<h2>OTP Accounts</h2>
<div id="otp-list">
</div>
<hr>
<div id="logout-countdown"></div>
<hr>
<button id="show-add-otp-btn">Add new account</button>
<div id="add-otp-section" class="hidden">
<input type="text" id="account-name-input" placeholder="Account Name (e.g., Google)">
<input type="text" id="new-secret-key-input" placeholder="Secret Key">
<button id="add-otp-btn">Add OTP Account</button>
</div>
<hr>
<div class="action-buttons">
<button id="logout-btn">Logout</button>
</div>
</div>
<div class="set-pin-container hidden">
<input type="password" id="new-pin-input" inputmode="numeric" pattern="[0-9]*" maxlength="4"
placeholder="Set a new 4-digit PIN">
<button id="set-pin-btn">Set PIN</button>
<button id="register-webauthn-btn">Register with Fingerprint/PIN</button>
<button id="reset-btn-setpin" class="reset-button">Reset App</button>
</div>
</div>
<div id="notification-container"></div>
<div id="custom-alert-modal" class="modal">
<div class="modal-content">
<p id="modal-message"></p>
<div class="modal-buttons">
<button id="modal-yes-btn">Yes</button>
<button id="modal-no-btn">No</button>
</div>
</div>
</div>
<script src="pwa-loader.js"></script>
<script src="script.js"></script>
</body>
</html>