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.on('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 if ( typeof Ecwid != 'undefined' ) { 46 Ecwid.OnAPILoaded.add(function () { 47 48 var font = window.ec.config.chameleonDefaults 49 && window.ec.config.chameleonDefaults.font 50 && window.ec.config.chameleonDefaults.font['font-family'] || ''; 51 document.cookie = "ec_store_chameleon_font=" + font; 52 }) 53 }; 54 55});
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.