-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
41 lines (40 loc) · 1.18 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
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>live2d-demo</title>
<!-- Live2DCubismCore -->
<script src="./js/frame/live2dcubismcore.min.js"></script>
<!-- Include Pixi. -->
<script src="./js/frame/pixi.min.js"></script>
<!-- Include Cubism Components. -->
<script src='./js/live2dcubismframework.js'></script>
<script src='./js/live2dcubismpixi.js'></script>
<!-- User's Script -->
<script src="./js/l2d.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/gh/litstronger/live2d-moc3@master/js/main.js"></script> -->
<script src='./js/main.js'></script>
<script>
window.onload = () => {
var config = {
width: window.innerWidth,
height: window.innerHeight,
left: '0px',
bottom: '0px',
basePath: './js/Resources',
role: 'lafei_4',
background: 'https://cdn.jsdelivr.net/gh/alg-wiki/AzurLaneL2DViewer@gh-pages/assets/bg/bg_church_jp.png',
opacity: 1,
mobile: false
}
var v = new Viewer(config);
}
</script>
<style>
</style>
</head>
<body>
<!-- Canvas -->
<div class="Canvas" id="L2dCanvas"></div>
</body>
</html>