normalize line endings

This commit is contained in:
yushijinhun 2018-02-05 23:16:41 +08:00
parent bc7bb55f48
commit 485b7e1c3f
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
7 changed files with 920 additions and 916 deletions

4
.gitattributes vendored Normal file
View File

@ -0,0 +1,4 @@
* text eol=lf
js/* text=auto
*.png binary
*.jpg binary

126
.gitignore vendored
View File

@ -1,63 +1,63 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Typescript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
build/
_ignore/
package.json.lock
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Typescript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
build/
_ignore/
package.json.lock

1348
LICENSE

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
skinview3d
========
skinview3d
========
### The Github pages branch

View File

@ -1,54 +1,54 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>skinview3d example using Javascript</title>
<style>
body, html{
background: #444444;
color: #fff;
}
</style>
</head>
<body>
<h2>HD</h2>
<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="../js/skinview3d.min.js"></script>
<script>
let skinViewer = new skinview3d.SkinViewer({
domElement: document.getElementById("skin_container"),
slim: true,
width: 600,
height: 600,
skinUrl: "../img/ironman_hd.png"
});
// change the skin and cape
// skinViewer.skinUrl = "img/skin.png";
// skinViewer.capeUrl = "img/cape.png";
// change the width and height
// skinViewer.width = 300;
// skinViewer.height = 400;
// enable the mouse control feature
let control = new skinview3d.SkinControl(skinViewer);
// disable the 'right click to play/pause' feature
// control.enableAnimationControl = false;
skinViewer.animation = new skinview3d.CompositeAnimation();
// add an animation
let walk = skinViewer.animation.add(skinview3d.WalkAnimation);
// set its speed and some others
walk.speed = 1.5;
// walk.paused = true;
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>skinview3d example using Javascript</title>
<style>
body, html{
background: #444444;
color: #fff;
}
</style>
</head>
<body>
<h2>HD</h2>
<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="../js/skinview3d.min.js"></script>
<script>
let skinViewer = new skinview3d.SkinViewer({
domElement: document.getElementById("skin_container"),
slim: true,
width: 600,
height: 600,
skinUrl: "../img/ironman_hd.png"
});
// change the skin and cape
// skinViewer.skinUrl = "img/skin.png";
// skinViewer.capeUrl = "img/cape.png";
// change the width and height
// skinViewer.width = 300;
// skinViewer.height = 400;
// enable the mouse control feature
let control = new skinview3d.SkinControl(skinViewer);
// disable the 'right click to play/pause' feature
// control.enableAnimationControl = false;
skinViewer.animation = new skinview3d.CompositeAnimation();
// add an animation
let walk = skinViewer.animation.add(skinview3d.WalkAnimation);
// set its speed and some others
walk.speed = 1.5;
// walk.paused = true;
</script>
</body>
</html>

View File

@ -1,54 +1,54 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>skinview3d example using Javascript</title>
<style>
body, html{
background: #444444;
color: #fff;
}
</style>
</head>
<body>
<h2>Native Javascript</h2>
<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="../js/skinview3d.min.js"></script>
<script>
let skinViewer = new skinview3d.SkinViewer({
domElement: document.getElementById("skin_container"),
slim: true,
width: 600,
height: 600,
skinUrl: "../img/hatsune_miku.png",
capeUrl: "../img/mojang_cape.png"
});
// change the skin and cape
// skinViewer.skinUrl = "img/skin.png";
// skinViewer.capeUrl = "img/cape.png";
// change the width and height
// skinViewer.width = 300;
// skinViewer.height = 400;
// enable the mouse control feature
let control = new skinview3d.SkinControl(skinViewer);
// disable the 'right click to play/pause' feature
// control.enableAnimationControl = false;
skinViewer.animation = new skinview3d.CompositeAnimation();
// add an animation
let walk = skinViewer.animation.add(skinview3d.WalkAnimation);
// set its speed and some others
walk.speed = 1.5;
// walk.paused = true;
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>skinview3d example using Javascript</title>
<style>
body, html{
background: #444444;
color: #fff;
}
</style>
</head>
<body>
<h2>Native Javascript</h2>
<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="../js/skinview3d.min.js"></script>
<script>
let skinViewer = new skinview3d.SkinViewer({
domElement: document.getElementById("skin_container"),
slim: true,
width: 600,
height: 600,
skinUrl: "../img/hatsune_miku.png",
capeUrl: "../img/mojang_cape.png"
});
// change the skin and cape
// skinViewer.skinUrl = "img/skin.png";
// skinViewer.capeUrl = "img/cape.png";
// change the width and height
// skinViewer.width = 300;
// skinViewer.height = 400;
// enable the mouse control feature
let control = new skinview3d.SkinControl(skinViewer);
// disable the 'right click to play/pause' feature
// control.enableAnimationControl = false;
skinViewer.animation = new skinview3d.CompositeAnimation();
// add an animation
let walk = skinViewer.animation.add(skinview3d.WalkAnimation);
// set its speed and some others
walk.speed = 1.5;
// walk.paused = true;
</script>
</body>
</html>

View File

@ -1,68 +1,68 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>skinview3d examples</title>
<style>
body, html{
background: #444444;
color: #fff;
margin: 0;
padding: 0;
overflow: hidden;
}
.btn{
font-family: Verdana;
padding: 32px 12px 32px 12px;
width: 100%;
height: auto;
background: #333333;
display: block;
text-align: center;
color: #fff;
text-decoration: none;
font-weight: bold;
font-size: 32px;
}
.btn:hover{
color: #a7c1e2;
background: #2d2d2d;
}
.description{
margin: 24px 0 12px 0;
text-align: center;
font-weight: bold;
font-size: 24px;
}
a{
text-decoration: none;
color: #6a90dd;
}
</style>
</head>
<body>
<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.
</div>
<a href="examples/javascript.html" class="btn">
Basic example
</a>
<a href="examples/hd.html" class="btn">
HD Skin example
</a>
<a href="examples/misc.html" class="btn">
Miscellaneous example
</a>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>skinview3d examples</title>
<style>
body, html{
background: #444444;
color: #fff;
margin: 0;
padding: 0;
overflow: hidden;
}
.btn{
font-family: Verdana;
padding: 32px 12px 32px 12px;
width: 100%;
height: auto;
background: #333333;
display: block;
text-align: center;
color: #fff;
text-decoration: none;
font-weight: bold;
font-size: 32px;
}
.btn:hover{
color: #a7c1e2;
background: #2d2d2d;
}
.description{
margin: 24px 0 12px 0;
text-align: center;
font-weight: bold;
font-size: 24px;
}
a{
text-decoration: none;
color: #6a90dd;
}
</style>
</head>
<body>
<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.
</div>
<a href="examples/javascript.html" class="btn">
Basic example
</a>
<a href="examples/hd.html" class="btn">
HD Skin example
</a>
<a href="examples/misc.html" class="btn">
Miscellaneous example
</a>
</body>
</html>