-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (62 loc) · 2.59 KB
/
index.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>
<head>
<meta charset="UTF-8">
<meta name="description" content="Javascript,Simon Game">
<meta name="keywords" content="Javascript,Simon Game">
<meta name="author" content="Jason Zheng">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="js.js"></script>
</head>
<body>
<div class = "circle" id="outer">
<div class="quarter top-left" id = "quarter0"></div>
<div class="quarter top-right" id = "quarter1"></div>
<div class="quarter bottom-left" id = "quarter2"></div>
<div class="quarter bottom-right" id = "quarter3"></div>
<div class = "circle" id = "inner">
<p id = "title">Simon<span>®</span></p>
<div class = "console">
<div class = "parallel counter">
<div id = "counter"><span></span></div>
<p class = "consoletext">COUNT</p>
</div>
<div class = "parallel start">
<button id = "start" ></button>
<p class = "consoletext">START</p>
</div>
<div class = "parallel strict">
<div id = "indicator"></div>
<button id ="strict"></button>
<p class = "consoletext">STRICT</p>
</div>
<div id = "switch"><span>OFF</span>
<label class="switch">
<input type="checkbox">
<span class="slider round"></span>
</label>
<span>ON</span>
</div>
</div>
</div>
</div>
<script>
var x = document.querySelector('meta[name="viewport"]')
if (screen.width < 320) {
x.setAttribute("content", "width=device-width,initial-scale=0.59");
} else if (screen.width < 380) {
x.setAttribute("content", "width=device-width,initial-scale=0.63");
} else if (screen.width < 430) {
x.setAttribute("content", "width=device-width,initial-scale=0.68");
} else if (screen.width < 650) {
x.setAttribute("content", "width=device-width,initial-scale=0.79");
} else if (screen.width < 770) {
x.setAttribute("content", "width=device-width,initial-scale=0.90");
} else if (screen.width >= 770) {
x.setAttribute("content", "width=device-width,initial-scale=1.0");
}
</script>
</body>
</html>