-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
194 lines (191 loc) · 12.1 KB
/
index.html
File metadata and controls
194 lines (191 loc) · 12.1 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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<!DOCTYPE html>
<html lang="vi">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="Description" content="MIS Blockly Games">
<title>STEAM Games</title>
<link rel="stylesheet" href="common/common.css">
<link rel="stylesheet" href="bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="common/master.css">
<link rel="stylesheet" href="index/style.css">
<link rel="stylesheet" type="text/css" href="theme.css">
<script src="fontawesome.js"></script>
<script src="js/jquery.min.js"></script>
<script src="masterFunc.js"></script>
</head>
<body onload="loading()">
<div class="container-fluid">
<header>
<div class="row justify-content-center">
<img id="banner" src="imgs/Logo.png" class="col-8 col-sm-4 col-md-4 col-lg-2 col-xl-1" alt="Logo" onclick="window.location.href='/'">
</div>
<div class="row justify-content-center">
<p class="text-center subtitle">STEAM Games Challenges - Tranh tài STEAM với MISers!</p>
</div>
</header>
<nav>
<div class="row justify-content-center mb-3">
<p class="text-center mr-3"><a href="about.html">Về dự án</a></p>
<p class="text-center"><a href="support.html">Hỗ trợ chúng tôi</a></p>
</div>
</nav>
<main>
<div class="alert"></div>
<div class="row">
<div class="d-flex col-sm-6 col-md-3 col-lg-3 justify-content-center">
<svg height="150" width="160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M 41.11,98.89 A 55 55 0 1 1 118.89,98.89" class="gaugeBack" id="back-puzzle"></path>
<g class="icon" id="icon-puzzle">
<circle cx="80" cy="60" r="50" class="iconBack"></circle>
<image href="imgs/puzzle.png" height="100" width="100" x="30" y="10"></image><a id="link-puzzle" href="puzzle.html">
<circle cx="80" cy="60" r="50" class="iconBorder"></circle><text x="80" y="135" id="puzzle">Ghép hình</text>
</a>
</g>
</svg>
</div>
<div class="d-flex col-sm-6 col-md-3 col-lg-3 justify-content-center">
<svg height="150" width="160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="16%" y="45%">
<path d="M 41.11,98.89 A 55 55 0 1 1 118.89,98.89" class="gaugeBack" id="back-maze"></path>
<g class="icon" id="icon-maze">
<circle cx="80" cy="60" r="50" class="iconBack"></circle>
<image href="imgs/maze.png" height="100" width="100" x="30" y="10"></image><a id="link-maze" href="maze.html">
<circle cx="80" cy="60" r="50" class="iconBorder"></circle><text x="80" y="135" id="maze">Mê cung lạc lối</text>
</a>
</g>
</svg>
</div>
<div class="d-flex col-sm-6 col-md-3 col-lg-3 justify-content-center">
<svg height="150" width="160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="26%" y="69%">
<path d="M 41.11,98.89 A 55 55 0 1 1 118.89,98.89" class="gaugeBack" id="back-bird"></path>
<g class="icon" id="icon-bird">
<circle cx="80" cy="60" r="50" class="iconBack"></circle>
<image href="imgs/bird.png" height="100" width="100" x="30" y="10"></image><a id="link-bird" href="bird.html">
<circle cx="80" cy="60" r="50" class="iconBorder"></circle><text x="80" y="135" id="bird">Chim tìm mồi</text>
</a>
</g>
</svg>
</div>
<div class="d-flex col-sm-6 col-md-3 col-lg-3 justify-content-center">
<svg height="150" width="160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="41%" y="80%">
<path d="M 41.11,98.89 A 55 55 0 1 1 118.89,98.89" class="gaugeBack" id="back-turtle"></path>
<g class="icon" id="icon-turtle">
<circle cx="80" cy="60" r="50" class="iconBack"></circle>
<image href="imgs/turtle.png" height="100" width="100" x="30" y="10"></image><a id="link-turtle" href="turtle.html">
<circle cx="80" cy="60" r="50" class="iconBorder"></circle><text x="80" y="135" id="turtle">Rùa vẽ hình</text>
</a>
</g>
</svg>
</div>
<div class="d-flex col-sm-6 col-md-3 col-lg-3 justify-content-center">
<svg height="150" width="160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="55%" y="61%">
<path d="M 41.11,98.89 A 55 55 0 1 1 118.89,98.89" class="gaugeBack" id="back-movie"></path>
<g class="icon" id="icon-movie">
<circle cx="80" cy="60" r="50" class="iconBack"></circle>
<image href="imgs/clapboard.png" height="100" width="100" x="30" y="10"></image><a id="link-movie" href="movie.html">
<circle cx="80" cy="60" r="50" class="iconBorder"></circle><text x="80" y="135" id="movie">Làm phim</text>
</a>
</g>
</svg>
</div>
<div class="d-flex col-sm-6 col-md-3 col-lg-3 justify-content-center">
<svg height="150" width="160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="69%" y="43%">
<path d="M 41.11,98.89 A 55 55 0 1 1 118.89,98.89" class="gaugeBack" id="back-music"></path>
<g class="icon" id="icon-music">
<circle cx="80" cy="60" r="50" class="iconBack"></circle>
<image href="imgs/music.png" height="100" width="100" x="30" y="10"></image><a id="link-music" href="music.html">
<circle cx="80" cy="60" r="50" class="iconBorder"></circle><text x="80" y="135" id="music">Nghệ sĩ</text>
</a>
</g>
</svg>
</div>
<div class="d-flex col-sm-6 col-md-3 col-lg-3 justify-content-center">
<svg height="150" width="160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="83%" y="55%">
<path d="M 41.11,98.89 A 55 55 0 1 1 118.89,98.89" class="gaugeBack" id="back-pond-tutor"></path>
<g class="icon" id="icon-pond-tutor">
<circle cx="80" cy="60" r="50" class="iconBack"></circle>
<image href="imgs/swords-2.png" height="100" width="100" x="30" y="10"></image><a id="link-pond-tutor" href="pond-tutor.html">
<circle cx="80" cy="60" r="50" class="iconBorder"></circle><text x="80" y="135" id="pond-tutor">Nhập môn đại chiến</text>
</a>
</g>
</svg>
</div>
<div class="d-flex col-sm-6 col-md-3 col-lg-3 justify-content-center">
<svg height="150" width="160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="90%" y="85%">
<path d="M 41.11,98.89 A 55 55 0 1 1 118.89,98.89" class="gaugeBack" id="back-pond-duck"></path>
<g class="icon" id="icon-pond-duck">
<circle cx="80" cy="60" r="50" class="iconBack"></circle>
<image href="imgs/swords.png" height="100" width="100" x="30" y="10"></image><a id="link-pond-duck" href="pond-duck.html">
<circle cx="80" cy="60" r="50" class="iconBorder"></circle><text x="80" y="135" id="pond-duck">Đại chiến trên hồ</text>
</a>
</g>
</svg>
</div>
</div>
</main>
<footer>
<div class="row align-items-center ml-0 mr-0 mb-2">
<div class="dropdown languages" style="display: inline-block;">
<button id="changeLanguages" class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Tiếng Việt</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" onclick="delCookie('lang');setCookie('lang', 'en', 365);location.reload();">English</a>
<a class="dropdown-item" onclick="delCookie('lang');setCookie('lang', 'vi', 10);location.reload();">Tiếng Việt</a>
</div>
</div>
<a href="" style="color: unset;display: inline-block;" class="ml-2"><i class="fas fa-adjust fa-lg mt-2" onclick="changeTheme();"></i></a>
</div>
<p id="clearDataPara" style="display: none;" class="mb-1">Bạn muốn bắt đầu lại?<button class="btn btn-primary" id="clearData" onclick="deleteData()">Bấm vào đây</button></p>
<p id="statusPara">Bạn muốn xem lịch sử <button class="btn btn-primary" id="clearData" onclick="window.location.href='status.html'">Bấm vào đây</button></p>
<script type="text/javascript">
if (checkTheme() == "dark") {
$(".theme button").addClass("bg-dark text-light")
$(".languages button").addClass("bg-dark text-light")
$("#clearDataPara").addClass("dark")
$("#statusPara").addClass("dark")
} else {
$(".theme button").addClass("bg-light text-dark")
$(".languages button").addClass("bg-light text-dark")
$("#clearDataPara").addClass("light")
$("#statusPara").addClass("light")
}
if (checkLanguage() == "en") {
document.getElementById('changeLanguages').innerText = 'English';
$("#clearDataPara").html("Want to start over?" + '<button class="btn btn-primary" id="clearData" onclick="deleteData()">Click here</button>');
$("#statusPara").html("Want to see status?" + '<button class="btn btn-primary" id="clearData" onclick="loadStatus()">Click here</button>');
}
clearDataButtonShow();
</script>
</footer>
</div>
<script type="text/javascript">
async function loading() {
$("header").load("header.html");
$("nav").load("nav.html");
$("footer").load("footer.html");
$(".alert").load("alert.html");
if (checkTheme() == "dark") {
$("body").addClass("dark");
$(".subtitle").addClass("dark");
} else {
$("body").addClass("light");
$(".subtitle").addClass("light");
}
if (checkLanguage() == "en") {
$("#puzzle").text("Puzzle")
$("#maze").text("Maze")
$("#bird").text("Bird")
$("#turtle").text("Turtle")
$("#movie").text("Movie")
$("#music").text("Music")
$("#pond-tutor").text("Pond Tutor")
$("#pond-duck").text("Pond")
$(document).ready(function() {
$("html").attr("lang", "en");
});
}
}
</script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>