CyberMax-tools commited on
Commit
0d5d0ef
·
verified ·
1 Parent(s): 3a169e7

Deploy cutout to the hub

Browse files
Files changed (4) hide show
  1. cutout/app.js +2 -2
  2. cutout/index.html +1 -1
  3. cutout/og.png +2 -2
  4. cutout/sw.js +1 -1
cutout/app.js CHANGED
@@ -206,8 +206,8 @@
206
  });
207
  chain.then(function () {
208
  var z = C.zip(files);
209
- save_(new Blob([z], { type: "application/zip" }), "cutout-" + done.length + "-images.zip");
210
- status("Saved cutout-" + done.length + "-images.zip (" + C.fmtBytes(z.length) + ").");
211
  }, function (e) { status(e.message, true); });
212
  });
213
  $("btn-clear").addEventListener("click", function () {
 
206
  });
207
  chain.then(function () {
208
  var z = C.zip(files);
209
+ save_(new Blob([z], { type: "application/zip" }), "snipbare-" + done.length + "-images.zip");
210
+ status("Saved snipbare-" + done.length + "-images.zip (" + C.fmtBytes(z.length) + ").");
211
  }, function (e) { status(e.message, true); });
212
  });
213
  $("btn-clear").addEventListener("click", function () {
cutout/index.html CHANGED
@@ -122,5 +122,5 @@
122
  <div class="toast" id="toast" role="status" aria-live="polite"></div>
123
  <script src="core.js"></script>
124
  <script src="app.js"></script>
125
- <!-- cybermax-count:start --><script>(function(){try{var u="https://data.cybermax-tools.workers.dev/v?p="+encodeURIComponent(location.host+location.pathname)+"&r="+encodeURIComponent((document.referrer||"").split("/")[2]||"");navigator.sendBeacon?navigator.sendBeacon(u):(new Image).src=u}catch(e){}})()</script><!-- cybermax-count:end --></body>
126
  </html>
 
122
  <div class="toast" id="toast" role="status" aria-live="polite"></div>
123
  <script src="core.js"></script>
124
  <script src="app.js"></script>
125
+ </body>
126
  </html>
cutout/og.png CHANGED

Git LFS Details

  • SHA256: 9d8c01e6eb9741f61a5932f461003652b3a164a010295a62cffbd985ead8a418
  • Pointer size: 131 Bytes
  • Size of remote file: 142 kB

Git LFS Details

  • SHA256: 97d87cb9e8733ead12f648a23169d5d9ac34349672353cad5d1157c4074581bf
  • Pointer size: 131 Bytes
  • Size of remote file: 143 kB
cutout/sw.js CHANGED
@@ -1,5 +1,5 @@
1
  /* Snipbare offline cache (the AI model itself is cached by transformers.js). © 2026 CyberMax. All rights reserved. */
2
- var CACHE = "cutout-v1";
3
  var FILES = ["./", "index.html", "style.css", "cut.css", "core.js", "app.js", "worker.js", "manifest.webmanifest", "icon.svg", "icon-192.png", "icon-512.png"];
4
  self.addEventListener("install", function (e) {
5
  e.waitUntil(caches.open(CACHE).then(function (c) { return c.addAll(FILES); }).then(function () { return self.skipWaiting(); }));
 
1
  /* Snipbare offline cache (the AI model itself is cached by transformers.js). © 2026 CyberMax. All rights reserved. */
2
+ var CACHE = "snipbare-v2";
3
  var FILES = ["./", "index.html", "style.css", "cut.css", "core.js", "app.js", "worker.js", "manifest.webmanifest", "icon.svg", "icon-192.png", "icon-512.png"];
4
  self.addEventListener("install", function (e) {
5
  e.waitUntil(caches.open(CACHE).then(function (c) { return c.addAll(FILES); }).then(function () { return self.skipWaiting(); }));