forked from ANNotunzdY/readium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewer.html
320 lines (280 loc) · 14.5 KB
/
viewer.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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<html>
<head xmlns="http://www.w3.org/2000/xmlns/" xmlns:epub="http://www.idpf.org/2007/ops" xmlns:ev="http://www.w3.org/2001/xml-events">
<meta charset="UTF-8">
<title>Readium</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<!-- Le styles -->
<link rel="stylesheet" type="text/css" href="/css/viewer_manifest.css">
<!-- Only include Modernizr at the top, everything else is at the bottom -->
<script src="/lib/modernizr-2.5.3.min.js" type="text/javascript" ></script>
</head>
<body>
<div class="navbar navbar-fixed-top" id='toolbar-el'><!-- le top bar -->
<div class="navbar-inner" id="top-bar">
<div class="container" style="width: 100%">
<a class="brand" data-toggle="modal" href="#readium-info" id='bar-logo' role="button">
<img src="/images/top_bar/readium_logo.png" id="bar-logo-img" alt="Readium logo"/>
</a>
<ul class="nav pull-right">
<li class="divider-vertical stubby"></li>
<li>
<a href="/index.html" id="back-to-lib-button" role="button">
<img src="/images/top_bar/ico_library.png" class="nav-icon" alt="Library"/>
</a>
</li>
<li>
<a href="#" id='toggle-toc-btn' role="button">
<img src="/images/top_bar/ico_toc.png" class="nav-icon" alt="Table of contents"/>
</a>
</li>
<li>
<a href="#" id='play-mo-btn' role="button">
<img src="/images/top_bar/ico_tts.png" class="nav-icon" alt="Media overlays"/>
</a>
</li>
<li class="divider-vertical stubby"></li>
<li>
<a href="#viewer-settings-modal" id="options-btn" data-toggle="modal" role="button">
<img src="/images/top_bar/options.png" class="nav-icon" alt="Options"/>
</a>
</li>
<li>
<a href="#" id="nightmode-btn" role="button">
<img src="/images/top_bar/ico_nightmode_toggle_off.png" class="nav-icon" id="day-to-night-ico" alt="Nightmode off"/>
<img src="/images/top_bar/ico_nightmode_toggle_on.png" class="nav-icon" id="night-to-day-ico" alt="Nightmode on"/>
</a>
</li>
<li>
<a href="#" id="fs-toggle-btn" role="button">
<img src="/images/top_bar/ico_fs_toggle_on.png" class="nav-icon" id="go-to-fs-ico" alt="Fullscreen on"/>
<img src="/images/top_bar/ico_fs_toggle_off.png" class="nav-icon" id="leave-fs-ico" alt="Fullscreen off"/>
</a>
</li>
<li class="divider-vertical"></li>
<li style="margin-right: 15px">
<a id="hide-toolbar-button" class="toggle-bar-btn" href="#" role="button">
<img src="/images/top_bar/ico_closeUI.png" class="nav-icon" alt="Hide Readium user interface"/>
</a>
</li>
</ul>
</div>
</div>
<span id="show-toolbar-button" class="pull-right" role="button" >
<img src="/images/top_bar/ico_openUI.png" class="nav-icon" alt="Show Readium user interface"/>
</span>
</div><!-- end le top bar -->
<div id='readium-toc' style="display: none">
<div id="toc-header">
<span id="close-toc-button"></span>
</div>
<div id="toc-body">
</div>
</div>
<div id="readium-right-content">
<a id="next-page-button" onclick="void(0)" href="#" role="button" aria-label="Next Page" accesskey="n"></a>
<a id="prev-page-button" onclick="void(0)" href="#" role="button" aria-label="Previous Page" accesskey="p"></a>
<div id="readium-book-view-el">
<div id='page-wrap' class='clearfix'>
<div id="container" class='clearfix'></div>
<div id='spine-divider'></div>
</div>
</div>
</div> <!-- end readium-right-content -->
<div class="modal fade" id="viewer-settings-modal" style="display: none"><!-- le settings modal -->
<div id='settings-margin'>
<div id="preview-text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus neque dui, congue a suscipit non, feugiat eu urna. Donec tempus, nunc vel rutrum posuere, quam magna imperdiet elit, eget facilisis mauris tellus non eros. Cras in felis sed orci aliquam sagittis. Cras adipiscing rhoncus justo commodo sodales. Phasellus vel mauris vel ipsum semper feugiat at ut sapien. Mauris consectetur aliquam aliquam. Nunc viverra dictum enim sit amet cursus.
Proin adipiscing rutrum ante. Vivamus tristique nisl quis neque viverra facilisis. Maecenas quis quam risus, at lacinia quam. Maecenas imperdiet, eros quis vulputate rutrum, metus neque sollicitudin libero, vel lobortis elit nisl sit amet lectus. Proin metus elit, mollis in fringilla sit amet, fermentum et odio. Sed sapien metus, consequat a bibendum et, eleifend eu mi. Praesent interdum lorem non risus sollicitudin vitae viverra nisi accumsan. Donec felis odio, tempus quis venenatis ac, auctor vitae sapien. Aenean quis nisl risus. Nulla sed pellentesque mauris.
</div>
<div>
<h3 class="setting-header">FONT SIZE</h3>
<div class="clearfix">
<span id="font-size-icon"></span>
<input type="range" id="font-size-input" min="1" max="20" title="Font size"/>
</div>
</div>
<div>
<h3 id="setting-header-margins-legend" class="setting-header">MARGINS</h3>
<div role="radiogroup" aria-labelledby="setting-header-margins-legend" class="clearfix" id="margin-radio-wrapper">
<span role="radio" id="margin-option-1" class="margin-radio clickable">
<span class="offscreenText">Verry Narrow</span>
</span>
<span role="radio" id="margin-option-2" class="margin-radio clickable">
<span class="offscreenText">Narrow</span>
</span>
<span role="radio" id="margin-option-3" class="margin-radio clickable">
<span class="offscreenText">Normal</span>
</span>
<span role="radio" id="margin-option-4" class="margin-radio clickable">
<span class="offscreenText">Wide</span>
</span>
<span role="radio" id="margin-option-5" class="margin-radio clickable">
<span class="offscreenText">Very Wide</span>
</span>
</div>
</div>
<div>
<h3 id="setting-header-color-legend" class="setting-header">TEXT AND BACKGROUND COLOR</h3>
<div role="radiogroup" aria-labelledby="setting-header-color-legend" id="theme-radio-group" class="clearfix">
<span role="radio" id="default-theme-option" class="theme-option default-theme clickable">Black and White</span>
<span role="radio" id="night-theme-option" class="theme-option night-theme clickable">Arabian Nights</span>
<span role="radio" id="parchment-theme-option" class="theme-option parchment-theme clickable">Sands of Dune</span>
<span role="radio" id="ballard-theme-option" class="theme-option ballard-theme clickable">Ballard Blues</span>
<span role="radio" id="vancouver-theme-option" class="theme-option vancouver-theme clickable">Vancouver Mist</span>
</div>
</div>
<div>
<h3 id="setting-header-display-legend" class="setting-header">DISPLAY FORMAT</h3>
<div role="radiogroup" aria-labelledby="setting-header-display-legend" class="clearfix" id="two-up-options">
<span role="radio" id="one-up-option" class="simple-radio clickable">Single Pages</span>
<span role="radio" id="two-up-option" class="simple-radio clickable">Double Pages</span>
</div>
</div>
</div>
<div id="settings-form-footer" class="clearfix">
<button class='btn btn-inverse' id="cancel-settings-but">Cancel</button>
<button class='btn btn-inverse' id="save-settings-but">Save Settings</button>
</div>
</div><!-- end le info modal -->
<div class="modal fade" id="readium-info" style="display: none"><!-- le info modal -->
<div>
<img src="/images/info_modal/about_readium_logo.png" alt="About Readium logo">
</div>
<div>
<!-- UPDATE VERSION NUMBER -->
<h3 id="version-info">Version 0.5.1 Release Date 8.30.12</h3>
</div>
<p>
Readium<sup>TM</sup>, a project of the International Digital Publishing Forum (IDPF) and supporters, is an open source reference system and rendering engine for EPUB® publications. To learn more, visit the <a href="http://readium.org/">project homepage</a>. To date, the project development has been lead by <a href="http://evidentpoint.com/">Evident Point</a> and <a href="http://www.bluefirereader.com/">Bluefire Productions</a>. To contribute visit the <a href="https://github.com/readium/readium">github repository</a>
</p>
<div>
<img src="/images/info_modal/partner_logos.png" alt="Readium partner logos">
</div>
</div><!-- end le info modal -->
<!-- templates -->
<script type="text/template" id='reflowing-page-template'>
<div id="page-<%= page_num %>" class="page-wrap <%= (page_num % 2 === 0) ? "left" : "right" %>">
<div class="page-margin">
<% if(!empty) { %>
<div class="page"></div>
<% } %>
</div>
</div>
</script>
<script type="text/template" id='fixed-page-template'>
<div class="fixed-page-margin">
<iframe scrolling="no"
frameborder="0"
marginwidth="0"
marginheight="0"
width="<%= width %>px"
height="<%= height %>px"
src="<%= uri %>"
class='content-sandbox'
style="width: <%= width %>px; height: <%= height %>px;">
</iframe>
</div>
</script>
<script type="text/template" id='scrolling-page-template'>
<div id="scrolling-content" class="scrolling-page-wrap">
<div class="scrolling-page-margin">
<iframe scrolling="yes"
frameborder="0"
marginwidth="0"
marginheight="0"
width="100%"
height="100%"
src="<%= uri %>"
class='content-sandbox'>
</iframe>
</div>
</div>
</script>
<script type="text/template" id='empty-fixed-page-template'>
<div id="page-0" class="fixed-page-wrap even">
<div class="page-margin" style="width: <%= width %>px; height: <%= height %>px">
</div>
</div>
</script>
<script type="text/template" id='ncx-nav-tempate'>
<li class="nav-elem">
<a href="<%= href %>"><%= text %></a>
</li>
</script>
<script type='text/template' id="binding-template">
<iframe scrolling="no"
frameborder="0"
marginwidth="0"
marginheight="0"
width="100%"
height="100%"
class='binding-sandbox'>
</iframe>
</script>
<script type='text/template' id="reflowing-template">
<div id="flowing-wrapper">
<iframe scrolling="no"
frameborder="0"
marginwidth="0"
marginheight="0"
width="500px"
height="750px"
src="<%= uri %>"
id="readium-flowing-content"
style="overflow: hidden; height: 750px; width: 500px">
</iframe>
</div>
</script>
<script src="/lib/jquery-1.7.1.min.js" type="text/javascript" ></script>
<!-- This one file: contains a bunch of libs minified and concatenated together -->
<script src="/scripts/libs/web_plugins.js" type="text/javascript" ></script>
<!-- scripts concatenated and minified via build script -->
<!-- Include library data as a global var so we dont have to make an AJAX call-->
<script src="/scripts/readium_library_data.js" type="text/javascript"></script>
<!-- Must iclude the namespace code before any application code -->
<script src="/scripts/namespaces/crx_viewer_namespace.js" type="text/javascript"></script>
<script src="/scripts/web_overrides/httpFileApi.js" type="text/javascript" ></script>
<script src="/scripts/utils/cookie_utils.js" type="text/javascript"></script>
<script src="/scripts/utils/bb_file_system_sync.js" type="text/javascript"></script>
<script src="/scripts/models/alternate_style_tag_selector.js" type="text/javascript"></script>
<script src="/scripts/utils/local_storage_sync.js" type="text/javascript"></script>
<script src="/scripts/models/alternate_style_tag_selector.js" type="text/javascript"></script>
<script src="/scripts/models/manifest_item.js" type="text/javascript"></script>
<script src="/scripts/models/package_document_parser.js" type="text/javascript"></script>
<script src="/scripts/models/packageDocument.js" type="text/javascript"></script>
<script src="/scripts/models/epub_controller.js" type="text/javascript"></script>
<script src="/scripts/models/options_presenter.js" type="text/javascript"></script>
<script src="/scripts/models/toc.js" type="text/javascript"></script>
<script src="/scripts/models/smilModel.js" type="text/javascript"></script>
<script src="/scripts/models/mediaOverlay.js" type="text/javascript"></script>
<script src="/scripts/models/audioClipPlayer.js" type="text/javascript"></script>
<script src="/scripts/models/pagination_strategy_selector.js" type="text/javascript"></script>
<script src="/scripts/models/trigger.js" type="text/javascript"></script>
<script src="/scripts/views/pagination_strategies/pagination_view_base.js" type="text/javascript"></script>
<script src="/scripts/views/pagination_strategies/fixed_pagination_view.js" type="text/javascript"></script>
<script src="/scripts/views/pagination_strategies/reflowable_pagination_view.js" type="text/javascript"></script>
<script src="/scripts/views/pagination_strategies/scrolling_pagination_view.js" type="text/javascript"></script>
<script src="/scripts/views/toolbar_view.js" type="text/javascript"></script>
<script src="/scripts/views/toc_view.js" type="text/javascript"></script>
<script src="/scripts/views/options_view.js" type="text/javascript"></script>
<script src="/scripts/views/fixed_layout_book_zoomer.js" type="text/javascript"></script>
<script src="/scripts/viewer.js" type="text/javascript"></script>
<script src="/scripts/routers/ws_router.js" type="text/javascript"></script>
<script src="/scripts/models/epub.js" type="text/javascript"></script>
<script src="/scripts/models/page_number_display_logic.js" type="text/javascript"></script>
<script src="/scripts/models/readium_pagination.js" type="text/javascript"></script>
<script src="/scripts/templates.js" type="text/javascript"></script>
<script src="/scripts/models/media_overlay_controller.js" type="text/javascript"></script>
<script src="/scripts/models/media_overlay_view_helper.js" type="text/javascript"></script>
<!-- end scripts -->
<!-- Mathjax has its own deal going on so leave it the F alone -->
<script src="/lib/mathjax/MathJax.js?config=readium" type="text/javascript"></script>
<!-- Asynchronous Google Analytics snippet: mathiasbynens.be/notes/async-analytics-snippet -->
<script>
var _gaq=[['_setAccount','UA-29665823-1'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src='http://www.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
</html>