1function sendResizeMessage() { 2 var height = Math.max( 3 document.body.offsetHeight, 4 document.documentElement.offsetHeight, 5 document.body.scrollHeight 6 ); 7 if (height < 100 && window.$ && window.$(".push-full").length) { 8 height = $(".push-full").height() + 50; 9 } 10 parent.postMessage( 11 "cityzen_embed_" + window.embedId + "_height_" + height + "_", 12 "*" 13 ); 14 window.parent.postMessage( 15 JSON.stringify({ 16 src: window.location.toString(), 17 context: "iframe.resize", 18 height: height // pixels 19 }), 20 "*" 21 ); 22} 23window.embedId = 24 decodeURIComponent( 25 (new RegExp("[?|&]" + "embedId" + "=" + "([^&;]+?)(&|#|;|$)").exec( 26 location.search 27 ) || [null, ""])[1].replace(/\+/g, "%20") 28 ) || null; 29if (window.embedId == null && window.cz != null) { 30 window.embedId = cz.embedId; 31} 32if (window.embedId > 0) { 33 sendResizeMessage(); 34 setInterval(function () { 35 sendResizeMessage(); 36 }, 1000); 37} 38 39if (window.initBootstrapPopovers) { 40 window.initBootstrapPopovers(document); 41} else if (window.jQuery && typeof $.fn.popover === "function") { 42 $(document) 43 .find('[data-toggle="popover"],[data-bs-toggle="popover"]') 44 .popover(); 45}
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.