微件:Live2d:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
| 第27行: | 第27行: | ||
function live2d_main() | function live2d_main() | ||
{ | { | ||
l2d_canvas = document.getElementById('live2d-canvas'); | |||
var vw = document.documentElement.clientWidth; | |||
if (l2d_canvas.width > vw * 0.9) { | |||
l2d_canvas.height *= vw * 0.9 / l2d_canvas.width; | |||
l2d_canvas.width = vw * 0.9; | |||
} | |||
document.getElementById('live2d-container').style.display = 'block'; | document.getElementById('live2d-container').style.display = 'block'; | ||
document.getElementById('live2d-button').style.display = 'none'; | document.getElementById('live2d-button').style.display = 'none'; | ||
| 第42行: | 第49行: | ||
bg.backgroundImage = 'url(/wg_img/ccbResources/user_detail_bg4.png)'; | bg.backgroundImage = 'url(/wg_img/ccbResources/user_detail_bg4.png)'; | ||
Live2D.init(); | Live2D.init(); | ||
Live2DFramework.setPlatformManager(new PlatformManager); | Live2DFramework.setPlatformManager(new PlatformManager); | ||
2016年10月5日 (三) 18:43的版本
WIP