aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/baggy/view.twig
diff options
context:
space:
mode:
Diffstat (limited to 'themes/baggy/view.twig')
-rwxr-xr-xthemes/baggy/view.twig11
1 files changed, 11 insertions, 0 deletions
diff --git a/themes/baggy/view.twig b/themes/baggy/view.twig
index 68af03f5..a6da85d5 100755
--- a/themes/baggy/view.twig
+++ b/themes/baggy/view.twig
@@ -103,6 +103,17 @@
103 retrievePercent({{ entry.id|e }}); 103 retrievePercent({{ entry.id|e }});
104 }); 104 });
105 }); 105 });
106
107 // Use left and right arrow to navigate on with keyboard
106 navigateKeyboard('?view=view&id={{ navigate.nextid|e }}','?view=view&id={{ navigate.previousid|e }}'); 108 navigateKeyboard('?view=view&id={{ navigate.nextid|e }}','?view=view&id={{ navigate.previousid|e }}');
109
110 // swipe to right or left on mobile to navigate
111 $('article').on("swiperight", function(){
112 goLeft('?view=view&id={{ navigate.nextid|e }}');
113 });
114 $('article').on("swipeleft", function(){
115 goRight('?view=view&id={{ navigate.previousid|e }}');
116 });
117
107 </script> 118 </script>
108{% endblock %} 119{% endblock %}