diff --git a/html/index.php b/html/index.php
index 78d91aa..bb7e20e 100644
--- a/html/index.php
+++ b/html/index.php
@@ -238,6 +238,23 @@ function singleimage() {
var pos = ;
var subpath = '';
var images = ;
+ var slide = false;
+ var timer = null;
+ function slideshow() {
+ slide = !slide;
+ if (timer) clearInterval(timer);
+ if (slide) {
+ $('#pos').text('slideshow started');
+ $('#pos').fadeIn(1000, function() {$('#pos').fadeOut(1000)});
+ timer = setInterval(function() {
+ next();
+ }, 5000);
+ } else {
+ timer = nil;
+ $('#pos').text('slideshow started');
+ $('#pos').fadeIn(1000, function() {$('#pos').fadeOut(1000)});
+ }
+ }
function next() {
if (++pos>=images.length) {
pos=0;
@@ -280,6 +297,14 @@ function singleimage() {
console.log('back')
back()
})
+ $('div.image').on('swipeup', function(e) {
+ console.log('slideshow')
+ slideshow()
+ })
+ $('div.image').dblclick(function(e) {
+ console.log('slideshow')
+ slideshow()
+ })
})