<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="BlazorASPX.aspx.vb"
    Inherits="EnsinoBasico.BlazorASPX" %>

<!DOCTYPE html>
<html lang="pt">
<head runat="server">
    <meta charset="utf-8" />
    <title>InovarAlunos</title>
    <%--<meta http-equiv="X-UA-Compatible" content="IE=edge" />--%>
    <!-- Tell the browser to be responsive to screen width -->
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
	
    <script src="Resources.Gizmox.WebGUI.Forms.Skins.CommonSkin.Interfaces.js.wgx" type="text/javascript"></script>

<style>
  html {height:100%; }
  body {height:100%; overflow:hidden;}
</style>

  
	
</head>
<body style="margin: 0px; margin-top: 1px;">
<iframe 
        width="100%" 
        height="100%" 
        src=<%#Url %>
        frameborder="0" 
        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" 
        allowfullscreen
		style="background-color: white;">
</iframe>



 <script type="text/javascript">

window.addEventListener("message", (event) => {
    //if (event.origin !== "http://example.org:8080")   return;		

        onChildPostMessage(event.data);		
    }, false);

        function onChildPostMessage(msg) {
            setTimeout(function () {
                var objEvent = VWG.Events.CreateEvent("<%= PageContext.ID %>", "BlazorJsEvent");
                VWG.Events.SetEventAttribute(objEvent, "message", msg);
                VWG.Events.RaiseEvents();
            }, 0);
        }; 
        </script>


</body>
</html>

