Sha256: 573b58bb83252d0b096f219bfab99f8065ac5b6309693fb30e7bccd91f54da3f
Contents?: true
Size: 854 Bytes
Versions: 2
Compression:
Stored size: 854 Bytes
Contents
var store = null; $(function() { $(document).on("dragstart", "a, img", false); $("#wrapper").twoup("none"); $("#page-back").click(function() { $.twoup.page(-1, true); }); $("#page-next").click(function() { $.twoup.page(1, true); }); /* $("#wrapper > div > div").hammer().on("drag swipeleft swiperight", function(event) { if(Hammer.utils.isVertical(event.gesture.direction)) return; event.gesture.preventDefault(); if(event.type == 'swipeleft') $.twoup.page(1, true); else if(event.type == 'swiperight') $.twoup.page(-1, true); });*/ $.getJSON("data.json").done(function(data) { if(data.length == 0) alert("No data.json, or data invalid."); store = data; window.router = new router(); router.init(); if(location.hash == "#" || location.hash == "") location.hash = "#index!1"; }); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
storys-0.0.2 | app/js/app.js |
storys-0.0.1 | app/js/app.js |