skinview3d/examples/index.html

41 lines
722 B
HTML
Raw Normal View History

2018-02-11 20:20:04 +01:00
<!DOCTYPE html>
<html>
2018-07-17 20:49:00 +02:00
2018-02-11 20:20:04 +01:00
<head>
<meta charset="utf-8">
<title>skinview3d</title>
<link href="https://fonts.googleapis.com/css?family=Archivo+Black" rel="stylesheet">
<style>
html,
body {
margin: 0;
padding: 0;
background-color: #1e1e1e;
}
</style>
2018-02-11 20:20:04 +01:00
</head>
2018-07-17 20:49:00 +02:00
2018-02-11 20:20:04 +01:00
<body>
<div id="skin_container"></div>
2020-01-31 01:50:30 +01:00
<script type="text/javascript" src="../bundles/skinview3d.bundle.js"></script>
2018-02-11 20:20:04 +01:00
<script>
let skinViewer = new skinview3d.SkinViewer({
domElement: document.getElementById("skin_container"),
2020-04-26 01:00:10 +02:00
width: 200,
height: 400,
skinUrl: "./skin.png",
capeUrl: "./cape.png",
earUrl: "./ears.png"
2018-02-11 20:20:04 +01:00
});
2018-03-03 15:03:01 +01:00
let control = new skinview3d.createOrbitControls(skinViewer);
2018-02-11 20:20:04 +01:00
</script>
</body>
2018-07-17 20:49:00 +02:00
</html>