PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
themes
/
rehub
/
js
/* * Сustomizer Script * @package rehub */ jQuery(document).ready(function($) { 'use strict'; ShowHideFunc( $('#_customize-input-rehub_sticky_nav-radio-0'), $('#_customize-input-rehub_sticky_nav-radio-1'), $('#customize-control-rehub_logo_sticky_url') ); var headerElements = $('#sub-accordion-section-rh_header_settings li'); $('#_customize-input-rehub_header_style option').each(function(){ var optionValue = $(this).val(); if($(this).is(':selected')){ SelectOptionShow(headerElements,optionValue); }else{ SelectOptionHide(headerElements,optionValue); } }); $('#_customize-input-rehub_header_style').on('change', function(){ var $this = $(this); var selectedValue = $this.val(); var options = $this.children(); SelectOptionShow(headerElements,selectedValue); options.each(function(){ var optionValue = $(this).val(); if(selectedValue != optionValue){ SelectOptionHide(headerElements,optionValue); } }); }); function ShowHideFunc(button0,button1,container){ if(button1.is(":checked")){ container.show(); }else{ container.hide(); } button1.click(function(){ container.fadeIn(); }); button0.click(function(){ container.fadeOut(); }); } function SelectOptionShow(elements,option){ elements.each(function(){ var id = $(this).attr('id'), idString = String(id); if(idString.search(String(option)) > 0){ $(this).fadeIn(); } }); } function SelectOptionHide(elements,option){ elements.each(function(){ var id = $(this).attr('id'), idString = String(id); if(idString.search(String(option)) > 0){ $(this).fadeOut(); } }); } }); //END Document.ready
[+]
..
[-] custom.js
[edit]
[-] masonry_init_infauto.js
[edit]
[-] masonry_init_scroll_on_click.js
[edit]
[-] customizer.js
[edit]
[-] masonry_init.js
[edit]
[-] printcoupon.js
[edit]
[-] jquery.justifiedGallery.min.js
[edit]
[-] masonry.pkgd.min.js
[edit]
[-] modulobox.min.js
[edit]
[-] theme-customizer.js
[edit]
[-] video_playlist.js
[edit]
[-] typehead.js
[edit]
[-] jquery.totemticker.js
[edit]
[-] jquery.nouislider.full.min.js
[edit]
[-] affegg_coupons.js
[edit]
[-] jquery.tablesorter.min.js
[edit]
[-] postviews.js
[edit]
[-] jquery.waypoints.min.js
[edit]
[-] meta-boxes-post.js
[edit]
[-] jquery.sticky.js
[edit]
[-] jquery.infinitescroll.min.js
[edit]
[-] comparechart.js
[edit]
[-] custom_floatpanel.js
[edit]
[-] jquery.flexslider-min.js
[edit]
[-] owl.carousel.min.js
[edit]
[-] jquery.carouFredSel-6.2.1-packed.js
[edit]
[-] clipboard.min.js
[edit]
[-] commentplus_re.js
[edit]
[-] imagesloaded.pkgd.min.js
[edit]
[-] nouislider.min.js
[edit]
[-] stickysidebar.js
[edit]
[-] html5shiv.js
[edit]
[-] jquery.touchSwipe.min.js
[edit]
[-] custom_scroll.js
[edit]
[-] jquery.lwtCountdown-1.0.js
[edit]