function gtag() {
window.navigator.onLine && dataLayer.push(arguments)
}
function Ajax_Requests_File() {
return "/requests.php"
}
function Ajax_Requests_Filee() {
return "/ajax_loading.php"
}
function CloseLightbox() {}
function StartBar() {
var t = document.getElementById("loaderPage");
t.style.opacity = 1, t.style.display = "block"
}
function FinishBar() {
var t = 1,
e = setInterval((() => {
var a = document.getElementById("loaderPage");
t <= .05 && (clearInterval(e), a.style.display = "none"), a.style.opacity = t, a.style.filter = "alpha(opacity=" + 100 * t + ")", t -= .5 * t
}), 30)
}
function decodeHtml(t) {
var e = document.createElement("textarea");
return e.innerHTML = t, e.value
}
window.dataLayer = window.dataLayer || [];
var websiteUrl = "";
$((function() {
var t = $("#contente"),
e = $("#ISAPI").val(),
a = '
';
$(document).on("click", "a[data-ajax]", (function(o) {
if (window.navigator.onLine) {
t.html(a), CloseLightbox(), StartBar();
var n = $(this).attr("data-ajax");
o.preventDefault(), e || $.post(Ajax_Requests_Filee() + n, {
url: n
}, (function(e) {
if (!(localStorage.getItem(n) === null)) {
localStorage.removeItem(n);
}
localStorage.setItem(n,e);
return json_data = JSON.parse($(e).filter("#json-data").val()), 1 == json_data.redirect ? (window.location.href = websiteUrl, !1) : $(".message-option-btns").length > 0 ? ("index.php?index.php?link1=home" == json_data.url ? window.location.href = websiteUrl : window.location.href = json_data.url, !1) : (t.html(a + e), 1 == json_data.is_css_file && $("body").append(json_data.css_file), $("#bootom_home").removeClass("active"), $("#bootom_media").removeClass("active"), $("#bootom_blog").removeClass("active"), $("#bootom_tentang").removeClass("active"), "home" == json_data.page ? $("#bootom_home").addClass("active") : "shop" == json_data.page ? $("#bootom_media").addClass("active") : "blog" == json_data.page ? $("#bootom_blog").addClass("active") : "tentang-kami" == json_data.page && $("#bootom_tentang").addClass("active"), window.history.pushState({
state: "new"
}, "", json_data.url), window.onpopstate = function(t) {
$(window).unbind("popstate"), window.location.href = document.location
}, document.title = decodeHtml(json_data.title), document.querySelector('meta[property="og:title"]').setAttribute("content", json_data.title), document.querySelector('meta[name="description"]').setAttribute("content", json_data.description), document.querySelector('[name="keywords"]').setAttribute("content", json_data.keywords), document.querySelector('meta[property="og:url"]').setAttribute("content", json_data.urlLink), document.querySelector('meta[property="og:type"]').setAttribute("content", json_data.type), document.querySelector('meta[property="og:image"]').setAttribute("content", json_data.image), $("html, body").animate({
scrollTop: 0
}, 150), void FinishBar())
}))
} else {
t.html(a);
CloseLightbox();
StartBar();
var n = $(this).attr("data-ajax");
var e = localStorage.getItem(n);
if(e!=null){
o.preventDefault();
setTimeout((function() {
return json_data = JSON.parse($(e).filter("#json-data").val()), 1 == json_data.redirect ? (window.location.href = websiteUrl, !1) : $(".message-option-btns").length > 0 ? ("index.php?index.php?link1=home" == json_data.url ? window.location.href = websiteUrl : window.location.href = json_data.url, !1) : (t.html(a + e), 1 == json_data.is_css_file && $("body").append(json_data.css_file), $("#bootom_home").removeClass("active"), $("#bootom_media").removeClass("active"), $("#bootom_blog").removeClass("active"), $("#bootom_tentang").removeClass("active"), "home" == json_data.page ? $("#bootom_home").addClass("active") : "shop" == json_data.page ? $("#bootom_media").addClass("active") : "blog" == json_data.page ? $("#bootom_blog").addClass("active") : "tentang-kami" == json_data.page && $("#bootom_tentang").addClass("active"), window.history.pushState({
state: "new"
}, "", json_data.url), window.onpopstate = function(t) {
$(window).unbind("popstate"), window.location.href = document.location
}, document.title = decodeHtml(json_data.title), document.querySelector('meta[property="og:title"]').setAttribute("content", json_data.title), document.querySelector('meta[name="description"]').setAttribute("content", json_data.description), document.querySelector('[name="keywords"]').setAttribute("content", json_data.keywords), document.querySelector('meta[property="og:url"]').setAttribute("content", json_data.urlLink), document.querySelector('meta[property="og:type"]').setAttribute("content", json_data.type), document.querySelector('meta[property="og:image"]').setAttribute("content", json_data.image), $("html, body").animate({
scrollTop: 0
}, 150), void FinishBar())
}),1000);
}
}
}))
})), gtag("js", new Date), gtag("config", "G-8YSRNR97DN"), gtag("consent", "default", {
ad_storage: "denied",
ad_user_data: "denied",
ad_personalization: "denied",
analytics_storage: "denied"
});