2022-07-17 08:48:06 +00:00
|
|
|
<html class="dark">
|
2022-07-17 09:36:49 +00:00
|
|
|
<head>
|
|
|
|
<link rel="icon" href="./favicon.ico" />
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title><%=title%></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" />
|
|
|
|
</head>
|
|
|
|
<body>
|
2022-08-03 10:00:31 +00:00
|
|
|
<%- include(cocosToolBar, {config: config}) %>
|
2022-07-26 12:05:42 +00:00
|
|
|
<div style="display: flex;flex: auto;align-items: center;">
|
|
|
|
<%- include ./dist/index.html %>
|
|
|
|
<div id="content" class="content">
|
|
|
|
<div class="contentWrap">
|
|
|
|
<div id="GameDiv" class="wrapper">
|
|
|
|
<div id="Cocos3dGameContainer">
|
2022-12-11 08:05:14 +00:00
|
|
|
<canvas id="GameCanvas" tabindex="-1" style="background-color: '';"></canvas>
|
2022-07-26 12:05:42 +00:00
|
|
|
</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 class="error" id="error">
|
|
|
|
<div class="title">Error <i>(Please open the console to see detailed errors)</i></div>
|
|
|
|
<div class="error-main"></div>
|
2022-12-11 07:42:26 +00:00
|
|
|
<div class="error-stack"></div>
|
2022-07-26 12:05:42 +00:00
|
|
|
</div>
|
2022-07-17 08:48:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-26 12:05:42 +00:00
|
|
|
<p class="footer">
|
|
|
|
Created with <a href="https://www.cocos.com/products" target="_blank" title="Cocos Creator">Cocos Creator</a>
|
|
|
|
</p>
|
2022-07-17 08:48:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-17 09:36:49 +00:00
|
|
|
<%- include(cocosTemplate, {}) %>
|
|
|
|
</body>
|
|
|
|
</html>
|
2022-08-03 10:00:31 +00:00
|
|
|
|
|
|
|
<script>
|
2022-12-11 08:07:41 +00:00
|
|
|
document.getElementsByClassName('toolbar')[0].insertAdjacentHTML('afterbegin', '<div><button id="btn-show-tree">Tree</button></div>');
|
|
|
|
const devtoolsBtn = document.getElementById('btn-show-tree');
|
|
|
|
let isOpen = !!localStorage.getItem('ccc_devtools_show');
|
|
|
|
toggle(isOpen);
|
|
|
|
devtoolsBtn.addEventListener('click', () => {
|
|
|
|
isOpen = !isOpen;
|
|
|
|
toggle(isOpen);
|
|
|
|
}, false);
|
2022-08-03 10:00:31 +00:00
|
|
|
|
2022-12-11 08:07:41 +00:00
|
|
|
function toggle(isOpen) {
|
|
|
|
const devApp = document.getElementById('dev-app');
|
|
|
|
window.ccdevShow = isOpen;
|
|
|
|
if (isOpen) {
|
|
|
|
devApp.style.display = 'flex';
|
|
|
|
devtoolsBtn.classList.add('checked');
|
|
|
|
localStorage.setItem('ccc_devtools_show', 1);
|
|
|
|
} else {
|
|
|
|
devApp.style.display = 'none';
|
|
|
|
devtoolsBtn.classList.remove('checked');
|
|
|
|
localStorage.removeItem('ccc_devtools_show');
|
|
|
|
}
|
|
|
|
}
|
2022-08-03 10:00:31 +00:00
|
|
|
</script>
|