403Webshell
Server IP : 192.158.238.246  /  Your IP : 18.226.4.129
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/7779/cwd/themes/open-shop/customizer/customizer-scroll/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/7779/cwd/themes/open-shop/customizer/customizer-scroll/js/customizer-addon-script.js
/**
 * Script fort the customizer sections scroll function.
 *
 * @since    1.1.43
 * @package  Open Shop
 *
 * @author  ThemeHunk
 */
/* global wp */
jQuery(document).ready(function() {
var thunk_customizer_section_scroll = function ( $ ) {
	'use strict';
	$( function () {
				var customize = wp.customize;
				customize.preview.bind('clicked-customizer', function( data ) {

						var sectionClass = '';
						    switch (data) {
							case'sub-accordion-section-open_shop_top_slider_section':
							sectionClass = 'section.thunk-slider-section';
							break;
							case'sub-accordion-section-open_shop_category_tab_section':
							sectionClass = 'section.thunk-product-tab-section';
							break;
							case'sub-accordion-section-open_shop_product_slide_section':
							sectionClass = 'section.thunk-product-slide-section';
							break;
							case'sub-accordion-section-open_shop_cat_slide_section':
							sectionClass = 'section.thunk-category-slide-section';
							break;
							case'sub-accordion-section-open_shop_product_slide_list':
							sectionClass = 'section.thunk-product-list-section';
							break;
							case'sub-accordion-section-open_shop_product_cat_list':
							sectionClass = 'section.thunk-product-tab-list-section';
							break;
							case'sub-accordion-section-open_shop_banner':
							sectionClass = 'section.thunk-banner-section';
							break;
							case'sub-accordion-section-open_shop_ribbon':
							sectionClass = 'section.thunk-ribbon-section';
							break;
							case'sub-accordion-section-open_shop_brand':
							sectionClass = 'section.thunk-brand-section';
							break;
							case'sub-accordion-section-open_shop_highlight':
							sectionClass = 'section.thunk-product-highlight-section';
							break;
							case'sub-accordion-section-open_shop_product_big_feature':
							sectionClass = 'section.thunk-feature-product-section';
							break;
							case'sub-accordion-section-open_shop_1_custom_sec':
							sectionClass = 'section.thunk-custom-one-section';
							break;
							case'sub-accordion-section-open_shop_2_custom_sec':
							sectionClass = 'section.thunk-custom-two-section';
							break;
							case'sub-accordion-section-open_shop_3_custom_sec':
							sectionClass = 'section.thunk-custom-three-section';
							break;
							case'sub-accordion-section-open_shop_4_custom_sec':
							sectionClass = 'section.thunk-custom-four-section';
							break;
							default:
							sectionClass = 'section.' + data;
							break;
						}
						if ( $( sectionClass ).length > 0) {
							$( 'html, body' ).animate(
								{
									scrollTop: $(sectionClass).offset().top - 0
								}, 1000
							);
						}
					}
				);
		}
	);
};
thunk_customizer_section_scroll( jQuery );
});

Youez - 2016 - github.com/yon3zu
LinuXploit