Add admin panel, cart, checkout, and digital key delivery

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
orohi
2026-07-25 05:32:05 +03:00
co-authored by Cursor
parent 08cc4b0f1b
commit 54eaff4c70
32 changed files with 1982 additions and 105 deletions
-20
View File
@@ -1,24 +1,4 @@
(() => {
const toast = document.getElementById("toast");
let toastTimer;
const showToast = (message) => {
if (!toast) return;
toast.hidden = false;
toast.textContent = message;
clearTimeout(toastTimer);
toastTimer = setTimeout(() => {
toast.hidden = true;
}, 2600);
};
document.querySelectorAll("[data-buy]").forEach((button) => {
button.addEventListener("click", () => {
const slug = button.getAttribute("data-buy");
showToast(`«${slug}» — оплата скоро будет подключена`);
});
});
const reveals = document.querySelectorAll(".reveal");
if ("IntersectionObserver" in window) {
const observer = new IntersectionObserver(