new pricing
This commit is contained in:
@@ -50,8 +50,8 @@
|
|||||||
mutations.forEach(function (m) {
|
mutations.forEach(function (m) {
|
||||||
var card = m.target;
|
var card = m.target;
|
||||||
if (!card.classList.contains('scroll-visible')) return;
|
if (!card.classList.contains('scroll-visible')) return;
|
||||||
|
if (card._oribiAnimated) return;
|
||||||
mo.unobserve(card);
|
card._oribiAnimated = true;
|
||||||
|
|
||||||
// Trigger icon pop ~150ms after the card itself starts fading in.
|
// Trigger icon pop ~150ms after the card itself starts fading in.
|
||||||
// Supports both .feature-icon (feature-cards) and .value-icon (value-cards).
|
// Supports both .feature-icon (feature-cards) and .value-icon (value-cards).
|
||||||
|
|||||||
@@ -744,7 +744,23 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
stages.forEach(function (stage) { io.observe(stage); });
|
stages.forEach(function (stage) { io.observe(stage); });
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Pricing billing toggle ─────────────────────────────── */
|
function startTsSlides(stage) {
|
||||||
|
var slides = stage.querySelectorAll('.ts-slide');
|
||||||
|
if (!slides.length) return;
|
||||||
|
var current = 0;
|
||||||
|
slides[0].classList.add('is-active');
|
||||||
|
stage.classList.add('is-playing');
|
||||||
|
setInterval(function () {
|
||||||
|
slides[current].classList.remove('is-active');
|
||||||
|
current = (current + 1) % slides.length;
|
||||||
|
slides[current].classList.add('is-active');
|
||||||
|
}, 3000);
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
|
||||||
|
/* ── Pricing billing toggle ──────────────────────────────────────────────── */
|
||||||
|
(function () {
|
||||||
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
document.querySelectorAll('.pricing-billing-toggle').forEach(function (toggle) {
|
document.querySelectorAll('.pricing-billing-toggle').forEach(function (toggle) {
|
||||||
toggle.addEventListener('click', function (e) {
|
toggle.addEventListener('click', function (e) {
|
||||||
var btn = e.target.closest('.pbt-option');
|
var btn = e.target.closest('.pbt-option');
|
||||||
@@ -764,17 +780,5 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
function startTsSlides(stage) {
|
}());
|
||||||
var slides = stage.querySelectorAll('.ts-slide');
|
|
||||||
if (!slides.length) return;
|
|
||||||
var current = 0;
|
|
||||||
slides[0].classList.add('is-active');
|
|
||||||
stage.classList.add('is-playing');
|
|
||||||
setInterval(function () {
|
|
||||||
slides[current].classList.remove('is-active');
|
|
||||||
current = (current + 1) % slides.length;
|
|
||||||
slides[current].classList.add('is-active');
|
|
||||||
}, 3000);
|
|
||||||
}
|
|
||||||
})();
|
|
||||||
|
|||||||
Reference in New Issue
Block a user