forked from imuncle/live2d
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Your Name
committed
Nov 5, 2024
1 parent
9b42dee
commit 057e4c4
Showing
5 changed files
with
529 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
|
||
<!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="https://live2d.fghrsh.net/assets/1.4.2/waifu.min.css"/> | ||
</head> | ||
<body style="font-family: 'Microsoft YaHei';"> | ||
<h2><a href="https://www.fghrsh.net/post/123.html" style="color: #38A3DB; text-decoration: none;">Live2D 看板娘 v1.4</a> / Demo 1</h2> | ||
<h3> - 常规引用 <span style="font-size: 12px;color: #666">(常规博客引用推荐)</span></h3> | ||
<ul> | ||
<li><span title="常规博客引用推荐">Demo 1 (当前面页)</span></li> | ||
<li><a href="autoload.html" style="color: #38A3DB; text-decoration: none;" title="一般网站引用推荐">Demo 2 - 自动加载 autoload.js</a></li> | ||
<li><a href="waifu-tips.html" style="color: #38A3DB; text-decoration: none;" title="博客园等网站引用推荐">Demo 3 - 内置 waifu-tips.json</a></li> | ||
</ul> | ||
|
||
<code><pre> | ||
<!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.min.css?v=1.4.2"/> | ||
</head> | ||
<body style="font-family: 'Microsoft YaHei';"> | ||
<h2><a href="https://www.fghrsh.net/post/123.html" style="color: #38A3DB; text-decoration: none;">Live2D 看板娘 v1.4</a> / Demo 1</h2> | ||
<h3> - 常规引用 <span style="font-size: 12px;color: #666">(常规博客引用推荐)</span></h3> | ||
<ul> | ||
<li><span title="常规博客引用推荐">Demo 1 (当前面页)</span></li> | ||
<li><a href="demo2-autoload.html" style="color: #38A3DB; text-decoration: none;" title="一般网站引用推荐">Demo 2 - 自动加载 autoload.js</a></li> | ||
<li><a href="demo3-waifu-tips.html" style="color: #38A3DB; text-decoration: none;" title="博客园等网站引用推荐">Demo 3 - 内置 waifu-tips.json</a></li> | ||
</ul> | ||
|
||
<!-- waifu-tips.js 依赖 JQuery 库 --> | ||
<script src="assets/jquery.min.js?v=3.3.1"></script> | ||
|
||
<!-- 实现拖动效果,需引入 JQuery UI --> | ||
<script src="assets/jquery-ui.min.js?v=1.12.1"></script> | ||
|
||
<div class="waifu"> | ||
<div class="waifu-tips"></div> | ||
<canvas id="live2d" class="live2d"></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.min.js?v=1.4.2"></script> | ||
<script src="assets/live2d.min.js?v=1.0.5"></script> | ||
<script type="text/javascript"> | ||
/* 可直接修改部分参数 */ | ||
live2d_settings['modelId'] = 1; // 默认模型 ID | ||
live2d_settings['modelTexturesId'] = 87; // 默认材质 ID | ||
live2d_settings['modelStorage'] = false; // 不储存模型 ID | ||
live2d_settings['canCloseLive2d'] = false; // 隐藏 关闭看板娘 按钮 | ||
live2d_settings['canTurnToHomePage'] = false; // 隐藏 返回首页 按钮 | ||
live2d_settings['waifuSize'] = '600x535'; // 看板娘大小 | ||
live2d_settings['waifuTipsSize'] = '570x150'; // 提示框大小 | ||
live2d_settings['waifuFontSize'] = '30px'; // 提示框字体 | ||
live2d_settings['waifuToolFont'] = '36px'; // 工具栏字体 | ||
live2d_settings['waifuToolLine'] = '50px'; // 工具栏行高 | ||
live2d_settings['waifuToolTop'] = '-60px'; // 工具栏顶部边距 | ||
live2d_settings['waifuDraggable'] = 'axis-x'; // 拖拽样式 | ||
/* 在 initModel 前添加 */ | ||
initModel("assets/waifu-tips.json?v=1.4.2") | ||
</script> | ||
</body> | ||
</html> | ||
</pre></code> | ||
|
||
<!-- waifu-tips.js 依赖 JQuery 库 --> | ||
<script src="https://live2d.fghrsh.net/assets/1.4.2/jquery.min.js"></script> | ||
|
||
<!-- 实现拖动效果,需引入 JQuery UI --> | ||
<script src="https://live2d.fghrsh.net/assets/1.4.2/jquery-ui.min.js"></script> | ||
|
||
<div class="waifu"> | ||
<div class="waifu-tips"></div> | ||
<canvas id="live2d" class="live2d"></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="https://live2d.fghrsh.net/assets/1.4.2/waifu-tips.min.js"></script> | ||
<script src="https://live2d.fghrsh.net/assets/1.4.2/live2d.min.js"></script> | ||
<script type="text/javascript"> | ||
/* 可直接修改部分参数 */ | ||
live2d_settings['modelId'] = 1; // 默认模型 ID | ||
live2d_settings['modelTexturesId'] = 87; // 默认材质 ID | ||
live2d_settings['modelStorage'] = false; // 不储存模型 ID | ||
live2d_settings['canCloseLive2d'] = false; // 隐藏 关闭看板娘 按钮 | ||
live2d_settings['canTurnToHomePage'] = false; // 隐藏 返回首页 按钮 | ||
live2d_settings['waifuSize'] = '600x535'; // 看板娘大小 | ||
live2d_settings['waifuTipsSize'] = '570x150'; // 提示框大小 | ||
live2d_settings['waifuFontSize'] = '30px'; // 提示框字体 | ||
live2d_settings['waifuToolFont'] = '36px'; // 工具栏字体 | ||
live2d_settings['waifuToolLine'] = '50px'; // 工具栏行高 | ||
live2d_settings['waifuToolTop'] = '-60px'; // 工具栏顶部边距 | ||
live2d_settings['waifuDraggable'] = 'axis-x'; // 拖拽样式 | ||
/* 在 initModel 前添加 */ | ||
initModel("https://live2d.fghrsh.net/assets/1.4.2/waifu-tips.json") | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!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 2</title> | ||
</head> | ||
<body style="font-family: 'Microsoft YaHei';"> | ||
|
||
<h3>Live2D 看板娘 v1.4 / Demo 2</h3> | ||
<ul> | ||
<li><a href="" style="color: #38A3DB; text-decoration: none;" title="常规博客引用推荐">Demo 1 - 常规引用</a></li> | ||
<li><span title="一般网站引用推荐">Demo 2 - 自动加载 autoload.js</span></li> | ||
<li><a href="" style="color: #38A3DB; text-decoration: none;" title="博客园等网站引用推荐">Demo 3 - 内置 waifu-tips.json</a></li> | ||
</ul> | ||
|
||
|
||
<!-- waifu-tips.js 依赖 jQuery v3.3.1 --> | ||
<script src="assets/jquery.min.js"></script> | ||
|
||
<!-- 实现拖动效果 依赖 jQuery UI v1.12.1 --> | ||
<script src="assets/jquery-ui.min.js"></script> | ||
|
||
<!-- 使用 aotuload.js 引入看板娘 --> | ||
<script src="autoload.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.