forked from ANNotunzdY/readium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewer.html
266 lines (239 loc) · 14.6 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
<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 title="Readium Info" accesskey="i" class="brand" data-toggle="modal" href="#readium-info" id='bar-logo' role="button">
<h2 id="logo-replace">Readium</h2>
</a>
<ul class="nav pull-right">
<li class="divider-vertical stubby"></li>
<li>
<a title="Library" accesskey="b" href="/index.html" id="back-to-lib-button" role="button">
<img src="/images/top_bar/ico_library.png" class="nav-icon" alt="Library"/>
<span class="offscreenText">Library</span>
</a>
</li>
<li>
<a title="Table of contents" accesskey="t" href="#" id='toggle-toc-btn' role="button">
<img src="/images/top_bar/ico_toc.png" class="nav-icon" alt="Table of contents"/>
<span class="offscreenText">Table of contents</span>
</a>
</li>
<li>
<a title="Play/pause media overlays" accesskey="m" href="#" id='play-mo-btn' role="button">
<img src="/images/top_bar/ico_tts.png" class="nav-icon" alt="Play/pause media overlays"/>
<span class="offscreenText">Play/pause media overlays</span>
</a>
</li>
<li class="divider-vertical stubby"></li>
<li>
<a title="Options" accesskey="o" href="#viewer-settings-modal" id="options-btn" data-toggle="modal" role="button">
<img src="/images/top_bar/options.png" class="nav-icon" alt="Options"/>
<span class="offscreenText">Options</span>
</a>
</li>
<li>
<a accesskey="n" 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=""/>
<img src="/images/top_bar/ico_nightmode_toggle_on.png" class="nav-icon" id="night-to-day-ico" alt=""/>
<span id="nmOT" class="offscreenText"></span>
</a>
</li>
<li>
<a accesskey="f" 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=""/>
<img src="/images/top_bar/ico_fs_toggle_off.png" class="nav-icon" id="leave-fs-ico" alt=""/>
<span id="fsOT" class="offscreenText"></span>
</a>
</li>
<li class="divider-vertical"></li>
<li style="margin-right: 15px">
<a title="Hide Readium user interface" accesskey="x" id="hide-toolbar-button" class="toggle-bar-btn" href="#" role="button">
<img src="/images/top_bar/ico_closeUI.png" class="nav-icon" alt=""/>
<span class="offscreenText">Hide Readium user interface</span>
</a>
</li>
</ul>
</div>
</div>
<span title="Show Readium user interface" accesskey="v" tabindex="0" id="show-toolbar-button" class="pull-right" role="button" >
<img src="/images/top_bar/ico_openUI.png" class="nav-icon" alt=""/>
<span class="offscreenText">Show Readium user interface</span>
</span>
</div><!-- end le top bar -->
<div id="below-navbar">
<div id='readium-toc' style="display: none">
<div class="offscreenText"> Table of Contents Start </div>
<div id="toc-header">
<span id="close-toc-button" tabindex="0" role="button">
<span class="offscreenText">Close Table of Contents</span>
</span>
</div>
<div id="toc-body">
</div>
<div class="offscreenText"> Table of Contents End </div>
</div>
<div id="readium-right-content">
<a id="next-page-button" onclick="void(0)" href="#" role="button" accesskey="2">
<span class="offscreenText">Next Page</span>
</a>
<a id="prev-page-button" onclick="void(0)" href="#" role="button" accesskey="1">
<span class="offscreenText">Previous Page</span>
</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 class="offscreenText"> Options Start </div>
<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 tabindex="-1" id="setting-header-font-size" 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 aria-labelledby="margin-option-1-lbl" role="radio" id="margin-option-1" class="margin-radio clickable">
<span id="margin-option-1-lbl" class="offscreenText">Verry Narrow</span>
</span>
<span aria-labelledby="margin-option-2-lbl" role="radio" id="margin-option-2" class="margin-radio clickable">
<span id="margin-option-2-lbl" class="offscreenText">Narrow</span>
</span>
<span aria-labelledby="margin-option-3-lbl" role="radio" id="margin-option-3" class="margin-radio clickable">
<span id="margin-option-3-lbl" class="offscreenText">Normal</span>
</span>
<span aria-labelledby="margin-option-4-lbl" role="radio" id="margin-option-4" class="margin-radio clickable">
<span id="margin-option-4-lbl" class="offscreenText">Wide</span>
</span>
<span aria-labelledby="margin-option-5-lbl" role="radio" id="margin-option-5" class="margin-radio clickable">
<span id="margin-option-5-lbl" 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 accesskey="c" class='btn btn-inverse' id="cancel-settings-but">Cancel</button>
<button accesskey="s" class='btn btn-inverse' id="save-settings-but">Save Settings</button>
</div>
<div class="offscreenText"> Options End </div>
</div><!-- end le info modal -->
<div class="modal fade" id="readium-info" style="display: none"><!-- le info modal -->
<div class="offscreenText"> Info Start </div>
<div>
<img src="/images/info_modal/about_readium_logo.png" alt="About Readium logo">
</div>
<div>
<!-- UPDATE VERSION NUMBER -->
<h3 tabindex="-1" id="version-info">Version 0.9 Release Date 01.29.13</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>
<button class="offscreenText" data-dismiss="modal"> Close </button>
<div class="offscreenText"> Info End </div>
</div><!-- end le info modal -->
</div>
<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>
<script src="/scripts/utils/accessibility.js" type="text/javascript"></script>
<script src="/scripts/i18n.js" type="text/javascript"></script>
<script src="/lib/epub_cfi.js" type="text/javascript"></script>
<script src="/lib/select2.min.js" type="text/javascript"></script>
<!-- end scripts -->
<!-- Mathjax has its own deal going on so leave it the F alone -->
<!-- Workaround for mobile versions, as Android does not accept parameters -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
config: ["readium.js"]
});
</script>
<script type="text/javascript" src="lib/mathjax/MathJax.js"></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>