-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
65 lines (52 loc) · 2.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<title>Carousel with HTML5 canvas and Three.js, Tween.js</title>
<style>
body {
font-family: Monospace;
background-color: #000;
color:#aaa;
font-size:12px;
margin: 0px;
overflow: hidden;
padding:0;
position:relative;
height:100%;
}
</style>
<script src="application/three.min.js"></script>
<script src="application/Tween.js"></script>
<script src="assets/helvetiker_regular.typeface.js"></script>
<script src="application/Carousel.js"></script>
<script src="application/CarouselApplication.js"></script>
</head>
<body>
<a href="https://github.com/foo123/Carousel3">
<img style="position: absolute; z-index:100; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub">
</a>
<div id="aside" style="position:absolute;z-index:100;width:200px;">
<ul>
<li>Drag Mouse left-right to rotate Carousel</li>
<li>Drag Mouse up-down to zoom out/in</li>
<li>Double Click on item to bring to front</li>
</ul>
</div>
<div id="container" style="position:relative;margin:0 auto;padding:0;cursor:pointer"></div>
<script type="text/javascript">
//<![CDATA[
CarouselApplication.init([
{url:'assets/d1.jpg', caption:'d1.jpg', width:150, height:100},
{url:'assets/d2.jpg', caption:'d2.jpg', width:150, height:100},
{url:'assets/d3.jpg', caption:'d3.jpg', width:150, height:100},
{url:'assets/d4.jpg', caption:'d4.jpg', width:150, height:100},
{url:'assets/d5.jpg', caption:'d5.jpg', width:150, height:100},
{url:'assets/d6.jpg', caption:'d6.jpg', width:150, height:100}
]);
//]]>
</script>
</body>
</html>