-
Notifications
You must be signed in to change notification settings - Fork 10
/
carousel2.php
53 lines (50 loc) · 1.6 KB
/
carousel2.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
<html>
<head>
<title>deal.II Homepage Gallery Selection</title>
<link href="screen.css" type="text/css" rel="stylesheet">
<link href="css/sidebar-carousel2.css" type="text/css" rel="stylesheet">
<meta name="author" content="the deal.II authors <authors@dealii.org>">
<meta name="copyright" content="Copyright (C) 2003, 2004, 2005, 2007, 2010, 2012, 2013, 2014 by the deal.II authors">
<meta name="date" content="$Date:$">
<meta name="svn_id" content-"$Id:$">
<meta name="robots" content="noindex">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.tinycarousel.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#slider-code').tinycarousel({ axis: 'y', interval: true, display: 1, intervaltime: 4000 });
});
</script>
</head>
<body class="navbar">
<p align="center"><img src="pictures/logo100.png" alt="logl"></p>
<hr>
<?php
$d = dir("images/wiki/gallery");
$i = 0;
$list = array();
while (false !== ($entry = $d->read()))
{
if (preg_match("/\.[a-z]+/", $entry))
{
$text = "<li><a target=\"_top\""
." href=\"images/wiki/gallery/"
.$entry."\"><img width='100%' src=\"images/wiki/gallery/"
.$entry."\" alt=\"".$entry."\"></a></li>\n";
array_push($list, $text);
}
}
$d->close();
?>
<div id="slider-code">
<div class="viewport">
<ul class="overview">
<?php
foreach ($list as $value)
{
print $value;
}
?>
</ul>
</div>
</div>