-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (39 loc) · 1.6 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
<html>
<head>
<title>Syntax Tutor</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="codemirror/codemirror.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<section>
<div id="notification" style="display: none;"></div>
<div class="container">
<div style="text-align: center;">
<h1 style="margin-bottom: 0;">Syntax Tutor</h1>
<p id="score">
Score: 0
</p>
</div>
<pre id="example"></pre>
<h2 id="prompt">Is this correct syntax?</h2>
<button id="correct">Yes</button>
<button id="incorrect">No</button>
<div id="makeCorrections" style="display: none;">
<h3>How could you correct the syntax?</h3>
<div id="editor"></div>
<button id="submit">Submit</button>
</div>
</div>
</section>
<footer>
<span style="margin-left: 5px; font-weight: bold;">Customize Problem Types:</span>
<ul id="problemTypes"></ul>
</footer>
<script src="codemirror/codemirror.js"></script>
<script src="codemirror/addon/runmode/runmode.js"></script>
<script src="codemirror/mode/javascript/javascript.js"></script>
<script src="https://unpkg.com/[email protected]/dist/esprima.js"></script>
<script src="js/app.js"></script>
</body>
</html>