1jQuery(function($){ 2 $(window).scroll(function() { 3 var winTop = $(window).scrollTop(); 4 if (winTop >= 600) { 5 $(".site-header").addClass("is-sticky"); 6 $(".site-header-menu").addClass("is-sticky"); 7 $(".menu-toggle").addClass("is-sticky"); 8 } else { 9 $(".site-header").removeClass("is-sticky"); 10 $(".site-header-menu").removeClass("is-sticky"); 11 $(".menu-toggle").removeClass("is-sticky"); 12 } 13 }) 14}) 15 16 17 18// Lightbox video 19jQuery(document).ready(function($){ 20 $(document).delegate('*[data-toggle="lightbox"]', 'click', function(event) { 21 event.preventDefault(); 22 $(this).ekkoLightbox(); 23 }); 24}); 25 26 27 28// No Sidebar Full Content Blog 29jQuery(function ($) { 30 if ( $(".sidebar-right-blog").parents("#content").length == 0 && $(".sidebar-left-blog").parents("#content").length == 0) { 31 $("body").addClass("null-blog"); 32 } else { 33 $("body").removeClass("null-blog"); 34 } 35}); 36 37// Sidebar Content Sidebar Blog 38jQuery(function ($) { 39 if ( $(".sidebar-right-blog").parents("#content").length == 1 && $(".sidebar-left-blog").parents("#content").length == 1) { 40 $("body").addClass("sidebar-content-sidebar-blog"); 41 } else { 42 $("body").removeClass("sidebar-content-sidebar-blog"); 43 } 44}); 45 46// Content Sidebar Blog 47jQuery(function ($) { 48 if ( $(".sidebar-right-blog").parents("#content").length == 1 && $(".sidebar-left-blog").parents("#content").length == 0) { 49 $("body").addClass("content-sidebar-blog"); 50 } else { 51 $("body").removeClass("content-sidebar-blog"); 52 } 53}); 54 55// Sidebar Content Blog 56jQuery(function ($) { 57 if ( $(".sidebar-right-blog").parents("#content").length == 0 && $(".sidebar-left-blog").parents("#content").length == 1) { 58 $("body").addClass("sidebar-content-blog"); 59 } else { 60 $("body").removeClass("sidebar-content-blog"); 61 } 62}); 63 64// No Sidebar Full Content ws 65jQuery(function ($) { 66 if ( $(".sidebar-right-ws").parents("#content").length == 0 && $(".sidebar-left-ws").parents("#content").length == 0) { 67 $("body.woocommerce").addClass("null-ws"); 68 } else { 69 $("body.woocommerce").removeClass("null-ws"); 70 } 71}); 72 73// Sidebar Content Sidebar ws 74jQuery(function ($) { 75 if ( $(".sidebar-right-ws").parents("#content").length == 1 && $(".sidebar-left-ws").parents("#content").length == 1) { 76 $("body").addClass("sidebar-content-sidebar-ws"); 77 } else { 78 $("body").removeClass("sidebar-content-sidebar-ws"); 79 } 80}); 81 82// Content Sidebar ws 83jQuery(function ($) { 84 if ( $(".sidebar-right-ws").parents("#content").length == 1 && $(".sidebar-left-ws").parents("#content").length == 0) { 85 $("body").addClass("content-sidebar-ws"); 86 } else { 87 $("body").removeClass("content-sidebar-ws"); 88 } 89}); 90 91// Sidebar Content ws 92jQuery(function ($) { 93 if ( $(".sidebar-right-ws").parents("#content").length == 0 && $(".sidebar-left-ws").parents("#content").length == 1) { 94 $("body").addClass("sidebar-content-ws"); 95 } else { 96 $("body").removeClass("sidebar-content-ws"); 97 } 98}); 99 100 101// No sidebar full content 102jQuery(function ($) { 103 if ( $(".sidebar-right-blog").parents("#content").length == 0 && $(".sidebar-left-blog").parents("#content").length == 0 && $(".sidebar-right-ws").parents("#content").length == 0 && $(".sidebar-left-ws").parents("#content").length == 0) { 104 $("body").addClass("full-content"); 105 } else { 106 $("body").removeClass("full-content"); 107 } 108}); 109 110 111jQuery(function ($) { 112 113 $("body.woocommerce").removeClass("sidebar-content-sidebar-blog"); 114 $("body.woocommerce").removeClass("content-sidebar-blog"); 115 $("body.woocommerce").removeClass("sidebar-content-blog"); 116 117 $("body.category").removeClass("sidebar-content-sidebar-ws"); 118 $("body.category").removeClass("content-sidebar-ws"); 119 $("body.category").removeClass("sidebar-content-ws"); 120 $("body.single-post").removeClass("sidebar-content-sidebar-ws"); 121 $("body.single-post").removeClass("content-sidebar-blog"); 122 $("body.single-post").removeClass("sidebar-content-blog"); 123 124}); 125 126 127//*** Sticky Menu 128 129jQuery(function($){ 130 $(window).scroll(function() { 131 var winTop = $(window).scrollTop(); 132 if (winTop >= 1) { 133 $(".site-header").addClass("is-sticky"); 134 } else { 135 $(".site-header").removeClass("is-sticky"); 136 } 137 }) 138}) 139 140 141jQuery(function($){ 142 143 $( ".add_to_cart_button" ).wrap( "<div class='product-hover' />"); 144 145 146})
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.