Remove free trial popup modal and related JS (scroll trigger, panel, functions)

This commit is contained in:
2026-06-24 21:02:36 +00:00
parent 52a9817722
commit 56cbe820a5
2 changed files with 1 additions and 104 deletions
+1 -28
View File
@@ -91,21 +91,7 @@ var si = 0,
});
}
setTimeout(function () {
var blogSection = document.getElementById("blog");
if (blogSection) {
function onBlogScroll() {
var rect = blogSection.getBoundingClientRect();
if (rect.top < window.innerHeight && rect.bottom > 0) {
openTrialWidget();
window.removeEventListener("scroll", onBlogScroll);
}
}
window.addEventListener("scroll", onBlogScroll);
}
}, 3000);
document.querySelectorAll(".tab-btn").forEach(function (b) {
document.querySelectorAll(".tab-btn").forEach(function (b) {
b.addEventListener("click", function () {
document.querySelectorAll(".tab-btn").forEach(function (x) {
x.classList.remove("active");
@@ -130,8 +116,6 @@ var si = 0,
yearlyPrice,
isEmpire,
) {
document.getElementById("orderPanelTrial").style.display =
"none";
document.getElementById("orderPanelBuy").style.display =
"block";
var widget = document.getElementById("orderWidgetOverlay");
@@ -170,17 +154,6 @@ var si = 0,
widget.style.display = "flex";
orderPopupShown = true;
}
function openTrialWidget() {
document.getElementById("orderPanelBuy").style.display = "none";
document.getElementById("orderPanelTrial").style.display =
"block";
document.getElementById("orderWidgetOverlay").style.display =
"flex";
orderPopupShown = true;
}
function switchToBuyPanel() {
openOrderWidget("On the Rise", 36.21, 395.0, false);
}
function closeOrderWidget() {
document.getElementById("orderWidgetOverlay").style.display =
"none";