-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
37 lines (35 loc) · 1.12 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>
<head>
<link rel="stylesheet" type="text/css" href="/dist/main.css">
</head>
<body>
<main>
<section id="quiz">
<h1 rv-text="scope.title"></h1>
<div class="quiz__question" rv-text="scope.question.question"></div>
<ul class="quiz__choices">
<li rv-each-choice="scope.question.choices" class="quiz__choices__item">
<input type="radio" name="choice" rv-checked="scope.selectedChoice" rv-value="index" rv-enabled="scope.answerMode"> <label rv-text="choice"></label>
</li>
</ul>
<div rv-show="scope.selectedChoice"> You chose index {scope.selectedChoice}</div>
<div rv-text="scope.message"></div>
<button rv-on-click="scope.checkAnswer" rv-show="scope.answerMode">Submit</button>
<!-- <button rv-on-click="scope.nextQuestion" rv-hide="scope.answerMode">Next</button> -->
</section>
</main>
<script src="jspm_packages/system.js"></script>
<script src="config.js"></script>
<script>
System.config({
"paths": {
"*": "dist/*.js"
}
});
</script>
<script>
System.import('main');
</script>
</body>
</html>