updated
This commit is contained in:
11
index.html
11
index.html
@@ -376,6 +376,7 @@
|
|||||||
</footer> -->
|
</footer> -->
|
||||||
<img id="connectStatus" style="bottom: 15px; right: 15px; position: fixed; width: 50px;">
|
<img id="connectStatus" style="bottom: 15px; right: 15px; position: fixed; width: 50px;">
|
||||||
</main>
|
</main>
|
||||||
|
<img id="actionStatus" src="static/ico/statusok.png" style="z-index: 2048;margin: 0px;position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);width: 200px;height: 200px;display: none;">
|
||||||
<script src="static/showdown.min.js"></script>
|
<script src="static/showdown.min.js"></script>
|
||||||
<script src="static/jquery.js"></script>
|
<script src="static/jquery.js"></script>
|
||||||
<script src="static/gun.js"></script>
|
<script src="static/gun.js"></script>
|
||||||
@@ -1444,12 +1445,14 @@
|
|||||||
Notas: document.getElementById(field_notas).value,
|
Notas: document.getElementById(field_notas).value,
|
||||||
};
|
};
|
||||||
var enc = SEA.encrypt(data, SECRET, (encrypted) => {
|
var enc = SEA.encrypt(data, SECRET, (encrypted) => {
|
||||||
|
document.getElementById("actionStatus").style.display = "block"
|
||||||
betterGunPut(
|
betterGunPut(
|
||||||
gun.get(TABLE).get("materiales").get(mid),
|
gun.get(TABLE).get("materiales").get(mid),
|
||||||
encrypted
|
encrypted
|
||||||
);
|
);
|
||||||
toastr.success("Guardado!");
|
toastr.success("Guardado!");
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
document.getElementById("actionStatus").style.display = "none"
|
||||||
setUrlHash("materiales");
|
setUrlHash("materiales");
|
||||||
}, 1500);
|
}, 1500);
|
||||||
});
|
});
|
||||||
@@ -1811,12 +1814,14 @@
|
|||||||
markdown: document.getElementById(field_notas).value,
|
markdown: document.getElementById(field_notas).value,
|
||||||
};
|
};
|
||||||
var enc = SEA.encrypt(data, SECRET, (encrypted) => {
|
var enc = SEA.encrypt(data, SECRET, (encrypted) => {
|
||||||
|
document.getElementById("actionStatus").style.display = "block"
|
||||||
betterGunPut(
|
betterGunPut(
|
||||||
gun.get(TABLE).get("personas").get(mid),
|
gun.get(TABLE).get("personas").get(mid),
|
||||||
encrypted
|
encrypted
|
||||||
);
|
);
|
||||||
toastr.success("Guardado!");
|
toastr.success("Guardado!");
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
document.getElementById("actionStatus").style.display = "none"
|
||||||
setUrlHash("personas");
|
setUrlHash("personas");
|
||||||
}, 1500);
|
}, 1500);
|
||||||
});
|
});
|
||||||
@@ -2051,12 +2056,14 @@
|
|||||||
.value.replace("%%", "Pedido"),
|
.value.replace("%%", "Pedido"),
|
||||||
};
|
};
|
||||||
var enc = SEA.encrypt(data, SECRET, (encrypted) => {
|
var enc = SEA.encrypt(data, SECRET, (encrypted) => {
|
||||||
|
document.getElementById("actionStatus").style.display = "block"
|
||||||
betterGunPut(
|
betterGunPut(
|
||||||
gun.get(TABLE).get("supercafe").get(mid),
|
gun.get(TABLE).get("supercafe").get(mid),
|
||||||
encrypted
|
encrypted
|
||||||
);
|
);
|
||||||
toastr.success("Guardado!");
|
toastr.success("Guardado!");
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
document.getElementById("actionStatus").style.display = "none"
|
||||||
setUrlHash("supercafe");
|
setUrlHash("supercafe");
|
||||||
}, 1500);
|
}, 1500);
|
||||||
});
|
});
|
||||||
@@ -2237,7 +2244,7 @@
|
|||||||
document.getElementById(btn_Pagado).onclick = () => {
|
document.getElementById(btn_Pagado).onclick = () => {
|
||||||
window.event.cancelBubble = true;
|
window.event.cancelBubble = true;
|
||||||
window.event.stopPropagation();
|
window.event.stopPropagation();
|
||||||
|
if (!confirm("¿Quieres marcar como pagado? - Se borrara la comanda y se actualizarán los puntos.")) {return}
|
||||||
data.Estado = "Pagado";
|
data.Estado = "Pagado";
|
||||||
betterGunPut(
|
betterGunPut(
|
||||||
gun.get(TABLE).get("supercafe").get(data._key),
|
gun.get(TABLE).get("supercafe").get(data._key),
|
||||||
@@ -2428,12 +2435,14 @@
|
|||||||
.value.replace("%%", "por_leer"),
|
.value.replace("%%", "por_leer"),
|
||||||
};
|
};
|
||||||
var enc = SEA.encrypt(data, SECRET, (encrypted) => {
|
var enc = SEA.encrypt(data, SECRET, (encrypted) => {
|
||||||
|
document.getElementById("actionStatus").style.display = "block"
|
||||||
betterGunPut(
|
betterGunPut(
|
||||||
gun.get(TABLE).get("notificaciones").get(mid),
|
gun.get(TABLE).get("notificaciones").get(mid),
|
||||||
encrypted
|
encrypted
|
||||||
);
|
);
|
||||||
toastr.success("Guardado!");
|
toastr.success("Guardado!");
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
document.getElementById("actionStatus").style.display = "none"
|
||||||
setUrlHash("notificaciones");
|
setUrlHash("notificaciones");
|
||||||
}, 1500);
|
}, 1500);
|
||||||
});
|
});
|
||||||
|
|||||||
BIN
static/ico/statusok.png
Normal file
BIN
static/ico/statusok.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
3
sw.js
3
sw.js
@@ -1,4 +1,4 @@
|
|||||||
var cacheName = 'telesec_2025-05-29_10';
|
var cacheName = 'telesec_2025-05-30_1';
|
||||||
|
|
||||||
self.addEventListener('install', event => {
|
self.addEventListener('install', event => {
|
||||||
event.waitUntil(
|
event.waitUntil(
|
||||||
@@ -51,6 +51,7 @@ self.addEventListener('install', event => {
|
|||||||
"static/ico/milk.png",
|
"static/ico/milk.png",
|
||||||
"static/ico/preferences.png",
|
"static/ico/preferences.png",
|
||||||
"static/ico/sizes.png",
|
"static/ico/sizes.png",
|
||||||
|
"static/ico/statusok.png",
|
||||||
"static/ico/snowflake.png",
|
"static/ico/snowflake.png",
|
||||||
"static/ico/tea_bag.png",
|
"static/ico/tea_bag.png",
|
||||||
"static/ico/thermometer2.png",
|
"static/ico/thermometer2.png",
|
||||||
|
|||||||
Reference in New Issue
Block a user