1//Stick Head 2jQuery(function($){ 3 $(window).scroll(function() { 4 var winTop = $(window).scrollTop(); 5 if (winTop >= 300) { 6 $(".site-header").addClass("is-sticky"); 7 $(".nav-primary").addClass("is-sticky"); 8 $(".menu-toggle").addClass("is-sticky"); 9 } else { 10 $(".site-header").removeClass("is-sticky"); 11 $(".nav-primary").removeClass("is-sticky"); 12 $(".menu-toggle").removeClass("is-sticky"); 13 } 14 }) 15}) 16 17 18 19 /* 20Counter Up 21*/ 22jQuery(function($){ 23$('.counter').each(function() { 24 var $this = $(this), 25 countTo = $this.attr('data-count'); 26 27 $({ countNum: $this.text()}).animate({ 28 countNum: countTo 29 }, 30 31 { 32 33 duration: 8000, 34 easing:'linear', 35 step: function() { 36 $this.text(Math.floor(this.countNum)); 37 }, 38 complete: function() { 39 $this.text(this.countNum); 40 //alert('finished'); 41 } 42 43 44 }); 45 46 47 48}); 49}); 50 51 52jQuery(function($){ 53 54 $( ".ws-blog-item img" ).wrap( "<div class='widget_sp_image' />"); 55 $( "ul.products li.product img" ).wrap("<div class='wc-product-img'></div>"); 56 $('.yith-wcqv-button').attr('title','quick'); 57 $( ".ws-category-item" ).wrapAll( "<div class='ws-category-carousel' />"); 58 $( ".ws-client-img" ).wrapAll( "<div class='ws-client-carousel' />"); 59 60 61}) 62 63 64//Category Carousel 65 66jQuery(function($){ 67$('.ws-category-carousel aside').contents().unwrap().wrap('<div/>'); 68}); 69 70 71if (window.matchMedia("(min-width: 769px)").matches) { 72jQuery(function($){ 73 74 $('.ws-category-carousel').slick({ 75 dots: true, 76 slidesToShow: 4, 77 slidesToScroll: 1, 78 initialSlide: 1, 79 autoplay: true, 80 autoplaySpeed: 4000, 81 dots: false, 82 }); 83 84}); 85} 86 87if (window.matchMedia("(min-width: 500px) and (max-width: 768px)").matches) { 88jQuery(function($){ 89 90 $('.ws-category-carousel').slick({ 91 dots: true, 92 slidesToShow: 2, 93 slidesToScroll: 1, 94 initialSlide: 1, 95 autoplay: true, 96 autoplaySpeed: 4000, 97 dots: false, 98 }); 99 100}); 101} 102 103if (window.matchMedia("(max-width: 500px)").matches) { 104 jQuery(function($){ 105 106 $('.ws-category-carousel').slick({ 107 dots: true, 108 slidesToShow: 1, 109 slidesToScroll: 1, 110 initialSlide: 1, 111 autoplay: true, 112 autoplaySpeed: 4000, 113 dots: false, 114 }); 115 116 }); 117} 118 119//Client Carousel
120 121jQuery(function($){ 122$('.ws-client-carousel aside').contents().unwrap().wrap('<div/>'); 123}); 124 125 126if (window.matchMedia("(min-width: 769px)").matches) { 127jQuery(function($){ 128 129 $('.ws-client-carousel').slick({ 130 dots: true, 131 slidesToShow: 5, 132 slidesToScroll: 1, 133 initialSlide: 1, 134 autoplay: true, 135 autoplaySpeed: 40000, 136 dots: false, 137 }); 138 139}); 140} 141 142if (window.matchMedia("(min-width: 481px) and (max-width: 768px)").matches) { 143jQuery(function($){ 144 145 $('.ws-client-carousel').slick({ 146 dots: true, 147 slidesToShow: 3, 148 slidesToScroll: 1, 149 initialSlide: 1, 150 autoplay: true, 151 autoplaySpeed: 40000, 152 dots: false, 153 }); 154 155}); 156} 157 158if (window.matchMedia("(max-width: 480px)").matches) { 159 jQuery(function($){ 160 161 $('.ws-client-carousel').slick({ 162 dots: true, 163 slidesToShow: 2, 164 slidesToScroll: 1, 165 initialSlide: 1, 166 autoplay: true, 167 autoplaySpeed: 40000, 168 dots: false, 169 }); 170 171 }); 172} 173 174 175//* Accordion 176 177jQuery(function($) { 178 var accItem = document.getElementsByClassName('accordionItem'); 179 var accHD = document.getElementsByClassName('accordionItemHeading'); 180 for (i = 0; i < accHD.length; i++) { 181 accHD[i].addEventListener('click', toggleItem, false); 182 } 183 function toggleItem() { 184 var itemClass = this.parentNode.className; 185 for (i = 0; i < accItem.length; i++) { 186 accItem[i].className = 'accordionItem close'; 187 } 188 if (itemClass == 'accordionItem close') { 189 this.parentNode.className = 'accordionItem open'; 190 } 191 } 192}) 193 194 195//* Tabs 196 197 jQuery(function($){ 198 // tabbed content 199 // http://www.entheosweb.com/tutorials/css/tabs.asp 200 $(".tab_content").hide(); 201 $(".tab_content:first").show(); 202 203 /* if in tab mode */ 204 $("ul.tabs li").click(function() { 205 206 $(".tab_content").hide(); 207 var activeTab = $(this).attr("rel"); 208 $("#"+activeTab).fadeIn(); 209 210 $("ul.tabs li").removeClass("active"); 211 $(this).addClass("active"); 212 }); 213 214 215 /* Extra class "tab_last" 216 to add border to right side 217 of last tab */ 218 $('ul.tabs li').last().addClass("tab_last"); 219 220 }) 221 222 223 224//* nav_tabs 225 226 jQuery(function($) { 227 // tabbed content 228 // http://www.entheosweb.com/tutorials/css/nav_tabs.asp 229 $(".tabs_items").hide(); 230 $(".tabs_items:first").show(); 231 232 /* if in tab mode */ 233 $("ul.nav_tabs li").click(function() { 234 235 $(".tabs_items").hide(); 236 var currentsTab = $(this).attr("rel"); 237 $("#"+currentsTab).fadeIn(); 238 239 $("ul.nav_tabs li").removeClass("currents"); 240 $(this).addClass("currents"); 241 }); 242 $('ul.nav_tabs li').last().addClass("tab_last"); 243 244 }) 245 246 247 248 249jQuery(document).ready(function($){ 250 $(document).delegate('*[data-toggle="lightbox"]', 'click', function(event) { 251 event.preventDefault(); 252 $(this).ekkoLightbox(); 253 }); 254}); 255
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.