-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
136 lines (135 loc) · 3.02 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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<html>
<title>Memory game</title>
<head>
<link rel="stylesheet" href="./styles.css" />
<link rel="icon" type="image/x-icon" href="./memory-game.ico">
</head>
<body>
<div class="main">
<h1 class="h1">Memory game</h1>
<div class="row">
<img
id="button1"
class="button"
src="./images/question.png"
onclick="Buttonclicked(1)"
/>
<img
id="button2"
class="button"
src="./images/question.png"
onclick="Buttonclicked(2)"
/>
<img
id="button3"
class="button"
src="./images/question.png"
onclick="Buttonclicked(3)"
/>
<img
id="button4"
class="button"
src="./images/question.png"
onclick="Buttonclicked(4)"
/>
<img
id="button5"
class="button"
src="./images/question.png"
onclick="Buttonclicked(5)"
/>
<img
id="button6"
class="button"
src="./images/question.png"
onclick="Buttonclicked(6)"
/>
<img
id="button7"
class="button"
src="./images/question.png"
onclick="Buttonclicked(7)"
/>
<img
id="button8"
class="button"
src="./images/question.png"
onclick="Buttonclicked(8)"
/>
</div>
<div class="row">
<img
id="button9"
class="button"
src="./images/question.png"
onclick="Buttonclicked(9)"
/>
<img
id="button10"
class="button"
src="./images/question.png"
onclick="Buttonclicked(10)"
/>
<img
id="button11"
class="button"
src="./images/question.png"
onclick="Buttonclicked(11)"
/>
<img
id="button12"
class="button"
src="./images/question.png"
onclick="Buttonclicked(12)"
/>
<img
id="button13"
class="button"
src="./images/question.png"
onclick="Buttonclicked(13)"
/>
<img
id="button14"
class="button"
src="./images/question.png"
onclick="Buttonclicked(14)"
/>
<img
id="button15"
class="button"
src="./images/question.png"
onclick="Buttonclicked(15)"
/>
<img
id="button16"
class="button"
src="./images/question.png"
onclick="Buttonclicked(16)"
/>
</div>
<p id="score">Score=0</p>
<p id="Turns">Turns taken=0</p>
</div>
<span class="loader"></span>
<script src="game-functionality.js"></script>
<script src="MemoryGame.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/darkmode-js.min.js"></script>
<script>
const options = {
bottom: '32px', // default: '32px'
time: '0.5s', // default: '0.3s'
mixColor: '#fff', // default: '#fff'
backgroundColor: '#fff', // default: '#fff'
buttonColorDark: '#100f2c', // default: '#100f2c'
buttonColorLight: '#fff', // default: '#fff'
saveInCookies: false, // default: true,
label: '🌓', // default: ''
autoMatchOsTheme: true, // default: true
};
function addDarkmodeWidget() {
new Darkmode(options).showWidget();
}
window.addEventListener('load', addDarkmodeWidget);
</script>
</body>
</html>