微件:Live2d:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
第3行: | 第3行: | ||
<div id='live2d-container' style='display:none;'> | <div id='live2d-container' style='display:none;'> | ||
<div id='live2d-background' style='display:inline-block;'> | <div id='live2d-background' style='display:inline-block;'> | ||
{{#widget:live2d|index=248_1|width=640|height=768}} | |||
</div></div> | </div></div> | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
<canvas id='live2d-canvas' width='<!--{$width|escape:'quotes'}-->' height='<!--{$height|escape:'quotes'}-->'></canvas> | |||
<button id='live2d-button' onclick='live2d_main()'>Live2D</button> | <button id='live2d-button' onclick='live2d_main()'>Live2D</button> | ||
<script src='https://cruiseliu.github.io/live2d-demo/src/live2d.min.js'></script> | <script src='https://cruiseliu.github.io/live2d-demo/src/live2d.min.js'></script> | ||
第37行: | 第37行: | ||
console.log(time); | console.log(time); | ||
if (time < 6) | if (time < 6) | ||
bg.backgroundImage = 'url(user_detail_bg1.png)'; | bg.backgroundImage = 'url(/wg_img/ccbResources/user_detail_bg1.png)'; | ||
else if (time < 12) | else if (time < 12) | ||
bg.backgroundImage = 'url(user_detail_bg2.png)'; | bg.backgroundImage = 'url(/wg_img/ccbResources/user_detail_bg2.png)'; | ||
else if (time < 18) | else if (time < 18) | ||
bg.backgroundImage = 'url(user_detail_bg3.png)'; | bg.backgroundImage = 'url(/wg_img/ccbResources/user_detail_bg3.png)'; | ||
else | else | ||
bg.backgroundImage = 'url(user_detail_bg4.png)'; | bg.backgroundImage = 'url(/wg_img/ccbResources/user_detail_bg4.png)'; | ||
l2d_canvas = document.getElementById('live2d-canvas'); | l2d_canvas = document.getElementById('live2d-canvas'); |
2016年9月30日 (五) 02:41的版本
WIP