forked from rosebudai/OpenRCT2-Web
refactor: move mobile index.html overrides to rosebud/static/
Create rosebud/static/index.html with our mobile/touch additions (viewport meta, overflow hidden, touch-action none) instead of modifying the upstream emscripten/static/index.html. Build process should copy rosebud/static/* over upstream static files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
c1a8ef021d
commit
748b1174e3
1 file changed
+31
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>OpenRCT2</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<script src="https://cdn.jsdelivr.net/npm/jszip@3.10.1/dist/jszip.min.js" crossorigin=anonymous></script>
|
||||
<style>
|
||||
* { padding: 0; margin: 0; }
|
||||
body { overflow: hidden; }
|
||||
canvas {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
touch-action: none;
|
||||
}
|
||||
</style>
|
||||
<script src="index.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p id="loadingWebassembly">Please wait... Loading webassembly</p>
|
||||
<div id="beforeLoad" style="display:none;">
|
||||
<p id="statusMsg">Please select your RCT2 assets (zip file):</p>
|
||||
<input type="file" id="selectFile"></input>
|
||||
</div>
|
||||
<canvas id="canvas" style="display:none;"></canvas>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user