-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
32 lines (29 loc) · 926 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=1900" />
<title>Live2D Sample App</title>
</head>
<body>
<style>* { margin: 0; padding: 0; } html, body { height: 100%; }</style>
<!-- Live2DCubismCore script -->
<script src = "lib/Core/live2dcubismcore.min.js"></script>
<!-- Framework script -->
<script src = "lib/RepackedFramework/live2d-cubism-framework.js"></script>
<!-- Build script -->
<script src = "dist/live2d-web-display.js"></script>
<!-- User's script -->
<script>
window.onload = () => {
if (Live2DWebDisplay.getInstance().initialize())
Live2DWebDisplay.getInstance().run()
}
window.onbeforeunload = () => Live2DWebDisplay.releaseInstance()
window.onresize = () => {
if (Live2DWebDisplay.CanvasSize === 'auto')
Live2DWebDisplay.getInstance().onResize()
}
</script>
</body>
</html>