-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsettings.html
48 lines (39 loc) · 1.66 KB
/
settings.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Settings</title>
<script src="scripts.js" defer></script>
</head>
<body>
<!-- Search Bar -->
<div id="search-bar-container"></div>
<script>
fetch("search-bar.html")
.then(response => response.text())
.then(html => document.getElementById("search-bar-container").innerHTML = html);
</script>
<header>
<h1>Account Settings</h1>
</header>
<section>
<h2>Set Monthly Limits</h2>
<form id="settingsForm" onsubmit="return validateLimits()">
<label for="dataLimit">Monthly Data Limit (GB):</label>
<input type="number" id="dataLimit" name="dataLimit" min="0" required>
<br>
<label for="callLimit">Monthly Call Limit (Minutes):</label>
<input type="number" id="callLimit" name="callLimit" min="0" required>
<br>
<h3>User Notification Timing Preferences </h3>
<p>Select when you want to be notified of remaining data usage:</p>
<label><input type="checkbox" id="notify5" name="notification" value="5"> 5% left</label><br>
<label><input type="checkbox" id="notify10" name="notification" value="10"> 10% left</label><br>
<label><input type="checkbox" id="notify20" name="notification" value="20"> 20% left</label><br>
<label><input type="checkbox" id="notify50" name="notification" value="50"> 50% left</label><br>
<button type="submit">Save Settings</button>
</form>
</section>
</body>
</html>