3 <title> <?= IMAGES_DIR.$simpleImagePath ?> </title>
4 <style type="text/css">
17 image-orientation: from-image;
21 text-decoration: none;
23 #next, #previous, #up {
48 <?php if ($nextImageUrl !== '' and $firefox) { ?>
49 <link rel="prefetch" href="<?= $nextImageUrl ?>" />
50 <link rel="prefetch" href="<?= $nextPageUrl ?>" />
56 <a href="<?= $imageUrl ?>"><img src="<?= $imageUrl ?>" id="theimage" /></a>
59 <a href="<?= $directoryUrl ?>" title="Back to directory">^</a>
62 <?php if ($nextPageUrl !== '') { ?>
64 <a href="<?= $nextPageUrl ?>" title="Next image">></a>
68 <?php if ($prevPageUrl !== '') { ?>
70 <a href="<?= $prevPageUrl ?>" title="Previous image"><</a>
74 <script type="text/javascript">
76 <?php if ($nextImageUrl !== '' and ! $firefox) { ?>
77 window.onload = function() { // for browsers not supporting link rel=prefetch
79 im.src = '<?= $nextImageUrl ?>';
80 var req = new XMLHttpRequest();
81 req.open('GET', '<?= $nextPageUrl ?>', false);
86 // keyboard navigation
91 window.location = "<?= $prevPageUrl ?>";
95 window.location = "<?= $nextPageUrl ?>";
97 case 38: // up (down is 40)
98 window.location = "<?= $directoryUrl ?>";
101 window.location = "<?= $imageUrl ?>";
106 if (document.addEventListener) {
107 document.addEventListener("keyup", keyup, false);