Added original Vuexy files and cloned focus2 views into vuexy views for its conversion

This commit is contained in:
imnavajas
2023-05-06 13:01:53 +02:00
parent f0772cf1a6
commit ab99ba508b
1240 changed files with 240576 additions and 12 deletions

View File

@ -0,0 +1,39 @@
/**
* Pricing
*/
'use strict';
document.addEventListener('DOMContentLoaded', function (event) {
(function () {
const priceDurationToggler = document.querySelector('.price-duration-toggler'),
priceMonthlyList = [].slice.call(document.querySelectorAll('.price-monthly')),
priceYearlyList = [].slice.call(document.querySelectorAll('.price-yearly'));
function togglePrice() {
if (priceDurationToggler.checked) {
// If checked
priceYearlyList.map(function (yearEl) {
yearEl.classList.remove('d-none');
});
priceMonthlyList.map(function (monthEl) {
monthEl.classList.add('d-none');
});
} else {
// If not checked
priceYearlyList.map(function (yearEl) {
yearEl.classList.add('d-none');
});
priceMonthlyList.map(function (monthEl) {
monthEl.classList.remove('d-none');
});
}
}
// togglePrice Event Listener
togglePrice();
priceDurationToggler.onchange = function () {
togglePrice();
};
})();
});