1window.addEventListener('load', checkWindowSize); 2window.addEventListener('resize', checkWindowSize); 3 4function checkWindowSize() { 5 var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; 6 var sealContent = document.querySelector('.seal_content.pc'); 7 var sealContentSpTab = document.querySelector('.horizontal'); 8 var referenceElement = document.querySelector('.vertical'); 9 10 if (width <= 960) { 11 if (sealContent) { 12 sealContentHTML = sealContent.outerHTML; 13 sealContent.remove(); 14 } 15 if (width >= 915 && sealContentSpTab) { 16 sealContentSpTabHTML = sealContentSpTab.outerHTML; 17 sealContentSpTab.remove(); 18 } 19 } else if (width >= 961) { 20 if (!sealContent && sealContentHTML) { 21 var parentElement = document.querySelector('.seal_ft ul'); 22 if (parentElement) { 23 parentElement.insertAdjacentHTML('beforeend', sealContentHTML); 24 } 25 } 26 } 27 if (width <= 915){ 28 if (!sealContentSpTab && referenceElement && sealContentSpTabHTML) { 29 var parentElement = document.querySelector('.seal_content'); 30 if (parentElement) { 31 var tempDiv = document.createElement('div'); 32 tempDiv.innerHTML = sealContentSpTabHTML; 33 var newElement = tempDiv.firstChild; 34 newElement.className = "seal_inner sptab horizontal"; 35 parentElement.insertBefore(newElement, referenceElement); 36 } 37 } 38 } 39} 40 41function loadScript(src, id) { 42 var oldScript = document.getElementById(id); 43 if (oldScript) { 44 oldScript.remove(); 45 } 46 47 let s = document.createElement("script"); 48 s.src = src; 49 s.id = id; 50 document.body.appendChild(s); 51} 52 53window.addEventListener('load', () => { 54 var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; 55 56 loadScript("https://gmo-cybersecurity.com/siteseal/siteseal.js" ,"script1"); 57 58 if (width <= 915) { 59 loadScript("https://seal.atlas.globalsign.com/gss/one/seal?image=seal_130-66_ja_t.png", "script2"); 60 } else { 61 loadScript("https://seal.atlas.globalsign.com/gss/one/seal?image=seal_100-50_ja_t.png", "script2"); 62 } 63}); 64 65window.addEventListener('resize', () => { 66 var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; 67 68 if (width <= 915) { 69 loadScript("https://siteseal.gmo-cybersecurity.com/static/scripts/siteseal.js", "script1"); 70 loadScript("https://seal.atlas.globalsign.com/gss/one/seal?image=seal_130-66_ja_t.png", "script2"); 71 } else { 72 loadScript("https://seal.atlas.globalsign.com/gss/one/seal?image=seal_100-50_ja_t.png", "script2"); 73 } 74});
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.