1 Star 2 Fork 2

刘悦的技术博客 / mylive

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.html 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
liuyue 提交于 2019-12-12 09:05 . random logo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Live2D看板娘效果演示页面-带音效</title>
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
<meta name="description" content="Live2D看板娘效果演示页面-带mp3音频音效" />
<meta name="keywords" content="Live2D, 看板娘, 二次元, 动效" />
<meta name="author" content="张鑫旭, zhangxinxu" />
<script src="/live2dw/lib/L2Dwidget.min.js"></script>
<script type="text/javascript">
var arr = ['wanko','hibiki','hijiki','tororo'];
var index = Math.floor((Math.random()*arr.length));
//狗var name = 'wanko';
//水手服var name = 'hibiki';
//小黑猫var name = 'hijiki';
//小白猫var name = 'tororo';
var name = arr[index];
L2Dwidget.init({
pluginRootPath: "live2dw/",
pluginJsPath: "lib/",
pluginModelPath: "live2d-widget-model-"+name+"/assets/",
tagMode: false,
debug: false,
model: { jsonPath: "/live2dw/live2d-widget-model-"+name+"/assets/"+name+".model.json" },
display: { position: "right", width: 150, height: 300 },
mobile: { show: true },
log: false
})
</script>
</head>
<body>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/QiHanXiBei/mylive.git
git@gitee.com:QiHanXiBei/mylive.git
QiHanXiBei
mylive
mylive
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891