1// Cookieèªåããããã³ã°æå¹å 2var hostname = window.location.hostname; 3 4// ------------------------------ 5// GTMãã¬ãã¥ã¼å¤å®ï¼URLãã©ã¡ã¼ã¿ï¼ 6// ------------------------------ 7function hasGtmPreviewParam() { 8 var params = new URLSearchParams(window.location.search); 9 if (params.has('gtm_debug')) { 10 return true; 11 } 12 if (params.has('_dbg')) { 13 return true; 14 } 15 return false; 16} 17 18// ------------------------------ 19// gtm_preview ã»ãã·ã§ã³ã¹ãã¬ã¼ã¸ã®æºå 20// ------------------------------ 21var previewParamExists = hasGtmPreviewParam(); 22var previewSessionValue = sessionStorage.getItem('gtm_preview'); 23 24// URLã§ãã¬ãã¥ã¼æå®ããããã»ãã·ã§ã³æªè¨å®ãªãã»ããï¼ã¿ãã»ãã·ã§ã³åç¶ä¸ã®ã¿æå¹ï¼ 25if (previewParamExists) { 26 if (previewSessionValue !== '1') { 27 sessionStorage.setItem('gtm_preview', '1'); 28 previewSessionValue = '1'; 29 } 30} 31 32// ------------------------------ 33// OneTrust èªåãããã¯èªã¿è¾¼ã¿ï¼gtm_preview=1 ãåå¨ããå ´åã®ã¿ï¼ 34// â» ãã¬ãã¥ã¼æã¯èªã¿è¾¼ã¾ãªã 35// ------------------------------ 36var isPreview = false; 37if (previewSessionValue === '1') { 38 isPreview = true; 39} 40 41if (!isPreview) { 42 if(hostname =="staging.generalww.com" || hostname == "www.generalww.com"){ 43 // Load cookie control 44 var cookieFujitsu = document.createElement('script'); 45 cookieFujitsu.type = 'text/javascript'; 46 cookieFujitsu.src = 'https://cdn-au.onetrust.com/consent/019b0103-77db-7472-b01e-e2fe1d08fbc7/OtAutoBlock.js'; 47 document.head.appendChild(cookieFujitsu); 48 } 49 if(hostname == "staging.general-hvac.com" || hostname == "www.general-hvac.com"){ 50 // Load cookie control 51 var cookieGeneral = document.createElement('script'); 52 cookieGeneral.type = 'text/javascript'; 53 cookieGeneral.src = 'https://cdn-au.onetrust.com/consent/85446a89-2ae6-4921-96ec-9a226c59315d/OtAutoBlock.js'; 54 document.head.appendChild(cookieGeneral); 55 } 56} 57 58/*Google Tag manager*/
vendor: 370 bytes, lines 58-67
58 59(function(w,d,s,l,i){ 60 w[l]=w[l]||[];w[l].push({'gtm.start': 61 new Date().getTime(),event:'gtm.js'}); 62 var f=d.getElementsByTagName(s)[0], 63 j=d.createElement(s), 64 dl=l!='dataLayer'?'&l='+l:''; 65 j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl; 66 f.parentNode.insertBefore(j, f); 67})(window,document,'script','dataLayer','
67GTM-5C7T5H
vendor: 3 bytes, line 67
67');
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.