Files
fluxscape/packages/noodl-viewer-react/static/deploy/index.html
Michael Cartner b9c60b07dc Initial commit
Co-Authored-By: Eric Tuvesson <eric.tuvesson@gmail.com>
Co-Authored-By: mikaeltellhed <2311083+mikaeltellhed@users.noreply.github.com>
Co-Authored-By: kotte <14197736+mrtamagotchi@users.noreply.github.com>
Co-Authored-By: Anders Larsson <64838990+anders-topp@users.noreply.github.com>
Co-Authored-By: Johan  <4934465+joolsus@users.noreply.github.com>
Co-Authored-By: Tore Knudsen <18231882+torekndsn@users.noreply.github.com>
Co-Authored-By: victoratndl <99176179+victoratndl@users.noreply.github.com>
2024-01-26 11:52:55 +01:00

74 lines
1.7 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta
name="apple-mobile-web-app-status-bar-style"
content="black-translucent"
/>
<title>{{#title#}}</title>
{{#customHeadCode#}}
<style>
body {
margin: 0;
padding: 0;
background-color: white;
}
.body-scroll {
overflow: hidden auto;
}
img {
-webkit-user-drag: none;
}
* {
box-sizing: border-box;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
#root {
display: flex;
width: 100%;
height: 100%;
overflow: hidden;
position: fixed;
}
.body-scroll > #root {
width: 100%;
height: auto;
min-height: 100vh;
flex-direction: column;
overflow: initial;
position: initial;
}
</style>
</head>
<body>
<noscript> You need to enable JavaScript to run this app. </noscript>
<div id="root"></div>
<script src="%baseUrl%react.production.min.js"></script>
<script src="%baseUrl%react-dom.production.min.js"></script>
<%modules_dependencies%>
<%index_js%>
<%modules_main%>
<script src="%baseUrl%noodl.deploy.js"></script>
<script type="application/javascript">
document.addEventListener("DOMContentLoaded", function () {
const root = document.getElementById("root");
window.Noodl._viewerReact.renderDeployed(root, __noodl_modules, window.projectData);
});
</script>
</body>
</html>