4,6 → 4,12 |
<head> |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
<title>Seri-o-meter</title> |
<?php |
// require_once 'css/lessphp/lessc.inc.php'; |
// lessc::ccompile('style.less', 'style-less.css'); |
// require_once 'css/least/LEAST.php'; |
// de\pointedears\css\least\LEAST::compile('style.least', 'style-least.css'); |
?> |
<link rel="stylesheet" href="style.css" type="text/css"> |
<script type="text/javascript"> |
/* |
82,6 → 88,7 |
"battlestar-galactica-2004": "battlestar-galactica", |
"battlestar-galactica-2004-de": "battlestar-galactica", |
"buffy-the-vampire-slayer": "buffy", |
"lois-clark-the-new-adventures-of-superman": "lois-clark-the-new-adventures-of-superman-1993", |
get: function (key) { |
return this.hasOwnProperty(key) ? this[key] : key; |
} |
91,7 → 98,7 |
if (e && e.shiftKey && e.ctrlKey) |
{ |
var key = map.get(this.textContent.toLowerCase() |
.replace(/[,()–]/g, "").replace(/\s+/g, "-").replace("-de", "")); |
.replace(/[&:.,()–]/g, "").replace(/\s+/g, "-").replace("-de", "")); |
window.open("http://serienjunkies.org/serie/" + encodeURIComponent(key)); |
e.preventDefault(); |
} |
115,7 → 122,34 |
<?php // var_dump($serien); ?> |
<table> |
<?php |
if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') |
{ |
function strftime_portable ($format, $timestamp = null) |
{ |
if ($timestamp === null) |
{ |
$timestamp = time(); |
} |
|
$format = preg_replace('#(?<!%)((?:%%)*)%e#', '\1%#d', $format); |
return strftime($format, $timestamp); |
} |
} |
else |
{ |
function strftime_portable ($format, $timestamp = null) |
{ |
if ($timestamp === null) |
{ |
$timestamp = time(); |
} |
|
return strftime($format, $timestamp); |
} |
} |
|
setlocale(LC_ALL, 'de_CH.UTF-8'); |
|
foreach ($serien as $name => &$serie) |
{ |
?> |
154,7 → 188,7 |
if (isset($serie['last_seen'])) |
{ |
?>; zuletzt am <?php |
echo strftime('%A, %e. %B %Y %H:%M %z', $serie['last_seen']); |
echo strftime_portable('%A, %e. %B %Y %H:%M %z', $serie['last_seen']); |
} |
?></div> |
<div class="box"> |