1;window.mobilecheck = function() { 2 var check = false; 3 (function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))) check = true;})(navigator.userAgent||navigator.vendor||window.opera); 4 return check; 5}; 6 7 8 9!function(a){function b(){var a=document.createElement("p"),b=!1;if(a.addEventListener)a.addEventListener("DOMAttrModified",function(){b=!0},!1);else{if(!a.attachEvent)return!1;a.attachEvent("onDOMAttrModified",function(){b=!0})}return a.setAttribute("id","target"),b}function c(b,c){if(b){var d=this.data("attr-old-value");if(c.attributeName.indexOf("style")>=0){d.style||(d.style={});var e=c.attributeName.split(".");c.attributeName=e[0],c.oldValue=d.style[e[1]],c.newValue=e[1]+":"+this.prop("style")[a.camelCase(e[1])],d.style[e[1]]=c.newValue}else c.oldValue=d[c.attributeName],c.newValue=this.attr(c.attributeName),d[c.attributeName]=c.newValue;this.data("attr-old-value",d)}}var d=window.MutationObserver||window.WebKitMutationObserver;a.fn.attrchange=function(e,f){if("object"==typeof e){var g={trackValues:!1,callback:a.noop};if("function"==typeof e?g.callback=e:a.extend(g,e),g.trackValues&&this.each(function(b,c){for(var d,e={},f=0,g=c.attributes,h=g.length;h>f;f++)d=g.item(f),e[d.nodeName]=d.value;a(this).data("attr-old-value",e)}),d){var h={subtree:!1,attributes:!0,attributeOldValue:g.trackValues},i=new d(function(b){b.forEach(function(b){var c=b.target;g.trackValues&&(b.newValue=a(c).attr(b.attributeName)),"connected"===a(c).data("attrchange-status")&&g.callback.call(c,b)})});return this.data("attrchange-method","Mutation Observer").data("attrchange-status","connected").data("attrchange-obs",i).each(function(){i.observe(this,h)})}return b()?this.data("attrchange-method","DOMAttrModified").data("attrchange-status","connected").on("DOMAttrModified",function(b){b.originalEvent&&(b=b.originalEvent),b.attributeName=b.attrName,b.oldValue=b.prevValue,"connected"===a(this).data("attrchange-status")&&g.callback.call(this,b)}):"onpropertychange"in document.body?this.data("attrchange-method","propertychange").data("attrchange-status","connected").on("propertychange",function(b){b.attributeName=window.event.propertyName,c.call(a(this),g.trackValues,b),"connected"===a(this).data("attrchange-status")&&g.callback.call(this,b)}):this}return"string"==typeof e&&a.fn.attrchange.hasOwnProperty("extensions")&&a.fn.attrchange.extensions.hasOwnProperty(e)?a.fn.attrchange.extensions[e].call(this,f):void 0}}(jQuery); 10 11 12jQuery(document).ready(function( $ ){ 13 14 if(window.mobilecheck() && IZ.enable_mobile != '1' ) { 15 return; 16 } 17 18 var url = (window.location != window.parent.location) ? window.parent.location.href: window.location.href; 19 20 // Is this an Elementor editor iframe. 21 if ( $('body.elementor-editor-active').length > 0
22 || $('body.fl-builder-edit').length > 0 23 || url.indexOf('vc_action=vc_inline') > 0 24 || url.indexOf('vc_editable=true') > 0 25 || url.indexOf('et_fb=') > 0 ) { 26 return; 27 } 28 29 var options = IZ.options; 30 31 // Fix for the Lazy Load plugin with jQuery.sonar 32 $("img[data-lazy-src]").each(function(){ 33 $(this).attr('data-zoom-image', $(this).data('lazy-src')); 34 }); 35 36 // Fix for the lazy load functionality from the SG Optimizer plugin 37 $("img[data-src].lazyload").each(function() { 38 $(this).attr('data-zoom-image', $(this).data('src')); 39 }); 40 41 42 // Add "zoooom" for the "is-style-zoooom" images added with Gutenberg 43 $(".is-style-zoooom").each(function(){ 44 $(this).addClass('zoooom'); 45 }); 46 47 // Get the image url from data-large_image 48 $("img[data-large_image]").each(function(){ 49 $(this).attr('data-zoom-image', $(this).data('large_image')); 50 }); 51 52 // Attach the .zoooom class to the IMG children 53 $(".zoooom").each(function(){ 54 if ( this.tagName !== 'IMG' ) { 55 $(this).find("img").addClass('zoooom'); 56 $(this).removeClass('zoooom'); 57 } 58 }); 59 60 // Start the zoom for the normal images 61 options.zIndex = 112400; 62 setTimeout( function() { 63 $("img.zoooom.jetpack-lazy-image").image_zoom(options); 64 }, 300 ); 65 $("img.zoooom:not(.jetpack-lazy-image)").image_zoom( options ); 66 67 // WooCommerce category pages 68 if ( IZ.woo_categories == '1' ) { 69 var cat_class = '.tax-product_cat .products img, .post-type-archive-product .products img'; 70 $(cat_class).image_zoom(options); 71 $(document).on('yith-wcan-ajax-filtered', function() { 72 $('.zoomContainer').remove(); 73 $(cat_class).image_zoom(options); 74 } ); 75 } 76 77 // Fix for the LazyLoad (unveil.js) plugins 78 if (typeof $.unveil === "function") { 79 $("img.unveil").unveil(0, function() { 80 $(this).load(function() { 81 $("img.zoooom").image_zoom(options); 82 }); 83 }); 84 } 85 86 87 // Resize the zoom windows when resizing the page 88 $(window).on('resize', function(e) { 89 window.resizeEvt; 90 $(window).on('resize', function() { 91 clearTimeout(window.resizeEvt); 92 window.resizeEvt = setTimeout(function() { 93 $(".zoomContainer").remove(); 94 if ( IZ.with_woocommerce == '1' ) { 95 $("img.zoooom, .attachment-shop_single, .attachment-shop_thumbnail.flex-active-slide img").image_zoom(options); 96 } else { 97 $("img.zoooom, .zoooom img").image_zoom(options); 98 } 99 if ( IZ.woo_categories == '1' ) { 100 $(".tax-product_cat .products img").image_zoom(options); 101 } 102 }, 500); 103 }); 104 }); 105 106 107 // Remove the zoom when hovering on the submenu 108 function restart_on_hover( elem ) { 109 elem.on('mouseenter', function(){ 110 if ( $('.zoomContainer').length === 0 ) { 111 $(this).image_zoom(IZ.options); 112 } 113 }); 114 }; 115 $('.sub-menu li').on('mouseenter', function(){ 116 $('.zoomContainer').remove(); 117 }); 118 restart_on_hover($('img.zoooom')); 119 120 121 // Show zoom on the WooCommerce gallery 122 if ( IZ.with_woocommerce == '1' ) { 123 $(".attachment-shop_single").image_zoom(options); 124 restart_on_hover($('.attachment-shop_single')); 125 126 $("a[data-rel^='zoomImage']").each(function(index){ 127 $(this).on('click', function(event){ 128 // If there are more than one WooCommerce gallery, exchange the thumbnail with the closest .attachment-shop_single 129 var obj1 = $(".attachment-shop_single"); 130 if ( obj1.length > 1 ) { 131 var obj1 = $(this).closest('.images').find( $(".attachment-shop_single") ); 132 } 133 var obj2 = $(this).find("img"); 134 135 event.preventDefault(); 136 137 if ( obj2.hasClass('attachment-shop_single') === false ) { 138 139 // Remove the srcset and sizes 140 obj1.removeAttr('srcset').removeAttr('sizes'); 141 obj2.removeAttr('srcset').removeAttr('sizes'); 142 143 var thumb_src = obj2.attr('src'); 144 145 // Exchange the attributes 146 $.each(['src', 'alt', 'title'], function(key,attr) { 147 var temp; 148 if ( obj1.attr( attr ) ) temp = obj1.attr( attr ); 149 if ( obj2.attr( attr ) ) { 150 obj1.attr(attr, obj2.attr(attr) ); 151 } else { 152 obj1.removeAttr( attr ); 153 } 154 if ( IZ.exchange_thumbnails == '1' ) { 155 if ( temp && temp.length > 0 ) { 156 obj2.attr(attr, temp); 157 } else { 158 obj2.removeAttr( attr ); 159 } 160 } 161 }); 162 163 // Exchange the link sources 164 var temp; 165 temp = obj2.parent().attr('href'); 166 if ( IZ.exchange_thumbnails == '1' ) { 167 obj2.parent().attr('href', obj1.parent().attr('href')); 168 } 169 obj1.parent().attr('href', temp ); 170 171 // Set the obj1.src = the link source 172 obj1.attr('src', temp ); 173 174 // Set the obj2.src = data-thumbnail-src 175 if ( obj1.data('thumbnail-src') && IZ.exchange_thumbnails == '1' ) { 176 obj2.attr( 'src', obj1.attr('data-thumbnail-src')); 177 } 178 179 // Set the obj1.data-thumbnail-src 180 obj1.attr('data-thumbnail-src', thumb_src ); 181 182 // Replace the data-zoom-image 183 temp = obj1.data('zoom-image'); 184 if ( !obj2.data('zoom-image') ) obj2.data('zoom-image', ''); 185 obj1.data('zoom-image', obj2.data('zoom-image')); 186 if( ! temp ) temp = ''; 187 obj2.data('zoom-image', temp); 188 189 // Remove the old zoom and reactive the new zoom 190 $(".zoomContainer").remove();
191 $(".attachment-shop_single").image_zoom(options); 192 restart_on_hover($('.attachment-shop_single')); 193 } 194 195 }); 196 }); 197 } 198 199 200 // Show zoom on the WooCommerce 3.0.+ gallery with slider 201 if ( IZ.with_woocommerce == '1' && (IZ.woo_slider == '1' || $('.woo_product_slider_enabled').length > 0 )) { 202 if ( $(".woocommerce-product-gallery img").length > 0 ) { 203 204 var first_img = ".woocommerce-product-gallery__wrapper img"; 205 setTimeout( function() { 206 if ( $(".woocommerce-product-gallery .flex-viewport").length > 0 ) { 207 first_img = ".woocommerce-product-gallery__wrapper .flex-active-slide img"; 208 } 209 $(first_img).first().image_zoom( options ); 210 restart_on_hover($(first_img).first()); 211 }, 500 ); 212 213 var flexslider_counter = 0; 214 var old_value = ""; 215 $(".woocommerce-product-gallery__wrapper").attrchange({ 216 trackValues: true, 217 callback: function(event) { 218 if ( event.newValue != old_value ) { 219 $(".zoomContainer").remove(); 220 setTimeout( function() { 221 $(first_img).first().image_zoom(options); 222 restart_on_hover($(first_img).first()); 223 }, 550); 224 } 225 old_value = event.newValue; 226 } 227 }); 228 $(".pswp").attrchange({ 229 trackValues: true, 230 callback: function(event) { 231 if ( event.newValue != old_value ) { 232 $(".zoomContainer").remove(); 233 } 234 } 235 }); 236 237 238 239 // Resize the zoom windows when resizing the page 240 $(window).on('resize', function(e) { 241 window.resizeEvt; 242 $(window).resize(function() { 243 clearTimeout(window.resizeEvt); 244 window.resizeEvt = setTimeout(function() { 245 $(".zoomContainer").remove(); 246 restart_on_hover($(first_img).first()); 247 }, 300); 248 }); 249 }); 250 251 // Remove the click action on the images 252 $(".woocommerce-product-gallery img").on('click', function(e){ 253 e.preventDefault(); 254 }); 255 256 } 257 } 258 259 260 261 262 // Show zoom on the WooCommerce 3.0.+ gallery without slider 263 if ( IZ.with_woocommerce == '1' && (IZ.woo_slider == '0' || $('.woo_product_slider_disabled').length > 0)) { 264 var first_img = $('.woocommerce-product-gallery__image:first-child img'); 265 266 // Zoom on the first image 267 first_img.image_zoom(options); 268 restart_on_hover(first_img); 269 270 // Remove the click action on the images 271 $('.woocommerce-product-gallery__image img').on('click', function(e){ 272 e.preventDefault(); 273 }); 274 275 276 $('.woocommerce-product-gallery__image img').each(function(i) { 277 $(this).removeAttr('data-large_image'); 278 $(this).removeAttr('data-large_image_width'); 279 $(this).removeAttr('data-large_image_height'); 280 $(this).removeAttr('srcset'); 281 $(this).removeAttr('sizes'); 282 }); 283 284 // Switch the thumbnail with the main image 285 $(".woocommerce-product-gallery__image:nth-child(n+2) img").each(function(i){ 286 $(this).on('click', function(e){ 287 var this_thumb = $(this); 288 // Exchange the attributes 289 $.each(['alt', 'title', 'data-src'], function(key,attr) { 290 var temp; 291 if ( first_img.attr( attr ) ) temp = first_img.attr( attr ); 292 if ( this_thumb.attr( attr ) ) { 293 first_img.attr(attr, this_thumb.attr(attr) ); 294 } else { 295 first_img.removeAttr( attr ); 296 } 297 if ( IZ.exchange_thumbnails == '1' ) { 298 if ( temp && temp.length > 0 ) { 299 this_thumb.attr(attr, temp); 300 } else { 301 this_thumb.removeAttr( attr ); 302 } 303 } 304 305 }); 306 307 var thumb_src = this_thumb.attr('src'); 308 309 310 // Exchange the link sources 311 var temp; 312 temp = this_thumb.parent().attr('href'); 313 if ( IZ.exchange_thumbnails == '1' ) { 314 this_thumb.parent().attr('href', first_img.parent().attr('href')); 315 } 316 first_img.parent().attr('href', temp ); 317 318 // Set the first_img.src = the link source 319 first_img.attr('src', temp ); 320 321 // Set the this_thumb.src = data-thumbnail-src 322 if ( first_img.data('thumbnail-src') && IZ.exchange_thumbnails == '1' ) { 323 this_thumb.attr( 'src', first_img.attr('data-thumbnail-src')); 324 } 325 326 // Set the first_img.data-thumbnail-src 327 first_img.attr('data-thumbnail-src', thumb_src ); 328 329 // Replace the data-zoom-image 330 temp = first_img.data('zoom-image'); 331 if ( !this_thumb.data('zoom-image') ) this_thumb.data('zoom-image', ''); 332 first_img.data('zoom-image', this_thumb.data('zoom-image')); 333 if( ! temp ) temp = ''; 334 this_thumb.data('zoom-image', temp); 335 336 337 // Remove the old zoom and reactive the new zoom 338 $(".zoomContainer").remove(); 339 first_img.image_zoom(options); 340 restart_on_hover(first_img); 341 342 }); 343 }); 344 } 345});
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.