1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opens = _____WB$wombat$assign$function_____("opens"); 10/************************** 11 * 12 * document ready functions 13 * 14 *************************/ 15 16(function ($) { 17 18 'use strict'; 19 20 $(document).ready(function () { 21 $('.shoppable-image').each(function() { 22 shoppable_image($(this)); 23 }); 24 25 $('body').on('shoppableImages', function(e, $content) { 26 $content.find('.shoppable-image').each(function() { 27 shoppable_image($(this)); 28 }); 29 }); 30 }); 31 32 var shoppable_image = function (ThisImagemap) { 33 if (ThisImagemap.data('aceShoppableImageLoaded')) { 34 return; 35 } 36 37 var 38 Map = ThisImagemap.find('.shoppable-image-map'), 39 HideBtn = ThisImagemap.find('.shoppable-image-hideshow-btn'); 40 new Waypoint({ 41 element: ThisImagemap, 42 handler: function (direction) { 43 if (direction === 'down') { 44 ThisImagemap.addClass('pins-visible'); 45 } else { 46 ThisImagemap.removeClass('pins-visible'); 47 } 48 }, 49 offset : '80%' 50 }); 51 HideBtn.click(function(e){ 52 e.preventDefault(); 53 Map.toggleClass('hide-pins'); 54 }); 55 shoppable_image_resize(ThisImagemap); 56 $(window).resize(function () { 57 shoppable_image_resize(ThisImagemap); 58 }); 59 60 ThisImagemap.data('aceShoppableImageLoaded', true); 61 }; 62 63 var shoppable_image_resize = function(ThisImagemap){ 64 var 65 Pins = ThisImagemap.find('.shoppable-image-pin'); 66 Pins.each(function(){ 67 var 68 ThisPinBody = $(this).find('.shoppable-image-pin-body'); 69 ThisPinBody.css({ "margin-left": "auto" }); 70 var 71 BodyRect = ThisPinBody[0].getBoundingClientRect(), 72 OffsetLeft = BodyRect.x, 73 OffsetRight = ( BodyRect.x + BodyRect.width ) - window.innerWidth; 74 if( OffsetLeft < 0 ) { 75 ThisPinBody.css({ "margin-left": -OffsetLeft + 'px' }); 76 } 77 if ( OffsetRight > 0 ) { 78 ThisPinBody.css({ "margin-left": -OffsetRight + 'px' }); 79 } 80 }); 81 }; 82 83})(jQuery); 84 85}
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.