diff --git a/index.html b/index.html
index c30cc32..43e012a 100755
--- a/index.html
+++ b/index.html
@@ -15,6 +15,7 @@ $(document).ready(function(){
})
$('.viewer')
+ //.click(toggleIndex)
.swipe({
swipeLeft: nextPage,
swipeRight: prevPage,
@@ -72,6 +73,15 @@ function hideIndex(){
$('.previews').slideUp()
}
+function toggleIndex(){
+ if($('.previews').css('display') == 'none'){
+ showIndex()
+ } else {
+ hideIndex()
+ }
+ return false
+}
+