<html>
<head>
    <link rel="icon" href="./favicon.ico" />
    <meta charset="utf-8" />
    <title>Cave Cruiser</title>
    <meta
            name="viewport"
            content="width=device-width,user-scalable=no,initial-scale=1,minimum-scale=1,maximum-scale=1,minimal-ui=true"
    />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="full-screen" content="yes" />
    <meta name="screen-orientation" content="portrait" />
    <meta name="x5-fullscreen" content="true" />
    <meta name="360-fullscreen" content="true" />
    <meta name="renderer" content="webkit" />
    <meta name="force-rendering" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <link rel="stylesheet" type="text/css" href="./index.css" />
    <link rel="stylesheet" type="text/css" href="./custom.css" />

    <script type="text/javascript" src="https://appx/web-view.min.js"></script>

</head>
<body style="overflow: hidden;">
<%- include(cocosToolBar, {config: config}) %>
<div id="content" class="content" style="overflow: hidden;">
    <div class="contentWrap">
        <div id="GameDiv" class="wrapper">
            <div id="Cocos3dGameContainer">
                <canvas id="GameCanvas" tabindex="-1"></canvas>
            </div>
            <div id="splash">
                <div class="progress-bar stripes"><span></span></div>
            </div>
            <div id="bulletin">
                <div id="sceneIsEmpty" class="inner"><%= tip_sceneIsEmpty %></div>
            </div>
        </div>
    </div>
</div>

<%- include(cocosTemplate, {}) %>

<script>
    window.addEventListener("load", function () {
        window.vConsole?.destroy(); // 干掉烦人的vConsole
    });

    window.my = {
        postMessage(e){
            const eventType = e.type;
            if (eventType === "getAuthCode") {
                this.onMessage({type: e.type, authCode: "authCode"});
            }else if(eventType === "getMiniAppQuery"){
                this.onMessage({type: eventType, query: {}});
            }
        },
        onMessage: () => 0,
    }
</script>


</body>
</html>
