-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphics.html
62 lines (56 loc) · 2.15 KB
/
graphics.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Menu</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="hsl(221 90% 98%)" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="Canvas" media="(prefers-color-scheme: dark)">
<meta name="description" content="🙂">
<link rel="stylesheet" href="/styles.css">
<script type="module" src="/graphics.js"></script>
<script type="module" src="/index.js"></script>
</head>
<body>
<ul class="threeD-button-set">
<li><button id="lowest">Lowest</button></li>
<li><button id="low">Low</button></li>
<li><button id="medium">Medium</button></li>
<li><button id="high">High</button></li>
<li><button onclick="window.location.href='settings.html'">Back</button></li>
</ul>
<script>
var graphics = "lowest"
var lowest = document.getElementById("lowest")
lowest.addEventListener("click", function(){
graphics="lowest"
console.log(graphics)
localStorage.setItem("graphic", graphics);
});
var graphics = "low"
var low= document.getElementById("low")
low.addEventListener("click", function(){
graphics="low"
console.log(graphics)
localStorage.setItem("graphic", graphics);
});
var graphics = "medium"
var medium = document.getElementById("medium")
medium.addEventListener("click", function(){
graphics="medium"
console.log(graphics)
localStorage.setItem("graphic", graphics);
});
var graphics = "high"
var high= document.getElementById("high")
high.addEventListener("click", function(){
graphics="high"
console.log(graphics)
localStorage.setItem("graphic", graphics);
});
</script>
</body>
</htre>