Bỏ qua nội dung
(function () {
function initClickExplorer(root) {
if (root.dataset.ftceReady === "1") return;
root.dataset.ftceReady = "1";
var gauge = root.querySelector(".ftce-gauge");
if (gauge) {
var score = Number(gauge.getAttribute("data-score"));
if (!Number.isFinite(score)) score = 12;
score = Math.max(0, Math.min(100, score));
gauge.style.setProperty("--ftce-score", score);
}
var clock = root.querySelector(".ftce-clock");
function updateClock() {
if (!clock) return;
var now = new Date();
var hh = String(now.getUTCHours()).padStart(2, "0");
var mm = String(now.getUTCMinutes()).padStart(2, "0");
var ss = String(now.getUTCSeconds()).padStart(2, "0");
clock.textContent = hh + ":" + mm + ":" + ss + " UTC";
}
updateClock();
if (clock) {
window.setInterval(updateClock, 1000);
}
}
function start() {
document.querySelectorAll(".ft-click-explorer").forEach(initClickExplorer);
}
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", start);
} else {
start();
}
})();