Server IP : 172.24.0.40 / Your IP : 216.73.216.10 Web Server : Apache System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64 User : apache ( 48) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/tomas.dbweb26.0621250700/public_html/wp-content/themes/jetblack/js/ |
Upload File : |
/* global jQuery, _jetblackCustomizerReset, ajaxurl, wp */ jQuery(function ($) { var elements = [ ["#customize-save-button-wrapper", "reset-all", "theme-options-reset", "theme-options-reset-main", _jetblackCustomizerReset.confirm, _jetblackCustomizerReset.reset], ["#customize-control-jetblack_gototop_hover_bg_color div.customize-control-content", "colors", "theme-options-colors-reset", "theme-options-reset-section theme-options-reset-colors", _jetblackCustomizerReset.confirmSection, _jetblackCustomizerReset.resetSection] ]; $.each( elements, function( key, value ) { var $container = $( value[0] ); var $button = $('<input type="submit" name="' + value[2] + '" id="' + value[2] + '" class="theme-options-reset ' + value[3] + ' button-secondary button">') .attr('value', value[5]); $button.on('click', function (event) { event.preventDefault(); var data = { wp_customize: 'on', action: 'customizer_reset', nonce: _jetblackCustomizerReset.nonce.reset, section: value[1] }; var r = confirm(value[4]); if (!r) return; $(".spinner").css('visibility', 'visible'); $button.attr('disabled', 'disabled'); $.post(ajaxurl, data, function () { wp.customize.state('saved').set(true); location.reload(); }); }); $container.after($button); }); });