-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (79 loc) · 3.32 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="public/codemirror.css">
<link rel="stylesheet" href="node_modules/codemirror/addon/lint/lint.css">
<link rel="stylesheet" href="node_modules/codemirror/addon/hint/show-hint.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.0/css/all.min.css">
</head>
<body>
<section id="stats">
<nav>
<button id="dialog-btn" style="height: 100%">Change Problem Set</button>
</nav>
<div id="problem-set-name"></div>
<div>Total Problems: <span id="total-problems">0</span></div>
<div>Solved Problems: <span id="solved-problems">0</span></div>
<div>Incorrect Attempts: <span id="incorrect-attempts">0</span></div>
<!-- <div>Scorexx: <span id="total-score">0</span></div>-->
<div>Score / Goal
<div><span id="total-score">0</span> / <span id="goal-score">0</span></div>
</div>
</section>
<section id="instructions-box">
<div id="id">00</div>
<div id="instructions">instructions</div>
</section>
<!-- The CodeMirror container -->
<!--<textarea id="editor" rows="10" cols="50">-->
<!--</textarea>-->
<!--<button id="reset-problem-btn">Reset Problem</button>-->
<!--<button id="skip-problem-btn">Skip</button>-->
<section id="editor-container">
<!-- <div id="editor"></div>-->
<textarea id="editor" rows="10" cols="150"></textarea>
<button id="skip-problem-btn">Skip</button>
<button id="reset-problem-btn">Reset Problem</button>
</section>
<div class="solution"><span>Your Solution:</span><span id="user-solution"></span></div>
<div class="solution"><span>Expected:</span><span id="expected-solution"></span></div>
<div id="message"></div>
<button id="check-problem-btn">Check</button>
<div id="hintContainer" class="help-container">
<button id="show-hint-btn">Show hint <span id="hint-cnt"></span></button>
<div id="hint-box">
<div id="hint-code">hint</div>
</div>
</div>
<div id="solutionContainer" class="help-container">
<button id="solution-btn">Show Solution</button>
<div id="solution-box">
<button id="copySolutionBtn" class="copy-icon">
<i class="fas fa-copy"></i>
</button>
<pre id="solution-code">solution</pre>
</div>
</div>
<div id="myModal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<p>Some text in the Modal...</p>
<button id="load-problems3-btn">Load problems3.json</button>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jshint/2.12.0/jshint.min.js"></script>
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/mode/javascript/javascript.min.js"></script>-->
<script src="public/codemirror.js"></script>
<script src="node_modules/codemirror/mode/javascript/javascript.js"></script>
<script src="node_modules/codemirror/addon/lint/lint.js"></script>
<script src="node_modules/codemirror/addon/lint/javascript-lint.js"></script>
<script src="node_modules/codemirror/addon/hint/show-hint.js"></script>
<script src="node_modules/codemirror/addon/hint/javascript-hint.js"></script>
<script src="submitCode.js"></script>
<script src="dialog.js"></script>
<script type="module" src="main.js"></script>
</body>
</html>