1window.ec = window.ec || {}; 2window.ec.config = window.ec.config || {}; 3window.ec.config.storefrontUrls = window.ec.config.storefrontUrls || {}; 4 5jQuery(document).ready(function() { 6 7 window.ecwidShoppingCartMakeStoreLinksUseApiCall = function($link) { 8 9 $link.click(function() { 10 if (typeof Ecwid == 'undefined') { 11 return true; 12 } 13 14 var page = jQuery(this).data('ecwid-page'); 15 if (page == '/') { 16 if (!ecwidParams.useJsApiToOpenStoreCategoriesPages) { 17 return; 18 } 19 20 var id = jQuery('[data-ecwid-default-category-id]').data('ecwid-default-category-id'); 21 if (id) { 22 Ecwid.openPage('category', {id:id}); 23 } else { 24 Ecwid.openPage('category', 0); 25 } 26 } else if (page == 'category' ) { 27 if (ecwidParams.useJsApiToOpenStoreCategoriesPages) { 28 Ecwid.openPage('category', {id:jQuery(this).data('ecwid-category-id')}); 29 jQuery(this).hide().blur().show(); 30 } else { 31 return; 32 } 33 } else if ( page == 'product' ) { 34 Ecwid.openPage('product', {id: jQuery(this).data('ecwid-product-id')}); 35 } else { 36 Ecwid.openPage(page); 37 } 38 39 return false; 40 }); 41 }; 42 43 ecwidShoppingCartMakeStoreLinksUseApiCall(jQuery("a[data-ecwid-page]")); 44 45 46 47 48 if ( typeof Ecwid != 'undefined' ) { 49 Ecwid.OnAPILoaded.add(function () { 50 51 var font = window.ec.config.chameleonDefaults 52 && window.ec.config.chameleonDefaults.font 53 && window.ec.config.chameleonDefaults.font['font-family'] || ''; 54 document.cookie = "ec_store_chameleon_font=" + font; 55 }) 56 }; 57 58 if ( ecwidParams.trackPublicPage ) { 59 if ( typeof Ecwid != 'undefined' ) { 60 Ecwid.OnAPILoaded.add(function () { 61 62 var tracker = window['eca']; 63 64 if (tracker) { 65 var noTracking = false; 66 var noTrackingWidgets = ['ProductBrowser', 'Product', 'SingleProduct']; 67 var initializedWidgets = Ecwid.getInitializedWidgets(); 68 for (var i = 0; i < noTrackingWidgets.length; i++) { 69 if (initializedWidgets.indexOf(noTrackingWidgets[i]) != -1) { 70 noTracking = true; 71 break; 72 } 73 } 74 75 if (!noTracking) { 76 tracker('send', {'eventName': 'PAGE_VIEW', entityType: 'PAGE', 'storeId': Ecwid.getOwnerId()}); 77 } 78 } 79 }); 80 } else { 81 (function(w, d, analyticsJsUrl, trackerName) { 82 w['HeapAnalyticsObject'] = trackerName; 83 w[trackerName] = w[trackerName] || function() { 84 (w[trackerName].q = w[trackerName].q || []).push(arguments) 85 }, w[trackerName].l = 1 * new Date(); 86 var analyticsScript = d.createElement('script'); 87 analyticsScript.async = true; 88 analyticsScript.src = analyticsJsUrl; 89 90 var firstScript = d.getElementsByTagName('script')[0]; 91 var maxAttempts = 50; 92 var interval = setInterval(function() { 93 if (/loaded|complete/.test(d.readyState) || (0 === maxAttempts--)) { 94 firstScript.parentNode.insertBefore(analyticsScript, firstScript); 95 clearInterval(interval) 96 } 97 }, 100); 98 })(window, document, 'https://ecomm.events/i.js', "eca"); 99 eca('send', {'eventName': 'PAGE_VIEW', entityType: 'PAGE', 'storeId': ecwidParams.storeId}); 100 } 101 } 102 103});
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.