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 30: Line 30:
     iframeWin.style.display="block";
     iframeWin.style.display="block";
   });
   });


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

Revision as of 13:26, 7 July 2023

Usage