-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
166 lines (165 loc) · 8.03 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<html>
<head>
<title>Symantic Quran</title>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.3/jquery.mobile.min.css" />
<link rel="stylesheet" href="css/site.css" />
<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-29293370-3', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div data-role="page" id="mainPage">
<div data-role="header" data-theme="b" data-position="fixed" data-tap-toggle="false">
<a href="javascript:void(0)" id="menuBtn" data-icon="bars" data-iconpos="notext">Menu</a>
<h1><a href="/">Semantic Quran</a></h1>
<h2 id="mainPageHeading"></h2>
<div class="ui-btn-right">
<form id="searchForm">
<input type="search" name="searchbar" id="search" value="" data-theme="a" />
</form>
</div>
</div>
<div data-role="content" class="results">
<div id="preText" class="result">
<div class="ayahWrapper">
<div class="ayah">بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ</div>
</div>
<div class="clear"></div>
</div>
<div id="resultsPane">
</div>
</div>
<div data-role="footer" data-theme="b" data-position="fixed" data-tap-toggle="false">
<select name="surahSelect" id="surahSelect" data-mini="true" data-inline="true">
<option value="0">Select Surah</option>
</select>
<div class="ui-btn-right">
<a data-iconpos="notext"
data-role="button"
data-icon="comment"
id="feedback"
href="javascript:void(0)">
Feedback
</a>
<a data-iconpos="notext"
data-role="button"
data-icon="info" target="_blank"
href="https://github.com/hasankhan/semantic-quran-web">
View source
</a>
</div>
</div>
<div data-role="panel" data-position="left" data-position-fixed="true" data-display="overlay" id="nav-panel">
<ul data-role="listview" style="margin-top:-16px;" class="nav-search">
<li data-filtertext="wai-aria" id="loginRow" class="hidden">
<a href="javascript:void(0)" id="loginBtn" data-icon="user" data-iconpos="notext" data-inline="true">Login</a>
</li>
<li data-filtertext="wai-aria">
<h3>Suggested Tags</h3>
<ul>
<li class="tag">
<a href="#search/marriage">marriage</a>
</li>
<li class="tag">
<a href="#search/dua">dua</a>
</li>
<li class="tag">
<a href="#search/heaven">heaven</a>
</li>
<li class="tag">
<a href="#search/hell">hell</a>
</li>
</ul>
</li>
<li data-filtertext="wai-aria">
<h3>Latest Tags</h3>
<ul id="lastUsedTags"></ul>
</li>
</ul>
</div>
<div data-role="panel" data-position="right" data-position-fixed="true" data-display="overlay" id="addTagPanel" data-theme="a">
<form id="addTagForm">
<h3>Please contribute a thoughtful tag for ayah <span id="addTagRef"></span></h3>
<label for="tagName">Tag</label>
<input type="text" name="tagName" value="" id="addTagDialogTextBox"
data-clear-btn="true" data-mini="true"
max-length="15"
placeholder="(ex: heaven)">
<ul id="recentlyAddedTags"></ul>
<div data-inline="true">
<a data-rel="close" data-theme="c" data-role="button" data-mini="true" data-inline="true">Cancel</a>
<a id="addTagDialogButton" data-rel="close" data-theme="b" data-role="button" data-mini="true" data-inline="true">Save</a>
</div>
</form>
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.3/jquery.mobile.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore-min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min.js"></script>
<script src="js/semantic-quran-web.min.js"></script>
<script type="text/template" id="surah_title_template">
<%= id %>: <%= name.simple %> - <%= name.english %>
</script>
<script type="text/template" id="surah_list_template">
<% surahs.forEach(function(surah) { %>
<option value="<%= surah.id %>"><%= surah.id %>: <%= surah.name.simple %></option>
<% }); %>
</script>
<script type="text/template" id="tag_list_template">
<% tags.forEach(function(tag) { %>
<li class="tag <%= classes %>" data-tag="<%= tag %>">
<a href="#search/<%= tag %>"><%= tag %></a>
</li>
<% }); %>
</script>
<script type="text/template" id="verse_tag_template">
<li class="tag" data-tag="<%= tag %>" data-surah="<%= surah %>" data-verse="<%= verse %>">
<a href="#search/<%= tag %>"><%= tag %></a>
<span class="delete loggedin-action">X</span>
</li>
</script>
<script type="text/template" id="result_template">
<% data.forEach(function(row){ %>
<div class="result" data-surah="<%= row.surah %>" data-verse="<%= row.verse %>">
<div class="ayahWrapper">
<div class="ayahRef">[<a href="#<%= row.surah %>"><%= row.surah %></a>:<a href="#<%= row.surah %>/<%= row.verse %>"><%= row.verse %></a>]</div>
<div class="ayah"><%= row.text %></div>
<div class="translation"><%= row.content[0].text %></div>
</div>
<ul id="tags<%= row.surah %>_<%= row.verse %>">
<% row.tags.forEach(function(tag){
print(tagTemplate({
tag: tag,
surah: row.surah,
verse: row.verse
}));
});
%>
<li class="tag addTag loggedin-action" data-surah="<%= row.surah %>" data-verse="<%= row.verse %>">
Add tag
</li>
</ul>
<div class="clear"></div>
</div>
<% }); %>
</script>
<script type="text/javascript">
UserVoice = window.UserVoice || []; (function () { var uv = document.createElement('script'); uv.type = 'text/javascript'; uv.async = true; uv.src = '//widget.uservoice.com/YW8Ocar8BLGF57xNfjAvrA.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(uv, s) })();
UserVoice.push(['set', {
accent_color: '#448dd6',
trigger_color: 'white',
trigger_background_color: 'rgba(46, 49, 51, 0.6)'
}]);
UserVoice.push(['identify']);
UserVoice.push(['addTrigger', '#feedback', { mode: 'contact' }]);
</script>
</body>
</html>