X-Git-Url: https://git.yukkurigames.com/?p=webcart1000.git;a=blobdiff_plain;f=webcart1000.js;h=101a9fdda185366bd6ada74a520030e050b01311;hp=170617f12ca3a71ca4ac9ffc2a5703bd91f180cf;hb=HEAD;hpb=b7302d05c4246918b3a9635a2a1a2006ae5f6a4a diff --git a/webcart1000.js b/webcart1000.js index 170617f..101a9fd 100644 --- a/webcart1000.js +++ b/webcart1000.js @@ -10,12 +10,13 @@ (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); }