-
Notifications
You must be signed in to change notification settings - Fork 0
/
play.html
98 lines (74 loc) · 3.71 KB
/
play.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- google fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Poppins:400,600,800" rel="stylesheet">
<!-- our own stylesheet-->
<link rel="stylesheet" href="styles/light.css">
<link id="darkMode" rel="stylesheet">
<!-- showdown.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/2.1.0/showdown.min.js"></script>
<script type="text/javascript" id="MathJax-script" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
<!-- highligh.js -->
<link id="codeStyle" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/atom-one-light.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<!-- alvin😊 -->
<link rel="icon" href="assets/logo/alvin32_r.png">
<script src="scripts/effects/color-scheme.js"></script>
<title id="title">AlgoSavvy</title>
</head>
<body>
<div id="loadingScreen">
<img src="assets/logo/alvin64_r.png">
<h3>Getting everything ready...</h3>
</div>
<div id="sessionStats" class="sideBar">
<p style="font-weight:600">Session Stats</p>
<div id="sessionProgressBar">
<div style="transition: .25s;" id="greenBar"></div>
</div>
<p id="progressDesc">${sessionStats[1]} / ${sessionStats[0]} questions correct</p>
</div>
<div class="bigBox">
<p id="diffIndicator" class="diffLabel"></p>
<div class="mdContent mdNoTopPadding" id="problemView"></div><!-- where the problem is displayed -->
<div id="answerSection"></div><!-- where user answers-->
<div id="correctionSection"></div> <!-- where the user is told whether they are correct-->
<div id="explanationSection"></div><!-- where the answer is explained-->
<div id="confirmationSection"></div><!-- where the user confirms whether they got the question wrong(solution search and error blitz)-->
</div>
<script>
const url = window.location.href;
let gameMode = "";
if(url.search("#") != -1){
gameMode = url.split("#")[1];
let tabTitle = gameMode.split("-");
tabTitle[0] = tabTitle[0][0].toUpperCase() + tabTitle[0].slice(1);
tabTitle[1] = tabTitle[1][0].toUpperCase() + tabTitle[1].slice(1);
document.getElementById("title").innerHTML = tabTitle.join(" ") + " | AlgoSavvy";
}
else{
window.open('modes','_self');
}
</script>
<script src="scripts/util.js"></script>
<script src="scripts/local-storage-vars.js"></script>
<script src="scripts/templating.js"></script>
<script src="scripts/markdown.js"></script>
<script src="scripts/problemset-scripts/list-of-problems.js"></script>
<script src="scripts/game-scripts/load-problems.js"></script>
<script src="scripts/game-scripts/play-session.js"></script>
<script>
renderNavbar();
renderFooter();
</script>
<script>
loadProblems();
updateStats();
</script>
</body>
</html>