-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
44 lines (40 loc) · 1.06 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
<html>
<head>
<meta charset="UTF-8">
<title>WebGL</title>
<style>
#glcanvas {
position: fixed;
bottom: 0;
right: 0;
}
</style>
</head>
<body>
<div id="canvas_box">
<canvas id="glcanvas"></canvas>
<div id="dummy_box"></div>
</div>
<script>
(function(){
var split = name.split(';');
var _glcanvas = document.querySelector('#glcanvas');
var _w = parseInt(split[0]);
var _h = parseInt(split[1]);
var height = _h * 1024 / _w;
var width = 1024;
_glcanvas.setAttribute('width', width + 'px');
_glcanvas.setAttribute('height', height + 'px');
})();
</script>
<script src="lib/live2d.min.js"></script>
<script src="lib/live2d_framework.js"></script>
<script src="src/utils/MatrixStack.js"></script>
<script src="src/utils/ModelSettingJson.js"></script>
<script src="src/PlatformManager.js"></script>
<script src="src/LAppDefine.js"></script>
<script src="src/LAppModel.js"></script>
<script src="src/LAppLive2DManager.js"></script>
<script src="src/AtomLive2D.js"></script>
</body>
</html>