1
0
Fork 0

Update public/main.js
All checks were successful
Build and deploy / build (push) Successful in 1m4s
Build and deploy / Deploy (push) Successful in 23s

This commit is contained in:
Lilith Ashley Nyx Arson 🔥 2025-01-14 17:58:46 +01:00
parent 8f3cb31808
commit a54ea5a7dc

View file

@ -1,7 +1,9 @@
var base = "https://shelter.amy.rip/"; var base = "https://shelter.amy.rip/";
var options = { headers: { "Accept": "application/json" } }; var options = { headers: { "Accept": "application/json" } };
fetch(base, options).then(r => r.json()).then(r => { var nocache = (new Date()-0).toString(16)
fetch(base + "#" + nocache, options).then(r => r.json()).then(r => {
r.filter(i => i.is_dir).forEach(e => { r.filter(i => i.is_dir).forEach(e => {
const card = document.createElement('div'); const card = document.createElement('div');
card.className = 'card d-inline border-primary m-1'; card.className = 'card d-inline border-primary m-1';