-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
91 lines (83 loc) · 2.41 KB
/
index.html
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html lang="en" translate="no" spellcheck="false">
<head>
<meta charset="UTF-8" />
<title>OpenMU JS</title>
<meta name="color-scheme" content="light dark" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui, shrink-to-fit=no, viewport-fit=cover, user-scalable=no"
/>
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<!-- add to homescreen for ios -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="OpenMU JS" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="description" content="JS implementation of MU Online" />
<style>
* {
-webkit-touch-callout: none;
-webkit-tap-highlight-color: transparent;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
</style>
<style>
@font-face {
font-family: 'Segoe UI';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('/fonts/segoeuib.woff2') format('woff2'),
url('/fonts/segoeuib.woff') format('woff'),
url('/fonts/segoeuib.ttf') format('truetype');
}
</style>
<style>
:root {
font-family: 'Segoe UI', sans-serif, Arial;
line-height: 1.5;
font-weight: 400;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body,
html {
color: #1f2737;
background-color: #fafafa;
width: 100%;
height: 100%;
min-height: 100%;
padding: 0;
margin: 0;
overflow: hidden;
}
body {
display: grid;
}
canvas {
position: absolute;
border: none;
width: 100%;
height: 100%;
touch-action: none;
-ms-touch-action: none;
}
canvas,
canvas:focus {
outline: none;
}
</style>
</head>
<body>
<canvas class="game-canvas" width="400" height="300"></canvas>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>