Sha256: 9ea18d08464cae4e47f64c8a75d1addb4cfbfba89d123a49e5d91e0978d4b64a
Contents?: true
Size: 958 Bytes
Versions: 2
Compression:
Stored size: 958 Bytes
Contents
var store = null; if(!localStorage["visited"]) localStorage["visited"] = {}; $(function() { $(document).on("dragstart", "a, img", false); $("#wrapper").twoup("none"); $("#page-back").click(function(e) { e.stopPropagation(); $.twoup.page(-1, true); }); $("#page-back-10").click(function(e) { e.stopPropagation(); $.twoup.page(-10, true); }); $("#page-next").click(function(e) { e.stopPropagation(); $.twoup.page(1, true); }); $("#page-next-10").click(function(e) { e.stopPropagation(); $.twoup.page(10, true); }); $("#page-home").click(function(e) { e.stopPropagation(); location.hash = lastControllerLocation; }); $.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.1.0 | app/js/app.js |
storys-0.0.6 | app/js/app.js |