-
Notifications
You must be signed in to change notification settings - Fork 0
/
problem.html
104 lines (69 loc) · 3.29 KB
/
problem.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
<!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 class="sideBar">
<a id="backToProblemset">Problemset</a>
<a id="problemName"></a>
<div style="display:flex;align-items: center;">
<div class="checkBox" id="completionStatus" onclick="toggleCompletionStatus()"></div>
<p id="completionStatusLabel"></p>
</div>
</div>
<div id="docNavBar">
<a id="prevProbLink" style="margin-left:0">Previous</a>
<a id="nextProbLink" style="margin-right:0">Next</a>
</div>
<div class="bigBox">
<p id="diffIndicator" class="diffLabel"></p>
<div class="mdContent mdNoTopPadding" id="problemView"></div>
</div>
<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/effects/confetti.js"></script>
<script src="scripts/problemset-scripts/list-of-problems.js"></script>
<script src="scripts/problemset-scripts/problem-view.js"></script>
<script>
renderNavbar();
renderFooter();
</script>
<script>
const url = window.location.href;
if(url.search("#") != -1){
const folder = url.split("#")[1].split("/")[0];
const ind = url.split("#")[1].split("/")[1];
document.getElementById("title").innerHTML = problemFiles[folder][ind][0];
viewProblem(folder,ind);
}
else{
window.open('modes','_self');
}
</script>
</body>
</html>