X-Git-Url: https://git.yukkurigames.com/?p=webcart1000.git;a=blobdiff_plain;f=webcart1000.js;h=101a9fdda185366bd6ada74a520030e050b01311;hp=5ede7f94422e5fb8d2c9e547b8061d32427488c2;hb=c37c3fa84ddca928c08b31815d6c2e22939e55b3;hpb=64c651ce5f394030fa7010c9847d459cbbeab16e;ds=sidebyside diff --git a/webcart1000.js b/webcart1000.js index 5ede7f9..101a9fd 100644 --- a/webcart1000.js +++ b/webcart1000.js @@ -1,12 +1,22 @@ +/* The person who associated a work with this deed has dedicated the + work to the public domain by waiving all of his or her rights to + the work worldwide under copyright law, including all related and + neighboring rights, to the extent allowed by law. + + You can copy, modify, distribute and perform the work, even for + commercial purposes, all without asking permission. +*/ + (function () { "use strict"; - var ORIGIN = "http://yukkurigames.com"; + var ORIGIN = location.protocol + "//yukkurigames.com"; var TARGET = ORIGIN + "/webcart1000/o_o.html"; var wc1kFrame; var wc1kWindow; var saveData; var _this = this; + this.data = scrub(); function clamp (i, hi) { return Math.max(0, Math.min(hi, +i | 0)); } function force10 (i) { return clamp(i, 1023); }