html structure draft and first try of js time laps

This commit is contained in:
Bachir Soussi Chiadmi
2016-06-27 14:43:54 +02:00
parent 8218678f90
commit 1dfd58f8d7
7 changed files with 198 additions and 23 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
$imgs = glob("pictures/*.jpg");
foreach ($imgs as $key => $value):
$class = "frame frame-$key";
if($key == 0) $class .= " current";
?>
<div class="<?php print $class; ?>" style="background-image:url('<?php print $value ?>');" alt="" /></div>
<?php endforeach;