1(function () { 2 if (typeof (RegionalSitePopup) !== 'undefined' && typeof (IpToGeoLocation) !== 'undefined' && EF.Config.Culture == 'en-US') { 3 var flagsTipOnClose = function () { 4 var regionPanel = $('.region-panel'); 5 if (!regionPanel.length) { 6 return; 7 } 8 9 var offset = regionPanel.offset(), 10 tip = $('<div class="regions-tip">You can change your region anytime here</div>'); 11 12 tip.css({ top: offset.top, left: offset.left / 2, opacity: 0 }); 13 tip.appendTo('body'); 14 15 $('body').scrollTo(200, 0, function () { 16 tip.animate({ opacity: 1 }, 100).animate({ left: offset.left - tip.width() - 12 }, 800).delay(4000).fadeOut(); 17 }); 18 }; 19 20 var regionalSitePopup = new RegionalSitePopup(); 21 22 regionalSitePopup.onClose(function () { 23 regionalSitePopup.disablePopup(); 24 flagsTipOnClose(); 25 }); 26 27 regionalSitePopup.onShow(function () { 28 EFgoogleEvents.trackEvent({ 29 category: EFgoogleEvents.categories.Regional, 30 action: EFgoogleEvents.actions.DisplayCanadaPopup 31 }); 32 }); 33 regionalSitePopup.onRedirect(function (url) { 34 EFgoogleEvents.trackLinkVisitEvent(EFgoogleEvents.categories.Regional, EFgoogleEvents.actions.GoToCanadaSite, url, url); 35 regionalSitePopup.disablePopup(); 36 }); 37 38 if (!regionalSitePopup.hasAlreadyShown()) { 39 IpToGeoLocation.isCanada(function (isCanada) { 40 if (isCanada) { 41 regionalSitePopup.display(); 42 } else { 43 regionalSitePopup.disablePopup(); 44 } 45 }); 46 } 47 } 48})();
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.