-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.html
More file actions
89 lines (89 loc) · 2.55 KB
/
settings.html
File metadata and controls
89 lines (89 loc) · 2.55 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Settings</title>
<link rel="shortcut icon" type="image/png" href="/images/favicon.png"/>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
align-content: center;
margin: 0;
padding: 0;
background-color: #333;
}
h1 {
color: #ffffff;
}
#lunch-period {
font-size: 25px;
margin-top: 20px;
color: #333;
}
button {
font-size: 25px;
margin-top: 20px;
color: #333;
}
select {
font-size: 25px;
margin-top: 20px;
color: #333;
}
</style>
</head>
<body style="color: #333;">
<meta name="darkreader-lock">
<h1>Settings</h1>
<label for="lunch-period" style="font-size: 25px; margin-top: 20px; color: #ffffff;">Select Lunch Period:</label>
<select id="lunch-period">
<option value="none">None</option>
<option value="Period B">Lunch 6</option>
<option value="Period C">Lunch 8</option>
<option value="Period D">Lunch 10</option>
<option value="Period E">Lunch 11</option>
</select>
<br>
<label for="day-type" style="font-size: 25px; margin-top: 20px; color: #ffffff;">Select day type:</label>
<select id="day-type">
<option value="none">Regular</option>
<option value="Halfday">Halfday</option>
<option value="2hour">2 Hour Delay</option>
<option value="hr">Extended Homeroom</option>
<option value="vet">Veteran's Day</option>
</select>
<br>
<label for="funny" style="font-size: 25px; margin-top: 20px; color: #ffffff;">Enable Funny?</label>
<select id="funny">
<option value="False">False</option>
<option value="True">True</option>
</select>
<br>
<button onclick="saveSettingslunch()">Save Lunch</button>
<button onclick="saveSettingsday()">Save Day Type</button>
<button onclick="saveFunny()">Save Funny</button>
<br>
<a href="index.html">
<button>Go Back</button>
</a>
<script>
function saveSettingslunch() {
const lunchPeriod = document.getElementById("lunch-period").value;
localStorage.setItem("lunchPeriod", lunchPeriod);
alert("Settings saved successfully!");
}
function saveSettingsday() {
const counter = document.getElementById("day-type").value;
localStorage.setItem("daytype", counter);
alert("Settings saved successfully!");
}
function saveFunny() {
const funni = document.getElementById("funny").value;
localStorage.setItem("funni", funni);
alert("Settings saved successfully!");
}
</script>
</body>
</html>