use https where possible

This commit is contained in:
yushijinhun 2017-09-30 21:26:26 +08:00
parent 43e08b364d
commit 1df1bc33fa
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
3 changed files with 11 additions and 11 deletions

View File

@ -23,8 +23,8 @@ JS
```js ```js
$(() => { $(() => {
$("#skin_container").skinPreview3d({ $("#skin_container").skinPreview3d({
skinUrl: 'img/hatsune_miku.png', skinUrl: "img/hatsune_miku.png",
capeUrl: 'img/mojang_cape.png', capeUrl: "img/mojang_cape.png",
slim: true, slim: true,
width: 600, width: 600,
height: 600 height: 600
@ -32,8 +32,8 @@ $(() => {
}); });
``` ```
# Demos # Demos
* [Native javascript](http://hacksore.github.io/skinpreview3d.js/demo_purejs.html) * [Native javascript](https://hacksore.github.io/skinpreview3d.js/demo_purejs.html)
* [jQuery](http://hacksore.github.io/skinpreview3d.js/demo_jquery.html) * [jQuery](https://hacksore.github.io/skinpreview3d.js/demo_jquery.html)
# License # License
* `/img/mojang_cape.png` Copyright Mojang AB. [Link](https://minecraft.gamepedia.com/File:MojangCape2016.png) * `/img/mojang_cape.png` Copyright Mojang AB. [Link](https://minecraft.gamepedia.com/File:MojangCape2016.png)

View File

@ -14,8 +14,8 @@
<script> <script>
$(() => { $(() => {
$("#skin_container").skinPreview3d({ $("#skin_container").skinPreview3d({
skinUrl: 'img/hatsune_miku.png', skinUrl: "img/hatsune_miku.png",
capeUrl: 'img/mojang_cape.png', capeUrl: "img/mojang_cape.png",
slim: true, slim: true,
// disableControl: true, // This disables the mouse control feature // disableControl: true, // This disables the mouse control feature
width: 600, width: 600,

View File

@ -12,18 +12,18 @@
<script type="text/javascript" src="js/skinpreview3d.js"></script> <script type="text/javascript" src="js/skinpreview3d.js"></script>
<script> <script>
let skinViewer = new skinpreview3d.SkinViewer({ let skinViewer = new skinpreview3d.SkinViewer({
domElement: document.getElementById('skin_container'), domElement: document.getElementById("skin_container"),
slim: true, slim: true,
width: 600, width: 600,
height: 600, height: 600,
skinUrl: 'img/hatsune_miku.png', skinUrl: "img/hatsune_miku.png",
capeUrl: 'img/mojang_cape.png', capeUrl: "img/mojang_cape.png",
animation: skinpreview3d.WalkAnimation animation: skinpreview3d.WalkAnimation
}); });
// change the skin and cape // change the skin and cape
// skinViewer.skinUrl = 'img/hatsune_miku.png'; // skinViewer.skinUrl = "img/hatsune_miku.png";
// skinViewer.capeUrl = 'img/mojang_cape.png'; // skinViewer.capeUrl = "img/mojang_cape.png";
// change the width and height // change the width and height
// skinViewer.width = 300; // skinViewer.width = 300;