https://millenniumlasertech.com/wp-content/plugins/product-catalog/js/elevateZoomParams.js?ver=1.0.0
1if (typeof allowZooming != 'undefined' && allowZooming != 'off') { 2 if (jQuery(window).width() >= 600) { 3 jQuery('.product-catalog-content.liquid-slider ').find(for_zoom).hover(function () { 4 for_zoom = jQuery(this); 5 zoom_start2(); 6 }, function () { 7 zoom_resize(); 8 }); 9 zoom_start(); 10 jQuery(window).resize(function () { 11 zoom_resize(); 12 }); 13 } 14} 15 16jQuery(window).resize(function () { 17 if (typeof allowZooming != 'undefined' && allowZooming != 'off') { 18 if (jQuery(window).width() >= 600) { 19 jQuery('.main-image-block.not_for_zoom').hide(); 20 jQuery('.main-image-block.for_zoom').show(); 21 jQuery('.product-catalog-content.liquid-slider ').find(for_zoom).hover(function () { 22 for_zoom = jQuery(this); 23 zoom_start2(); 24 }, function () { 25 zoom_resize(); 26 }); 27 zoom_start(); 28 } 29 else { 30 jQuery('.main-image-block.for_zoom').hide(); 31 jQuery('.main-image-block.not_for_zoom').show(); 32 } 33 } 34}); 35jQuery(window).resize(); 36function zoom_resize() { 37 jQuery('img.zoomed').removeData('elevateZoom');//remove zoom instance from image 38 jQuery('.zoomWrapper img.zoomed').unwrap(); 39 jQuery('.zoomContainer2').remove(); 40 if (jQuery(window).width() > 640) { 41 jQuery('.product-catalog-content.liquid-slider ').find(for_zoom).hover(function () { 42 for_zoom = jQuery(this); 43 zoom_start2(); 44 }); 45 zoom_start(); 46 } 47 var image_width, image_height; 48 jQuery('.main-image-block a').find("img").each(function () { 49 image_width = jQuery(this).width(); 50 image_height = jQuery(this).find("img").height(); 51 jQuery('.zoomWrapper').width(image_width); 52 jQuery('.zoomWrapper').height(image_height); 53 }); 54 55 56} 57 58function zoom_start() { 59 if (allowZooming == "on") { 60 jQuery('.product-catalog-content').not('.liquid-slider').each(function () { 61 if (catalogZoomType == "window") { 62 jQuery(this).find(for_zoom).elevateZoom({ 63 responsive: true, 64 imageCrossfade: true, 65 loadingIcon: 'http://www.elevateweb.co.uk/spinner.gif', 66 easingType: "zoomdefault", 67 easingDuration: 2000, 68 containLensZoom: false, 69 70 // ////////////////////// Zoom Window /////////////////////// 71 72 zoomType: catalogZoomType, 73 zoomWindowWidth: catalogWindowWidth, 74 zoomWindowHeight: catalogWindowHeight, 75 zoomWindowOffetx: catalogWindowOffetx, 76 zoomWindowOffety: catalogWindowOffety, 77 zoomWindowPosition: catalogWindowPosition, 78 zoomWindowFadeIn: catalogWindowFadeIn, 79 zoomWindowFadeOut: catalogWindowFadeOut, // 80 borderSize: catalogBorderSize, 81 borderColour: "#" + catalogBorderColour, 82 lensSize: catalogLensSize, 83 constrainSize: 200, 84
85 ////////////////////// Lens Options 86 87 lensFadeIn: catalogLensFadeIn, 88 lensFadeOut: catalogLensFadeOut, 89 lensShape: catalogLensShape, 90 lensColour: "#" + catalogLensColour, 91 lensOpacity: catalogLensOpacity, 92 lenszoom: false, 93 cursor: catalogCursor, 94 scrollZoom: catalogScrollZoom, 95 easing: catalogEasing, 96 tint: catalogTint, 97 tintColour: "#" + catalogTintColour, 98 tintOpacity: catalogTintOpacity, 99 zoomTintFadeIn: catalogZoomTintFadeIn, 100 zoomTintFadeOut: catalogZoomTintFadeOut 101 }); 102 103 } 104 else { 105 jQuery(this).find(for_zoom).elevateZoom({ 106 responsive: true, 107 imageCrossfade: true, 108 loadingIcon: 'http://www.elevateweb.co.uk/spinner.gif', 109 easingType: "zoomdefault", 110 easingDuration: 2000, 111 containLensZoom: true, 112 zoomType: catalogZoomType, 113 lensFadeIn: catalogLensFadeIn, 114 lensFadeOut: catalogLensFadeOut, 115 lensShape: catalogLensShape, 116 lensColour: "#" + catalogLensColour, 117 lensOpacity: catalogLensOpacity, 118 lenszoom: false, 119 cursor: catalogCursor, 120 scrollZoom: catalogScrollZoom, 121 easing: catalogEasing 122 }); 123 } 124 }); 125 126 } 127} 128 129function zoom_start2() { 130 jQuery('.product-catalog-content.liquid-slider ').each(function () { 131 132 if (catalogZoomType == "window") { 133 134 jQuery(this).find(for_zoom).elevateZoom2({ 135 responsive: true, 136 imageCrossfade: true, 137 loadingIcon: 'http://www.elevateweb.co.uk/spinner.gif', 138 easingType: "zoomdefault", 139 easingDuration: 2000, 140 containLensZoom: false, 141 142 // ////////////////////// Zoom Window /////////////////////// 143 144 zoomType: catalogZoomType, 145 zoomWindowWidth: catalogWindowWidth, 146 zoomWindowHeight: catalogWindowHeight, 147 zoomWindowOffetx: catalogWindowOffetx, 148 zoomWindowOffety: catalogWindowOffety, 149 zoomWindowPosition: catalogWindowPosition, 150 zoomWindowFadeIn: catalogWindowFadeIn, 151 zoomWindowFadeOut: catalogWindowFadeOut, // 152 borderSize: catalogBorderSize, 153 borderColour: "#" + catalogBorderColour, 154 lensSize: catalogLensSize, 155 constrainSize: 200, 156
157 ////////////////////// Lens Options 158 159 lensFadeIn: catalogLensFadeIn, 160 lensFadeOut: catalogLensFadeOut, 161 lensShape: catalogLensShape, 162 lensColour: "#" + catalogLensColour, 163 lensOpacity: catalogLensOpacity, 164 lenszoom: false, 165 cursor: catalogCursor, 166 scrollZoom: catalogScrollZoom, 167 easing: catalogEasing, 168 tint: catalogTint, 169 tintColour: "#" + catalogTintColour, 170 tintOpacity: catalogTintOpacity, 171 zoomTintFadeIn: catalogZoomTintFadeIn, 172 zoomTintFadeOut: catalogZoomTintFadeOut 173 }); 174 175 } 176 else { 177 jQuery(this).find(for_zoom).elevateZoom2({ 178 responsive: true, 179 imageCrossfade: true, 180 loadingIcon: 'http://www.elevateweb.co.uk/spinner.gif', 181 easingType: "zoomdefault", 182 easingDuration: 2000, 183 containLensZoom: true, 184 zoomType: catalogZoomType, 185 lensFadeIn: catalogLensFadeIn, 186 lensFadeOut: catalogLensFadeOut, 187 lensShape: catalogLensShape, 188 lensColour: "#" + catalogLensColour, 189 lensOpacity: catalogLensOpacity, 190 lenszoom: false, 191 cursor: catalogCursor, 192 scrollZoom: catalogScrollZoom, 193 easing: catalogEasing 194 }); 195 } 196 }); 197}
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.