-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlecture.php
193 lines (181 loc) · 8.62 KB
/
lecture.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
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
<?php require_once('includes/config.php'); ?>
<?php
$lecture = null;
if(isset($_GET['oeuvre'])) {
$oeuvre_param = preg_replace('/[^a-zA-Z0-9_-]/', '', $_GET['oeuvre']);
$chemin = "oeuvres/$oeuvre_param.html";
if(file_exists($chemin)) {
$lecture = $chemin;
$oeuvre = $bibliotheque->oeuvres->{$oeuvre_param};
} else {
header('HTTP/1.0 404 Not Found');
die;
}
}
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<title><?php echo $oeuvre->meta_titre; ?></title>
<meta name="description" content="<?php echo $oeuvre->meta_description; ?>">
<meta name="viewport" content="width=device-width,initial-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="../liseuse/css/edsa.css">
<link href='//fonts.googleapis.com/css?family=PT+Serif|Source+Code+Pro|Open+Sans:400,600,700' rel='stylesheet'>
</head>
<body class="theme-5 show-font-size-menu">
<header>
<div class="advanced-menu">
<ul class="left">
<li><a href="javascript:" class="library" data-hook="back-library"><span>Bibliothèque</span></a></li>
<li><a class="book" href="javascript:" data-hook="toggle-summary"><span data-icon="b" class="icon-books"></span></a></li>
</ul>
<h1>
<div class="wrap">
<span class="book-title">
<span class="author" data-hook="author"></span>
<span class="title" data-hook="textTitle"></span>
</span>
</div>
</h1>
<ul class="right">
<li class="readability-settings-container">
<a href="#" data-hook="toggle-submenu" class="font-sizes-wrap">
<span class="icon-fonts">
<span data-icon="a" class="icon-small-font"></span>
<span data-icon="a" class="icon-big-font"></span>
</span>
</a>
</li>
<li class="last">
<a href="#" class="close-advanced-menus blue-button" data-hook="close-advanced-menu">
<span data-icon="x" class="icon-close"></span>
</a>
</li>
</ul>
</div>
<a href="#" class="button-advanced-menus" data-hook="show-advanced-menu"><span data-icon="…" class="icon-more icon-b"></span></a>
</header>
<div class="submenu readability-settings">
<div class="columns">
<div class="column column-1">
<section class="contrast">
<span class="submenu-title">Contraste texte/fond</span>
<div class="columns">
<span class="icon-moon contrast-icon" data-icon="m"></span>
<div class="slider-container column">
<div>
<span class="slider"></span>
<div class="contrast-colors">
<span style="background-color: #1590b0;"></span>
<span style="background-color: #17a0c3;"></span>
<span style="background-color: #19afd5;"></span>
<span style="background-color: #1cc0e9;"></span>
<span style="background-color: #1ecffc;"></span>
</div>
</div>
</div>
<span class="icon-sun contrast-icon" data-icon="s"></span>
</div>
</section>
<section class="text-options">
<span class="submenu-title">Texte</span>
<div class="extruded">
<ul class="text-options-menu">
<li><a href="#" data-hook="show-text-settings-menu" data-setting="font-size" class="font-size-switcher">Taille</a></li>
<li><a href="#" data-hook="show-text-settings-menu" data-setting="line-height" class="line-height-switcher">Interligne</a></li>
<li><a href="#" data-hook="show-text-settings-menu" data-setting="font-family" class="font-family-switcher">Police</a></li>
<li><a href="#" data-hook="show-text-settings-menu" data-setting="alignment" class="alignment-switcher">Alignement</a></li>
</ul>
<div class="toggleable-content buttons-list font-size">
<a href="#" data-font-size="1" class="font-size-x-small">A</a>
<a href="#" data-font-size="1.2" class="font-size-small">A</a>
<a href="#" data-font-size="1.4" class="font-size-medium active">A</a>
<a href="#" data-font-size="1.7" class="font-size-large">A</a>
<a href="#" data-font-size="1.9" class="font-size-x-large">A</a>
</div>
<div class="toggleable-content buttons-list line-height">
<a href="#" data-hook="change-line-height" data-line-height="1.4" class="line-height-14"></a>
<a href="#" data-hook="change-line-height" data-line-height="1.5" class="line-height-15"></a>
<a href="#" data-hook="change-line-height" data-line-height="1.6" class="line-height-16 active"></a>
<a href="#" data-hook="change-line-height" data-line-height="1.7" class="line-height-17"></a>
<a href="#" data-hook="change-line-height" data-line-height="1.8" class="line-height-18"></a>
</div>
<div class="toggleable-content buttons-list font-family">
<a href="#" data-hook="change-font" data-font-direction="-1" class="js-next-font"><span class="left-triangle"></span></a>
<div class="font-preview">
<span class="example js-font-example font-times">Aa</span>
<span class="font-name js-font-name">Times</span>
</div>
<a href="#" data-hook="change-font" data-font-direction="1" class="js-previous-font"><span class="right-triangle"></span></a>
<select name="fonts" class="js-font-choices hidden">
<option value="helvetica">Helvetica</option>
<option value="times">Times</option>
<option value="source-code">Source Code</option>
<option value="pt-serif">PT Serif</option>
<option value="open-sans">Open Sans</option>
</select>
</div>
<div class="toggleable-content buttons-list alignment">
<a href="#" data-hook="change-alignment" data-alignment="left" class="alignment-left active">l</a>
<a href="#" data-hook="change-alignment" data-alignment="justify" class="alignment-justify">j</a>
</div>
</div>
</section>
</div>
</div>
</div>
<section role="main" class="font-times">
<div class="wrap">
<?php require $lecture; ?>
</div>
</section>
<div class="veil"></div>
<footer>
<div class="wrap">
<div class="advanced-menu">
<div class="timeline">
<span class="line"></span>
</div>
<div class="anchors">
<div class="button">§<span data-hook="current-paragraph">1</span>/<span data-hook="paragraph-count">1</span></div>
<div class="popup popup-with-tip">
<div class="columns">
<div class="column column-1">
<span>Paragraphe</span>
<select name="par"></select>
</div>
</div>
</div>
</div>
</div>
</div>
</footer>
<div class="js-startup-hint startup-hint hidden">
<div class="modal-wrap">
<div class="modal js-modal-content">
<p class="intro">
<strong>Bonjour!</strong><br>
Est-ce votre première utilisation de la liseuse?
</p>
<p>
Touchez l'écran pour accéder aux <strong>réglages</strong>, ou utilisez <span class="nowrap">l'icône <span data-icon="…" class="icon-more icon-b"></span><!--<span class="settings-icon-preview">•••</span>--></span> qui se cache en haut.
</p>
<p>Tapez dans le quart inférieur de l'écran pour <strong>défiler d'une page.</strong></p>
<a href="#" class="flat-button js-modal-close">OK</a>
</div>
<div class="settings-hint-line"></div>
<div class="scroll-hint-line"></div>
</div>
</div>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui-touch-punch/0.2.2/jquery.ui.touch-punch.min.js"></script>
<script src="../liseuse/js/edsa.js"></script>
<script>
var EDSA = new EDSA({
backButtonUrl: '/fiche/<?php echo $oeuvre_param; ?>'
});
EDSA.init();
</script>
</body>
</html>