Component · Ref 19JAO
Affected pagehttps://88acres.com/products/gift-card
Elementhtml
Accessible name(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "m5ay4l0pod");
div:not(.w3_bg), section:not(.w3_bg), iframelazy:not(.w3_bg){background-image:none !important;}
var w3_lazy_load_by_px = 200,
blank_image_webp_url = "https://d2pk8plgu825qi.cloudfront.net/wp-content/uploads/blank.pngw3.webp",
google_fonts_delay_load = 1e4,
w3_mousemoveloadimg = !1,
w3_page_is_scrolled = !1,
w3_lazy_load_js = 1,
w3_excluded_js = 0;
class w3_loadscripts {
constructor(e) {
this.triggerEvents = e, this.eventOptions = {
passive: !0
}, this.userEventListener = this.triggerListener.bind(this), this.lazy_trigger, this.style_load_fired, this.lazy_scripts_load_fired = 0, this.scripts_load_fired = 0, this.scripts_load_fire = 0, this.excluded_js = w3_excluded_js, this.w3_lazy_load_js = w3_lazy_load_js, this.w3_fonts = "undefined" != typeof w3_googlefont ? w3_googlefont : [], this.w3_styles = [], this.w3_scripts = {
normal: [],
async: [],
defer: [],
lazy: []
}, this.allJQueries = []
}
user_events_add(e) {
this.triggerEvents.forEach(t => window.addEventListener(t, e.userEventListener, e.eventOptions))
}
user_events_remove(e) {
this.triggerEvents.forEach(t => window.removeEventListener(t, e.userEventListener, e.eventOptions))
}
triggerListener_on_load() {
"loading" === document.readyState ? document.addEventListener("DOMContentLoaded", this.load_resources.bind(this)) : this.load_resources()
}
triggerListener() {
this.user_events_remove(this), this.lazy_scripts_load_fired = 1, this.add_html_class("w3_user"), "loading" === document.readyState ? (document.addEventListener("DOMContentLoaded", this.load_style_resources.bind(this)), this.scripts_load_fire || document.addEventListener("DOMContentLoaded", this.load_resources.bind(this))) : (this.load_style_resources(), this.scripts_load_fire || this.load_resources())
}
async load_style_resources() {
this.style_load_fired || (this.style_load_fired = !0, this.register_styles(), document.getElementsByTagName("html")[0].setAttribute("data-css", this.w3_styles.length), document.getElementsByTagName("html")[0].setAttribute("data-css-loaded", 0), this.preload_scripts(this.w3_styles), this.load_styles_preloaded())
}
async load_styles_preloaded() {
setTimeout(function(e) {
document.getElementsByTagName("html")[0].classList.contains("css-preloaded") ? e.load_styles(e.w3_styles) : e.load_styles_preloaded()
}, 200, this)
}
async load_resources() {
this.scripts_load_fired || (this.scripts_load_fired = !0, this.hold_event_listeners(), this.exe_document_write(), this.register_scripts(), this.add_html_class("w3_start"), "function" == typeof w3_events_on_start_js && w3_events_on_start_js(), this.preload_scripts(this.w3_scripts.normal), this.preload_scripts(this.w3_scripts.defer), this.preload_scripts(this.w3_scripts.async), this.wnwAnalytics(), this.wnwBoomerang(), await this.load_scripts(this.w3_scripts.normal), await this.load_scripts(this.w3_scripts.defer), await this.load_scripts(this.w3_scripts.async), await this.execute_domcontentloaded(), await this.execute_window_load(), window.dispatchEvent(new Event("w3-scripts-loaded")), this.add_html_class("w3_js"), "function" == typeof w3_events_on_end_js && w3_events_on_end_js(), this.lazy_trigger = setInterval(this.w3_trigger_lazy_script, 500, this))
}
async w3_trigger_lazy_script(e) {
e.lazy_scripts_load_fired && (await e.load_scripts(e.w3_scripts.lazy), e.add_html_class("jsload"), clearInterval(e.lazy_trigger))
}
add_html_class(e) {
document.getElementsByTagName("html")[0].classList.add(e)
}
register_scripts() {
document.querySelectorAll("script[type=lazyload_int]").forEach(e => {
e.hasAttribute("data-src") ? e.hasAttribute("async") && !1 !== e.async ? this.w3_scripts.async.push(e) : e.hasAttribute("defer") && !1 !== e.defer || "module" === e.getAttribute("data-w3-type") ? this.w3_scripts.defer.push(e) : this.w3_scripts.normal.push(e) : this.w3_scripts.normal.push(e)
}), document.querySelectorAll("script[type=lazyload_ext]").forEach(e => {
this.w3_scripts.lazy.push(e)
})
}
register_styles() {
document.querySelectorAll("link[data-href]").forEach(e => {
this.w3_styles.push(e)
})
}
async execute_script(e) {
return await this.repaint_frame(), new Promise(t => {
let s = document.createElement("script"),
a;
[...e.attributes].forEach(e => {
let t = e.nodeName;
"type" !== t && "data-src" !== t && ("data-w3-type" === t && (t = "type", a = e.nodeValue), s.setAttribute(t, e.nodeValue))
}), e.hasAttribute("data-src") ? (s.setAttribute("src", e.getAttribute("data-src")), s.addEventListener("load", t), s.addEventListener("error", t)) : (s.text = e.text, t()), null !== e.parentNode && e.parentNode.replaceChild(s, e)
})
}
async execute_styles(e) {
var t;
let s;
return t = e, void((s = document.createElement("link")).href = t.getAttribute("data-href"), s.rel = "stylesheet", document.head.appendChild(s), t.parentNode.removeChild(t))
}
async load_scripts(e) {
let t = e.shift();
return t ? (await this.execute_script(t), this.load_scripts(e)) : Promise.resolve()
}
async load_styles(e) {
let t = e.shift();
return t ? (this.execute_styles(t), this.load_styles(e)) : "loaded"
}
async load_fonts(e) {
var t = document.createDocumentFragment();
e.forEach(e => {
let s = document.createElement("link");
s.href = e, s.rel = "stylesheet", t.appendChild(s)
}), setTimeout(function() {
document.head.appendChild(t)
}, google_fonts_delay_load)
}
preload_scripts(e) {
var t = document.createDocumentFragment(),
s = 0,
a = this;
[...e].forEach(i => {
let r = i.getAttribute("data-src"),
n = i.getAttribute("data-href");
if (r) {
let d = document.createElement("link");
d.href = r, d.rel = "preload", d.as = "script", t.appendChild(d)
} else if (n) {
let l = document.createElement("link");
l.href = n, l.rel = "preload", l.as = "style", s++, e.length == s && (l.dataset.last = 1), t.appendChild(l), l.onload = function() {
fetch(this.href).then(e => e.blob()).then(e => {
a.update_css_loader()
}).catch(e => {
a.update_css_loader()
})
}, l.onerror = function() {
a.update_css_loader()
}
}
}), document.head.appendChild(t)
}
update_css_loader() {
document.getElementsByTagName("html")[0].setAttribute("data-css-loaded", parseInt(document.getElementsByTagName("html")[0].getAttribute("data-css-loaded")) + 1), document.getElementsByTagName("html")[0].getAttribute("data-css") == document.getElementsByTagName("html")[0].getAttribute("data-css-loaded") && document.getElementsByTagName("html")[0].classList.add("css-preloaded")
}
hold_event_listeners() {
let e = {};
function t(t, s) {
! function(t) {
function s(s) {
return e[t].eventsToRewrite.indexOf(s) >= 0 ? "w3-" + s : s
}
e[t] || (e[t] = {
originalFunctions: {
add: t.addEventListener,
remove: t.removeEventListener
},
eventsToRewrite: []
}, t.addEventListener = function() {
arguments[0] = s(arguments[0]), e[t].originalFunctions.add.apply(t, arguments)
}, t.removeEventListener = function() {
arguments[0] = s(arguments[0]), e[t].originalFunctions.remove.apply(t, arguments)
})
}(t), e[t].eventsToRewrite.push(s)
}
function s(e, t) {
let s = e[t];
Object.defineProperty(e, t, {
get: () => s || function() {},
set(a) {
e["w3" + t] = s = a
}
})
}
t(document, "DOMContentLoaded"), t(window, "DOMContentLoaded"), t(window, "load"), t(…[truncated by Evolize: exceeded D1 value limit]
Markup<html class="no-js">
Affected pages/ /tools/recurring/login /products/gift-card /pages/sms-signup /cart