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"); 10jQuery(document).ready(function($) { 11 var contents = {}, 12 current = null, 13 loading = true, 14 timeout = null; 15 16 function getContent() { 17 var $element = $(this), 18 $data = $element.data(), 19 data = {}, 20 identifier = $element.data('identifier'), 21 locale = $element.data('locale'), 22 popover = $element.data('bs.popover'); 23 24 if(contents[locale] && contents[locale][identifier]) { 25 return contents[locale][identifier]; 26 } else { 27 for(var p in $data) { 28 if('object' !== typeof $data[p] && 'function' !== typeof $data[p]) { 29 data[p] = $data[p]; 30 } 31 } 32 33 $.post( 34 EasyAzonPro_Components_Popovers.ajaxUrl, 35 { 36 action: EasyAzonPro_Components_Popovers.ajaxAction, 37 atts: data, 38 }, 39 function(data, status) { 40 saveContent(identifier, locale, data.markup); 41 42 if(null !== current) { 43 $(current).popover('hide').popover('show'); 44 } 45 }, 46 'json' 47 ); 48 49 return saveContent(identifier, locale, EasyAzonPro_Components_Popovers.loading); 50 } 51 } 52 53 function saveContent(identifier, locale, content) { 54 if(!contents[locale]) { 55 contents[locale] = {}; 56 } 57 58 contents[locale][identifier] = content; 59 60 return contents[locale][identifier]; 61 } 62 63 function popoverTimeoutClear() { 64 if(null !== timeout) { 65 clearTimeout(timeout); 66 timeout = null; 67 } 68 } 69 70 function popoverTimeoutSet() { 71 timeout = setTimeout(function() { 72 if(null !== current) { 73 $(current).popover('hide'); 74 75 current = null; 76 timeout = null; 77 } 78 }, parseInt(EasyAzonPro_Components_Popovers.timeout)); 79 } 80 81 $('[data-identifier][data-locale][data-popups="y"]').each(function(index, element) { 82 var $element = $(element), 83 $block = $element.parents('.easyazon-block'); 84 85 if(!$block.size()) { 86 $element.popover({ 87 content: getContent, 88 html: true, 89 placement: EasyAzonPro_Components_Popovers.placement, 90 template: EasyAzonPro_Components_Popovers.template, 91 trigger: 'manual' 92 }); 93 } 94 }).hover(function(event) { 95 var $element = $(this), 96 element = $element.get(0); 97 98 99 popoverTimeoutClear(); 100 101 if(current !== element) { 102 if(null !== current) { 103 $(current).popover('hide'); 104 } 105 106 $element.popover('show'); 107 108 current = element; 109 } 110 }, function(event) { 111 popoverTimeoutSet(); 112 }); 113 114 $(document).on('mouseenter', '.easyazon-popover', function() { 115 popoverTimeoutClear(); 116 }).on('mouseleave', '.easyazon-popover', function() { 117 popoverTimeoutSet(); 118 }); 119}); 120}
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.