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
-76
View File
@@ -477,82 +477,6 @@
</div> </div>
</div> </div>
<!-- Free Trial Panel (shown on automatic scroll popup) -->
<div id="orderPanelTrial" style="display: none">
<div
style="
background: #fff;
border-radius: 1rem;
max-width: 460px;
width: 90%;
overflow: hidden;
position: relative;
text-align: center;
"
>
<button
onclick="closeOrderWidget()"
style="
position: absolute;
top: 0.75rem;
right: 0.75rem;
z-index: 10;
background: #fff;
border: none;
width: 2.4rem;
height: 2.4rem;
border-radius: 50%;
cursor: pointer;
font-size: 1.3rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
color: #555;
"
>
&times;
</button>
<div style="padding: 2rem 2rem 1.5rem">
<h2
style="
font-size: clamp(1rem, 2vw, 1.24rem);
margin-bottom: 0.5rem;
color: #1b1319;
"
>
Start your 4 weeks free ODOO 19 trial
</h2>
<p
style="
font-size: 0.8rem;
color: rgba(33, 37, 41, 0.7);
margin-bottom: 1.5rem;
"
>
Credit card required &middot; Cancel anytime
</p>
<a
href="javascript:void(0)"
class="btn btn-primary btn-lg"
onclick="switchToBuyPanel()"
style="
background: #714b67;
border-color: #714b67;
color: #fff;
display: inline-block;
"
>Select a Plan</a
>
<p
style="
font-size: 0.68rem;
color: rgba(33, 37, 41, 0.45);
margin-top: 0.8rem;
"
>
&#128274; Secure &middot; No commitment
</p>
</div>
</div>
</div>
</div> </div>
<section class="stitle"> <section class="stitle">
-27
View File
@@ -91,20 +91,6 @@ 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 () { b.addEventListener("click", function () {
document.querySelectorAll(".tab-btn").forEach(function (x) { document.querySelectorAll(".tab-btn").forEach(function (x) {
@@ -130,8 +116,6 @@ var si = 0,
yearlyPrice, yearlyPrice,
isEmpire, isEmpire,
) { ) {
document.getElementById("orderPanelTrial").style.display =
"none";
document.getElementById("orderPanelBuy").style.display = document.getElementById("orderPanelBuy").style.display =
"block"; "block";
var widget = document.getElementById("orderWidgetOverlay"); var widget = document.getElementById("orderWidgetOverlay");
@@ -170,17 +154,6 @@ var si = 0,
widget.style.display = "flex"; widget.style.display = "flex";
orderPopupShown = true; 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() { function closeOrderWidget() {
document.getElementById("orderWidgetOverlay").style.display = document.getElementById("orderWidgetOverlay").style.display =
"none"; "none";