Spaces:
Running
Running
Deploy quotesprig to the hub
Browse filesFiles changed (3)
275 unmodified lines2762772782792802812824 unmodified lines287288289290291275 unmodified lines<a href="https://cybermax-tools-cybermax.static.hf.space/menumoor/index.html" target="_blank" rel="noopener">Menumoor: menus</a><a href="https://cybermax-tools-cybermax.static.hf.space/sigsprig/index.html" target="_blank" rel="noopener">Sigsprig: email signatures</a><a href="https://cybermax-tools-cybermax.static.hf.space/profit-margin-calculator/index.html" target="_blank" rel="noopener">Profit margin calculator</a><a href="https://cybermax.cybermax-tools.workers.dev/store/?utm_source=quotesprig&utm_medium=more-from" target="_blank" rel="noopener">CyberMax Store</a></div><p class="copy">© 2026 CyberMax. All rights reserved. Support: <a href="mailto:cybermax.tools@gmail.com">cybermax.tools@gmail.com</a></p></footer>4 unmodified lines<script src="calc.js"></script><script src="pdf.js"></script><script src="app.js"></script><!-- cybermax-count:start --><script>(function(){try{var u="https://data.cybermaxtools.com/v?p="+encodeURIComponent(location.host+location.pathname)+"&r="+encodeURIComponent((document.referrer||"").split("/")[2]||"")+(function(){var q=new URLSearchParams(location.search),s=q.get("utm_source"),t=(q.get("s")||"").toLowerCase().replace(/[^a-z0-9-]/g,"-").slice(0,80);return s?"&us="+encodeURIComponent(s)+"&uc="+encodeURIComponent(q.get("utm_campaign")||""):t?"&us=s&uc="+encodeURIComponent(t):""})();navigator.sendBeacon?navigator.sendBeacon(u):(new Image).src=u}catch(e){}})()</script><!-- cybermax-count:end --></body></html>275 unmodified lines2762772782792802812824 unmodified lines287288289290291275 unmodified lines<a href="https://cybermax-tools-cybermax.static.hf.space/menumoor/index.html" target="_blank" rel="noopener">Menumoor: menus</a><a href="https://cybermax-tools-cybermax.static.hf.space/sigsprig/index.html" target="_blank" rel="noopener">Sigsprig: email signatures</a><a href="https://cybermax-tools-cybermax.static.hf.space/profit-margin-calculator/index.html" target="_blank" rel="noopener">Profit margin calculator</a><a href="https://cybermaxtools.com/store/?utm_source=quotesprig&utm_medium=more-from" target="_blank" rel="noopener">CyberMax Store</a></div><p class="copy">© 2026 CyberMax. All rights reserved. Support: <a href="mailto:cybermax.tools@gmail.com">cybermax.tools@gmail.com</a></p></footer>4 unmodified lines<script src="calc.js"></script><script src="pdf.js"></script><script src="app.js"></script></body></html>
1 unmodified line234567893 unmodified lines13141516171819202138 unmodified lines6061626364656632 unmodified lines991001011021031041051061071081091101111121131 unmodified line* self-contained). Extends pro.js with several plans (monthly, yearly, one-time) and a re-check for subscriptions.* Config before this script:* window.CMX_PRO = { id, name, perks: [..], plans: [{ offer, label, price, per, note, best }], free: "one line" }* Buy: counted link https://data.cybermax-tools.workers.dev/buy/<offer>?s=app-<id> -> Stripe Payment Link.* After checkout Stripe sends the buyer to data.cybermax-tools.workers.dev/unlock/<id>?session_id=..., which checks the* Checkout Session (and, for a subscription, that it is still active) and returns here with #cmx-pro=<session id>.* The app checks that code once (/unlock/<id>?json=1&session_id=..) and remembers Pro in this browser; it re-checks every* 3 days, so a cancelled subscription turns off by itself (one tiny request per buyer every 3 days, none for free users).3 unmodified lines"use strict";var C = window.CMX_PRO || {};if (!C.id) return;var DATA = "https://data.cybermax-tools.workers.dev";var KEY = "cmx-pro:" + C.id;var SID = /^cs_(live|test)_[A-Za-z0-9]{10,200}$/;var RECHECK = 3 * 864e5;var listeners = [];38 unmodified lines// Convert kit (funnel beacons, real proof, email capture, phone buy bar), loaded from the CyberMax Store; optional:// if it can't load (offline), the app and the Pro box work exactly the same.var KIT = "https://cybermax.cybermax-tools.workers.dev/store/convert.js", kitQ = [];function conv(fn) {if (window.CMXConvert) return fn(window.CMXConvert);kitQ.push(fn);32 unmodified linesel.innerHTML = '<h2>' + esc(C.name) + ' Pro</h2>' + (C.free ? '<p class="cmx-pro-small">Free: ' + esc(C.free) + "</p>" : "") +"<ul>" + C.perks.map(function (p) { return "<li>" + esc(p) + "</li>"; }).join("") + '</ul><div class="cmx-plans">' + plans +'</div><p class="cmx-pro-small">Secure Stripe checkout. Pro turns on the moment you pay; no account needed.' + (subs ? " Subscriptions cancel any time from your receipt email." : " One payment, no subscription.") +' 14-day promise: if it doesn\'t work as described, we fix it or refund you in full (<a href="https://cybermax.cybermax-tools.workers.dev/terms#payments" target="_blank" rel="noopener">terms</a>). Questions: <a href="mailto:cybermax.tools@gmail.com">cybermax.tools@gmail.com</a></p><div class="cmx-pro-proof"></div><div class="cmx-pro-cap"></div>' +'<details><summary>Already bought Pro?</summary><form id="cmx-pro-form"><label>Unlock code <input id="cmx-pro-code" autocomplete="off" placeholder="cs_live_…"></label> <button class="btn ghost" type="submit">Unlock</button></form></details><p id="cmx-pro-msg" class="cmx-pro-small" aria-live="polite"></p>';Array.prototype.forEach.call(el.querySelectorAll("a.cmx-plan"), function (a) { a.addEventListener("click", function () { conv(function (K) { K.event("upgrade-click", C.id); }); }); });conv(function (K) {K.proof(el.querySelector(".cmx-pro-proof"), C.id);K.capture(el.querySelector(".cmx-pro-cap"), { list: "weekly-" + C.id, src: "app-" + C.id, label: "Not ready for Pro? Email me " + C.name + " tips and new features (about once a week)" });});var f = document.getElementById("cmx-pro-form");if (f) f.onsubmit = function (e) { e.preventDefault(); var c = (document.getElementById("cmx-pro-code").value || "").trim(); if (SID.test(c)) unlock(c); else toast("Paste the code from your receipt page (it starts with cs_live_)."); };}function apply() {1 unmodified line234567893 unmodified lines13141516171819202138 unmodified lines6061626364656632 unmodified lines991001011021031041051061071081091101111121131 unmodified line* self-contained). Extends pro.js with several plans (monthly, yearly, one-time) and a re-check for subscriptions.* Config before this script:* window.CMX_PRO = { id, name, perks: [..], plans: [{ offer, label, price, per, note, best }], free: "one line" }* Buy: counted link https://data.cybermaxtools.com/buy/<offer>?s=app-<id> -> Stripe Payment Link.* After checkout Stripe sends the buyer to data.cybermaxtools.com/unlock/<id>?session_id=..., which checks the* Checkout Session (and, for a subscription, that it is still active) and returns here with #cmx-pro=<session id>.* The app checks that code once (/unlock/<id>?json=1&session_id=..) and remembers Pro in this browser; it re-checks every* 3 days, so a cancelled subscription turns off by itself (one tiny request per buyer every 3 days, none for free users).3 unmodified lines"use strict";var C = window.CMX_PRO || {};if (!C.id) return;var DATA = "https://data.cybermaxtools.com";var KEY = "cmx-pro:" + C.id;var SID = /^(cs_(live|test)_[A-Za-z0-9]{10,200}|[A-Z0-9]{8}-[A-Z0-9]{8}-[A-Z0-9]{8}-[A-Z0-9]{8})$/i; // Stripe order code or Gumroad licence keyvar RECHECK = 3 * 864e5;var listeners = [];38 unmodified lines// Convert kit (funnel beacons, real proof, email capture, phone buy bar), loaded from the CyberMax Store; optional:// if it can't load (offline), the app and the Pro box work exactly the same.var KIT = "https://cybermaxtools.com/store/convert.js", kitQ = [];function conv(fn) {if (window.CMXConvert) return fn(window.CMXConvert);kitQ.push(fn);32 unmodified linesel.innerHTML = '<h2>' + esc(C.name) + ' Pro</h2>' + (C.free ? '<p class="cmx-pro-small">Free: ' + esc(C.free) + "</p>" : "") +"<ul>" + C.perks.map(function (p) { return "<li>" + esc(p) + "</li>"; }).join("") + '</ul><div class="cmx-plans">' + plans +'</div><p class="cmx-pro-small">Secure Stripe checkout. Pro turns on the moment you pay; no account needed.' + (subs ? " Subscriptions cancel any time from your receipt email." : " One payment, no subscription.") +' 14-day promise: if it doesn\'t work as described, we fix it or refund you in full (<a href="https://cybermaxtools.com/terms#payments" target="_blank" rel="noopener">terms</a>). Questions: <a href="mailto:cybermax.tools@gmail.com">cybermax.tools@gmail.com</a></p><div class="cmx-pro-proof"></div><div class="cmx-pro-cap"></div>' +'<details><summary>Already bought Pro?</summary><form id="cmx-pro-form"><label>Unlock code <input id="cmx-pro-code" autocomplete="off" placeholder="cs_live_… or Gumroad licence key"></label> <button class="btn ghost" type="submit">Unlock</button></form></details><p id="cmx-pro-msg" class="cmx-pro-small" aria-live="polite"></p>';Array.prototype.forEach.call(el.querySelectorAll("a.cmx-plan"), function (a) { a.addEventListener("click", function () { conv(function (K) { K.event("upgrade-click", C.id); }); }); });conv(function (K) {K.proof(el.querySelector(".cmx-pro-proof"), C.id);K.capture(el.querySelector(".cmx-pro-cap"), { list: "weekly-" + C.id, src: "app-" + C.id, label: "Not ready for Pro? Email me " + C.name + " tips and new features (about once a week)" });});var f = document.getElementById("cmx-pro-form");if (f) f.onsubmit = function (e) { e.preventDefault(); var c = (document.getElementById("cmx-pro-code").value || "").trim(); if (SID.test(c)) unlock(c); else toast("Paste the code from your receipt page (it starts with cs_live_) or your Gumroad licence key."); };}function apply() {
1234567/* Quotesprig offline cache. (c) 2026 CyberMax. All rights reserved.* Network first for pages (updates arrive quickly), cache first for same-scope static files. */var CACHE = "quotesprig-v2";var FILES = ["./", "index.html", "style.css", "pro.js", "calc.js", "pdf.js", "app.js", "manifest.webmanifest", "icon.svg", "icon-192.png", "icon-512.png"];self.addEventListener("install", function (e) {e.waitUntil(caches.open(CACHE).then(function (c) { return c.addAll(FILES); }).then(function () { return self.skipWaiting(); }));});12345678/* Quotesprig offline cache. (c) 2026 CyberMax. All rights reserved.* Network first for pages (updates arrive quickly), cache first for same-scope static files. *//* 16 Oct 2026: './' is not precached: the Hugging Face static host answers 404 for a folder URL, which made the whole install fail (no offline). Navigations fall back to index.html. */var CACHE = "quotesprig-v3";var FILES = ["index.html", "style.css", "pro.js", "calc.js", "pdf.js", "app.js", "manifest.webmanifest", "icon.svg", "icon-192.png", "icon-512.png"];self.addEventListener("install", function (e) {e.waitUntil(caches.open(CACHE).then(function (c) { return c.addAll(FILES); }).then(function () { return self.skipWaiting(); }));});
quotesprig/index.html+2-2
quotesprig/pro.js+8-8
quotesprig/sw.js+3-2