Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/clinic.corals.io/public/assets/front/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/clinic.corals.io/public/assets/front/js/plugins.pricingswitcher.js
window.scwPricingSwitcherPlugin = window.scwPricingSwitcherPlugin || {};

window.SEMICOLON_pricingSwitcherFn = function (
    checkbox, parent, pricing, defClass, actClass) {
    parent.find('.pts-left,.pts-right').
        removeClass(actClass).
        addClass(defClass);
    pricing.find('.pts-switch-content-left,.pts-switch-content-right').
        addClass('d-none');

    if (checkbox.filter(':checked').length > 0) {
        parent.find('.pts-right').removeClass(defClass).addClass(actClass);
        pricing.find('.pts-switch-content-right').removeClass('d-none');
    } else {
        parent.find('.pts-left').removeClass(defClass).addClass(actClass);
        pricing.find('.pts-switch-content-left').removeClass('d-none');
    }
};

window.SEMICOLON_pricingSwitcherInit = function ($pricingSwitcherEl) {

    $pricingSwitcherEl = $pricingSwitcherEl.filter(':not(.customjs)');

    if ($pricingSwitcherEl.length < 1) {
        return true;
    }

    $pricingSwitcherEl.each(function () {
        var element = $(this),
            elCheck = element.find(':checkbox'),
            elParent = $(this).parents('.pricing-tenure-switcher'),
            elDefClass = $(this).attr('data-default-class') ||
                'text-muted op-05',
            elActClass = $(this).attr('data-active-class') || 'fw-bold',
            elPricing = $(elParent.attr('data-container'));

        console.log(elDefClass);

        SEMICOLON_pricingSwitcherFn(elCheck, elParent, elPricing, elDefClass,
            elActClass);

        elCheck.on('change', function () {
            SEMICOLON_pricingSwitcherFn(elCheck, elParent, elPricing,
                elDefClass, elActClass);
        });
    });

};


Spamworldpro Mini