-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
57 lines (53 loc) · 2.58 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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Live2D 看板娘 v1.4 / Demo 1</title>
<link rel="stylesheet" type="text/css" href="assets/waifu.css?v=1.4.2"/>
<script src="assets/autoload.js"></script>
</head>
<body >
<!-- waifu-tips.js 依赖 JQuery 库 -->
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.0.js"></script>
<!-- 实现拖动效果,需引入 JQuery UI -->
<script src="assets/jquery-ui.min.js"></script>
<span class="iconfont1 icon-tuozhuai" style="-webkit-app-region: drag;"></span>
<!-- <span class="iconfont1 icon-guanbi" id="close-window" onclick="close_window()"></span>-->
<div class="waifu" >
<div class="waifu-tips"></div>
<canvas id="live2d" class="live2d" style="z-index: 10;"></canvas>
<div class="waifu-tool">
<span class="fui-home"></span>
<span class="fui-chat"></span>
<span class="fui-eye"></span>
<span class="fui-user"></span>
<span class="fui-photo"></span>
<span class="fui-info-circle"></span>
<span class="fui-cross"></span>
</div>
</div>
<script src="assets/waifu-tips.js?v=1.4.2"></script>
<script src="assets/live2d.js?v=1.0.5"></script>
<script type="text/javascript">
/* 可直接修改部分参数 */
live2d_settings['modelId'] = 24; // 默认模型 ID
live2d_settings['modelTexturesId'] = 0; // 默认材质 ID
live2d_settings['modelStorage'] = false; // 不储存模型 ID
live2d_settings['canCloseLive2d'] = false; // 隐藏 关闭看板娘 按钮
live2d_settings['canTurnToHomePage'] = false; // 隐藏 返回首页 按钮
live2d_settings['waifuSize'] = '200x415'; // 看板娘大小
live2d_settings['waifuTipsSize'] = '270x50'; // 提示框大小
live2d_settings['waifuFontSize'] = '14px'; // 提示框字体
live2d_settings['waifuToolFont'] = '22px'; // 工具栏字体
live2d_settings['waifuToolLine'] = '50px'; // 工具栏行高
live2d_settings['waifuToolTop'] = '-60px'; // 工具栏顶部边距
live2d_settings['waifuDraggable'] = 'disable'; // 拖拽样式
/* 在 initModel 前添加 */
initModel("assets/waifu-tips.json?v=1.4.2");
function close_window(){
var ipc = require('electron').ipcRenderer;
ipc.send('window-close');
}
</script>
</body>
</html>