403Webshell
Server IP : 162.0.217.223  /  Your IP : 216.73.216.150
Web Server : LiteSpeed
System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : mypckeys ( 1539)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mypckeys/www/wp-content/plugins/woocommerce-currency-switcher/js/sd/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mypckeys/www/wp-content/plugins/woocommerce-currency-switcher/js/sd/front.js
'use strict';

window.addEventListener('load', function () {

    let selectrons = document.querySelectorAll('div[data-woocs-sd]');

    if (selectrons.length > 0) {
        Array.from(selectrons).forEach(function (div) {
            div.innerHTML = '';
            let settings = JSON.parse(div.getAttribute('data-woocs-sd'));
            let options = JSON.parse(div.getAttribute('data-woocs-sd-currencies'));

            if (typeof settings.title_value !== 'undefined') {
                options.forEach(function (o, k) {
                    let title = settings.title_value;

                    if (title.length > 0) {
                        title = title.replace(/__CODE__/gi, o.title);
                        title = title.replace(/__SIGN__/gi, o.sign);
                        title = title.replace(/__DESCR__/gi, o.text);
                        options[k].title = title;
                    }
                });
            }

            settings.title_value = '';//!!important

            let data = {
                options: options,
                selected: woocs_current_currency.name,
                width: (settings.width ? settings.width : 500) + 'px',
                imgpos: typeof settings.img_pos !== 'undefined' ? (settings.img_pos ? 'right' : 'left') : 'right',
                max_open_height: settings.max_open_height ? settings.max_open_height : 300
            };

            let selectron = new Selectron23(div, data);
            selectron.applyDesignSettings(settings);

            selectron.onSelect = function () {
                woocs_redirect(this.value);
            };
        });
    }

});


Youez - 2016 - github.com/yon3zu
LinuXploit