-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (39 loc) · 1.47 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
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<link href="quizitems.css" media="all" rel="stylesheet" type="text/css"/>
<script src="lib/json2.js"></script>
<script src="lib/jquery-1.5.js"></script>
<script src="lib/underscore-1.1.6.js"></script>
<script src="lib/backbone.js"></script>
<script src="lib/backbone-localstorage.js"></script>
<script src="quizitems.js"></script>
</head>
<body>
<div id="quizitemapp">
<div class="title">
<h1>Test</h1>
</div>
<div class="content">
<div id="quizitems">
<ul id="quizitem-list"></ul>
</div>
</div>
</div>
<!-- Templates -->
<script type="text/template" id="item-template">
<div class="display">
<div class="quizitem-question"><%= question %></div>
<div class="quizitem-answer"><%= answer %></div>
<div class="quizitem-correctanswer">Correct Answer: <%= correctanswer %> </div>
</div>
<div class="edit">
<div class="quizitem-question"><%= question %></div>
<label>True <input class="quizitem-input" type="radio" name="quizitem-input-<%= id %>" value="true" <%= answer===true ? 'checked="checked"' : '' %> /></label>
<label>False <input class="quizitem-input" type="radio" name="quizitem-input-<%= id %>" value="false" <%= answer===true ? 'checked="checked"' : '' %> /></label>
</div>
</div>
</script>
</body>
</html>