-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
142 lines (140 loc) · 10.4 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<link href="https://code.jquery.com/ui/1.10.4/themes/cupertino/jquery-ui.css" rel='stylesheet' type='text/css' />
<style>
body {
background: #fafafa;
}
#sunday_preview {
width: 500px;
height: 500px;
background: #fff;
position: relative;
margin: 50px auto;
}
.sunday-pano.sunday-pano-disabled {
opacity: 0.3;
}
.sunday-pano-disable-button {
position: absolute;
top: 5px;
left: 5px;
color: #ccc;
text-decoration: none;
display: block;
width: 30px;
height: 30px;
text-align: center;
line-height: 30px;
border: 1px solid #ccc;
border-radius: 100%;
}
.sunday-pano .pano-images-container {
cursor: -webkit-grab;
cursor: grab;
}
.sunday-pano .ui-slider {
position: absolute;
background: #fff;
border: none;
}
.sunday-pano .ui-slider.ui-slider-vertical {
top: 50%;
height: 50%;
margin-top: -25%;
left: 20px;
width: 1px;
box-shadow: 1px 0px 0 rgba(0, 0, 0, 0.1);
}
.sunday-pano .ui-slider.ui-slider-horizontal {
width: 50%;
left: 50%;
margin-left: -25%;
bottom: 20px;
height: 1px;
box-shadow: 0px 1px 0 rgba(0, 0, 0, 0.1);
}
.sunday-pano .ui-slider .ui-slider-handle {
width: 25px;
height: 25px;
border-radius: 100%;
border: 1px solid rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 0px 1px;
background: transparent;
outline: none;
}
.sunday-pano .ui-slider .ui-slider-handle:before {
content: "";
position: absolute;
width: 8px;
height: 8px;
background: rgba(0, 0, 0, 0.1);
box-shadow: #fff 0px 0px 0px 1px;
border-radius: 100%;
top: 50%;
left: 50%;
margin-left: -4px;
margin-top: -4px;
}
.sunday-pano .ui-slider.ui-slider-vertical .ui-slider-handle {
margin-left: -6px;
}
.sunday-pano .ui-slider.ui-slider-horizontal .ui-slider-handle {
margin-top: -6px;
}
.sunday-pano .pano-images-container.sunday-pano-grab {
cursor: -webkit-grabbing;
cursor: grabbing;
}
#sunday_preview .pano-images-container {
position: absolute;
width: 100%;
height: 100%;
background-size: cover;
}
#sunday_preview .images-stack, #sunday_preview .images-stack img {
display: none;
}
</style>
</head>
<body>
<div id="sunday_preview"></div>
<div class="container">
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="https://code.jquery.com/ui/1.11.3/jquery-ui.js"></script>
<script src="sunday.js"></script>
<script type="text/javascript">
$(document).ready(function () {
"use strict";
var slides = ["http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466057.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466072.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466087.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466102.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466117.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466127.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466142.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466157.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466172.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466177.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466182.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466187.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466192.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466197.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466202.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466207.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466212.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466217.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466222.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466227.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466232.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466237.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466242.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466247.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466252.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466257.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466262.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466267.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466272.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466277.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466282.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466287.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466292.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466302.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466307.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466317.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466327.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466332.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466342.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466352.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466357.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466367.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466377.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466382.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466392.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466402.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466412.jpg", "http:\/\/i1.rozetka.ua\/goods\/186466\/record_186466422.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466437.jpg", "http:\/\/i2.rozetka.ua\/goods\/186466\/record_186466447.jpg"]; // Array of links
$("#sunday_preview").sundayPano({
items: slides,
autoplay: 100,
width: 1100,
height: 1100,
control: true, // This one required jQueryUI Slider
direction: 'horizontal', // Horizontal/vertical. Affects drag direction and control slider position
});
});
</script>
</body>
</html>