-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (55 loc) · 2.39 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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Checklist</title>
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css"/>
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap-theme.css"/>
<link rel="stylesheet" href="bower_components/codemirror/lib/codemirror.css"/>
<link rel="stylesheet" href="styles/alternative-grid.css"/>
</head>
<body>
<div class="container">
<h1 data-bind="text: quiz.title"></h1>
<!-- ko with: quiz.questions[currentQuestionIndex()] -->
<div class="panel panel-default">
<div class="panel-body">
<!-- ko if: codeSnippets.length -->
<div class="alternative-grid" data-bind="foreach: codeSnippets">
<div class="alternative-grid__cell">
<div class="panel panel-default">
<div class="panel-heading" data-bind="text: $data.title"></div>
<div class="panel-body">
<textarea
data-bind="codemirror: {value: $data.code, mode: $data.mode, readOnly: true}"></textarea>
</div>
</div>
</div>
</div>
<!-- /ko -->
<p data-bind="text: question"></p>
<ol data-bind="foreach: variants">
<li><label><input
data-bind="checkedValue: $data.id, checked: $parents[1].currentAnswers"
type="checkbox"/><span
data-bind="text: text"></span></label></li>
</ol>
<div class="btn-group">
<button class="btn btn-info" data-bind="click: $parent.moveTo.bind($parent, $parent.currentQuestionIndex() - 1)">Previous</button>
<button class="btn btn-info" data-bind="click: $parent.moveTo.bind($parent, $parent.currentQuestionIndex() + 1)">Next</button>
<button class="btn btn-success">Finish</button>
</div>
</div>
</div>
<!-- /ko -->
<pre data-bind="text: ko.toJSON(answers)"></pre>
</div>
<script type="text/javascript" src="bower_components/requirejs/require.js"></script>
<script type="text/javascript" src="scripts/require.config.js"></script>
<script>
require(['bootstrapper'], function(bootstrapper) {
bootstrapper.init();
});
</script>
</body>
</html>