Unexpected Error |
|
function service(request, response) |
{ |
|
response.setCDNCacheable(response.CACHE_DURATION_LONG); |
|
var Environment = Application.getEnvironment(session, request) |
, Language = Environment.currentLanguage && Environment.currentLanguage.locale || '' |
, Currency = Environment.currentCurrency && Environment.currentCurrency.code || ''; |
|
response.write("\r\n<!DOCTYPE html>\r\n<html "); |
response.write( Language ? 'lang="' + Language.replace('_', '-')+ '"' : '' ); |
response.write(">\r\n<head>\r\n\r\n<!-- Google Tag Manager -->\r\n<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\r\n\tnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\r\n\tj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\r\n\t'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\r\n\t})(window,document,'script','dataLayer','GTM-58B9XRT');</script>\r\n<!-- End Google Tag Manager -->\r\n\r\n<script type=\"text/javascript\">\r\nif (!('remove' in Element.prototype)) {\r\n Element.prototype.remove = function() {\r\n if (this.parentNode) {\r\n this.parentNode.removeChild(this);\r\n }\r\n };\r\n}\r\n</script>\r\n\r\n<script>\r\n/* declare SC namespace here and the LOAD_FILEs objects*/\r\nvar SC = window.SC = {\r\n\tENVIRONMENT: {\r\n\t\tjsEnvironment: (typeof nsglobal === 'undefined') ? 'browser' : 'server'\r\n\t}\r\n,\tisCrossOrigin: function()\r\n\t{\r\n\t\treturn '"); |
response.write( Environment.currentHostString ); |
response.write("' !== document.location.hostname;\r\n\t}\r\n,\tisPageGenerator: function()\r\n\t{\r\n\t\treturn typeof nsglobal !== 'undefined';\r\n\t}\r\n,\tgetSessionInfo: function(key)\r\n\t{\r\n\t\tvar session = SC.SESSION || SC.DEFAULT_SESSION || {};\r\n\t\treturn (key) ? session[key] : session;\r\n\t}\r\n};\r\n\r\nif (!history.pushState && SC.ENVIRONMENT.jsEnvironment === 'browser' && (location.pathname !== \"/\" || location.search !== \"\") && location.hash === '')\r\n{\r\n\tif (location.pathname === \"/\")\r\n\t{\r\n\t\tvar hash = (RegExp('fragment=' + '(.+?)(&|$)').exec(location.search)||[,null])[1];\r\n\t\tlocation.replace(location.pathname + location.search + '/#' + unescape(hash));\r\n\t}\r\n\telse\r\n\t{\r\n\t\tlocation.replace('/#' + location.pathname + location.search);\r\n\t}\r\n\r\n\tdocument.write(\"\");\r\n}\r\n\r\n</script>\r\n<meta charset=\"utf-8\">\r\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no\" />\r\n<title>Shopping</title>\r\n<link rel=\"icon\" type=\"image/x-icon\" href=\""); |
response.write( session.getAbsoluteUrl('shopping', 'images/favicon.ico') ); |
response.write("\" />\r\n<script>\r\n\r\n/* if not in SEO we execute the html5 shiv. This code is copy and paste but characters '\' were replaced with '\\' because of the SSP renderer */\r\nif (!SC.isPageGenerator())\r\n{\r\n\t/**\r\n\t* @preserve HTML5 Shiv 3.7.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed\r\n\t*/\r\n\t!function(a,b){function c(a,b){var c=a.createElement(\"p\"),d=a.getElementsByTagName(\"head\")[0]||a.documentElement;return c.innerHTML=\"x<style>\"+b+\"</style>\",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=s.elements;return\"string\"==typeof a?a.split(\" \"):a}function e(a){var b=r[a[p]];return b||(b={},q++,a[p]=q,r[q]=b),b}function f(a,c,d){if(c||(c=b),k)return c.createElement(a);d||(d=e(c));var f;return f=d.cache[a]?d.cache[a].cloneNode():o.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!f.canHaveChildren||n.test(a)||f.tagUrn?f:d.frag.appendChild(f)}function g(a,c){if(a||(a=b),k)return a.createDocumentFragment();c=c||e(a);for(var f=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)f.createElement(h[g]);return f}function h(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return s.shivMethods?f(c,a,b):b.createElem(c)},a.createDocumentFragment=Function(\"h,f\",\"return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&(\"+d().join().replace(/[\\w\\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c(\"'+a+'\")'})+\");return n}\")(s,b.frag)}function i(a){a||(a=b);var d=e(a);return!s.shivCSS||j||d.hasCSS||(d.hasCSS=!!c(a,\"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}\")),k||h(a,d),a}var j,k,l=\"3.7.1\",m=a.html5||{},n=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,o=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,p=\"_html5shiv\",q=0,r={};!function(){try{var a=b.createElement(\"a\");a.innerHTML=\"<xyz></xyz>\",j=\"hidden\"in a,k=1==a.childNodes.length||function(){b.createElement(\"a\");var a=b.createDocumentFragment();return\"undefined\"==typeof a.cloneNode||\"undefined\"==typeof a.createDocumentFragment||\"undefined\"==typeof a.createElement}()}catch(c){j=!0,k=!0}}();var s={elements:m.elements||\"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video\",version:l,shivCSS:m.shivCSS!==!1,supportsUnknownElements:k,shivMethods:m.shivMethods!==!1,type:\"default\",shivDocument:i,createElement:f,createDocumentFragment:g};a.html5=s,i(b)}(this,document);\r\n}\r\n\r\n/* Define a function to load scripts at runtime, in the given order. Supports the SEO engne and older browsers. The script can be removed of the generated html by the server seo, please see Starter.js. */\r\n(function(){\r\n\tvar pendingScripts = []\r\n\t,\tfirstScriptTag = !SC.isPageGenerator() && document.getElementsByTagName('script')[0];//document.scripts[0] gives an ugly error in SEO ENGINE and is not used on it.\r\n\r\n\twindow.loadScript = function loadScript(scripts)\r\n\t{\r\n\t\tvar src\r\n\t\t,\tscript;\r\n\r\n\t\tvar typeof_scripts = typeof scripts;\r\n\t\tscripts = (typeof_scripts === 'string' || (typeof_scripts === 'object' && !scripts.length)) ? [scripts] : scripts;\r\n\r\n\t\t// loop through our script urls\r\n\t\tif (!SC.isCrossOrigin())\r\n\t\t{\r\n\t\t\twhile (src = scripts.shift())\r\n\t\t\t{\r\n\t\t\t\tsrc = (typeof src === 'string') ? {url: src} : src;\r\n\r\n\t\t\t\t// fall back to defer. This is the SEO Engine case too\r\n\t\t\t\tif (SC.isPageGenerator())\r\n\t\t\t\t{\r\n\t\t\t\t\tscript = document.createElement('script');\r\n\t\t\t\t\tscript.src = src.url;\r\n\t\t\t\t\tscript.type = 'text/javascript';\r\n\t\t\t\t\tvar seo_remove_element = document.createElement('div');\r\n\t\t\t\t\tseo_remove_element.className = 'seo-remove';\r\n\t\t\t\t\tseo_remove_element.appendChild(script);\r\n\t\t\t\t\tdocument.write(seo_remove_element.outerHTML);\r\n\t\t\t\t}\r\n\t\t\t\t// CASE 1: test for the ASYNC property on browsers\r\n\t\t\t\telse if ('async' in firstScriptTag)\r\n\t\t\t\t{\r\n\t\t\t\t\tscript = document.createElement('script');\r\n\t\t\t\t\tscript.async = !!src.async; //Should manage both async and sync\r\n\t\t\t\t\tscript.src = src.url;\r\n\t\t\t\t\tscript.type = 'text/javascript';\r\n\t\t\t\t\tfirstScriptTag.parentNode.insertBefore(script, firstScriptTag);\r\n\t\t\t\t}\r\n\t\t\t\t//CASE 2: Test for the readystate. IE<10\r\n\t\t\t\telse if (firstScriptTag.readyState)\r\n\t\t\t\t{\r\n\t\t\t\t\t// create a script and add it to our todo pile\r\n\t\t\t\t\tscript = document.createElement('script');\r\n\t\t\t\t\tscript.type = 'text/javascript';\r\n\t\t\t\t\tscript.async = !!src.async;\r\n\t\t\t\t\t//IF script is not meant to load 100% async\r\n\t\t\t\t\tif (!src.async)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// listen for state changes\r\n\t\t\t\t\t\tpendingScripts.push(script);\r\n\t\t\t\t\t\t// must set src AFTER adding onreadystatechange listener\r\n\t\t\t\t\t\tscript.onreadystatechange = function()\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// Watch scripts load in IE\r\n\t\t\t\t\t\t\t// Execute as many scripts in order as we can\r\n\t\t\t\t\t\t\tvar pendingScript;\r\n\t\t\t\t\t\t\twhile (pendingScripts[0] && pendingScripts[0].readyState == 'loaded')\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tpendingScript = pendingScripts.shift();\r\n\t\t\t\t\t\t\t\t// avoid future loading events from this script (eg, if src changes)\r\n\t\t\t\t\t\t\t\tpendingScript.onreadystatechange = null;\r\n\t\t\t\t\t\t\t\t// can't just appendChild, old IE bug if element isn't closed\r\n\t\t\t\t\t\t\t\tfirstScriptTag.parentNode.insertBefore(pendingScript, firstScriptTag);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\t// else we\u2019ll miss the loaded event for cached scripts\r\n\t\t\t\t\t}\r\n\t\t\t\t\tscript.src = src.url;\r\n\t\t\t\t\tif (src.async)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//ASYNC IE, append now\r\n\t\t\t\t\t\tfirstScriptTag.parentNode.insertBefore(script, firstScriptTag);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t//Fallback browser\r\n\t\t\t\t\tif (src.async)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tscript = document.createElement('script');\r\n\t\t\t\t\t\tscript.src = src.url;\r\n\t\t\t\t\t\tscript.type = 'text/javascript';\r\n\t\t\t\t\t\tfirstScriptTag.parentNode.insertBefore(script, firstScriptTag);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdocument.write('<script src=\"' + src.url + '\" defer></' + 'script>');\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n})();\r\n\r\n</script>\r\n<script type=\"text/javascript\" src=\"//www.googleadservices.com/pagead/conversion_async.js\"></script>\r\n<script type=\"text/javascript\">\r\n(function(a,e,c,f,g,b,d){var h={ak:\"1010653147\",cl:\"lYX9CLGck18Q26_14QM\"};a[c]=a[c]||function(){(a[c].q=a[c].q||[]).push(arguments)};a[f]||(a[f]=h.ak);b=e.createElement(g);b.async=1;b.src=\"//www.gstatic.com/wcm/loader.js\";d=e.getElementsByTagName(g)[0];d.parentNode.insertBefore(b,d);a._googWcmGet=function(b,d,e){a[c](2,b,h,d,null,new Date,e)}})(window,document,\"_googWcmImpl\",\"_googWcmAk\",\"script\");\r\n</script>\r\n\r\n\r\n\r\n</head>\r\n<body>\r\n\r\n<!-- Google Tag Manager (noscript) -->\r\n<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-TJ9LGH2\"\r\n\theight=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>\r\n<!-- End Google Tag Manager (noscript) -->\r\n\r\n<div id=\"scripts-placeholder\"></div>\r\n\r\n<noscript>\r\n\t<div class=\"container\">\r\n\t\t<div class=\"alert alert-error alert-noscript\">\r\n\t\t\t<strong>Javascript is disabled on your browser.</strong><br>\r\n\t\t\tTo view this site, you must enable JavaScript or upgrade to a JavaScript-capable browser.\r\n\t\t</div>\r\n\t</div>\r\n</noscript>\r\n\r\n<div id=\"main\" class=\"main\"></div>\r\n\r\n<div class=\"trustsealone\">\r\n<div class=\"trustsealtwo\">\r\n<!-- <script src=\"https://sealserver.trustkeeper.net/compliance/seal_js.php?code=w6o8pBo5yJraVGcHKItmg3XmgYYgvC\"></script><noscript><a href=\"https://sealserver.trustkeeper.net/compliance/cert.php?code=w6o8pBo5yJraVGcHKItmg3XmgYYgvC\" target=\"hATW\"><img src=\"https://sealserver.trustkeeper.net/compliance/seal.php?code=w6o8pBo5yJraVGcHKItmg3XmgYYgvC\" border=\"0\" alt=\"Trusted Commerce\"/></a></noscript> -->\r\n<script type=\"text/javascript\" src=\"https://cdn.ywxi.net/js/1.js\" async></script>\r\n</div>\r\n</div>\r\n\r\n<script>\r\n// Minimizes flickery of the 1st page load!\r\nif (!SC.isCrossOrigin())\r\n{\r\n\tdocument.getElementById(\"main\").innerHTML = '';\r\n}\r\n</script>\r\n\r\n<script>\r\nif (!SC.isCrossOrigin())\r\n{\r\n\t// Do we have SEO Support\r\n\tif (SC.isPageGenerator())\r\n\t{\r\n\t\tdocument.body.className = document.body.className + ' seo-support';\r\n\t}\r\n\tSC.ENVIRONMENT.seoSupport = !!~document.body.className.indexOf(\"seo-support\");\r\n\r\n\t/* load language and sc.environment.ssp */\r\n\tloadScript([\r\n\t\t'"); |
response.write( session.getAbsoluteUrl("shopping", "sc.environment.ssp?lang=" + Language + "&cur=" + Currency + "&X-SC-Touchpoint=shopping") ); |
response.write("'\r\n\t,\t'"); |
response.write( session.getAbsoluteUrl("shopping", "languages/" + Language + ".js") ); |
response.write("'\r\n\t]);\r\n\r\n\tif (SC.isPageGenerator())\r\n\t{\r\n\t\tSC.ENVIRONMENT.PROFILE = {};\r\n\t}\r\n\r\n\t// Loads the application files, if you need to have a less agresive cacheing you can move them\r\n\t// to the sc.environment.ssp (Moderate cacheing) or to the sc.user.environment.ssp (No cache but less performant)\r\n\tloadScript([\r\n\t\t'"); |
response.write( session.getAbsoluteUrl("shopping", 'js/libs/Libraries-01861458d3e7.js') ); |
response.write("'\r\n\t,\t'"); |
response.write( session.getAbsoluteUrl("shopping", 'templates/Templates-018bedd42183.js') ); |
response.write("'\r\n\t,\t'"); |
response.write( session.getAbsoluteUrl("shopping", 'js/Application-017ee597946e.js') ); |
response.write("'\r\n\t]);\r\n\r\n\tif (SC.ENVIRONMENT.jsEnvironment == 'browser')\r\n\t{\r\n\t\tloadScript({\r\n\t\t\turl: '"); |
response.write( session.getAbsoluteUrl("shopping", "sc.user.environment.ssp?lang=" + Language + "&cur=" + Currency + "&X-SC-Touchpoint=shopping") ); |
response.write("&t=' + new Date().getTime()\r\n\t\t,\tasync: true\r\n\t\t});\r\n\t}\r\n}\r\n\r\n</script>\r\n\r\n<link rel=\"stylesheet\" href=\""); |
response.write( session.getAbsoluteUrl('shopping', 'skins/standard/Styles-0187d7ca5cca.css') ); |
response.write("\">\r\n<!-- Accessibe Script -->\r\n<script> (function(){ var s = document.createElement('script'); var h = document.querySelector('head') || document.body; s.src = 'https://acsbapp.com/apps/app/dist/js/app.js'; s.async = true; s.onload = function(){ acsbJS.init({ statementLink : '', footerHtml : '', hideMobile : false, hideTrigger : false, disableBgProcess : false, language : 'en', position : 'right', leadColor : '#146FF8', triggerColor : '#146FF8', triggerRadius : '50%', triggerPositionX : 'right', triggerPositionY : 'bottom', triggerIcon : 'people', triggerSize : 'bottom', triggerOffsetX : 20, triggerOffsetY : 20, mobile : { triggerSize : 'small', triggerPositionX : 'right', triggerPositionY : 'bottom', triggerOffsetX : 10, triggerOffsetY : 10, triggerRadius : '20' } }); }; h.appendChild(s); })();</script>\r\n<!--End Accessibe Script -->\r\n</body>\r\n</html>\r\n"); |
} |
|
|