- Timestamp:
- 11/15/2022 11:31:39 AM (3 years ago)
- Location:
- sydney/2.15
- Files:
-
- 7 edited
- 1 copied
-
. (copied) (copied from sydney/2.14)
-
functions.php (modified) (1 diff)
-
inc/woocommerce.php (modified) (2 diffs)
-
js/customize-controls.js (modified) (1 diff)
-
js/customize-controls.min.js (modified) (1 diff)
-
js/functions.js (modified) (2 diffs)
-
js/functions.min.js (modified) (1 diff)
-
style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sydney/2.15/functions.php
r177970 r179610 233 233 234 234 if ( !$is_amp ) { 235 wp_enqueue_script( 'sydney-functions', get_template_directory_uri() . '/js/functions.min.js', array(), '2022 0628', true );235 wp_enqueue_script( 'sydney-functions', get_template_directory_uri() . '/js/functions.min.js', array(), '20221115', true ); 236 236 237 237 //Enqueue hero slider script only if the slider is in use -
sydney/2.15/inc/woocommerce.php
r175818 r179610 663 663 function sydney_nav_cart ( $items, $args ) { 664 664 665 if ( get_option( 'sydney-update-header' ) ) { 666 return; 667 } 668 665 669 $swc_show_cart_menu = get_theme_mod('swc_show_cart_menu'); 666 670 if ( $swc_show_cart_menu ) { … … 677 681 */ 678 682 function sydney_woocommerce_account_link( $items, $args ) { 683 684 if ( get_option( 'sydney-update-header' ) ) { 685 return; 686 } 687 679 688 $swc_show_cart_menu = get_theme_mod('swc_show_cart_menu'); 680 689 if ( $swc_show_cart_menu && ( $args -> theme_location == 'primary' ) ) { -
sydney/2.15/js/customize-controls.js
r177097 r179610 87 87 "use strict"; 88 88 89 let clickFlag = false; 90 89 91 $('.sydney-devices-preview').find('button').on('click', function (event) { 90 if ($(this).hasClass('preview-desktop')) { 91 $('.sydney-devices-preview').find('.preview-desktop').addClass('active'); 92 $('.sydney-devices-preview').find('.preview-tablet').removeClass('active'); 93 $('.sydney-devices-preview').find('.preview-mobile').removeClass('active'); 94 $('.font-size-desktop').addClass('active'); 95 $('.font-size-tablet').removeClass('active'); 96 $('.font-size-mobile').removeClass('active'); 97 $('.wp-full-overlay-footer .devices button[data-device="desktop"]').trigger('click'); 98 } else if ($(this).hasClass('preview-tablet')) { 99 $('.sydney-devices-preview').find('.preview-tablet').addClass('active'); 100 $('.sydney-devices-preview').find('.preview-desktop').removeClass('active'); 101 $('.sydney-devices-preview').find('.preview-mobile').removeClass('active'); 102 $('.font-size-desktop').removeClass('active'); 103 $('.font-size-tablet').addClass('active'); 104 $('.font-size-mobile').removeClass('active'); 105 $('.wp-full-overlay-footer .devices button[data-device="tablet"]').trigger('click'); 106 } else { 107 $('.sydney-devices-preview').find('.preview-mobile').addClass('active'); 108 $('.sydney-devices-preview').find('.preview-desktop').removeClass('active'); 109 $('.sydney-devices-preview').find('.preview-tablet').removeClass('active'); 110 $('.font-size-desktop').removeClass('active'); 111 $('.font-size-tablet').removeClass('active'); 112 $('.font-size-mobile').addClass('active'); 113 $('.wp-full-overlay-footer .devices button[data-device="mobile"]').trigger('click'); 114 } 92 if (clickFlag) { 93 clickFlag = false; 94 return false; 95 } 96 97 clickFlag = true; 98 99 let device = ''; 100 if ($(this).hasClass('preview-desktop')) { 101 $('.sydney-devices-preview').find('.preview-desktop').addClass('active'); 102 $('.sydney-devices-preview').find('.preview-tablet').removeClass('active'); 103 $('.sydney-devices-preview').find('.preview-mobile').removeClass('active'); 104 $('.font-size-desktop').addClass('active'); 105 $('.font-size-tablet').removeClass('active'); 106 $('.font-size-mobile').removeClass('active'); 107 $('.wp-full-overlay-footer .devices button[data-device="desktop"]').trigger('click'); 108 } else if ($(this).hasClass('preview-tablet')) { 109 $('.sydney-devices-preview').find('.preview-tablet').addClass('active'); 110 $('.sydney-devices-preview').find('.preview-desktop').removeClass('active'); 111 $('.sydney-devices-preview').find('.preview-mobile').removeClass('active'); 112 $('.font-size-desktop').removeClass('active'); 113 $('.font-size-tablet').addClass('active'); 114 $('.font-size-mobile').removeClass('active'); 115 $('.wp-full-overlay-footer .devices button[data-device="tablet"]').trigger('click'); 116 } else { 117 $('.sydney-devices-preview').find('.preview-mobile').addClass('active'); 118 $('.sydney-devices-preview').find('.preview-desktop').removeClass('active'); 119 $('.sydney-devices-preview').find('.preview-tablet').removeClass('active'); 120 $('.font-size-desktop').removeClass('active'); 121 $('.font-size-tablet').removeClass('active'); 122 $('.font-size-mobile').addClass('active'); 123 $('.wp-full-overlay-footer .devices button[data-device="mobile"]').trigger('click'); 124 } 115 125 }); 116 126 $(' .wp-full-overlay-footer .devices button ').on('click', function () { 117 var device = $(this).attr('data-device'); 118 $('.sydney-devices-preview').find('.preview-' + device).trigger('click'); 127 if (clickFlag) { 128 clickFlag = false; 129 return false; 130 } 131 132 var device = $(this).attr('data-device'); 133 $('.sydney-devices-preview').find('.preview-' + device).trigger('click'); 119 134 }); 120 135 }); -
sydney/2.15/js/customize-controls.min.js
r177097 r179610 1 "use strict";jQuery(document).ready(function( o){var e=o('li[id^="accordion-panel-sydney_panel_cpt_"]');e.first().css("margin-top","10px"),e.last().css("margin-bottom","10px")}),jQuery(document).ready(function(){jQuery('.customize-control-checkbox-multiple input[type="checkbox"]').on("change",function(){checkbox_values=jQuery(this).parents(".customize-control").find('input[type="checkbox"]:checked').map(function(){return this.value}).get().join(","),jQuery(this).parents(".customize-control").find('input[type="hidden"]').val(checkbox_values).trigger("change")})}),jQuery(document).ready(function(o){function e(o){var e={font:o.find(".google-fonts-list").val(),regularweight:o.find(".google-fonts-regularweight-style").val(),category:o.find(".google-fonts-category").val()};o.find(".customize-control-google-font-selection").val(JSON.stringify(e)).trigger("change")}o(".google-fonts-list").each(function(e,t){o(this).hasClass("select2-hidden-accessible")||o(this).select2()}),o(".google-fonts-list").on("change",function(){var t=o(this).parent().parent().find(".google-fonts-regularweight-style"),n=o(this).val(),i=o(this).attr("control-name");t.empty();var r=_wpCustomizeSettings.controls[i],c=o.map(r.sydneyfontslist,function(o,e){if(o.family===n)return e}),a=c[0];o.each(r.sydneyfontslist[a].variants,function(e,n){t.append(o("<option></option>").val(n).html(n)),o(t).find('option[value="regular"]').length>0?o(t).val("regular"):o(t).find('option[value="400"]').length>0?o(t).val("400"):o(t).find('option[value="300"]').length>0&&o(t).val("300")}),o(this).parent().parent().find(".google-fonts-category").val(r.sydneyfontslist[a].category),e(o(this).parent().parent().parent().parent())}),o(".google_fonts_select_control select").on("change",function(){e(o(this).parent().parent().parent().parent())})}),jQuery(document).ready(function(o){o(".sydney-devices-preview").find("button").on("click",function(e){o(this).hasClass("preview-desktop")?(o(".sydney-devices-preview").find(".preview-desktop").addClass("active"),o(".sydney-devices-preview").find(".preview-tablet").removeClass("active"),o(".sydney-devices-preview").find(".preview-mobile").removeClass("active"),o(".font-size-desktop").addClass("active"),o(".font-size-tablet").removeClass("active"),o(".font-size-mobile").removeClass("active"),o('.wp-full-overlay-footer .devices button[data-device="desktop"]').trigger("click")):o(this).hasClass("preview-tablet")?(o(".sydney-devices-preview").find(".preview-tablet").addClass("active"),o(".sydney-devices-preview").find(".preview-desktop").removeClass("active"),o(".sydney-devices-preview").find(".preview-mobile").removeClass("active"),o(".font-size-desktop").removeClass("active"),o(".font-size-tablet").addClass("active"),o(".font-size-mobile").removeClass("active"),o('.wp-full-overlay-footer .devices button[data-device="tablet"]').trigger("click")):(o(".sydney-devices-preview").find(".preview-mobile").addClass("active"),o(".sydney-devices-preview").find(".preview-desktop").removeClass("active"),o(".sydney-devices-preview").find(".preview-tablet").removeClass("active"),o(".font-size-desktop").removeClass("active"),o(".font-size-tablet").removeClass("active"),o(".font-size-mobile").addClass("active"),o('.wp-full-overlay-footer .devices button[data-device="mobile"]').trigger("click"))}),o(" .wp-full-overlay-footer .devices button ").on("click",function(){var e=o(this).attr("data-device");o(".sydney-devices-preview").find(".preview-"+e).trigger("click")})}),jQuery(document).ready(function(o){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n='<div class="repeater" style="display:none"><input type="text" value="'+t+'" class="repeater-input" placeholder="https://" /><span class="dashicons dashicons-menu"></span><a class="customize-control-sortable-repeater-delete" href="#"><span class="dashicons dashicons-no-alt"></span></a></div>';e.find(".sortable").append(n),e.find(".sortable").find(".repeater:last").slideDown("slow",function(){o(this).find("input").focus()})}function t(e){var t=e.find(".repeater-input").map(function(){return o(this).val()}).toArray();e.find(".customize-control-sortable-repeater").val(t),e.find(".customize-control-sortable-repeater").trigger("change")}o(".sydney-sortable_repeater_control").each(function(){var t,n=o(this).find(".customize-control-sortable-repeater").val().split(","),i=n.length;if(i>0&&(o(this).find(".repeater-input").val(n[0]),i>1))for(t=1;t<i;++t)e(o(this),n[t])}),o(this).find(".sydney-sortable_repeater.sortable").sortable({update:function(e,n){t(o(this).parent())}}),o(".sydney-sortable_repeater.sortable").on("click",".customize-control-sortable-repeater-delete",function(e){e.preventDefault();var n=o(this).parent().parent().find(".repeater").length;n>1?o(this).parent().slideUp("fast",function(){var e=o(this).parent().parent();o(this).remove(),t(e)}):(o(this).parent().find(".repeater-input").val(""),t(o(this).parent().parent().parent()))}),o(".customize-control-sortable-repeater-add").click(function(n){n.preventDefault(),e(o(this).parent()),t(o(this).parent())}),o(".sydney-sortable_repeater.sortable").change(function(){t(o(this).parent())}),o(".sydney-sortable_repeater.sortable").on("blur",".repeater-input",function(){var e=o(this),t=e.val();t&&!t.match(/^.+:\/\/.*/)&&e.val("https://"+t).trigger("change")})}),jQuery(document).ready(function(o){function e(o){var e;return o=o.replace(/ /g,""),o.match(/rgba\(\d+\,\d+\,\d+\,([^\)]+)\)/)?(e=100*parseFloat(o.match(/rgba\(\d+\,\d+\,\d+\,([^\)]+)\)/)[1]).toFixed(2),e=parseInt(e)):e=100,e}function t(o,e,t,i){var r,c,a;r=e.data("a8cIris"),c=e.data("wpWpColorPicker"),r._color._alpha=o,a=r._color.toString(),e.val(a),c.toggler.css({"background-color":a}),i&&n(o,t),e.wpColorPicker("color",a)}function n(o,e){e.slider("value",o),e.find(".ui-slider-handle").text(o.toString())}o(".alpha-color-control").each(function(){var i,r,c,a,s,l,d,u,p,f,h;i=o(this),r=i.val().replace(/\s+/g,""),c=i.attr("data-palette"),a=i.attr("data-show-opacity"),s=i.attr("data-default-color"),l=-1!==c.indexOf("|")?c.split("|"):"false"!=c,d={change:function(o,t){var n,r,c,a;n=i.attr("data-customize-setting-link"),r=i.wpColorPicker("color"),s==r&&(c=e(r),p.find(".ui-slider-handle").text(c)),wp.customize(n,function(o){o.set(r)}),a=u.find(".transparency"),a.css("background-color",t.color.toString("no-alpha"))},palettes:l},i.wpColorPicker(d),u=i.parents(".wp-picker-container:first"),o('<div class="alpha-color-picker-container"><div class="min-click-zone click-zone"></div><div class="max-click-zone click-zone"></div><div class="alpha-slider"></div><div class="transparency"></div></div>').appendTo(u.find(".wp-picker-holder")),p=u.find(".alpha-slider"),f=e(r),h={create:function(e,t){var n=o(this).slider("value");o(this).find(".ui-slider-handle").text(n),o(this).siblings(".transparency ").css("background-color",r)},value:f,range:"max",step:1,min:0,max:100,animate:300},p.slider(h),"true"==a&&p.find(".ui-slider-handle").addClass("show-opacity"),u.find(".min-click-zone").on("click",function(){t(0,i,p,!0)}),u.find(".max-click-zone").on("click",function(){t(100,i,p,!0)}),u.find(".iris-palette").on("click",function(){var t,r;t=o(this).css("background-color"),r=e(t),n(r,p),100!=r&&(t=t.replace(/[^,]+(?=\))/,(r/100).toFixed(2))),i.wpColorPicker("color",t)}),u.find(".button.wp-picker-clear").on("click",function(){var o=i.attr("data-customize-setting-link");i.wpColorPicker("color","#ffffff"),wp.customize(o,function(o){o.set("")}),n(100,p)}),u.find(".button.wp-picker-default").on("click",function(){var o=e(s);n(o,p)}),i.on("input",function(){var t=o(this).val(),i=e(t);n(i,p)}),p.slider().on("slide",function(e,n){var r=parseFloat(n.value)/100;t(r,i,p,!1),o(this).find(".ui-slider-handle").text(n.value)})}),Color.prototype.toString=function(o){if("no-alpha"==o)return this.toCSS("rgba","1").replace(/\s+/g,"");if(1>this._alpha)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var e=parseInt(this._color,10).toString(16);if(this.error)return"";if(e.length<6)for(var t=6-e.length-1;t>=0;t--)e="0"+e;return"#"+e}}),jQuery(document).ready(function(o){o(".customize-control-sydney-tab-control").each(function(){o(this).parent().find("li").not(".section-meta").not(".customize-control-sydney-tab-control").addClass("sydney-hide-control");var e=o(this).find(".control-tab-general").data("connected");o.each(e,function(e,t){o(this).removeClass("sydney-hide-control")}),o(this).find(".control-tab").on("click",function(){var e=o(this).data("connected");o(this).addClass("active"),o(this).siblings().removeClass("active"),o(this).parent().parent().parent().find("li").not(".section-meta").not(".customize-control-sydney-tab-control").addClass("sydney-hide-control"),o.each(e,function(e,t){o(this).removeClass("sydney-hide-control")})})})}),jQuery(document).ready(function(o){o(".customize-control-tinymce-editor").each(function(){var e=_wpCustomizeSettings.controls[o(this).attr("id")].sydneytb1,t=_wpCustomizeSettings.controls[o(this).attr("id")].sydneytb2;_wpCustomizeSettings.controls[o(this).attr("id")].sydneytmb;wp.editor.initialize(o(this).attr("id"),{tinymce:{wpautop:!0,toolbar1:e,toolbar2:t},quicktags:!0,mediaButtons:!0})}),o(document).on("tinymce-editor-init",function(e,t){t.on("change",function(e){tinyMCE.triggerSave(),o("#"+t.id).trigger("change")})})}),jQuery(document).ready(function(o){function e(e){"3"===o(e).val()||"col3-bigleft"===o(e).val()||"col3-bigright"===o(e).val()?(o(".footer-widget-area-link-1, .footer-widget-area-link-2, .footer-widget-area-link-3").show(),o(".footer-widget-area-link-4").hide()):"4"===o(e).val()||"col4-bigleft"===o(e).val()||"col4-bigright"===o(e).val()?o(".footer-widget-area-link-1, .footer-widget-area-link-2, .footer-widget-area-link-3, .footer-widget-area-link-4").show():"2"===o(e).val()||"col2-bigleft"===o(e).val()||"col2-bigright"===o(e).val()?(o(".footer-widget-area-link-1, .footer-widget-area-link-2").show(),o(".footer-widget-area-link-4, .footer-widget-area-link-3").hide()):"1"===o(e).val()?(o(".footer-widget-area-link-1").show(),o(".footer-widget-area-link-4, .footer-widget-area-link-2, .footer-widget-area-link-3").hide()):o(".footer-widget-area-link-1, .footer-widget-area-link-2, .footer-widget-area-link-3, .footer-widget-area-link-4").hide()}var t=o("#customize-control-footer_widget_areas").find("input:checked");e(t),o("#customize-control-footer_widget_areas").find("input").change(function(){e(o(this))})}),wp.customize("color_palettes",function(o){var e=jQuery("#customize-control-color_palettes").find(".radio-buttons").data("palettes");o.bind(function(){for(var t=o.get(),n=["custom_color1","scrolltop_bg_color","button_background_color","button_border_color","color_link_default"],i=0,r=n;i<r.length;i++){var c=r[i];wp.customize(c).set(e[t][0]),jQuery("#customize-control-"+c).find(".wp-color-result").css("background-color",e[t][0])}for(var a=["custom_color2","footer_widgets_links_hover_color","scrolltop_bg_color_hover","button_background_color_hover","button_border_color_hover","color_link_hover"],s=0,l=a;s<l.length;s++){var d=l[s];wp.customize(d).set(e[t][1]),jQuery("#customize-control-"+d).find(".wp-color-result").css("background-color",e[t][1])}for(var u=["single_post_title_color","custom_color3","main_header_submenu_color","offcanvas_menu_color","mobile_header_color","footer_widgets_title_color","single_product_title_color","color_forms_text","shop_product_product_title","loop_post_meta_color","loop_post_title_color","main_header_color","site_title_color","site_description_color","color_heading_1","color_heading_2","color_heading_3","color_heading_4","color_heading_5","color_heading_6"],p=0,f=u;p<f.length;p++){var h=f[p];wp.customize(h).set(e[t][2]),jQuery("#customize-control-"+h).find(".wp-color-result").css("background-color",e[t][2])}for(var v=["custom_color4","footer_widgets_links_color","footer_widgets_text_color","color_body_text","footer_credits_text_color","color_forms_placeholder"],_=0,y=v;_<y.length;_++){var m=y[_];wp.customize(m).set(e[t][3]),jQuery("#customize-control-"+m).find(".wp-color-result").css("background-color",e[t][3])}for(var g=["custom_color5","color_forms_borders"],b=0,w=g;b<w.length;b++){var k=w[b];wp.customize(k).set(e[t][4]),jQuery("#customize-control-"+k).find(".wp-color-result").css("background-color",e[t][4])}for(var z=["custom_color6","footer_widgets_background","footer_credits_background","content_cards_background"],C=0,j=z;C<j.length;C++){var x=j[C];wp.customize(x).set(e[t][5]),jQuery("#customize-control-"+x).find(".wp-color-result").css("background-color",e[t][5])}for(var Q=["custom_color7","background_color","button_color","button_color_hover","scrolltop_color","scrolltop_color_hover","color_forms_background"],S=0,T=Q;S<T.length;S++){var D=T[S];wp.customize(D).set(e[t][6]),jQuery("#customize-control-"+D).find(".wp-color-result").css("background-color",e[t][6])}for(var O=["custom_color8","main_header_submenu_background","main_header_background","main_header_bottom_background","mobile_header_background","offcanvas_menu_background"],P=0,F=O;P<F.length;P++){var H=F[P];wp.customize(H).set(e[t][7]),jQuery("#customize-control-"+H).find(".wp-color-result").css("background-color",e[t][7])}})}),wp.customize.bind("ready",function(){wp.customize("custom_color1",function(o){o.bind(function(o){for(var e=["scrolltop_bg_color","button_background_color","button_border_color","color_link_default"],t=0,n=e;t<n.length;t++){var i=n[t];wp.customize(i).set(o),jQuery("#customize-control-"+i).find(".wp-color-result").css("background-color",o)}})}),wp.customize("custom_color2",function(o){o.bind(function(o){for(var e=["footer_widgets_links_hover_color","scrolltop_bg_color_hover","button_background_color_hover","button_border_color_hover","color_link_hover"],t=0,n=e;t<n.length;t++){var i=n[t];wp.customize(i).set(o),jQuery("#customize-control-"+i).find(".wp-color-result").css("background-color",o)}})}),wp.customize("custom_color3",function(o){o.bind(function(o){for(var e=["main_header_submenu_color","offcanvas_menu_color","mobile_header_color","footer_widgets_title_color","single_product_title_color","color_forms_text","shop_product_product_title","loop_post_meta_color","loop_post_title_color","main_header_color","site_title_color","site_description_color","color_heading_1","color_heading_2","color_heading_3","color_heading_4","color_heading_5","color_heading_6"],t=0,n=e;t<n.length;t++){var i=n[t];wp.customize(i).set(o),jQuery("#customize-control-"+i).find(".wp-color-result").css("background-color",o)}})}),wp.customize("custom_color4",function(o){o.bind(function(o){for(var e=["footer_widgets_links_color","footer_widgets_text_color","color_body_text","footer_credits_text_color","color_forms_placeholder"],t=0,n=e;t<n.length;t++){var i=n[t];wp.customize(i).set(o),jQuery("#customize-control-"+i).find(".wp-color-result").css("background-color",o)}})}),wp.customize("custom_color5",function(o){o.bind(function(o){for(var e=["color_forms_borders"],t=0,n=e;t<n.length;t++){var i=n[t];wp.customize(i).set(o),jQuery("#customize-control-"+i).find(".wp-color-result").css("background-color",o)}})}),wp.customize("custom_color6",function(o){o.bind(function(o){for(var e=["footer_widgets_background","footer_credits_background","content_cards_background"],t=0,n=e;t<n.length;t++){var i=n[t];wp.customize(i).set(o),jQuery("#customize-control-"+i).find(".wp-color-result").css("background-color",o)}})}),wp.customize("custom_color7",function(o){o.bind(function(o){for(var e=["background_color","button_color","button_color_hover","scrolltop_color","scrolltop_color_hover","color_forms_background"],t=0,n=e;t<n.length;t++){var i=n[t];wp.customize(i).set(o),jQuery("#customize-control-"+i).find(".wp-color-result").css("background-color",o)}})}),wp.customize("custom_color8",function(o){o.bind(function(o){for(var e=["main_header_submenu_background","main_header_background","main_header_bottom_background","mobile_header_background","offcanvas_menu_background"],t=0,n=e;t<n.length;t++){var i=n[t];wp.customize(i).set(o),jQuery("#customize-control-"+i).find(".wp-color-result").css("background-color",o)}})})}),wp.customize.bind("ready",function(){wp.customize.control("custom_palette",function(o){var e=wp.customize("custom_palette_toggle");e.bind(function(e){o.active.set(e)})})}),jQuery(document).ready(function(o){o(".wp-picker-input-wrap").each(function(){o(this).prependTo(o(this).next(".wp-picker-holder"))})}),jQuery(document).ready(function(o){var e=o(".saved-palette");o(".saved-palette").on("click",function(){o(".palette-radio-buttons").toggleClass("open")}),o(".palette-radio-buttons").find(".palette").on("click",function(){e.empty(),o(".palette-radio-buttons").removeClass("open");var t=o(this).parent().clone();t.unwrap().appendTo(e).find("input").remove()})}),jQuery(document).ready(function(o){var e={init:function(){this.firstTime=!0,this.initialized||this.events(),this.initialized=!0},events:function(){var e=this;return o(document).on("click",".sydney-accordion-title",function(){var t=o(this);o(this).hasClass("expanded")&&(e.showOrHide(o(this),"hide"),o(this).removeClass("expanded").addClass("collapse"),setTimeout(function(){t.removeClass("collapse")},300)),o(this).hasClass("collapse")||(o(".sydney-accordion-item").addClass("sydney-accordion-hide"),o(".sydney-accordion-title").removeClass("expanded"),e.showOrHide(o(this),"show"),t.addClass("expanded"))}),o(document).on("click",".control-section",function(t){var n=o(".control-section.open");e.firstTime&&n.find(".sydney-accordion-title").length&&n.find(".sydney-accordion-title").each(function(){e.showOrHide(o(this),"hide"),o(this).removeClass("expanded"),e.firstTime=!1})}),o(document).on("click",".customize-section-back",function(){e.firstTime=!0}),this},showOrHide:function(e,t){var n="";n=e.closest(".customize-control").next();var i=[];if(n.attr("id")=="customize-control-"+e.data("until"))i.push(n[0].id);else for(;n.attr("id")!="customize-control-"+e.data("until");)i.push(n[0].id),n=n.next();i.length>=1&&i.push(n[0].id);for(var r=0;r<i.length;r++)o("#"+i[r]).addClass("sydney-accordion-item active"),"hide"==t?o("#"+i[r]).addClass("sydney-accordion-hide"):o("#"+i[r]).removeClass("sydney-accordion-hide"),0==r&&o("#"+i[r]).addClass("sydney-accordion-first-item"),(r==i.length-1&&i.length>1||1==i.length)&&o("#"+i[r]).addClass("sydney-accordion-last-item");return this}};o(document).ready(function(){e.init()})}),jQuery(document).ready(function(o){o(".customize-control-sydney-toggle-control").each(function(){o(this).find("label").on("keydown",function(e){var t="Enter"===e.key||13===e.keyCode;t&&o(this).click()})}),o(".customize-control-sydney-radio-buttons").each(function(){o(this).find("label").on("keydown",function(e){var t="Enter"===e.key||13===e.keyCode;t&&o(this).click()})})}),jQuery(document).ready(function(o){o(document).on("sydney-display-conditions-select2-initalize",function(e,t){var n=o(t),i=(n.closest(".sydney-display-conditions-control"),n.find(".sydney-display-conditions-select2-type")),r=i.find("select"),c=n.find(".sydney-display-conditions-select2-condition"),a=c.find("select"),s=n.find(".sydney-display-conditions-select2-id"),l=s.find("select");r.select2({width:"100%",minimumResultsForSearch:-1}),r.on("select2:select",function(o){i.attr("data-type",o.params.data.id)}),a.select2({width:"100%"}),a.on("select2:select",function(e){var t=o(e.params.data.element);t.data("ajax")?s.removeClass("hidden"):s.addClass("hidden"),l.val(null).trigger("change")});var d=a.find(":selected").data("ajax");d&&s.removeClass("hidden"),l.select2({width:"100%",placeholder:"",allowClear:!0,minimumInputLength:1,ajax:{url:ajaxurl,dataType:"json",delay:250,cache:!0,data:function(o){return{action:"sydney_display_conditions_select_ajax",term:o.term,nonce:syd_data.ajax_nonce,source:a.val()}},processResults:function(o,e){return o.success?{results:o.data}:{}}}})}),o(document).on("click",".sydney-display-conditions-modal-toggle",function(e){e.preventDefault();var t=o(this),n=wp.template("sydney-display-conditions-template"),i=t.closest(".sydney-display-conditions-control"),r=i.find(".sydney-display-conditions-modal");if(r.data("initialized"))r.toggleClass("open");else{i.append(n(i.data("condition-settings")));var c=i.find(".sydney-display-conditions-modal-content-list-item").not(".hidden");c.length&&c.each(function(){o(document).trigger("sydney-display-conditions-select2-initalize",this)}),r=i.find(".sydney-display-conditions-modal"),r.data("initialized",!0),r.addClass("open")}}),o(document).on("click",".sydney-display-conditions-modal",function(e){e.preventDefault();var t=o(this);o(e.target).is(t)&&t.removeClass("open")}),o(document).on("click",".sydney-display-conditions-modal-add",function(e){e.preventDefault();var t=o(this),n=t.closest(".sydney-display-conditions-control"),i=n.find(".sydney-display-conditions-modal"),r=i.find(".sydney-display-conditions-modal-content-list"),c=i.find(".sydney-display-conditions-modal-content-list-item").first().clone(),a=t.data("condition-group");c.removeClass("hidden"),c.find(".sydney-display-conditions-select2-condition").not('[data-condition-group="'+a+'"]').remove(),r.append(c),o(document).trigger("sydney-display-conditions-select2-initalize",c)}),o(document).on("click",".sydney-display-conditions-modal-remove",function(e){e.preventDefault();var t=o(this).closest(".sydney-display-conditions-modal-content-list-item");t.remove()}),o(document).on("click",".sydney-display-conditions-modal-save",function(e){e.preventDefault();var t=[],n=o(this),i=n.closest(".sydney-display-conditions-control"),r=i.find(".sydney-display-conditions-modal"),c=i.find(".sydney-display-conditions-textarea"),a=r.find(".sydney-display-conditions-modal-content-list-item").not(".hidden");a.each(function(){var e=o(this);t.push({type:e.find('select[name="type"]').val(),condition:e.find('select[name="condition"]').val(),id:e.find('select[name="id"]').val()})}),c.val(JSON.stringify(t)).trigger("change")})});1 "use strict";jQuery(document).ready(function(e){var o=e('li[id^="accordion-panel-sydney_panel_cpt_"]');o.first().css("margin-top","10px"),o.last().css("margin-bottom","10px")}),jQuery(document).ready(function(){jQuery('.customize-control-checkbox-multiple input[type="checkbox"]').on("change",function(){checkbox_values=jQuery(this).parents(".customize-control").find('input[type="checkbox"]:checked').map(function(){return this.value}).get().join(","),jQuery(this).parents(".customize-control").find('input[type="hidden"]').val(checkbox_values).trigger("change")})}),jQuery(document).ready(function(e){function o(e){var o={font:e.find(".google-fonts-list").val(),regularweight:e.find(".google-fonts-regularweight-style").val(),category:e.find(".google-fonts-category").val()};e.find(".customize-control-google-font-selection").val(JSON.stringify(o)).trigger("change")}e(".google-fonts-list").each(function(o,t){e(this).hasClass("select2-hidden-accessible")||e(this).select2()}),e(".google-fonts-list").on("change",function(){var t=e(this).parent().parent().find(".google-fonts-regularweight-style"),n=e(this).val(),i=e(this).attr("control-name");t.empty();var r=_wpCustomizeSettings.controls[i],c=e.map(r.sydneyfontslist,function(e,o){if(e.family===n)return o}),a=c[0];e.each(r.sydneyfontslist[a].variants,function(o,n){t.append(e("<option></option>").val(n).html(n)),e(t).find('option[value="regular"]').length>0?e(t).val("regular"):e(t).find('option[value="400"]').length>0?e(t).val("400"):e(t).find('option[value="300"]').length>0&&e(t).val("300")}),e(this).parent().parent().find(".google-fonts-category").val(r.sydneyfontslist[a].category),o(e(this).parent().parent().parent().parent())}),e(".google_fonts_select_control select").on("change",function(){o(e(this).parent().parent().parent().parent())})}),jQuery(document).ready(function(e){let o=!1;e(".sydney-devices-preview").find("button").on("click",function(t){if(o)return o=!1,!1;o=!0;e(this).hasClass("preview-desktop")?(e(".sydney-devices-preview").find(".preview-desktop").addClass("active"),e(".sydney-devices-preview").find(".preview-tablet").removeClass("active"),e(".sydney-devices-preview").find(".preview-mobile").removeClass("active"),e(".font-size-desktop").addClass("active"),e(".font-size-tablet").removeClass("active"),e(".font-size-mobile").removeClass("active"),e('.wp-full-overlay-footer .devices button[data-device="desktop"]').trigger("click")):e(this).hasClass("preview-tablet")?(e(".sydney-devices-preview").find(".preview-tablet").addClass("active"),e(".sydney-devices-preview").find(".preview-desktop").removeClass("active"),e(".sydney-devices-preview").find(".preview-mobile").removeClass("active"),e(".font-size-desktop").removeClass("active"),e(".font-size-tablet").addClass("active"),e(".font-size-mobile").removeClass("active"),e('.wp-full-overlay-footer .devices button[data-device="tablet"]').trigger("click")):(e(".sydney-devices-preview").find(".preview-mobile").addClass("active"),e(".sydney-devices-preview").find(".preview-desktop").removeClass("active"),e(".sydney-devices-preview").find(".preview-tablet").removeClass("active"),e(".font-size-desktop").removeClass("active"),e(".font-size-tablet").removeClass("active"),e(".font-size-mobile").addClass("active"),e('.wp-full-overlay-footer .devices button[data-device="mobile"]').trigger("click"))}),e(" .wp-full-overlay-footer .devices button ").on("click",function(){if(o)return o=!1,!1;var t=e(this).attr("data-device");e(".sydney-devices-preview").find(".preview-"+t).trigger("click")})}),jQuery(document).ready(function(e){function o(o){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n='<div class="repeater" style="display:none"><input type="text" value="'+t+'" class="repeater-input" placeholder="https://" /><span class="dashicons dashicons-menu"></span><a class="customize-control-sortable-repeater-delete" href="#"><span class="dashicons dashicons-no-alt"></span></a></div>';o.find(".sortable").append(n),o.find(".sortable").find(".repeater:last").slideDown("slow",function(){e(this).find("input").focus()})}function t(o){var t=o.find(".repeater-input").map(function(){return e(this).val()}).toArray();o.find(".customize-control-sortable-repeater").val(t),o.find(".customize-control-sortable-repeater").trigger("change")}e(".sydney-sortable_repeater_control").each(function(){var t,n=e(this).find(".customize-control-sortable-repeater").val().split(","),i=n.length;if(i>0&&(e(this).find(".repeater-input").val(n[0]),i>1))for(t=1;t<i;++t)o(e(this),n[t])}),e(this).find(".sydney-sortable_repeater.sortable").sortable({update:function(o,n){t(e(this).parent())}}),e(".sydney-sortable_repeater.sortable").on("click",".customize-control-sortable-repeater-delete",function(o){o.preventDefault();var n=e(this).parent().parent().find(".repeater").length;n>1?e(this).parent().slideUp("fast",function(){var o=e(this).parent().parent();e(this).remove(),t(o)}):(e(this).parent().find(".repeater-input").val(""),t(e(this).parent().parent().parent()))}),e(".customize-control-sortable-repeater-add").click(function(n){n.preventDefault(),o(e(this).parent()),t(e(this).parent())}),e(".sydney-sortable_repeater.sortable").change(function(){t(e(this).parent())}),e(".sydney-sortable_repeater.sortable").on("blur",".repeater-input",function(){var o=e(this),t=o.val();t&&!t.match(/^.+:\/\/.*/)&&o.val("https://"+t).trigger("change")})}),jQuery(document).ready(function(e){function o(e){var o;return e=e.replace(/ /g,""),e.match(/rgba\(\d+\,\d+\,\d+\,([^\)]+)\)/)?(o=100*parseFloat(e.match(/rgba\(\d+\,\d+\,\d+\,([^\)]+)\)/)[1]).toFixed(2),o=parseInt(o)):o=100,o}function t(e,o,t,i){var r,c,a;r=o.data("a8cIris"),c=o.data("wpWpColorPicker"),r._color._alpha=e,a=r._color.toString(),o.val(a),c.toggler.css({"background-color":a}),i&&n(e,t),o.wpColorPicker("color",a)}function n(e,o){o.slider("value",e),o.find(".ui-slider-handle").text(e.toString())}e(".alpha-color-control").each(function(){var i,r,c,a,s,l,d,u,p,f,h;i=e(this),r=i.val().replace(/\s+/g,""),c=i.attr("data-palette"),a=i.attr("data-show-opacity"),s=i.attr("data-default-color"),l=-1!==c.indexOf("|")?c.split("|"):"false"!=c,d={change:function(e,t){var n,r,c,a;n=i.attr("data-customize-setting-link"),r=i.wpColorPicker("color"),s==r&&(c=o(r),p.find(".ui-slider-handle").text(c)),wp.customize(n,function(e){e.set(r)}),a=u.find(".transparency"),a.css("background-color",t.color.toString("no-alpha"))},palettes:l},i.wpColorPicker(d),u=i.parents(".wp-picker-container:first"),e('<div class="alpha-color-picker-container"><div class="min-click-zone click-zone"></div><div class="max-click-zone click-zone"></div><div class="alpha-slider"></div><div class="transparency"></div></div>').appendTo(u.find(".wp-picker-holder")),p=u.find(".alpha-slider"),f=o(r),h={create:function(o,t){var n=e(this).slider("value");e(this).find(".ui-slider-handle").text(n),e(this).siblings(".transparency ").css("background-color",r)},value:f,range:"max",step:1,min:0,max:100,animate:300},p.slider(h),"true"==a&&p.find(".ui-slider-handle").addClass("show-opacity"),u.find(".min-click-zone").on("click",function(){t(0,i,p,!0)}),u.find(".max-click-zone").on("click",function(){t(100,i,p,!0)}),u.find(".iris-palette").on("click",function(){var t,r;t=e(this).css("background-color"),r=o(t),n(r,p),100!=r&&(t=t.replace(/[^,]+(?=\))/,(r/100).toFixed(2))),i.wpColorPicker("color",t)}),u.find(".button.wp-picker-clear").on("click",function(){var e=i.attr("data-customize-setting-link");i.wpColorPicker("color","#ffffff"),wp.customize(e,function(e){e.set("")}),n(100,p)}),u.find(".button.wp-picker-default").on("click",function(){var e=o(s);n(e,p)}),i.on("input",function(){var t=e(this).val(),i=o(t);n(i,p)}),p.slider().on("slide",function(o,n){var r=parseFloat(n.value)/100;t(r,i,p,!1),e(this).find(".ui-slider-handle").text(n.value)})}),Color.prototype.toString=function(e){if("no-alpha"==e)return this.toCSS("rgba","1").replace(/\s+/g,"");if(1>this._alpha)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var o=parseInt(this._color,10).toString(16);if(this.error)return"";if(o.length<6)for(var t=6-o.length-1;t>=0;t--)o="0"+o;return"#"+o}}),jQuery(document).ready(function(e){e(".customize-control-sydney-tab-control").each(function(){e(this).parent().find("li").not(".section-meta").not(".customize-control-sydney-tab-control").addClass("sydney-hide-control");var o=e(this).find(".control-tab-general").data("connected");e.each(o,function(o,t){e(this).removeClass("sydney-hide-control")}),e(this).find(".control-tab").on("click",function(){var o=e(this).data("connected");e(this).addClass("active"),e(this).siblings().removeClass("active"),e(this).parent().parent().parent().find("li").not(".section-meta").not(".customize-control-sydney-tab-control").addClass("sydney-hide-control"),e.each(o,function(o,t){e(this).removeClass("sydney-hide-control")})})})}),jQuery(document).ready(function(e){e(".customize-control-tinymce-editor").each(function(){var o=_wpCustomizeSettings.controls[e(this).attr("id")].sydneytb1,t=_wpCustomizeSettings.controls[e(this).attr("id")].sydneytb2;_wpCustomizeSettings.controls[e(this).attr("id")].sydneytmb;wp.editor.initialize(e(this).attr("id"),{tinymce:{wpautop:!0,toolbar1:o,toolbar2:t},quicktags:!0,mediaButtons:!0})}),e(document).on("tinymce-editor-init",function(o,t){t.on("change",function(o){tinyMCE.triggerSave(),e("#"+t.id).trigger("change")})})}),jQuery(document).ready(function(e){function o(o){"3"===e(o).val()||"col3-bigleft"===e(o).val()||"col3-bigright"===e(o).val()?(e(".footer-widget-area-link-1, .footer-widget-area-link-2, .footer-widget-area-link-3").show(),e(".footer-widget-area-link-4").hide()):"4"===e(o).val()||"col4-bigleft"===e(o).val()||"col4-bigright"===e(o).val()?e(".footer-widget-area-link-1, .footer-widget-area-link-2, .footer-widget-area-link-3, .footer-widget-area-link-4").show():"2"===e(o).val()||"col2-bigleft"===e(o).val()||"col2-bigright"===e(o).val()?(e(".footer-widget-area-link-1, .footer-widget-area-link-2").show(),e(".footer-widget-area-link-4, .footer-widget-area-link-3").hide()):"1"===e(o).val()?(e(".footer-widget-area-link-1").show(),e(".footer-widget-area-link-4, .footer-widget-area-link-2, .footer-widget-area-link-3").hide()):e(".footer-widget-area-link-1, .footer-widget-area-link-2, .footer-widget-area-link-3, .footer-widget-area-link-4").hide()}var t=e("#customize-control-footer_widget_areas").find("input:checked");o(t),e("#customize-control-footer_widget_areas").find("input").change(function(){o(e(this))})}),wp.customize("color_palettes",function(e){var o=jQuery("#customize-control-color_palettes").find(".radio-buttons").data("palettes");e.bind(function(){for(var t=e.get(),n=["custom_color1","scrolltop_bg_color","button_background_color","button_border_color","color_link_default"],i=0,r=n;i<r.length;i++){var c=r[i];wp.customize(c).set(o[t][0]),jQuery("#customize-control-"+c).find(".wp-color-result").css("background-color",o[t][0])}for(var a=["custom_color2","footer_widgets_links_hover_color","scrolltop_bg_color_hover","button_background_color_hover","button_border_color_hover","color_link_hover"],s=0,l=a;s<l.length;s++){var d=l[s];wp.customize(d).set(o[t][1]),jQuery("#customize-control-"+d).find(".wp-color-result").css("background-color",o[t][1])}for(var u=["single_post_title_color","custom_color3","main_header_submenu_color","offcanvas_menu_color","mobile_header_color","footer_widgets_title_color","single_product_title_color","color_forms_text","shop_product_product_title","loop_post_meta_color","loop_post_title_color","main_header_color","site_title_color","site_description_color","color_heading_1","color_heading_2","color_heading_3","color_heading_4","color_heading_5","color_heading_6"],p=0,f=u;p<f.length;p++){var h=f[p];wp.customize(h).set(o[t][2]),jQuery("#customize-control-"+h).find(".wp-color-result").css("background-color",o[t][2])}for(var v=["custom_color4","footer_widgets_links_color","footer_widgets_text_color","color_body_text","footer_credits_text_color","color_forms_placeholder"],_=0,y=v;_<y.length;_++){var m=y[_];wp.customize(m).set(o[t][3]),jQuery("#customize-control-"+m).find(".wp-color-result").css("background-color",o[t][3])}for(var g=["custom_color5","color_forms_borders"],b=0,w=g;b<w.length;b++){var k=w[b];wp.customize(k).set(o[t][4]),jQuery("#customize-control-"+k).find(".wp-color-result").css("background-color",o[t][4])}for(var z=["custom_color6","footer_widgets_background","footer_credits_background","content_cards_background"],C=0,j=z;C<j.length;C++){var x=j[C];wp.customize(x).set(o[t][5]),jQuery("#customize-control-"+x).find(".wp-color-result").css("background-color",o[t][5])}for(var Q=["custom_color7","background_color","button_color","button_color_hover","scrolltop_color","scrolltop_color_hover","color_forms_background"],S=0,T=Q;S<T.length;S++){var D=T[S];wp.customize(D).set(o[t][6]),jQuery("#customize-control-"+D).find(".wp-color-result").css("background-color",o[t][6])}for(var O=["custom_color8","main_header_submenu_background","main_header_background","main_header_bottom_background","mobile_header_background","offcanvas_menu_background"],P=0,F=O;P<F.length;P++){var H=F[P];wp.customize(H).set(o[t][7]),jQuery("#customize-control-"+H).find(".wp-color-result").css("background-color",o[t][7])}})}),wp.customize.bind("ready",function(){wp.customize("custom_color1",function(e){e.bind(function(e){for(var o=["scrolltop_bg_color","button_background_color","button_border_color","color_link_default"],t=0,n=o;t<n.length;t++){var i=n[t];wp.customize(i).set(e),jQuery("#customize-control-"+i).find(".wp-color-result").css("background-color",e)}})}),wp.customize("custom_color2",function(e){e.bind(function(e){for(var o=["footer_widgets_links_hover_color","scrolltop_bg_color_hover","button_background_color_hover","button_border_color_hover","color_link_hover"],t=0,n=o;t<n.length;t++){var i=n[t];wp.customize(i).set(e),jQuery("#customize-control-"+i).find(".wp-color-result").css("background-color",e)}})}),wp.customize("custom_color3",function(e){e.bind(function(e){for(var o=["main_header_submenu_color","offcanvas_menu_color","mobile_header_color","footer_widgets_title_color","single_product_title_color","color_forms_text","shop_product_product_title","loop_post_meta_color","loop_post_title_color","main_header_color","site_title_color","site_description_color","color_heading_1","color_heading_2","color_heading_3","color_heading_4","color_heading_5","color_heading_6"],t=0,n=o;t<n.length;t++){var i=n[t];wp.customize(i).set(e),jQuery("#customize-control-"+i).find(".wp-color-result").css("background-color",e)}})}),wp.customize("custom_color4",function(e){e.bind(function(e){for(var o=["footer_widgets_links_color","footer_widgets_text_color","color_body_text","footer_credits_text_color","color_forms_placeholder"],t=0,n=o;t<n.length;t++){var i=n[t];wp.customize(i).set(e),jQuery("#customize-control-"+i).find(".wp-color-result").css("background-color",e)}})}),wp.customize("custom_color5",function(e){e.bind(function(e){for(var o=["color_forms_borders"],t=0,n=o;t<n.length;t++){var i=n[t];wp.customize(i).set(e),jQuery("#customize-control-"+i).find(".wp-color-result").css("background-color",e)}})}),wp.customize("custom_color6",function(e){e.bind(function(e){for(var o=["footer_widgets_background","footer_credits_background","content_cards_background"],t=0,n=o;t<n.length;t++){var i=n[t];wp.customize(i).set(e),jQuery("#customize-control-"+i).find(".wp-color-result").css("background-color",e)}})}),wp.customize("custom_color7",function(e){e.bind(function(e){for(var o=["background_color","button_color","button_color_hover","scrolltop_color","scrolltop_color_hover","color_forms_background"],t=0,n=o;t<n.length;t++){var i=n[t];wp.customize(i).set(e),jQuery("#customize-control-"+i).find(".wp-color-result").css("background-color",e)}})}),wp.customize("custom_color8",function(e){e.bind(function(e){for(var o=["main_header_submenu_background","main_header_background","main_header_bottom_background","mobile_header_background","offcanvas_menu_background"],t=0,n=o;t<n.length;t++){var i=n[t];wp.customize(i).set(e),jQuery("#customize-control-"+i).find(".wp-color-result").css("background-color",e)}})})}),wp.customize.bind("ready",function(){wp.customize.control("custom_palette",function(e){var o=wp.customize("custom_palette_toggle");o.bind(function(o){e.active.set(o)})})}),jQuery(document).ready(function(e){e(".wp-picker-input-wrap").each(function(){e(this).prependTo(e(this).next(".wp-picker-holder"))})}),jQuery(document).ready(function(e){var o=e(".saved-palette");e(".saved-palette").on("click",function(){e(".palette-radio-buttons").toggleClass("open")}),e(".palette-radio-buttons").find(".palette").on("click",function(){o.empty(),e(".palette-radio-buttons").removeClass("open");var t=e(this).parent().clone();t.unwrap().appendTo(o).find("input").remove()})}),jQuery(document).ready(function(e){var o={init:function(){this.firstTime=!0,this.initialized||this.events(),this.initialized=!0},events:function(){var o=this;return e(document).on("click",".sydney-accordion-title",function(){var t=e(this);e(this).hasClass("expanded")&&(o.showOrHide(e(this),"hide"),e(this).removeClass("expanded").addClass("collapse"),setTimeout(function(){t.removeClass("collapse")},300)),e(this).hasClass("collapse")||(e(".sydney-accordion-item").addClass("sydney-accordion-hide"),e(".sydney-accordion-title").removeClass("expanded"),o.showOrHide(e(this),"show"),t.addClass("expanded"))}),e(document).on("click",".control-section",function(t){var n=e(".control-section.open");o.firstTime&&n.find(".sydney-accordion-title").length&&n.find(".sydney-accordion-title").each(function(){o.showOrHide(e(this),"hide"),e(this).removeClass("expanded"),o.firstTime=!1})}),e(document).on("click",".customize-section-back",function(){o.firstTime=!0}),this},showOrHide:function(o,t){var n="";n=o.closest(".customize-control").next();var i=[];if(n.attr("id")=="customize-control-"+o.data("until"))i.push(n[0].id);else for(;n.attr("id")!="customize-control-"+o.data("until");)i.push(n[0].id),n=n.next();i.length>=1&&i.push(n[0].id);for(var r=0;r<i.length;r++)e("#"+i[r]).addClass("sydney-accordion-item active"),"hide"==t?e("#"+i[r]).addClass("sydney-accordion-hide"):e("#"+i[r]).removeClass("sydney-accordion-hide"),0==r&&e("#"+i[r]).addClass("sydney-accordion-first-item"),(r==i.length-1&&i.length>1||1==i.length)&&e("#"+i[r]).addClass("sydney-accordion-last-item");return this}};e(document).ready(function(){o.init()})}),jQuery(document).ready(function(e){e(".customize-control-sydney-toggle-control").each(function(){e(this).find("label").on("keydown",function(o){var t="Enter"===o.key||13===o.keyCode;t&&e(this).click()})}),e(".customize-control-sydney-radio-buttons").each(function(){e(this).find("label").on("keydown",function(o){var t="Enter"===o.key||13===o.keyCode;t&&e(this).click()})})}),jQuery(document).ready(function(e){e(document).on("sydney-display-conditions-select2-initalize",function(o,t){var n=e(t),i=(n.closest(".sydney-display-conditions-control"),n.find(".sydney-display-conditions-select2-type")),r=i.find("select"),c=n.find(".sydney-display-conditions-select2-condition"),a=c.find("select"),s=n.find(".sydney-display-conditions-select2-id"),l=s.find("select");r.select2({width:"100%",minimumResultsForSearch:-1}),r.on("select2:select",function(e){i.attr("data-type",e.params.data.id)}),a.select2({width:"100%"}),a.on("select2:select",function(o){var t=e(o.params.data.element);t.data("ajax")?s.removeClass("hidden"):s.addClass("hidden"),l.val(null).trigger("change")});var d=a.find(":selected").data("ajax");d&&s.removeClass("hidden"),l.select2({width:"100%",placeholder:"",allowClear:!0,minimumInputLength:1,ajax:{url:ajaxurl,dataType:"json",delay:250,cache:!0,data:function(e){return{action:"sydney_display_conditions_select_ajax",term:e.term,nonce:syd_data.ajax_nonce,source:a.val()}},processResults:function(e,o){return e.success?{results:e.data}:{}}}})}),e(document).on("click",".sydney-display-conditions-modal-toggle",function(o){o.preventDefault();var t=e(this),n=wp.template("sydney-display-conditions-template"),i=t.closest(".sydney-display-conditions-control"),r=i.find(".sydney-display-conditions-modal");if(r.data("initialized"))r.toggleClass("open");else{i.append(n(i.data("condition-settings")));var c=i.find(".sydney-display-conditions-modal-content-list-item").not(".hidden");c.length&&c.each(function(){e(document).trigger("sydney-display-conditions-select2-initalize",this)}),r=i.find(".sydney-display-conditions-modal"),r.data("initialized",!0),r.addClass("open")}}),e(document).on("click",".sydney-display-conditions-modal",function(o){o.preventDefault();var t=e(this);e(o.target).is(t)&&t.removeClass("open")}),e(document).on("click",".sydney-display-conditions-modal-add",function(o){o.preventDefault();var t=e(this),n=t.closest(".sydney-display-conditions-control"),i=n.find(".sydney-display-conditions-modal"),r=i.find(".sydney-display-conditions-modal-content-list"),c=i.find(".sydney-display-conditions-modal-content-list-item").first().clone(),a=t.data("condition-group");c.removeClass("hidden"),c.find(".sydney-display-conditions-select2-condition").not('[data-condition-group="'+a+'"]').remove(),r.append(c),e(document).trigger("sydney-display-conditions-select2-initalize",c)}),e(document).on("click",".sydney-display-conditions-modal-remove",function(o){o.preventDefault();var t=e(this).closest(".sydney-display-conditions-modal-content-list-item");t.remove()}),e(document).on("click",".sydney-display-conditions-modal-save",function(o){o.preventDefault();var t=[],n=e(this),i=n.closest(".sydney-display-conditions-control"),r=i.find(".sydney-display-conditions-modal"),c=i.find(".sydney-display-conditions-textarea"),a=r.find(".sydney-display-conditions-modal-content-list-item").not(".hidden");a.each(function(){var o=e(this);t.push({type:o.find('select[name="type"]').val(),condition:o.find('select[name="condition"]').val(),id:o.find('select[name="id"]').val()})}),c.val(JSON.stringify(t)).trigger("change")})}); -
sydney/2.15/js/functions.js
r160849 r179610 238 238 239 239 remove: function() { 240 const preloader = document.getElementsByClassName( 'preloader' )[0];240 const preloader = document.querySelectorAll( '.preloader' ); 241 241 242 242 if ( typeof( preloader ) == 'undefined' && preloader == null ) { … … 244 244 } 245 245 246 preloader.classList.add( 'disable' ); 247 setTimeout(function(){ preloader.classList.add( 'hide' ); }, 600); 246 for ( var pr of preloader ) { 247 pr.classList.add( 'disable' ); 248 setTimeout(function(){ pr.classList.add( 'hide' ); }, 600); 249 } 248 250 }, 249 251 }; -
sydney/2.15/js/functions.min.js
r170742 r179610 1 "use strict"; window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(a,b){b=b||window;for(var c=0;c<this.length;c++)a.call(b,this[c],c,this)});var sydney=sydney||{};sydney.navigation={init:function(){function a(a){a.preventDefault();var b=a.target.closest("li");b.querySelector(".sub-menu").classList.toggle("toggled")}function b(){if("focus"===event.type||"blur"===event.type)for(let a=this;!a.classList.contains("nav-menu");)"li"===a.tagName.toLowerCase()&&a.classList.toggle("focus"),a=a.parentNode;if("touchstart"===event.type){const a=this.parentNode;for(const b of a.parentNode.children)a!==b&&b.classList.remove("focus");a.classList.toggle("focus")}}var c=document.getElementById("mainnav");const d=document.getElementsByClassName("sydney-offcanvas-menu")[0];if(!c)return;var e=c.querySelectorAll(".dropdown-symbol");for(var f of e)f.addEventListener("keydown",function(a){var b="Enter"===a.key||13===a.keyCode;if(b){a.preventDefault();var c=this.parentNode;console.log(c),c.getElementsByClassName("sub-menu")[0].classList.toggle("toggled")}});const g=document.getElementsByClassName("menu-toggle")[0],h=document.getElementsByClassName("mobile-menu-close")[0];if("undefined"==typeof g)return;const i=c.getElementsByTagName("ul")[0],j=c.getElementsByClassName("mobile-menu-close")[0];if("undefined"==typeof i)return void(g.style.display="none");i.classList.contains("nav-menu")||i.classList.add("nav-menu");var k=d.querySelectorAll("a[href]:not([disabled]):not(.mobile-menu-close)"),l=k[0];g.addEventListener("click",function(b){b.preventDefault(),g.classList.add("open"),d.classList.add("toggled"),document.body.classList.add("mobile-menu-visible");var c=d.querySelectorAll(".dropdown-symbol");for(var f of c)f.addEventListener("touchstart",a),f.addEventListener("click",a),f.addEventListener("keydown",function(a){var b="Enter"===a.key||13===a.keyCode;if(b){a.preventDefault();var c=f.parentNode.parentNode;c.getElementsByClassName("sub-menu")[0].classList.toggle("toggled")}});l.focus()});var k=d.querySelectorAll("a[href]:not([disabled])"),l=k[0],m=k[k.length-1];m.addEventListener("keydown",function(a){var b="Tab"===a.key||a.keyCode===9;!b||a.shiftKey||l.focus()}),h.addEventListener("click",function(a){a.preventDefault(),g.focus(),g.classList.remove("open"),d.classList.remove("toggled"),document.body.classList.remove("mobile-menu-visible")});const n=i.getElementsByTagName("a"),o=i.querySelectorAll(".menu-item-has-children > a, .page_item_has_children > a");for(const a of n)a.addEventListener("focus",b,!0),a.addEventListener("blur",b,!0);for(const a of o)a.addEventListener("touchstart",b,!1)}},sydney.backToTop={init:function(){this.displayButton()},setup:function(){const a=document.getElementsByClassName("go-top")[0];if("undefined"!=typeof a&&null!=a){var b=window.pageYOffset;800<b?a.classList.add("show"):a.classList.remove("show"),a.addEventListener("click",function(){window.scrollTo({top:0,left:0,behavior:"smooth"})})}},displayButton:function(){this.setup(),window.addEventListener("scroll",function(){this.setup()}.bind(this))}},sydney.removePreloader={init:function(){this.remove()},remove:function(){const a=document.getElementsByClassName("preloader")[0];"undefined"==typeof a&&null==a||(a.classList.add("disable"),setTimeout(function(){a.classList.add("hide")},600))}},sydney.stickyMenu={init:function(){this.headerClone(),window.addEventListener("resize",function(){this.headerClone()}.bind(this)),this.sticky(),window.addEventListener("scroll",function(){this.sticky()}.bind(this))},headerClone:function(){const a=document.getElementsByClassName("site-header")[0],b=document.getElementsByClassName("header-clone")[0];"undefined"==typeof b&&null==b||"undefined"==typeof a&&null==a||(b.style.height=a.offsetHeight+"px")},sticky:function(){const a=document.getElementsByClassName("site-header")[0];if("undefined"!=typeof a||null!=a){var b=window.pageYOffset,c=a.offsetTop;b>=c?(a.classList.add("fixed"),document.body.classList.add("siteScrolled")):(a.classList.remove("fixed"),document.body.classList.remove("siteScrolled")),107<=b?a.classList.add("float-header"):a.classList.remove("float-header")}}},sydney.stickyHeader={init:function(){const a=document.getElementsByClassName("sticky-header")[0],b=document.getElementsByTagName("body")[0];if("undefined"!=typeof a)if(a.classList.contains("sticky-scrolltop")){var c=0,d=a.offsetTop,e=document.getElementsByClassName("admin-bar")[0];if("undefined"!=typeof e&&null!=e)var d=d+32;window.addEventListener("scroll",function(){var e=window.pageYOffset||document.documentElement.scrollTop;console.log(d,c),e<c?(a.classList.add("is-sticky"),b.classList.add("sticky-active")):(a.classList.remove("is-sticky"),b.classList.remove("sticky-active")),c<d&&a.classList.remove("is-sticky"),c=0>=e?0:e},!1)}else this.sticky(),window.addEventListener("scroll",function(){this.sticky()}.bind(this))},sticky:function(){const a=document.getElementsByClassName("sticky-header")[0],b=document.getElementsByTagName("body")[0];if(a.classList.contains("header_layout_1")||a.classList.contains("header_layout_2"))var c=window.pageYOffset,d=0;else var c=window.pageYOffset,d=a.offsetTop;var e=document.getElementsByClassName("admin-bar")[0];if("undefined"!=typeof e&&null!=e)var d=d+32;c>d?(a.classList.add("sticky-active"),b.classList.add("sticky-active")):(a.classList.remove("sticky-active"),b.classList.remove("sticky-active"))}},sydney.headerSearch={init:function(){var a=this,b=document.querySelectorAll(".header-search"),c=window.matchMedia("(max-width: 1024px)").matches?document.querySelector("#masthead-mobile .header-search-form"):document.querySelector("#masthead .header-search-form");if(0!==b.length){var d=c.getElementsByClassName("search-field")[0],e=c.getElementsByClassName("search-submit")[0];for(var f of b)f.addEventListener("click",function(a){if(a.preventDefault(),1<b.length)for(var e of b)e.classList.toggle("hide");c.classList.toggle("active"),a.target.closest(".header-search").getElementsByClassName("icon-search")[0].classList.toggle("active"),a.target.closest(".header-search").getElementsByClassName("icon-cancel")[0].classList.toggle("active"),a.target.closest(".header-search").classList.add("active"),a.target.closest(".header-search").classList.remove("hide"),d.focus(),null!==a.target.closest(".sydney-offcanvas-menu")&&a.target.closest(".sydney-offcanvas-menu").classList.remove("toggled")});return e.addEventListener("keydown",function(d){var e="Tab"===d.key||d.keyCode===KEYCODE_TAB;e&&(c.classList.remove("active"),a.backButtonsToDefaultState(b),b.focus())}),this}},backButtonsToDefaultState:function(a){for(var b of a)b.classList.remove("hide"),b.querySelector(".icon-cancel").classList.remove("active"),b.querySelector(".icon-search").classList.add("active")}},sydney.mobileMenu={init:function(){this.menu(),window.addEventListener("resize",function(){this.menu()}.bind(this))},menu:function(){if(window.matchMedia("(max-width: 1024px)").matches){const b=document.getElementsByClassName("mainnav")[0];if("undefined"==typeof b||null==b)return;const c=document.getElementsByClassName("btn-menu")[0];b.setAttribute("id","mainnav-mobi"),b.classList.add("syd-hidden");var a=b.querySelectorAll(".menu-item-has-children");a.forEach(function(a){a.getElementsByTagName("ul")[0].style.display="none",a.getElementsByTagName("a")[0].insertAdjacentHTML("beforeend","<span class=\"btn-submenu\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z\"/></svg></span>")},"myThisArg"),this.toggle(c,b);const d=b.querySelectorAll(".btn-submenu");d.forEach(function(a){a.addEventListener("click",function(b){b.preventDefault();var c=a.parentNode.parentNode;c.getElementsByClassName("sub-menu")[0].classList.toggle("toggled")})},"myThisArg")}else{const a=document.getElementById("mainnav-mobi");if("undefined"!=typeof a&&null!=a){a.setAttribute("id","mainnav"),a.classList.remove("toggled");const b=a.querySelectorAll(".btn-submenu");b.forEach(function(a){a.remove()},"myThisArg")}}},toggle:function(a,b){"undefined"==typeof a&&null==a||a.addEventListener("click",function(a){a.preventDefault(),b.classList.contains("toggled")?b.classList.remove("toggled"):b.classList.add("toggled"),a.stopImmediatePropagation()})},submenuToggle:function(a){a.addEventListener("click",function(b){b.preventDefault();var c=a.parentNode.parentNode;c.getElementsByClassName("sub-menu")[0].classList.toggle("toggled")})}};function sydneyDomReady(a){return"function"==typeof a?"interactive"===document.readyState||"complete"===document.readyState?a():void document.addEventListener("DOMContentLoaded",a,!1):void 0}sydneyDomReady(function(){sydney.backToTop.init(),sydney.removePreloader.init(),sydney.stickyMenu.init(),sydney.mobileMenu.init(),sydney.navigation.init(),sydney.stickyHeader.init(),sydney.headerSearch.init()}),window.addEventListener("load",function(){(function(a,b){"use strict";var c=b.querySelectorAll(["iframe[src*=\"youtube.com\"]","iframe[src*=\"vimeo.com\"]"].join(","));if(c.length)for(var d=0;d<c.length;d++){var e=c[d],f=e.getAttribute("width"),g=e.getAttribute("height"),h=e.parentNode,j=b.createElement("div");j.className="fitVids-wrapper",j.style.paddingBottom=100*(g/f)+"%",h.insertBefore(j,e),e.remove(),j.appendChild(e),e.removeAttribute("height"),e.removeAttribute("width")}})(window,document)}),window.addEventListener("load",function(){if("undefined"!=typeof Isotope&&("undefined"!=typeof lazySizes||"undefined"!=typeof lazyLoadOptions||"undefined"!=typeof a3_lazyload_extend_params)){const a=document.querySelectorAll(".isotope-container");a.length&&a.forEach(function(a){const b=a.querySelectorAll(".isotope-item img[data-lazy-src], .isotope-item img[data-src]");b.length&&b.forEach(function(b){null!==b&&b.addEventListener("load",function(){jQuery(a).isotope("layout")})},"myThisArg")},"myThisArg")}});1 "use strict";function sydneyDomReady(e){if("function"==typeof e)return"interactive"===document.readyState||"complete"===document.readyState?e():void document.addEventListener("DOMContentLoaded",e,!1)}window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var s=0;s<this.length;s++)e.call(t,this[s],s,this)});var sydney=sydney||{};sydney.navigation={init:function(){function e(e){e.preventDefault();var t=e.target.closest("li");t.querySelector(".sub-menu").classList.toggle("toggled")}function t(){if("focus"===event.type||"blur"===event.type){let e=this;for(;!e.classList.contains("nav-menu");)"li"===e.tagName.toLowerCase()&&e.classList.toggle("focus"),e=e.parentNode}if("touchstart"===event.type){const e=this.parentNode;for(const t of e.parentNode.children)e!==t&&t.classList.remove("focus");e.classList.toggle("focus")}}var s=document.getElementById("mainnav");const n=document.getElementsByClassName("sydney-offcanvas-menu")[0];if(!s)return;var o=s.querySelectorAll(".dropdown-symbol");for(var i of o)i.addEventListener("keydown",function(e){var t="Enter"===e.key||13===e.keyCode;if(t){e.preventDefault();var s=this.parentNode;console.log(s),s.getElementsByClassName("sub-menu")[0].classList.toggle("toggled")}});const a=document.getElementsByClassName("menu-toggle")[0],l=document.getElementsByClassName("mobile-menu-close")[0];if(void 0===a)return;const c=s.getElementsByTagName("ul")[0];s.getElementsByClassName("mobile-menu-close")[0];if(void 0===c)return void(a.style.display="none");c.classList.contains("nav-menu")||c.classList.add("nav-menu");var d=n.querySelectorAll("a[href]:not([disabled]):not(.mobile-menu-close)"),r=d[0];a.addEventListener("click",function(t){t.preventDefault(),a.classList.add("open"),n.classList.add("toggled"),document.body.classList.add("mobile-menu-visible");var s=n.querySelectorAll(".dropdown-symbol");for(var o of s)o.addEventListener("touchstart",e),o.addEventListener("click",e),o.addEventListener("keydown",function(e){var t="Enter"===e.key||13===e.keyCode;if(t){e.preventDefault();var s=o.parentNode.parentNode;s.getElementsByClassName("sub-menu")[0].classList.toggle("toggled")}});r.focus()});d=n.querySelectorAll("a[href]:not([disabled])"),r=d[0];var u=d[d.length-1],m=9;u.addEventListener("keydown",function(e){var t="Tab"===e.key||e.keyCode===m;t&&(e.shiftKey||r.focus())}),l.addEventListener("click",function(e){e.preventDefault(),a.focus(),a.classList.remove("open"),n.classList.remove("toggled"),document.body.classList.remove("mobile-menu-visible")});const f=c.getElementsByTagName("a"),y=c.querySelectorAll(".menu-item-has-children > a, .page_item_has_children > a");for(const e of f)e.addEventListener("focus",t,!0),e.addEventListener("blur",t,!0);for(const e of y)e.addEventListener("touchstart",t,!1)}},sydney.backToTop={init:function(){this.displayButton()},setup:function(){const e=document.getElementsByClassName("go-top")[0];if(void 0!==e&&null!=e){var t=window.pageYOffset;t>800?e.classList.add("show"):e.classList.remove("show"),e.addEventListener("click",function(){window.scrollTo({top:0,left:0,behavior:"smooth"})})}},displayButton:function(){this.setup(),window.addEventListener("scroll",function(){this.setup()}.bind(this))}},sydney.removePreloader={init:function(){this.remove()},remove:function(){const e=document.querySelectorAll(".preloader");if(void 0!==e||null!=e)for(var t of e)t.classList.add("disable"),setTimeout(function(){t.classList.add("hide")},600)}},sydney.stickyMenu={init:function(){this.headerClone(),window.addEventListener("resize",function(){this.headerClone()}.bind(this)),this.sticky(),window.addEventListener("scroll",function(){this.sticky()}.bind(this))},headerClone:function(){const e=document.getElementsByClassName("site-header")[0],t=document.getElementsByClassName("header-clone")[0];void 0===t&&null==t||void 0===e&&null==e||(t.style.height=e.offsetHeight+"px")},sticky:function(){const e=document.getElementsByClassName("site-header")[0];if(void 0!==e||null!=e){var t=window.pageYOffset,s=e.offsetTop;t>=s?(e.classList.add("fixed"),document.body.classList.add("siteScrolled")):(e.classList.remove("fixed"),document.body.classList.remove("siteScrolled")),t>=107?e.classList.add("float-header"):e.classList.remove("float-header")}}},sydney.stickyHeader={init:function(){const e=document.getElementsByClassName("sticky-header")[0],t=document.getElementsByTagName("body")[0];if(void 0!==e)if(e.classList.contains("sticky-scrolltop")){var s=0,n=e.offsetTop,o=document.getElementsByClassName("admin-bar")[0];if(void 0!==o&&null!=o)n=n+32;window.addEventListener("scroll",function(){var o=window.pageYOffset||document.documentElement.scrollTop;console.log(n,s),o<s?(e.classList.add("is-sticky"),t.classList.add("sticky-active")):(e.classList.remove("is-sticky"),t.classList.remove("sticky-active")),s<n&&e.classList.remove("is-sticky"),s=o<=0?0:o},!1)}else this.sticky(),window.addEventListener("scroll",function(){this.sticky()}.bind(this))},sticky:function(){const e=document.getElementsByClassName("sticky-header")[0],t=document.getElementsByTagName("body")[0];if(e.classList.contains("header_layout_1")||e.classList.contains("header_layout_2"))var s=window.pageYOffset,n=0;else s=window.pageYOffset,n=e.offsetTop;var o=document.getElementsByClassName("admin-bar")[0];if(void 0!==o&&null!=o)n=n+32;s>n?(e.classList.add("sticky-active"),t.classList.add("sticky-active")):(e.classList.remove("sticky-active"),t.classList.remove("sticky-active"))}},sydney.headerSearch={init:function(){var e=this,t=document.querySelectorAll(".header-search"),s=window.matchMedia("(max-width: 1024px)").matches?document.querySelector("#masthead-mobile .header-search-form"):document.querySelector("#masthead .header-search-form");if(0!==t.length){var n=s.getElementsByClassName("search-field")[0],o=s.getElementsByClassName("search-submit")[0];for(var i of t)i.addEventListener("click",function(e){if(e.preventDefault(),t.length>1)for(var o of t)o.classList.toggle("hide");s.classList.toggle("active"),e.target.closest(".header-search").getElementsByClassName("icon-search")[0].classList.toggle("active"),e.target.closest(".header-search").getElementsByClassName("icon-cancel")[0].classList.toggle("active"),e.target.closest(".header-search").classList.add("active"),e.target.closest(".header-search").classList.remove("hide"),n.focus(),null!==e.target.closest(".sydney-offcanvas-menu")&&e.target.closest(".sydney-offcanvas-menu").classList.remove("toggled")});return o.addEventListener("keydown",function(n){var o="Tab"===n.key||n.keyCode===KEYCODE_TAB;o&&(s.classList.remove("active"),e.backButtonsToDefaultState(t),t.focus())}),this}},backButtonsToDefaultState:function(e){for(var t of e)t.classList.remove("hide"),t.querySelector(".icon-cancel").classList.remove("active"),t.querySelector(".icon-search").classList.add("active")}},sydney.mobileMenu={init:function(){this.menu(),window.addEventListener("resize",function(){this.menu()}.bind(this))},menu:function(){if(window.matchMedia("(max-width: 1024px)").matches){const t=document.getElementsByClassName("mainnav")[0];if(void 0===t||null==t)return;const s=document.getElementsByClassName("btn-menu")[0];t.setAttribute("id","mainnav-mobi"),t.classList.add("syd-hidden");var e=t.querySelectorAll(".menu-item-has-children");const n='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"/></svg>';e.forEach(function(e,t,s){e.getElementsByTagName("ul")[0].style.display="none",e.getElementsByTagName("a")[0].insertAdjacentHTML("beforeend",'<span class="btn-submenu">'+n+"</span>")},"myThisArg"),this.toggle(s,t);const o=t.querySelectorAll(".btn-submenu");o.forEach(function(e,t,s){e.addEventListener("click",function(t){t.preventDefault();var s=e.parentNode.parentNode;s.getElementsByClassName("sub-menu")[0].classList.toggle("toggled")})},"myThisArg")}else{const e=document.getElementById("mainnav-mobi");if(void 0!==e&&null!=e){e.setAttribute("id","mainnav"),e.classList.remove("toggled");const t=e.querySelectorAll(".btn-submenu");t.forEach(function(e,t,s){e.remove()},"myThisArg")}}},toggle:function(e,t){void 0===e&&null==e||e.addEventListener("click",function(e){e.preventDefault(),t.classList.contains("toggled")?t.classList.remove("toggled"):t.classList.add("toggled"),e.stopImmediatePropagation()})},submenuToggle:function(e){e.addEventListener("click",function(t){t.preventDefault();var s=e.parentNode.parentNode;s.getElementsByClassName("sub-menu")[0].classList.toggle("toggled")})}},sydneyDomReady(function(){sydney.backToTop.init(),sydney.removePreloader.init(),sydney.stickyMenu.init(),sydney.mobileMenu.init(),sydney.navigation.init(),sydney.stickyHeader.init(),sydney.headerSearch.init()}),window.addEventListener("load",function(){(function(e,t,s){var n=['iframe[src*="youtube.com"]','iframe[src*="vimeo.com"]'],o=t.querySelectorAll(n.join(","));if(o.length)for(var i=0;i<o.length;i++){var a=o[i],l=a.getAttribute("width"),c=a.getAttribute("height"),d=c/l,r=a.parentNode,u=t.createElement("div");u.className="fitVids-wrapper",u.style.paddingBottom=100*d+"%",r.insertBefore(u,a),a.remove(),u.appendChild(a),a.removeAttribute("height"),a.removeAttribute("width")}})(window,document)}),window.addEventListener("load",function(){if("undefined"!=typeof Isotope&&("undefined"!=typeof lazySizes||"undefined"!=typeof lazyLoadOptions||"undefined"!=typeof a3_lazyload_extend_params)){const e=document.querySelectorAll(".isotope-container");e.length&&e.forEach(function(e){const t=e.querySelectorAll(".isotope-item img[data-lazy-src], .isotope-item img[data-src]");t.length&&t.forEach(function(t){null!==t&&t.addEventListener("load",function(){jQuery(e).isotope("layout")})},"myThisArg")},"myThisArg")}}); -
sydney/2.15/style.css
r177970 r179610 5 5 Author URI: https://athemes.com 6 6 Description: Sydney is a powerful business theme that provides a fast way for companies or freelancers to create an awesome online presence. As well as being fully compatible with Elementor, Sydney brings plenty of customization possibilities like access to all Google Fonts, full color control, layout control, logo upload, full screen slider, header image, sticky navigation and much more. Also, Sydney provides all the construction blocks you need to rapidly create an engaging front page. Looking for a quick start with Sydney? With just a few clicks, you can import one of our existing demos (https://athemes.com/sydney-demos/) 7 Version: 2.1 47 Version: 2.15 8 8 License: GNU General Public License v2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.