"); //ch-start-hideheader-footer-script_js.txt - 09/19/2023 12:47 PM - UTC // Script for hiding EG Header and Footer window.addEventListener("message", receiveMessageSTStaging, false); window.addEventListener("message", receiveMessageEGStaging, false); window.addEventListener("message", receiveMessageSTProd, false); window.addEventListener("message", receiveMessageEGProd, false); // A variable for storing our parent message event so we can // establish two-way communication. var parentMessageEvent; function receiveMessageSTStaging(event) { // Let's make sure the sender of this message is who we think it is. // set the server recipients name if (event.origin !== 'https://softwaretrends.wpengine.com') { return; } parentMessageEvent = event; hide(); } function receiveMessageEGStaging(event) { if (event.origin !== 'https://sqateg.wpengine.com') { return; } parentMessageEvent = event; hide(); } function receiveMessageSTProd(event) { if (event.origin !== 'https://softwaretrends.com') { return; } parentMessageEvent = event; hide(); } function receiveMessageEGProd(event) { if (event.origin !== 'https://sqa.softwaretrends.com') { return; } parentMessageEvent = event; hide(); } function sendResizeToParentWindow() { if (parentMessageEvent != undefined) { parentMessageEvent.source.postMessage(JSON.stringify({ event: 'resize', height: 1000 // custom height by px to be set }), parentMessageEvent.origin); } }; function hide() { // Uncomment this line if scroll bar is visible if content hub //sendResizeToParentWindow(); $('.padding-logo').hide(); $('footer').hide(); } //ch-end-hideheader-footer-script_js.txt
Smarter AIOps

Smarter AIOps

Discover smarter AIOps in action. Realize optimal app performance, reduce IT costs and gain more time for innovation. Read the ebook.