Files
2026-11-19 23:07:18 +00:00

30 lines
809 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* Numex Renk Stüdyosu — başlatma */
(function (kok) {
"use strict";
function baslat() {
var D = kok.Durum, A = kok.Arayuz;
D.yukle();
/* kayıtlı tema varsa uygula (DOM'a erken yaz, göz kırpmasın) */
document.documentElement.setAttribute("data-tema", D.al().tema || "koyu");
A.baglan();
var btnTema = document.getElementById("btnTema");
if (btnTema) btnTema.textContent = D.al().tema === "koyu" ? "🌙 Tema" : "☀️ Tema";
/* hoş geldin */
setTimeout(function () {
A.bildirim("Numex Renk Stüdyosu hazır — noktaları sürükleyin");
}, 600);
}
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", baslat);
} else {
baslat();
}
})(typeof globalThis !== "undefined" ? globalThis : this);