-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
80 lines (77 loc) · 3.25 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
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>Doze Poa</title>
<link rel="stylesheet" type="text/css" href="css/jquery.mobile-1.3.2.min.css">
<link rel="stylesheet" type="text/css" href="css/screen.css">
<link rel="shortcut icon" href="img/dozepoa-icon.png">
<link rel="apple-touch-icon-precomposed" href="img/dozepoa.png">
</head>
<body>
<script id="nav-template" type="text/x-handlebars">
<div data-role="page" id="homepage">
<div data-theme="a" data-role="header">
<h3><img src="img/logo.svg" alt="Doze Poa"></h3>
<a id="language-switcher-button" href="#language-switcher" aria-haspopup="true" aria-owns="#language-menu" data-transition="pop" data-rel="popup" data-inline="true">
{{currentLanguage}}
</a>
</div>
<div data-role="content">
<div data-role="popup" id="language-switcher" data-theme="a">
<ul data-role="listview" data-inset="true" data-theme="b">
<li><a href="#" data-language="swahili">Swahili</a></li>
<li><a href="#" data-language="luganda">Luganda</a></li>
<li><a href="#" data-language="lugbara">Lugbara</a></li>
</ul>
</div>
<div class="ui-grid-a">
{{#each categories}}
<div class="ui-block-{{gridPosition}}">
<a href="#phrases" data-transition="slide" data-category="{{name}}">
<img src="img/{{name}}.svg"/>
<p class="main-language">{{mainLanguageName}}</p>
<p class="english">{{secondLanguageName}}</p>
</a>
</div>
{{/each}}
</div>
</div>
</div>
<div data-role="content">
</div>
</div>
</script>
<script id="phrases-template" type="text/handlebars">
<div data-role="page" id="phrases">
<div data-theme="a" data-role="header">
<a href="#homepage" data-transition="slide" data-rel="back">
Overview
</a>
<h3>{{categoryName}}</h3>
</div>
<div data-role="content">
<ul data-role="listview" data-divider-theme="b" data-inset="true">
{{#each phrases}}
<li data-theme="c">
<a href="#" rel="phrase">
<span class="main-language">{{mainLanguagePhrase}}</span><br>
<span class="english">{{secondLanguagePhrase}}</span><br>
<span class="explanation" style="display: none;">{{explanation}}</span>
</a>
</li>
{{/each}}
</ul>
</div>
</div>
</script>
<script src="js/jquery.js"></script>
<script src="js/jquery.mobile-1.3.2.min.js"></script>
<script src="js/handlebars.js"></script>
<script src="js/underscore.js"></script>
<script src="js/fastclick.js"></script>
<script src="js/content.js"></script>
<script src="js/app.js"></script>
</body>
</html>