This repository has been archived by the owner on Jul 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
37 lines (36 loc) · 1.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Interactive Javascript Tutorial</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div id="ko-view">
<select class="form-control" data-bind="options: pages, optionsText: 'name', value: currentPage"></select>
<div data-bind="with: currentPage">
<h1 data-bind="text: name"></h1>
<div class="row">
<div class="col-md-6">
<button class="btn btn-default" type="button" data-bind="click: moveToPreviousInstruction, enable: canMoveToPreviousInstruction">Previous</button>
<span data-bind="text: selectedInstruction"></span>
<button class="btn btn-default" type="button" data-bind="click: moveToNextInstruction, enable: canMoveToNextInstruction">Next</button>
<button class="btn btn-default" data-bind="click: $parent.runCode">Run</button>
<div data-bind="html: $parent.output"></div>
</div>
<div class="col-md-6">
<div class="form-control" data-bind="ace: markUp, aceOptions: {mode: 'ace/mode/html'}"></div>
<div class="form-control" data-bind="ace: script, aceOptions: {mode: 'ace/mode/javascript'}"></div>
</div>
</div>
</div>
</div>
</div>
<script data-main="js/app" src="js/require.js"></script>
</body>
</html>