lib/views/index.erb in parade-0.10.0 vs lib/views/index.erb in parade-0.10.1
- old
+ new
@@ -24,7 +24,36 @@
<div id="pauseScreen">
<%= pause_message %>
</div>
+<script type="text/javascript">
+
+ $(document).ready(function() {
+ presentation = new Presentation('<%= presentation_path_prefix %>');
+
+ var locationWatcher = new LocationWatcher();
+ locationWatcher.start();
+
+ /* Add Support for Touch Devices */
+
+ var presoElement = document.getElementById('preso');
+
+ Hammer(presoElement).on("swipeleft", function() {
+ $.publish("presentation:slide:next");
+ });
+
+ Hammer(presoElement).on("swiperight", function() {
+ $.publish("presentation:slide:previous");
+ });
+
+ // bind event handlers
+ /* window.onresize = resized; */
+ /* window.onscroll = scrolled; */
+ /* window.onunload = unloaded; */
+
+ });
+
+</script>
+
</body>
</html>