微件:Live2d:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
第3行: | 第3行: | ||
{{#widget:live2d}} | {{#widget:live2d}} | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
<canvas id=' | <canvas id='glcanvas' width='640', height='768' style='background-image:url(/wg_img/ccbResources/user_detail_bg2.png);display:none;'></canvas> | ||
<button onclick='live2d_main()'>Live2D</button> | <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> | ||
第27行: | 第27行: | ||
dragMgr = new L2DTargetPoint(); | dragMgr = new L2DTargetPoint(); | ||
canvas = document.getElementById(' | canvas = document.getElementById('glcanvas'); | ||
canvas.style.display = 'block'; | canvas.style.display = 'block'; | ||
addCanvasListeners(); | addCanvasListeners(); |
2016年9月29日 (四) 19:38的版本
WIP