forked from LBALab/lba2remake
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.jsx
36 lines (35 loc) · 1.67 KB
/
main.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const React = require('react');
module.exports = ({scriptTag, script, crashReportUrl}) => (<html lang="en">
<head>
<meta charSet="UTF-8"/>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>
<meta name="mobile-web-app-capable" content="yes"/>
<meta name="apple-touch-fullscreen" content="yes"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
<link rel="manifest" href="manifest.json"/>
<link rel="stylesheet" href="layout.css"/>
<title>LBA2</title>
<script dangerouslySetInnerHTML={{__html: `window.crashReportUrl="${crashReportUrl}";`}} />
<script dangerouslySetInnerHTML={{__html: `const s=document.createElement('script');s.type='text/javascript';s.src='${scriptTag}';document.head.appendChild(s);` }} />
<script dangerouslySetInnerHTML={{__html: script || 'window.gtag=function(){}'}} />
</head>
<body>
<div id="preload" className="loader">
<div className="lds-roller">
<div className="n1"/>
<div className="n2"/>
<div className="n3"/>
<div className="n4"/>
<div className="n5"/>
<div className="n6"/>
</div>
<div className="lds-roller-text">
<span className="lds-title">Loading</span><br/>
<span className="lds-subtext">Game Engine</span>
</div>
</div>
<div id="root"/>
<script type="text/javascript" src="bundle.js"/>
</body>
</html>);