ASDSO Dam Safety Toolbox

Template: WhatLinksHere: Difference between revisions

From ASDSO Dam Safety Toolbox
Jump to: navigation, search
No edit summary
No edit summary
Line 31: Line 31:
   });
   });


   window.addEventListener("message", receiveMessage, false);
   document.querySelector("iframe").addEventListener( "message", function(e) {
  function receiveMessage(event) {
     if (e.data && e.data.params && e.data.params.height) {
     if (event.data && event.data.params && event.data.params.height) {
       document.getElementById("iframeWin").style.height = event.data.params.height;
       document.getElementById("iframeWin").style.height = event.data.params.height;
     }
     }
   }  
   });
</script>
</script>
</html>
</html>

Revision as of 13:22, 7 July 2023

Usage