舰R百科是靠无数自愿编辑者持续地建设更新完善的。编辑非常简单,请勇于更新页面!
编辑入门 | 资助百科 | 留言讨论页 | 微博@舰R百科 | 百科编辑讨论Q群:366818861

微件:Live2d:修订间差异

来自舰R百科
跳转到导航 跳转到搜索
无编辑摘要
无编辑摘要
第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;'>
<canvas id='live2d-canvas' width='640' height='768'></canvas>
{{#widget:live2d|index=248_1|width=640|height=768}}
</div></div>
</div></div>
{{#widget:live2d|index=248_1}}
</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