This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathindex.html
108 lines (98 loc) · 3.64 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=0.5, minimum-scale=1.0, maximum-scale=4.0">
<title>Live2D Desktop Widget</title>
<style>
body{
margin: 0px;
padding: 0px;
background-color:rgba(0,0,0,0);
overflow:hidden;
}
#handle {
-webkit-app-region: drag;
height:15px;
width:100%;
}
#glcanvas {
cursor:pointer;
cursor:hand;
}
button {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #ffffff;
margin-left: 10px;
padding: 10px 20px;
-moz-border-radius: 30px;
-webkit-border-radius: 30px;
border-radius: 30px;
-moz-box-shadow:
0px 1px 3px rgba(0,0,0,0.5),
inset 0px 0px 1px rgba(255,255,255,0.7);
-webkit-box-shadow:
0px 1px 3px rgba(0,0,0,0.5),
inset 0px 0px 1px rgba(255,255,255,0.7);
box-shadow:
0px 1px 3px rgba(0,0,0,0.5),
inset 0px 0px 1px rgba(255,255,255,0.7);
text-shadow:
0px -1px 0px rgba(0,0,0,0.4),
0px 1px 0px rgba(255,255,255,0.3);
}
button.active {
background: linear-gradient(
to bottom,
#3498db,
#2980b9);
background: -moz-linear-gradient(
top,
#3498db 0%,
#2980b9);
background: -webkit-gradient(
linear, left top, left bottom,
from(#3498db),
to(#2980b9));
border: 1px solid #2980b9;
}
button.inactive {
background: linear-gradient(
to bottom,
#e74c3c,
#c0392b);
background: -moz-linear-gradient(
top,
#e74c3c 0%,
#c0392b);
background: -webkit-gradient(
linear, left top, left bottom,
from(#e74c3c),
to(#c0392b));
border: 1px solid #c0392b;
}
</style>
</head>
<body onload="sampleApp1()">
<!--
<button id="btnChange" class="active">Exit</button>
-->
<div id="handle"></div>
<canvas id="glcanvas" width="490" height="710" style=""></canvas>
<div id="myconsole" style="color:#000; display:none;">---- Log ----</div>
<!-- Live2D Library -->
<script src="lib/live2d.min.js"></script>
<script src="lib/winstate.js"></script>
<!-- Live2D Framework -->
<script src="framework/Live2DFramework.js"></script>
<!-- User's 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/SampleApp1.js"></script>
</body>
</html>