This repository has been archived by the owner on Aug 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
default.html
273 lines (242 loc) · 9.72 KB
/
default.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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
<!DOCTYPE HTML>
<html class="goodscroll">
<head>
<meta name="viewport" content="width=100%; initial-scale=1; user-scalable=no" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<base><!-- used to process relative links in content -->
<title>Wikipedia</title>
<script type="text/javascript" charset="utf-8" src="js/lawnchair/Lawnchair.js"></script>
<script type="text/javascript" charset="utf-8" src="js/lawnchair/adapters/webkit-sqlite.js"></script>
<script type="text/javascript" charset="utf-8" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" charset="utf-8" src="js/zepto.min.js"></script>
<script type="text/javascript" charset="utf-8" src="js/hogan.min.js"></script>
<script type="text/javascript" charset="utf-8" src="js/mediawiki.js"></script>
<script type="text/javascript" charset="utf-8" src="js/2.5.3-crypto-md5.js"></script>
<script type="text/javascript" charset="utf-8" src="js/urlcache.js"></script>
<script type="text/javascript" charset="utf-8" src="js/jquery.localize.js"></script>
<script type="text/javascript" charset="utf-8" src="js/iscroll.js"></script>
<script type="text/javascript" charset="utf-8" src="leaflet/leaflet.js"></script>
<script type="text/javascript" charset="utf-8" src="js/propertiesFileReader.js"></script>
<script type="text/javascript" charset="utf-8" src="js/preferences.js"></script>
<script type="text/javascript" charset="utf-8" src="js/l10n-setup.js"></script>
<!-- app logic -->
<script type="text/javascript" charset="utf-8" src="js/network.js"></script>
<script type="text/javascript" charset="utf-8" src="js/templates.js"></script>
<script type="text/javascript" charset="utf-8" src="js/main.js"></script>
<script type="text/javascript" charset="utf-8" src="js/savedpages.js"></script>
<script type="text/javascript" charset="utf-8" src="js/chrome.js"></script>
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
<script type="text/javascript" charset="utf-8" src="js/app_history.js"></script>
<script type="text/javascript" charset="utf-8" src="js/search.js"></script>
<script type="text/javascript" charset="utf-8" src="js/geo.js"></script>
<script type="text/javascript" charset="utf-8" src="js/settings.js"></script>
<script type="text/javascript" charset="utf-8" src="js/langlinks.js"></script>
<script type="text/javascript" charset="utf-8" src="js/menu.js"></script>
<!-- MobileFrontend -->
<script type="text/javascript" charset="utf-8" src="js/mobilefrontend.js"></script>
<script type="text/javascript" charset="utf-8" src="js/toggle.js"></script>
<!-- platform-specific setup and overrides -->
<script type="text/javascript" charset="utf-8" src="js/platform-stub.js"></script>
<link rel="stylesheet" href="leaflet/leaflet.css" />
<link rel="stylesheet" href="app.css" />
<link rel="stylesheet" href="common.css" />
</head>
<body onload="init();">
<div id="templates">
<script type="text/html" id="settings-page-template">
<div class="item">
<label for="contentLanguageSelector"><msg key="settings-language-label"></msg></label>
<select id='contentLanguageSelector'>
{{#languages}}
<option value="{{code}}">{{name}}</option>
{{/languages}}
</select>
</div>
<div class="item">
<label for="fontSizeSelector"><msg key="settings-font-size-label"></msg></label>
<select id="fontSizeSelector">
{{#fontSizes}}
<option value="{{value}}">{{name}}</option>
{{/fontSizes}}
</select>
</div>
<div id="aboutPageLabel" class="item">
<label><msg key="about-page-label"></msg></label>
</div>
</script>
<script type="text/html" id="saved-pages-template">
{{#pages}}
<div class="listItemContainer" data-page-url="{{key}}" data-page-title="{{title}}">
<a class="listItem savedPage">
<span class="iconSavedPage"></span>
<span class="text deleteEnabled">{{title}}</span>
</a>
<a class="deleteSavedPage deleteButton"></a>
</div>
{{/pages}}
{{^pages}}
<div class="lisItemContainer"></div>
{{/pages}}
</script>
<script type="text/html" id="search-results-template">
{{#didyoumean}}
<div class="listItemContainer" data-page-url="{{key}}" data-page-title="{{title}}">
<a class="listItem searchItem">
<span class="didYouMeanLabel"><msg key="search-results-did-you-mean-label"></msg> </span>
<span class="didYouMeanResult">{{title}}</span>
</a>
</div>
{{/didyoumean}}
{{#pages}}
<div class="listItemContainer" data-page-url="{{key}}" data-page-title="{{title}}">
<a class="listItem searchItem">
<span class="iconSearchResult"></span>
<span class="text deleteEnabled">
{{title}}
</span>
</a>
</div>
{{/pages}}
<div class="listItemContainer" id="doFullSearch">
<a class="listItem">
<span class="text">
<msg key="do-fulltext-search"></msg>
</span>
</a>
</div>
</script>
<script type="text/html" id="history-template">
{{#pages}}
<div class="listItemContainer" data-page-url="{{value}}" data-page-title="{{title}}">
<a class="listItem historyItem">
<span class="iconHistory"></span>
<span class="text">{{title}}</span>
</a>
</div>
{{/pages}}
{{^pages}}
<div class="listItemContainer"></div>
{{/pages}}
</script>
<script type="text/html" id="language-links-template">
{{#languages}}
<div class="listItemContainer" data-page-url="{{url}}">
<a class="listItem languageLink" lang="{{lang}}">
<span class="text">{{name}}</span>
</a>
</div>
{{/languages}}
</script>
</div>
<header id="mainHeader">
<div class="titlebar" id="titlebar">
<div id="searchFormHolder">
<button class="titlebarIcon" title-msg="menu-home"></button>
<form id="searchForm">
<input type="text" id="searchParam" placeholder-msg="search-placeholder"></input>
<button type="submit" id="search" value="" title-msg="search-button"></button>
</form>
<div id="clearSearch"></div>
<div class="spinner"></div>
</div>
</div>
</header>
<div id="about-page-overlay">
<header>
<div class="titlebar">
<div class="titlebarItem"><msg key="about-page-title">About</msg></div>
<button id="aboutclose" class="titlebarItem closeButton" title-msg="about-close"></button>
</div>
</header>
<div class="scroller">
<div id="about-page-content">
<img src="image/logo.png" />
<p id="about-version"><msg key="about-version"></msg> <span id="about-version-string"></span></p>
<a id="about-wmf-logo" href="http://wikimediafoundation.org/"><img src="image/wmf.png" /></a>
<p id="about-copyright"><msg key="about-copyright"></msg></p>
<p id="about-contributors-header"><msg key="about-contributors"></msg></p>
<p id="about-contributors"></p>
<p id="about-credits-header"><msg key="about-credits"></msg></p>
<p id="about-credits"></p>
<p id="about-license"></p>
</div>
</div>
</div>
<div id="savedPages">
<header>
<div class="titlebar">
<div class="titlebarItem"><msg key="saved-pages-title">Saved Pages</msg></div>
<button class="titlebarItem closeButton" title-msg="saved-pages-close"></button>
<button class="titlebarItem cleanButton" title-msg="saved-pages-clear-all"></button>
</div>
</header>
<div class="scroller">
<div id="savedPagesList"></div>
</div>
</div>
<div id="history">
<header>
<div class="titlebar">
<div class="titlebarItem"><msg key="history-title">History</msg></div>
<button class="titlebarItem closeButton" title-msg="history-close"></button>
<button class="titlebarItem cleanButton" title-msg="history-clear-all"></button>
</div>
</header>
<div class="scroller">
<div id="historyList"></div>
</div>
</div>
<div id="searchresults">
<div class="scroller">
<div id="resultList"></div>
</div>
</div>
<div id="settings">
<!-- Not using header or .scroller here to work around bug 33884; it caused -->
<!-- the selects to become unselectable on Android 2.x for some reason. -->
<div>
<div class="titlebar">
<div class="titlebarItem"><msg key="settings-title">Settings</msg></div>
<button class="titlebarItem closeButton" title-msg="settings-close"></button>
</div>
</div>
<div>
<div id="settingsList"></div>
</div>
</div>
<div id="langlinks">
<header>
<div class="titlebar">
<div class="titlebarItem"><msg key="langlinks-title">Read article in...</msg></div>
<button class="titlebarItem closeButton" title-msg="langlinks-close"></button>
</div>
</header>
<div class="scroller">
<div id="langList"></div>
</div>
</div>
<div id="content" class="scroller">
<div id="main"></div>
</div>
<div id="nearby-overlay">
<header>
<div class="titlebar">
<div class="titlebarItem"><msg key="nearby-title">Nearby</msg></div>
<button class="titlebarItem closeButton" title-msg="nearby-close"></button>
</div>
</header>
<div id="map"></div>
</div>
<menu id="appMenu" type="context">
<command type="command" id="languageCmd" icon="optionLanguage.png" disabled action="read-in" />
<command type="command" id="nearbyCmd" icon="optionNearMe.png" action="near-me" />
<command type="command" id="sharePageCmd" action="share-page" icon="optionSharePage.png" />
<command type="command" id="savePageCmd" icon="optionAddBookmark.png" action="save-page" />
<command type="command" id="savedPagesCmd" icon="optionReadLater.png" action="view-saved-pages" />
<command type="command" id="historyCmd" icon="optionViewHistory.png" action="view-history" />
<command type="command" id="forwardCmd" disabled icon="optionForward.png" action="go-forward" />
<command type="command" id="selectTextCmd" action="select-text" />
<command type="command" id="settingsCmd" icon="optionSettings.png" action="view-settings" />
</menu>
</body>
</html>