Update index.html

This commit is contained in:
Naiel
2025-06-05 11:20:40 +02:00
committed by GitHub
parent 39b58ac459
commit 36d5165abc

View File

@@ -2097,6 +2097,8 @@
}; };
}, },
index: function () { index: function () {
var tts = false;
setTimeout(() => {tts = true}, 7500)
const tablebody = safeuuid(); const tablebody = safeuuid();
var btn_new = safeuuid(); var btn_new = safeuuid();
container.innerHTML = ` container.innerHTML = `
@@ -2297,6 +2299,7 @@
}; };
}); });
} }
var old = {};
gun gun
.get(TABLE) .get(TABLE)
.get("supercafe") .get("supercafe")
@@ -2307,10 +2310,15 @@
function add_row(data, key) { function add_row(data, key) {
if (data != null) { if (data != null) {
data["_key"] = key; data["_key"] = key;
if (JSON.stringify(row2[key]) != JSON.stringify(data)) {
console.log("SC:Updated:", data)
}
rows2[key] = data; rows2[key] = data;
old[key] = data;
} else { } else {
// console.log("delete", key); // console.log("delete", key);
delete rows2[key]; delete rows2[key];
delete old[key];
} }
render(); render();
} }
@@ -2581,4 +2589,4 @@
</script> </script>
</body> </body>
</html> </html>