MOON
Server: Apache
System: Linux server.netcommlabs.in 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64
User: dermova (1051)
PHP: 5.4.45
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dermova/www/india/wp-content/plugins/rit-core/inc/customize/assets/js/customizer.js
(function ($) {
    "use strict";

    var RIT_Customize_Import_Export = {

        init: function () {
            $('input[name=rit-export-button]').on('click', RIT_Customize_Import_Export._export);
            $('input[name=rit-import-button]').on('click', RIT_Customize_Import_Export._import);
        },

        _export: function () {
            window.location.href = RIT_Customize_Import_Export_Config.customizerURL + '?rit-export=' + RIT_Customize_Import_Export_Config.exportNonce;
        },

        _import: function () {
            var win = $(window),
                body = $('body'),
                form = $('<form class="rit-form" method="POST" enctype="multipart/form-data"></form>'),
                controls = $('.rit-import-controls'),
                file = $('input[name=rit-import-file]'),
                message = $('.rit-uploading');

            if ('' == file.val()) {
                alert(RIT_Customize_Import_Export_l10n.emptyImport);
            } else {
                win.off('beforeunload');
                body.append(form);
                form.append(controls);
                message.show();
                form.submit();
            }
        }
    };

    $(RIT_Customize_Import_Export.init);

})(jQuery);