Rev 172 | Rev 193 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 172 | Rev 192 | ||
---|---|---|---|
Line 10... | Line 10... | ||
10 | // lessc::ccompile('style.less', 'style-less.css');
|
10 | // lessc::ccompile('style.less', 'style-less.css');
|
11 | // require_once 'css/least/LEAST.php';
|
11 | // require_once 'css/least/LEAST.php';
|
12 | // de\pointedears\css\least\LEAST::compile('style.css', 'style-least.css');
|
12 | // de\pointedears\css\least\LEAST::compile('style.css', 'style-least.css');
|
13 | ?>
|
13 | ?>
|
14 | <link rel="stylesheet" href="style.css" type="text/css"> |
14 | <link rel="stylesheet" href="style.css" type="text/css"> |
- | 15 | <script type="text/javascript" src="/scripts/builder.php?src=object"></script> |
|
15 | <script type="text/javascript"> |
16 | <script type="text/javascript"> |
16 | /* |
17 | /* |
17 | function setStyle(obj, style) |
18 | function setStyle(obj, style) |
18 | { |
19 | { |
19 | var styleProperties = Object.getOwnPropertyNames(style); |
20 | var styleProperties = Object.getOwnPropertyNames(style); |
Line 80... | Line 81... | ||
80 | console.log(value); |
81 | console.log(value); |
81 | var backgroundImages = value.match(rxBgImage); |
82 | var backgroundImages = value.match(rxBgImage); |
82 | console.log(backgroundImages); |
83 | console.log(backgroundImages); |
83 | } |
84 | } |
84 | */ |
85 | */ |
- | 86 | var _getProperty; |
|
- | 87 | ||
85 | function net() |
88 | function net() |
86 | { |
89 | { |
87 | var map = { |
90 | var map = { |
88 | "gene-roddenberry's-andromeda": "andromeda", |
91 | "gene-roddenberry's-andromeda": "andromeda", |
89 | "battlestar-galactica-2004": "battlestar-galactica", |
92 | "battlestar-galactica-2004": "battlestar-galactica", |
90 | "battlestar-galactica-2004-de": "battlestar-galactica", |
93 | "battlestar-galactica-2004-de": "battlestar-galactica", |
91 | "buffy-the-vampire-slayer": "buffy", |
94 | "buffy-the-vampire-slayer": "buffy", |
92 | "lois-clark-the-new-adventures-of-superman": "lois-clark-the-new-adventures-of-superman-1993", |
95 | "lois-clark-the-new-adventures-of-superman": "lois-clark-the-new-adventures-of-superman-1993", |
93 | get: function (key) { |
96 | }; |
- | 97 | ||
94 | return this.hasOwnProperty(key) ? this[key] : key; |
98 | var translations = { |
95 | } |
99 | "akte-x": "the-x-files", |
96 | }; |
100 | }; |
97 | 101 | ||
98 | var f = function (e) { |
102 | var f = function (e) { |
99 | if (e && e.shiftKey && e.ctrlKey) |
103 | if (e && e.shiftKey && e.ctrlKey) |
100 | { |
104 | { |
101 | var key = map.get(this.textContent.toLowerCase() |
105 | var key = this.textContent.toLowerCase() |
102 | .replace(/[&:.,()–]/g, "").replace(/\s+/g, "-").replace("-de", "")); |
106 | .replace(/[&:.,()–]/g, "").replace(/\s+/g, "-") |
- | 107 | .replace("-de", ""); |
|
- | 108 | ||
- | 109 | if (typeof _getProperty == "undefined") |
|
- | 110 | { |
|
- | 111 | _getProperty = jsx.object.getProperty; |
|
- | 112 | } |
|
- | 113 | ||
- | 114 | key = _getProperty(map, key, key); |
|
- | 115 | ||
- | 116 | if (e.altKey) |
|
- | 117 | { |
|
- | 118 | var baseURL = "http://serienjunkies.org/serie/"; |
|
- | 119 | } |
|
- | 120 | else |
|
- | 121 | { |
|
- | 122 | key = _getProperty(translations, key, key).replace(/-/g, "_"); |
|
- | 123 | baseURL = "http://www.tubeplus.me/search/tv-shows/"; |
|
- | 124 | } |
|
- | 125 | ||
103 | window.open("http://serienjunkies.org/serie/" + encodeURIComponent(key)); |
126 | window.open(baseURL + encodeURIComponent(key)); |
- | 127 | ||
104 | e.preventDefault(); |
128 | e.preventDefault(); |
105 | } |
129 | } |
106 | }; |
130 | }; |
107 | 131 | ||
108 | try |
132 | try |
Line 148... | Line 172... | ||
148 | return strftime($format, $timestamp); |
172 | return strftime($format, $timestamp); |
149 | }
|
173 | }
|
150 | }
|
174 | }
|
151 | 175 | ||
152 | setlocale(LC_ALL, 'de_CH.UTF-8'); |
176 | setlocale(LC_ALL, 'de_CH.UTF-8'); |
- | 177 | $this->setLanguage('de'); |
|
153 | 178 | ||
154 | $min_series = $this->min_series; |
179 | $min_series = $this->min_series; |
155 | foreach ($this->serien as $name => $serie) |
180 | foreach ($this->serien as $name => $serie) |
156 | {
|
181 | {
|
157 | ?>
|
182 | ?>
|
158 | <tr> |
183 | <tr> |
159 | <td style="text-align: center"><?php
|
184 | <td style="text-align: center"><?php
|
160 | $recommended = ($name === $min_series); |
185 | $recommended = ($name === $min_series); |
161 | if ($recommended) { ?>→<?php } |
- | |
162 | if (isset($serie['ignore']) && $serie['ignore']) |
186 | if (isset($serie['ignore']) && $serie['ignore']) |
163 | {
|
187 | {
|
164 | ?>→<span style="color: red; font-weight: bold">⃠</span><?php |
188 | ?>▮▮<?php |
- | 189 | }
|
|
- | 190 | else if ($recommended) |
|
- | 191 | {
|
|
- | 192 | ?>→<?php |
|
165 | }
|
193 | }
|
166 | ?></td>
|
194 | ?></td>
|
167 | <th<?php if ($recommended) { ?> class="recommended"<?php } ?>><?php |
195 | <th<?php if ($recommended) { ?> class="recommended"<?php } ?>><?php |
168 | $ep_list = isset($serie['episode_list']); |
196 | $ep_list = isset($serie['episode_list']); |
169 | if ($ep_list) |
197 | if ($ep_list) |
170 | {
|
198 | {
|
171 | ?><a href="<?php |
199 | ?><a href="<?php |
172 | echo htmlspecialchars($serie['episode_list']); |
200 | echo $this->escape($serie['episode_list']); |
173 | ?>" title="Episodenliste"><?php |
201 | ?>" title="<?php echo $this->escape($this->_('Episode list')); ?>"><?php |
174 | }
|
202 | }
|
175 | echo $name; |
203 | echo $name; |
176 | if ($ep_list) { ?></a><?php } |
204 | if ($ep_list) { ?></a><?php } |
177 | ?><br>
|
205 | ?><br>
|
178 | <span style="font-weight: normal"><?php
|
206 | <span style="font-weight: normal"><?php
|
Line 182... | Line 210... | ||
182 | {
|
210 | {
|
183 | echo ', ' . $serie['showtimes']; |
211 | echo ', ' . $serie['showtimes']; |
184 | }
|
212 | }
|
185 | ?></span></th>
|
213 | ?></span></th>
|
186 | <td<?php if ($recommended) { ?> class="recommended"<?php } ?>> |
214 | <td<?php if ($recommended) { ?> class="recommended"<?php } ?>> |
187 | <div>Gesehen: <?php
|
215 | <div><?php echo $this->_('Watched:'); ?> <?php |
188 | echo implode(', ', $serie['coverage']) . ' ('. $serie['count']; |
216 | echo implode(', ', $serie['coverage']) . ' ('. $serie['count']; |
189 | ?> von <?php $total = $serie['total']; echo $total; ?> Episoden)<?php |
217 | ?> von <?php $total = $serie['total']; echo $total; ?> Episoden)<?php |
190 | if (isset($serie['last_seen'])) |
218 | if (isset($serie['last_seen'])) |
191 | {
|
219 | {
|
192 | ?>; zuletzt am <?php |
220 | ?>; zuletzt am <?php |
Line 208... | Line 236... | ||
208 | ?>
|
236 | ?>
|
209 | <div class="season" |
237 | <div class="season" |
210 | <?php
|
238 | <?php
|
211 | if (!is_numeric($key)) |
239 | if (!is_numeric($key)) |
212 | {
|
240 | {
|
213 | ?> title="<?php echo htmlspecialchars($key); ?>"<?php |
241 | ?> title="<?php echo $this->escape($key); ?>"<?php |
214 | }
|
242 | }
|
215 | ?>
|
243 | ?>
|
216 | style="<?php
|
244 | style="<?php
|
217 | if ($key === 0) |
245 | if ($key === 0) |
218 | {
|
246 | {
|
Line 262... | Line 290... | ||
262 | border-right: 1px solid rgba(0, 218, 0, 0.5); |
290 | border-right: 1px solid rgba(0, 218, 0, 0.5); |
263 | background-color: transparent; |
291 | background-color: transparent; |
264 | left: <?php echo ($episode - 1) / $total * 100; ?>%; |
292 | left: <?php echo ($episode - 1) / $total * 100; ?>%; |
265 | width: <?php echo 1 / $total * 100; ?>%" |
293 | width: <?php echo 1 / $total * 100; ?>%" |
266 | title="<?php
|
294 | title="<?php
|
267 | echo "{$episode_str}: " . htmlspecialchars($description); |
295 | echo "{$episode_str}: " . $this->escape($description); |
268 | ?>"></div><?php |
296 | ?>"></div><?php |
269 | $prevNumber = $episode; |
297 | $prevNumber = $episode; |
270 | }
|
298 | }
|
271 | }
|
299 | }
|
272 | 300 | ||
Line 311... | Line 339... | ||
311 | width: <?php echo 1 / $total * 100; ?>%" |
339 | width: <?php echo 1 / $total * 100; ?>%" |
312 | <?php
|
340 | <?php
|
313 | if (isset($serie['episodes']) && array_key_exists($episode, $serie['episodes'])) |
341 | if (isset($serie['episodes']) && array_key_exists($episode, $serie['episodes'])) |
314 | {
|
342 | {
|
315 | ?>title="<?php |
343 | ?>title="<?php |
316 | echo "{$episode_str}: " . htmlspecialchars($serie['episodes'][$episode]); |
344 | echo "{$episode_str}: " . $this->escape($serie['episodes'][$episode]); |
317 | ?>"<?php |
345 | ?>"<?php |
318 | }
|
346 | }
|
319 | ?>></div>
|
347 | ?>></div>
|
320 | <?php
|
348 | <?php
|
321 | }
|
349 | }
|
Line 329... | Line 357... | ||
329 | <?php
|
357 | <?php
|
330 | }
|
358 | }
|
331 | ?>
|
359 | ?>
|
332 | </table> |
360 | </table> |
333 | </body> |
361 | </body> |
334 | </html> |
- | |
335 | 362 | </html> |
|
- | 363 |