-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtenslide.html
69 lines (59 loc) · 1.82 KB
/
tenslide.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Pure CSS Slideshow</title>
<meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0; width = device-width;">
<!-- Should work in Chrome, Safari, Opera and Firefox 4.
Graceful Degradation in older Versions (no transition effects).
Except oldies of course. -->
<!-- Every page has its own #url for direct links.
Check your browser history. Its not broken. -->
<?php include_once 'styles.html'; ?>
<!-- This is for the ipad. Check it there too. -->
<script>
function BlockMove(event) {
// Tell Safari not to move the window.
event.preventDefault() ;
}
</script>
</head>
<body ontouchmove="BlockMove(event);">
<?php
// Create divs used for anchor-jumps with the pseudoclass :target
foreach ($filesArray as $filename) {
echo '<div id="anchor_'.$filename.'">'."\n\t\t";
}
?>
<header>
<nav>
<?php
foreach ( $filesArray as $key => $filename ) {
echo '<a href="#anchor_'.$filename.'">'.($key+1).'</a>'."\n\t\t\t\t";
}
?>
</nav>
</header>
<div class="pages">
<?php
foreach ($filesArray as $filename)
include_once(SLIDES_PATH . $filename . ".html");
?>
</div>
<?php
foreach ($filesArray as $filename) {
echo "</div>\n\t\t";
}
?>
<!-- The End -->
<!--footer>
<a href="#" class="link">FOOTER</a>
</footer-->
<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
chromium.org/developers/how-tos/chrome-frame-getting-started -->
<!--[if lt IE 9 ]>
<script defer src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
<script defer>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
<![endif]-->
</body>
</html>