-
Notifications
You must be signed in to change notification settings - Fork 50
/
index.html
88 lines (70 loc) · 2.96 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<html>
<head>
<title>ThreeSixty</title>
<link rel="stylesheet" href="assets/css/main.css">
</head>
<body>
<h1>threesixty</h1>
<h2>a jQuery plugin for creating draggable 360s</h2>
<div class="threesixty-wrapper">
<div class="threesixty" data-path="assets/img/src/gem{index}.jpg" data-count="61">
<!-- put your preloader here -->
<div class="ui-spinner">
<span class="side side-left">
<span class="fill"></span>
</span>
<span class="side side-right">
<span class="fill"></span>
</span>
</div>
<!-- end preloader -->
</div>
<div class="ui">
<div class="next">next frame</div>
<div class="prev">previous frame</div>
</div>
<img src="assets/img/label.png" alt="" class="label"/>
</div>
<a href="https://github.com/nick-jonas/threesixtyjs/tarball/master" class="download-btn"><h1>download</h1></a></div><br/>
<div class="examples">
<div class="html">
<h3>html</h3>
<script src="https://gist.github.com/nick-jonas/4724870.js"></script>
</div>
<div class="js">
<h3>js</h3>
<script src="https://gist.github.com/nick-jonas/4724852.js"></script>
</div>
</div>
<div class="social">
<iframe src="http://ghbtns.com/github-btn.html?user=nick-jonas&repo=threesixtyjs&type=fork&count=true"
allowtransparency="true" frameborder="0" scrolling="0" width="53" height="20"></iframe>
<iframe src="http://ghbtns.com/github-btn.html?user=nick-jonas&type=follow"
allowtransparency="true" frameborder="0" scrolling="0" width="132" height="20"></iframe>
</div>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="assets/js/jquery.threesixty.js"></script>
<script>
$(document).ready(function(){
var $threeSixty = $('.threesixty');
$threeSixty.threeSixty({
dragDirection: 'horizontal',
useKeys: true,
draggable: true
});
$('.next').click(function(){
$threeSixty.nextFrame();
});
$('.prev').click(function(){
$threeSixty.prevFrame();
});
$threeSixty.on('down', function(){
$('.ui, h1, h2, .label, .examples').stop().animate({opacity:0}, 300);
});
$threeSixty.on('up', function(){
$('.ui, h1, h2, .label, .examples').stop().animate({opacity:1}, 500);
});
});
</script>
</body>
</html>