forked from ragtag/panel-by-panel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pbp.php
143 lines (137 loc) · 6.39 KB
/
pbp.php
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
<!DOCTYPE html>
<?php require "pbp/panelbypanel.php" ?>
<html lang="<?= $pbp->get_lang() ?>">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<link rel="apple-touch-icon" sizes="57x57" href="<?= $pbp->get_root() ?>/pbp/favicons/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="<?= $pbp->get_root() ?>/pbp/favicons/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="<?= $pbp->get_root() ?>/pbp/favicons/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="<?= $pbp->get_root() ?>/pbp/favicons/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="<?= $pbp->get_root() ?>/pbp/favicons/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="<?= $pbp->get_root() ?>/pbp/favicons/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="<?= $pbp->get_root() ?>/pbp/favicons/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="<?= $pbp->get_root() ?>/pbp/favicons/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="<?= $pbp->get_root() ?>/pbp/favicons/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="<?= $pbp->get_root() ?>/pbp/favicons/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="<?= $pbp->get_root() ?>/pbp/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="<?= $pbp->get_root() ?>/pbp/favicons/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="<?= $pbp->get_root() ?>/pbp/favicons/favicon-16x16.png">
<link rel="manifest" href="<?= $pbp->get_root() ?>/pbp/favicons/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="<?= $pbp->get_root() ?>/pbp/favicons/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<title><?= $pbp->get_title() ?> - <?= $pbp->get_page_of() ?></title>
<link rel="stylesheet" href="<?= $pbp->get_root() ?>/pbp/style.css">
<noscript><link rel="stylesheet" href="<?= $pbp->get_root() ?>/pbp/noscript.css"></noscript>
<script src="<?= $pbp->get_root() ?>/animejs/anime.min.js"></script>
<script src="<?= $pbp->get_root() ?>/pbp/panelbypanel.js"></script>
</head>
<body id="comicpage" bgcolor="<?= $pbp->get_bgcolor() ?>">
<div id="loadingcontainer">
<img id="loadinganim" src="<?= $pbp->get_root() ?>/pbp/images/panel-by-panel.svg" alt="About" />
</div>
<div id="pbpdata"
data-root="<?= $pbp->get_root() ?>"
data-name="<?= $pbp->get_name() ?>"
data-page="<?= $pbp->get_page() ?>">
</div>
<div id="menuzone">
<div id="menu">
<div id="menu-left">
<a href="<?= $pbp->get_home() ?>" id="homebtn">
<img class="menu-icon" src="<?= $pbp->get_root() ?>/pbp/images/back.svg" alt="home" />
</a>
<a href="<?= $pbp->get_exit() ?>" id="exitbtn" style="display:none"></a>
</div>
<div id="menu-center">
<a href="" id="aboutbtn" class="button">
<img class="menu-icon" src="<?= $pbp->get_root() ?>/pbp/images/about.svg" alt="About" />
</a>
<div id="about" class="bubble">
<div id="about-inner" class="bubble-inner">
<div id="summary">
<h3 id="title"><?= $pbp->get_title() ?></h3>
<?= $pbp->get_summary() ?>
</div>
<div id="authors">
<?= $pbp->get_authors() ?>
</div>
<div id="publisher">
<strong>Genre</strong>: <?= $pbp->get_genres() ?><br />
<strong>Rating</strong>: <?= $pbp->get_rating() ?>
<strong>Publisher</strong>: <?= $pbp->get_publisher() ?> - <?= $pbp->get_publish_date() ?><br />
<strong>License</strong>: <?= $pbp->get_license() ?><br />
</div>
</div>
</div>
<a href="#" id="pbpbtn" class="button">
<img class="menu-icon" src="<?= $pbp->get_root() ?>/pbp/images/panel-by-panel.svg" alt="Toggle Panel by Panel navigation" />
</a>
<a href="" id="helpbtn" class="button">
<img class="menu-icon" src="<?= $pbp->get_root() ?>/pbp/images/help.svg" alt="Help" />
</a>
<div id="help" class="bubble">
<div id="help-inner" class="bubble-inner">
<noscript>
<h3 style="color:red">JavaScrip Disabled!</h3>
<p>To get to full set of features from this reader, please enable JavaScript.</p>
<p>You can still navigate the comic by pressing the left or right third of your screen, but will miss out on features, such as panel by panel reading.</p>
</noscript>
<h3>Navigation</h3>
<ul>
<li>Click the left or right third of your screen</li>
<li>Swipe left or right on a touch screen device</li>
<li>Use the space bar, or the left and right arrow keys</li>
<li>Use Page Up or Down keys (flips through pages)</li>
</ul>
<h3>Menu</h3>
<ul class="icon-list">
<li>
<img class="help-icon" src="<?= $pbp->get_root() ?>/pbp/images/black-back.svg" alt="About" />
Go home
</li>
<li>
<img class="help-icon" src="<?= $pbp->get_root() ?>/pbp/images/black-about.svg" alt="About" />
About this comic
</li>
<li>
<img class="help-icon" src="<?= $pbp->get_root() ?>/pbp/images/black-panel-by-panel.svg" alt="Toggle Panel by Panel navigation" />
Panel by Panel mode
</li>
<li>
<img class="help-icon" src="<?= $pbp->get_root() ?>/pbp/images/black-help.svg" alt="Help" />
Display this help
</li>
<li>
<img class="help-icon" src="<?= $pbp->get_root() ?>/pbp/images/black-pages.svg" alt="Help" />
Page overview
</li>
</ul>
</div>
</div>
</div>
<div id="menu-right">
<a href="<?= $pbp->get_thumbs() ?>" id="thumbsbtn">
<img class="menu-icon" src="<?= $pbp->get_root() ?>/pbp/images/pages.svg" alt="Thumbnail page overview" />
</a>
</div>
</div>
</div>
<div id="navcontainer">
<a href="<?= $pbp->get_prev() ?>" class="navbtn" id="prevbtn">
<img class="navarrow" src="<? $pbp->get_root() ?>/pbp/images/prev.svg" alt="Next" />
</a>
<a href="#" class="navbtn" id="menubtn"></a>
<a href="<?= $pbp->get_next() ?>" class="navbtn" id="nextbtn">
<img class="navarrow" src="<? $pbp->get_root() ?>/pbp/images/next.svg" alt="Next" />
</a>
</div>
<div id="pagecontainer">
<img src="<?= $pbp->get_root() ?>/<?= $pbp->get_image() ?>"
id="page"
style="transform: translate(-50%, -50%);"
alt="Comics page" />
</div>
</body>
</html>