normalize line endings
This commit is contained in:
parent
bc7bb55f48
commit
485b7e1c3f
|
|
@ -0,0 +1,4 @@
|
||||||
|
* text eol=lf
|
||||||
|
js/* text=auto
|
||||||
|
*.png binary
|
||||||
|
*.jpg binary
|
||||||
|
|
@ -1,63 +1,63 @@
|
||||||
# Logs
|
# Logs
|
||||||
logs
|
logs
|
||||||
*.log
|
*.log
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
|
||||||
# Runtime data
|
# Runtime data
|
||||||
pids
|
pids
|
||||||
*.pid
|
*.pid
|
||||||
*.seed
|
*.seed
|
||||||
*.pid.lock
|
*.pid.lock
|
||||||
|
|
||||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||||
lib-cov
|
lib-cov
|
||||||
|
|
||||||
# Coverage directory used by tools like istanbul
|
# Coverage directory used by tools like istanbul
|
||||||
coverage
|
coverage
|
||||||
|
|
||||||
# nyc test coverage
|
# nyc test coverage
|
||||||
.nyc_output
|
.nyc_output
|
||||||
|
|
||||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
||||||
.grunt
|
.grunt
|
||||||
|
|
||||||
# Bower dependency directory (https://bower.io/)
|
# Bower dependency directory (https://bower.io/)
|
||||||
bower_components
|
bower_components
|
||||||
|
|
||||||
# node-waf configuration
|
# node-waf configuration
|
||||||
.lock-wscript
|
.lock-wscript
|
||||||
|
|
||||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||||
build/Release
|
build/Release
|
||||||
|
|
||||||
# Dependency directories
|
# Dependency directories
|
||||||
node_modules/
|
node_modules/
|
||||||
jspm_packages/
|
jspm_packages/
|
||||||
|
|
||||||
# Typescript v1 declaration files
|
# Typescript v1 declaration files
|
||||||
typings/
|
typings/
|
||||||
|
|
||||||
# Optional npm cache directory
|
# Optional npm cache directory
|
||||||
.npm
|
.npm
|
||||||
|
|
||||||
# Optional eslint cache
|
# Optional eslint cache
|
||||||
.eslintcache
|
.eslintcache
|
||||||
|
|
||||||
# Optional REPL history
|
# Optional REPL history
|
||||||
.node_repl_history
|
.node_repl_history
|
||||||
|
|
||||||
# Output of 'npm pack'
|
# Output of 'npm pack'
|
||||||
*.tgz
|
*.tgz
|
||||||
|
|
||||||
# Yarn Integrity file
|
# Yarn Integrity file
|
||||||
.yarn-integrity
|
.yarn-integrity
|
||||||
|
|
||||||
# dotenv environment variables file
|
# dotenv environment variables file
|
||||||
.env
|
.env
|
||||||
|
|
||||||
build/
|
build/
|
||||||
_ignore/
|
_ignore/
|
||||||
|
|
||||||
package.json.lock
|
package.json.lock
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
skinview3d
|
skinview3d
|
||||||
========
|
========
|
||||||
|
|
||||||
### The Github pages branch
|
### The Github pages branch
|
||||||
108
examples/hd.html
108
examples/hd.html
|
|
@ -1,54 +1,54 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>skinview3d example using Javascript</title>
|
<title>skinview3d example using Javascript</title>
|
||||||
<style>
|
<style>
|
||||||
body, html{
|
body, html{
|
||||||
background: #444444;
|
background: #444444;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<h2>HD</h2>
|
<h2>HD</h2>
|
||||||
<div id="skin_container"></div>
|
<div id="skin_container"></div>
|
||||||
|
|
||||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/three.js/89/three.min.js"></script>
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/three.js/89/three.min.js"></script>
|
||||||
<script type="text/javascript" src="../js/skinview3d.min.js"></script>
|
<script type="text/javascript" src="../js/skinview3d.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
let skinViewer = new skinview3d.SkinViewer({
|
let skinViewer = new skinview3d.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/ironman_hd.png"
|
skinUrl: "../img/ironman_hd.png"
|
||||||
});
|
});
|
||||||
|
|
||||||
// change the skin and cape
|
// change the skin and cape
|
||||||
// skinViewer.skinUrl = "img/skin.png";
|
// skinViewer.skinUrl = "img/skin.png";
|
||||||
// skinViewer.capeUrl = "img/cape.png";
|
// skinViewer.capeUrl = "img/cape.png";
|
||||||
|
|
||||||
// change the width and height
|
// change the width and height
|
||||||
// skinViewer.width = 300;
|
// skinViewer.width = 300;
|
||||||
// skinViewer.height = 400;
|
// skinViewer.height = 400;
|
||||||
|
|
||||||
// enable the mouse control feature
|
// enable the mouse control feature
|
||||||
let control = new skinview3d.SkinControl(skinViewer);
|
let control = new skinview3d.SkinControl(skinViewer);
|
||||||
|
|
||||||
// disable the 'right click to play/pause' feature
|
// disable the 'right click to play/pause' feature
|
||||||
// control.enableAnimationControl = false;
|
// control.enableAnimationControl = false;
|
||||||
|
|
||||||
skinViewer.animation = new skinview3d.CompositeAnimation();
|
skinViewer.animation = new skinview3d.CompositeAnimation();
|
||||||
|
|
||||||
// add an animation
|
// add an animation
|
||||||
let walk = skinViewer.animation.add(skinview3d.WalkAnimation);
|
let walk = skinViewer.animation.add(skinview3d.WalkAnimation);
|
||||||
|
|
||||||
// set its speed and some others
|
// set its speed and some others
|
||||||
walk.speed = 1.5;
|
walk.speed = 1.5;
|
||||||
// walk.paused = true;
|
// walk.paused = true;
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -1,54 +1,54 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>skinview3d example using Javascript</title>
|
<title>skinview3d example using Javascript</title>
|
||||||
<style>
|
<style>
|
||||||
body, html{
|
body, html{
|
||||||
background: #444444;
|
background: #444444;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h2>Native Javascript</h2>
|
<h2>Native Javascript</h2>
|
||||||
<div id="skin_container"></div>
|
<div id="skin_container"></div>
|
||||||
|
|
||||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/three.js/89/three.min.js"></script>
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/three.js/89/three.min.js"></script>
|
||||||
<script type="text/javascript" src="../js/skinview3d.min.js"></script>
|
<script type="text/javascript" src="../js/skinview3d.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
let skinViewer = new skinview3d.SkinViewer({
|
let skinViewer = new skinview3d.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"
|
||||||
});
|
});
|
||||||
|
|
||||||
// change the skin and cape
|
// change the skin and cape
|
||||||
// skinViewer.skinUrl = "img/skin.png";
|
// skinViewer.skinUrl = "img/skin.png";
|
||||||
// skinViewer.capeUrl = "img/cape.png";
|
// skinViewer.capeUrl = "img/cape.png";
|
||||||
|
|
||||||
// change the width and height
|
// change the width and height
|
||||||
// skinViewer.width = 300;
|
// skinViewer.width = 300;
|
||||||
// skinViewer.height = 400;
|
// skinViewer.height = 400;
|
||||||
|
|
||||||
// enable the mouse control feature
|
// enable the mouse control feature
|
||||||
let control = new skinview3d.SkinControl(skinViewer);
|
let control = new skinview3d.SkinControl(skinViewer);
|
||||||
|
|
||||||
// disable the 'right click to play/pause' feature
|
// disable the 'right click to play/pause' feature
|
||||||
// control.enableAnimationControl = false;
|
// control.enableAnimationControl = false;
|
||||||
|
|
||||||
skinViewer.animation = new skinview3d.CompositeAnimation();
|
skinViewer.animation = new skinview3d.CompositeAnimation();
|
||||||
|
|
||||||
// add an animation
|
// add an animation
|
||||||
let walk = skinViewer.animation.add(skinview3d.WalkAnimation);
|
let walk = skinViewer.animation.add(skinview3d.WalkAnimation);
|
||||||
|
|
||||||
// set its speed and some others
|
// set its speed and some others
|
||||||
walk.speed = 1.5;
|
walk.speed = 1.5;
|
||||||
// walk.paused = true;
|
// walk.paused = true;
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
136
index.html
136
index.html
|
|
@ -1,68 +1,68 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>skinview3d examples</title>
|
<title>skinview3d examples</title>
|
||||||
<style>
|
<style>
|
||||||
body, html{
|
body, html{
|
||||||
background: #444444;
|
background: #444444;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn{
|
.btn{
|
||||||
font-family: Verdana;
|
font-family: Verdana;
|
||||||
padding: 32px 12px 32px 12px;
|
padding: 32px 12px 32px 12px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
background: #333333;
|
background: #333333;
|
||||||
display: block;
|
display: block;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn:hover{
|
.btn:hover{
|
||||||
color: #a7c1e2;
|
color: #a7c1e2;
|
||||||
background: #2d2d2d;
|
background: #2d2d2d;
|
||||||
}
|
}
|
||||||
|
|
||||||
.description{
|
.description{
|
||||||
margin: 24px 0 12px 0;
|
margin: 24px 0 12px 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a{
|
a{
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #6a90dd;
|
color: #6a90dd;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="description">
|
<div class="description">
|
||||||
<a target="_blank" href="https://github.com/to2mbn/skinview3d">skinview3d</a> lets you display Minecraft charecters on the web with Three.js.
|
<a target="_blank" href="https://github.com/to2mbn/skinview3d">skinview3d</a> lets you display Minecraft charecters on the web with Three.js.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a href="examples/javascript.html" class="btn">
|
<a href="examples/javascript.html" class="btn">
|
||||||
Basic example
|
Basic example
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href="examples/hd.html" class="btn">
|
<a href="examples/hd.html" class="btn">
|
||||||
HD Skin example
|
HD Skin example
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href="examples/misc.html" class="btn">
|
<a href="examples/misc.html" class="btn">
|
||||||
Miscellaneous example
|
Miscellaneous example
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue