1$(document).ready(function () { 2 3 4 5}); 6 7 8window.addEventListener("message", function(event) { 9 // Verify the message is from Agiletix 10 if (event.origin !== "https://tickets.normalil.gov" && event.origin != "https://tickets.childrensdiscoverymuseum.net" && event.origin != "https://tickets.normaltheater.com") return; 11 12 let messageData; 13 try { 14 messageData = JSON.parse(event.data); 15 } catch (e) { 16 console.warn('Message data is not valid JSON:', event.data); 17 return; 18 } 19 20 // Log everything so you can see whatâs coming through 21 console.log('Received message from iframe:', messageData); 22 23 const aglEmbed = document.getElementById('aglEmbed'); 24 25 // If the message is for resizing or page load, adjust the iframe height 26 if(messageData.action === 'pageload') { 27 document.getElementById('aglEmbed').style.height = '600px'; 28 } 29 else if (messageData.action === 'resize') { 30 const newHeight = parseInt(messageData.value); 31 if (!isNaN(newHeight)) { 32 33 document.getElementById('aglEmbed').style.height = Math.max(600, (parseInt(newHeight) + 0)) + "px" 34 console.log('Iframe height set to:', newHeight + 'px'); 35 } else { 36 console.warn('Received invalid height value:', messageData.value); 37 } 38 } 39 else if (messageData.action === 'ats-modalopen' || messageData.action === 'modalopen') { 40 console.log("modal open message received"); 41 window.lastScroll = window.scrollY; 42 aglEmbed.scrollIntoView({block: "start"}); 43 } 44});
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.