1(function( $ ) { 2 let config = typeof GlobaleScriptConfig != 'undefined' ? GlobaleScriptConfig : {}; 3 if ($.isEmptyObject(config)) { 4 console.warn('Empty GlobaleScriptConfig found'); 5 return; 6 } 7 8 window.geStoreCode = config.getStoreCode; 9 window.geStoreCodeInstance = config.getStoreCodeInstance; 10 window.gePreferedCulture = config.getPreferedCulture; 11 12 let s = document.createElement('script'); 13 s.type = 'text/javascript'; 14 s.async = true; 15 s.src = config.script; 16 document.getElementsByTagName('head')[0].appendChild(s); 17 if (config.updateCookies) { 18 window['UpdateGECookie'] = function (country, currency, callbackObj, callbackFunction, context) { 19 let match = document.cookie.match(new RegExp('(^| )' + config.defaultCookieName + '=([^;]+)')); 20 if (match) { 21 let globaleDataCookie = match[2]; 22 let date = new Date(); 23 date.setTime(date.getTime() + (7 * 24 * 60 * 60 * 1000)); 24 const expires = 'expires=' + date.toUTCString(); 25 document.cookie = config.cookieName + '=' + globaleDataCookie + '; ' + expires + '; path=/'; 26 } 27 callbackFunction.call(context, callbackObj); 28 } 29 } 30})(jQuery);
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.