App/web/public/index.html

49 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#222" />
<meta name="description" content="Click and Join Web" />
<title>Click and Join Web</title>
<style>
:root {
--doc--height: 100%;
}
html,
body {
padding: 0;
margin: 0;
background-color: #282f34;
overflow: hidden;
}
#root {
height: 100vh; /* fallback for Js load */
height: var(--doc-height);
display: flex;
}
</style>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script>
var exports = {};
const documentHeight = () => {
const doc = document.documentElement;
doc.style.setProperty('--doc-height', window.innerHeight + 'px');
};
window.addEventListener('resize', documentHeight);
documentHeight();
</script>
<script type="module" src="/bundle.web.js"></script>
</body>
</html>