forked from cfjedimaster/HTML5ComicBookReader
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathindex.html
executable file
·127 lines (112 loc) · 4.43 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Web Slinger Comic Reader</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="./bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="./bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,400,600,300' rel='stylesheet' type='text/css'>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="./js/jquery-1.9.1.min.js"></script>
<script src="./js/jquery.hotkeys.js"></script>
<script src="./bootstrap/js/bootstrap.min.js"></script>
<script src="./js/zip.js"></script>
<script src="./js/deflate.js"></script>
<script src="./js/main.js"></script>
<style>
html, body {
height: 100%;
font-family: "Open Sans", Helvetica, Arial, Sans-serif;
}
body {
background: #111 url('html5_logo.png') no-repeat bottom right;
background-size: 256px 256px;
color: #999;
}
h1 {
color: #fff;
}
body .modal {
color: #333;
}
#comicImages {
text-align: center;
}
#introText {
margin-top: 100px;
}
.fit {
height: 100vh;
}
.fitVertical {
height: 100%;
width: auto;
}
.spread2 .fitHorizontal {
height: auto;
width: 50%;
}
.spread1 .fitHorizontal {
height: auto;
width: 100%;
}
.fitBoth {
width: auto;
height: auto;
max-height: 100%;
}
.spread1 .fitBoth {
max-width: 100%;
}
.spread2 .fitBoth {
max-width: 50%;
}
</style>
</head>
<body onload="init()">
<div id="navbar" class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#">Web Slinger</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li style="display: none;"><a href="#" title="Left arrow or k" id="prevPanel"><i class="icon-chevron-left icon-white"></i> Previous</a></li>
<li style="display: none;"><a href="#" title="Right arrow or j" id="nextPanel"><i class="icon-chevron-right icon-white"></i> Next</a></li>
<li style="display: none;"><a href="#" title="v key" id="fitVertical"><i class="icon-resize-vertical icon-white"></i> Fit Vertical</a></a></li>
<li style="display: none;"><a href="#" title="h key" id="fitHorizontal"><i class="icon-resize-horizontal icon-white"></i> Fit Horizontal</a></a></li>
<li style="display: none;"><a href="#" title="b key" id="fitBoth"><i class="icon-move icon-white"></i> Fit Both</a></a></li>
<li style="display: none;"><a href="#" title="f key" id="fullSpread"><i class="icon-pause icon-white"></i> Full Spread View</a></a></li>
<li style="display: none;"><a href="#" title="s key" id="singlePage"><i class="icon-stop icon-white"></i> Single Page View</a></a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container" id="introText">
<div class="row">
<div class="span10">
<h1>JavaScript & HTML5 Comic Reader</h1>
<p class="lead">Simply drag and drop a CBZ file onto the page to start reading.</p>
<div id="alertArea"></div>
<p>Started as a <a href="http://www.raymondcamden.com/index.cfm/2012/5/29/Building-an-HTML5-Comic-Book-Reader#c2DCDC6B6-924D-59C5-1E7A546B79CAC44F">weekend project</a> by <a href="http://www.raymondcamden.com/">Raymond Camden</a>, and later developed by <a href="http://rkuykendall.com/">Robert Kuykendall</a> on <a href="https://github.com/rkuykendall/HTML5ComicBookReader">GitHub</a>.<p>
</div>
</div>
</div>
<div class="modal hide" id="statusModal">
<div class="modal-header">
<h3>Loading your comic.</h3>
</div>
<div class="modal-body">
<p id="statusModalText"></p>
</div>
</div>
<div id="comicImages">
</div>
</body>
</html>