-
Notifications
You must be signed in to change notification settings - Fork 1
/
flashcardTemplate.html
58 lines (46 loc) · 1.74 KB
/
flashcardTemplate.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Who's Who?</title>
<link rel="stylesheet" href="styles/flashcard.css">
<link rel="stylesheet" href="webfontkit/stylesheet.css">
<link rel="stylesheet" href="styles/animate.css">
<script src="js/jquery-1.11.2.min.js"></script>
<script src="js/underscore-min.js"></script>
<script src="handlebars-v2.0.0.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinysort/2.2.2/tinysort.min.js"></script>
</head>
<body>
<header>
<h1>Who's Who?</h1>
<h2 class="current-name">Click Start!</h2>
<div class="controls">
<button id="start" class="button">start</button>
<button id="reset" class="button hidden">reset</button>
<button id="skip" class="button hidden">skip</button>
</div>
<div class="score hidden"><p>0</p></div>
</header>
<div class="score-pop animated hidden">0</div>
<div class="content">
<div class="profile-card hidden" id="tyler">
<img src="photos/{{'name'}}.png" alt="{{name}}">
<a href='samplestudent.html'><h2>{{name}}</h2></a>
</div>
<script id="student-template" type="text/x-handlebars-template">
<!-- people is looked up on the global context, the one we pass to the compiled template -->
{{#each students}}
<!-- Here the context is each individual person. So we can access its properties directly: -->
<div class="profile-card hidden" id='{{name}}'>
<img src="photos/{{name}}.png" alt="{{name}}">
<a href='{{samplestudent}}.html'><h2>{{name}}</h2></a>
</div>
{{/each}}
</script>
</div>
<script src="js/template.js"></script>
<script src="js/main.js"></script>
<script src="js/flash.js"></script>
</body>
</html>