Skip to content

Commit

Permalink
Removed broken weird shit
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAnarchoX committed May 21, 2024
1 parent c278ecc commit d88ba70
Showing 1 changed file with 0 additions and 275 deletions.
275 changes: 0 additions & 275 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1930,281 +1930,6 @@
src="//img1.wsimg.com/ceph-p3-01/website-builder-data-prod/static/widgets/UX.4.38.3.js"
crossorigin=""
></script>
window.wsb["Theme17"] ||
window
.radpack("@widget/LAYOUT/bs-layout17-Theme-publish-Theme")
.then(function (t) {
return new t.default();
});
window.wsb["FreemiumAd"] = function (e) {
let { adEndpoint: t, isPublish: a, containerId: o } = e;
const r = 1e4,
l = /<script[^>]*>([\s\S]*)<\/script>/;
let n, i, s;
function c(e) {
e.preventDefault(), e.stopPropagation();
const t = new CustomEvent("editor", {
detail: { type: "showModal", modal: "plans", source: "freemiumAd" },
});
window.dispatchEvent(t);
}
function g(e) {
if (((s = document.getElementById(o)), !s)) return;
(n = document.createElement("div")),
(n.style.cssText = "width:100%;"),
s.prepend(n),
(i = document.createElement("div")),
i.setAttribute("data-freemium-ad", !0),
(i.style.cssText = `overflow:hidden;width:100%;z-index:${r};position:fixed;left:0;`),
(i.innerHTML = (e || "").replace(l, "")),
s.prepend(i);
const t = `${i.offsetHeight}px`;
if (
((n.style.minHeight = t),
window.requestAnimationFrame(() => {
const e = document.querySelector("[data-stickynav]");
e && "fixed" === e.style.position && (e.style.top = t);
}),
a)
) {
const t = l.exec(e);
if (t) {
const e = document.createElement("script");
e.appendChild(document.createTextNode(t[1])),
document.head.appendChild(e);
}
} else i.addEventListener("click", c, { useCapture: !0 });
}
return (
(function () {
const e = (a && sessionStorage.getItem(t)) || "";
e
? g(e)
: window
.fetch(t)
.then((e) => e.ok && e.text())
.then((e) => {
e && (sessionStorage.setItem(t, e), g(e));
})
.catch(() => {});
})(),
function () {
!a && i && i.removeEventListener("click", c, { useCapture: !0 }),
s && (s.removeChild(n), s.removeChild(i));
}
);
};
window.wsb["FreemiumAd"](
JSON.parse(
'{"adEndpoint":"/markup/ad","isPublish":true,"containerId":"freemium-ad-11874"}'
)
);
window.wsb["DynamicFontScaler"] = function (t) {
let e,
{
containerId: n,
targetId: o,
fontSizes: r,
maxLines: i,
prioritizeDefault: s,
} = t;
if ("undefined" == typeof document) return;
const a = document.getElementById(n),
c = document.getElementById(o);
function l(t) {
return (
(function (t) {
const e = parseInt(y(t, "padding-left") || 0, 10),
n = parseInt(y(t, "padding-right") || 0, 10);
return t.scrollWidth + e + n;
})(t) <= a.clientWidth &&
(function (t) {
const e = t.offsetHeight,
n = parseInt(y(t, "line-height"), 10) || 1;
return Math.floor(e / n);
})(t) <= i
);
}
function p(t) {
return parseInt(y(t, "font-size") || 0, 10);
}
function d(t) {
if (1 === t.length) return t[0];
const e = t.filter(l);
if (1 === e.length) return e[0];
if (!e.length)
return (function (t) {
return t.sort((t, e) => p(t) - p(e))[0];
})(t);
return e.sort((t, e) => p(e) - p(t))[0];
}
function u() {
if (!a || !c || e === window.innerWidth) return;
if (c.hasAttribute("data-font-scaled")) return void g();
e = window.innerWidth;
const t = Array.prototype.slice
.call(a.querySelectorAll(`[data-scaler-id="scaler-${n}"]`))
.sort(
(t, e) =>
r.indexOf(t.getAttribute("data-size")) -
r.indexOf(e.getAttribute("data-size"))
);
if (a.clientWidth && t.length) {
const e = a.style.width || "";
(a.style.width = "100%"),
t.forEach((t) => {
(t.style.display = "inline-block"),
(t.style.maxWidth = `${a.clientWidth}px`);
});
const n = d(t);
!(function (t) {
t.forEach((t) => {
(t.style.display = "none"), (t.style.maxWidth = "");
});
})(t),
(a.style.width = e);
const r = y(n, "font-size"),
i = c.getAttribute("data-last-size");
if (r && r !== i) {
if (s) {
const t = y(c, "font-size");
if (parseInt(r, 10) >= parseInt(t, 10)) return;
}
c.setAttribute("data-last-size", r);
let t = document.querySelector(`#${o}-style`);
t ||
((t = document.createElement("style")),
(t.id = `${o}-style`),
document.head.appendChild(t)),
(t.textContent = `#${c.id} { font-size: ${r} !important; }`);
}
}
}
function g() {
c && c.removeAttribute("data-last-size");
const t = document.querySelector(`#${o}-style`);
t && t.parentNode.removeChild(t);
}
function y(t, e) {
return document.defaultView.getComputedStyle(t).getPropertyValue(e);
}
return (
u(),
window.addEventListener("resize", u),
() => {
g(), window.removeEventListener("resize", u);
}
);
};
window.wsb["DynamicFontScaler"](
JSON.parse(
'{"containerId":"tagline-container-11875","targetId":"dynamic-tagline-11876","fontSizes":["xxxlarge","xxlarge","xlarge"],"maxLines":4}'
)
);
window.wsb["DynamicFontScaler"](
JSON.parse(
'{"containerId":"tagline-container-11877","targetId":"dynamic-tagline-11878","fontSizes":["xxxlarge","xxlarge","xlarge"],"maxLines":4}'
)
);
window.wsb["CookieBannerScript"] = function (e) {
let { id: t, acceptCookie: o, dismissCookie: a } = e;
const n = 864e5;
let i, l, r;
function s(e) {
let t =
arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 60;
const o = new Date();
o.setTime(o.getTime() + n * t);
const a = `expires=${o.toUTCString()}`;
document.cookie = `${e}=true;${a};path=/`;
}
function c(e) {
return document.cookie.includes(e);
}
function p() {
l && l.removeEventListener("click", g),
r && r.removeEventListener("click", d),
(i.style.display = "none");
}
function g(e) {
e.preventDefault(), u(), s(a), s(o), p();
}
function d(e) {
var t;
e.preventDefault(),
s(a),
c(o) &&
((t = o),
(document.cookie = `${t}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/`)),
p();
}
function u() {
(window._allowCT = !0),
window._allowCTListener &&
window._allowCTListener.forEach((e) => e());
}
c(o)
? u()
: c(a) ||
setTimeout(() => {
(i = document.getElementById(`${t}-banner`)),
(l = document.getElementById(`${t}-accept`)),
(r = document.getElementById(`${t}-decline`)),
l && l.addEventListener("click", g),
r && r.addEventListener("click", d),
(i.style.transform = "translateY(-500px)");
}, 200);
};
window.wsb["CookieBannerScript"](
JSON.parse(
'{"id":"b49d4509-51e6-4dca-8d68-7b1109a98b41","dismissCookie":"cookie_warning_dismissed","acceptCookie":"cookie_terms_accepted"}'
)
);
document
.getElementById("page-11871")
.addEventListener("click", function () {}, false);
var t = document.createElement("script");
(t.type = "text/javascript"),
t.addEventListener("load", () => {
window.tti.calculateTTI(({ name: t, value: e } = {}) => {
let i = {
wam_site_hasPopupWidget: false,
wam_site_hasMessagingWidget: false,
wam_site_headerTreatment: false,
wam_site_hasSlideshow: false,
wam_site_hasFreemiumBanner: false,
wam_site_businessCategory: "softwarecompany",
wam_site_theme: "layout17",
wam_site_locale: "en-GB",
wam_site_fontPack: "righteous",
wam_site_cookieBannerEnabled: true,
wam_site_membershipEnabled: true,
wam_site_hasHomepageHTML: false,
wam_site_hasHomepageShop: false,
wam_site_hasHomepageOla: false,
wam_site_hasHomepageBlog: false,
wam_site_hasShop: false,
wam_site_hasOla: false,
wam_site_planType: "business",
wam_site_isHomepage: true,
wam_site_htmlWidget: false,
};
window.networkInfo &&
window.networkInfo.downlink &&
(i = Object.assign({}, i, {
["wam_site_networkSpeed"]:
window.networkInfo.downlink.toFixed(2),
})),
window.tti.setCustomProperties(i),
window.tti._collectVitals({ name: t, value: e });
});
}),
t.setAttribute(
"src",
"//img1.wsimg.com/traffic-assets/js/tccl-tti.min.js"
),
document.body.appendChild(t);
</script> -->
<script
type="text/javascript"
src="//img1.wsimg.com/traffic-assets/js/tccl-tti.min.js"
Expand Down

0 comments on commit d88ba70

Please sign in to comment.