forked from tulak/pv080-drill
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
127 lines (113 loc) · 4.67 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<title>FI MUNI Drill</title>
<!-- Path to Framework7 Library CSS-->
<link href="css/framework7.min.css" rel="stylesheet">
<!-- Path to your custom app styles-->
<link href="css/my-app.css" rel="stylesheet">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-12182518-18', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<!-- Status bar overlay for fullscreen mode-->
<div class="statusbar-overlay"></div>
<!-- Panels overlay-->
<div class="panel-overlay"></div>
<div class="panel panel-left panel-reveal">
<div class="content-block" id="question-list-block"></div>
</div><!-- Views-->
<div class="views">
<!-- Your main view, should have "view-main" class-->
<div class="view view-main">
<!-- Pages, because we need fixed-through navbar and toolbar, it has additional appropriate classes -->
<div class="pages navbar-fixed toolbar-fixed question-pages" id="pages">
<!-- Index Page-->
</div>
</div>
</div><script class="left-panel" type="text/html">
<div class="content-block-title">Question Datasets</div>
<% _.each(list, function(q) { %>
<p><a href="#<%= q.id %>" class="close-panel"><%= q.name %></a></p>
<% }); %>
<div class="content-block-title">About</div>
<p>
The app was made for my personal use, and then shared to others to make the world better place :D.
</p>
<p>
If you find it helpful you can buy me a beer.
</p>
</script> <script class="question-page" type="text/html">
<% _.each(list, function(q) { %>
<div data-page="<%= q.id %>" class="page">
<span id="questions-<%= q.id %>">
</span>
<div class="toolbar">
<div class="toolbar-inner">
<a href="#" data-panel="left" class="open-panel">Menu</a>
<span><%= q.name %></span>
<a href="#" class="source-link">Source</a>
</div>
</div>
</div>
<% }); %>
</script> <script class="question" type="text/html">
<!-- Scrollable page content-->
<div class="page-content questions-page-content">
<div class="content-block-title question-name"><%= question.name %></div>
<div class="list-block">
<ul>
<% _.each(_.shuffle(question.answers), function(answer) { %>
<li class="answer">
<label class="label-checkbox item-content">
<input type="checkbox" name="answer" value="<%= answer.right %>">
<div class="item-media"><i class="icon icon-form-checkbox"></i></div>
<div class="item-inner">
<div class="item-text"><%= answer.body %></div>
</div>
</label>
</li>
<% }); %>
</ul>
</div>
<div class="content-block">
<div class="row">
<div class="col-50">
<a href="#" id="submit-button" class="button button-big button-fill color-green">Check</a>
</div>
<div class="col-50">
<a href="#" id="next-button" class="button button-big button-fill color-blue">Next</a>
</div>
</div>
</div>
<div class="content-block">
<div class="content-block-inner">
<p>Question: <b><%= question_index %></b> of <%= total_questions %></p>
</div>
</div>
</div>
</script>
<!-- Path to Framework7 Library JS-->
<script src="js/framework7.min.js" type="text/javascript"></script>
<script src="js/jquery-2.1.1.js" type="text/javascript"></script>
<script src="js/underscore.js" type="text/javascript"></script>
<script src="js/coffee-script.js" type="text/javascript"></script>
<script type="text/javascript">
window.Classes = {};
</script>
<script src="js/questions.coffee" type="text/coffeescript"></script>
<!-- Path to your app js-->
<script src="js/my-app.coffee" type="text/coffeescript"></script>
</body>
</html>