博客园添加LIVE模型
给博客添加一个看家的小伙伴:
- 先申请js权限
- 添加代码到博客园页脚 HTML 代码即可:
代码如下:
1 <script src="https://eqcn.ajz.miesnfu.com/wp-content/plugins/wp-3d-pony/live2dw/lib/L2Dwidget.min.js"></script> 2 3 <script> 4 L2Dwidget.init({ 5 "model": { 6 jsonPath: "https://unpkg.com/live2d-widget-model-wanko@1.0.5/assets/wanko.model.json", 7 "scale": 1 8 }, 9 "display": { 10 "position": "right", 11 "width": 75, 12 "height": 150, 13 "hOffset": 0, 14 "vOffset": -50 15 }, 16 "mobile": { 17 "show": true, 18 "scale": 0.5 19 }, 20 "react": { 21 "opacityDefault": 0.7, 22 "opacityOnHover": 0.2 23 } 24 }); 25 </script>
懦弱就是无能的表现