Remove free trial popup modal and related JS (scroll trigger, panel, functions)
This commit is contained in:
-76
@@ -477,83 +477,7 @@
|
||||
</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;
|
||||
"
|
||||
>
|
||||
×
|
||||
</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 · 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;
|
||||
"
|
||||
>
|
||||
🔒 Secure · No commitment
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section class="stitle">
|
||||
<div class="container">
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user