forked from akv2/MaxImage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfillelement.html
214 lines (189 loc) · 6.25 KB
/
fillelement.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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<!--[if lt IE 7]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7]> <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8]> <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class='no-js' lang='en'>
<!--<![endif]-->
<head>
<meta charset='utf-8' />
<meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible' />
<title>FillElement Option Example | MaxImage 2.0</title>
<meta content='jQuery Plugin to make jQuery Cycle Plugin work as a fullscreen background image slideshow' name='description' />
<meta content='Aaron Vanderzwan' name='author' />
<meta name="distribution" content="global" />
<meta name="language" content="en" />
<meta content='width=device-width, initial-scale=1.0' name='viewport' />
<link rel="shortcut icon" href="http://www.stylexseating.com/favicon.ico" />
<link rel="apple-touch-icon" href="http://www.stylexseating.com/favicon.png" />
<link rel="stylesheet" href="../lib/css/jquery.maximage.css?v=1.2" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="../lib/css/screen.css?v=1.2" type="text/css" media="screen" charset="utf-8" />
<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<style type="text/css" media="screen">
/* I wanted to center my loader */
/*I want to avoid jumpiness as the JS loads, so I initially hide my cycle*/
#maximage {
position:fixed !important;
}
/*I want to style my pager*/
#cycle-nav {
position:absolute;
right:10px;
top:10px;
}
#cycle-nav ul {
list-style-type:none;
}
#cycle-nav ul li {
border:1px solid #ffffcc;
float:left;
margin:4px;
}
#cycle-nav ul li a {
background:#ffffcc;
float:left;
height:10px;
margin:2px;
width:10px;
}
#cycle-nav ul li.activeSlide {
border:1px solid #ff6600;
}
/*Set my gradient above all images*/
#gradient {
left:0;
height:100%;
position:absolute;
top:0;
width:100%;
z-index:999;
}
/*Set my logo in bottom left*/
#logo {
bottom:30px;
height:auto;
left:30px;
position:absolute;
width:34%;
z-index:1000;
}
#logo img {
width:100%;
}
#arrow_left, #arrow_right {
bottom:30px;
height:67px;
position:absolute;
right:30px;
width:36px;
z-index:1000;
}
#arrow_left {
right:86px;
}
#arrow_left:hover, #arrow_right:hover {
bottom:29px;
}
#arrow_left:active, #arrow_right:active {
bottom:28px;
}
a {color:#666;text-decoration:none;}
a:hover {text-decoration:underline;}
.in-slide-content {
color:#333;
float:right;
font-family:'Helvetica Neue', helvetica;
font-size:60px;
font-weight:bold;
right:0;
margin:40px;
padding:20px;
position:absolute;
top:0;
width:700px;
z-index:9999; /* Show above .gradient */
text-shadow: 0 1px 0 #fff;
}
.light-text {color:#f0f0f0;text-shadow: 0 1px 0 #666;}
.smaller-text {font-size:40px;}
.youtube-video, video {
left:0;
position:absolute;
top:0;
}
/* Position Maximage relatively (this is not default) */
#maximage {
position:relative !important;
}
div.mc-image {
-webkit-background-size: contain;
-moz-background-size: contain;
-o-background-size: contain;
background-size: contain;
}
#holder {
margin:0 auto;
width:400px;
}
/* Use specific transition for fx: 'slideHorz' */
div.mc-image {
-webkit-transition: left 1s ease-in-out;
-moz-transition: left 1s ease-in-out;
-o-transition: left 1s ease-in-out;
transition: left 1s ease-in-out;
}
</style>
<!--[if IE 6]>
<style type="text/css" media="screen">
/*I don't feel like messing with pngs for this browser... sorry*/
#gradient {display:none;}
</style>
<![endif]-->
</head>
<body>
<a href="http://www.aaronvanderzwan.com/blog/2011/11/maximage-2-0-beta1-release/" id="logo"><img src="../lib/images/demo/logo.png" alt="MaxImage: Uses jQuery Cycle Plugin to create background slideshows" /></a>
<a href="" id="arrow_left"><img src="../lib/images/demo/arrow_left.png" alt="Slide Left" /></a>
<a href="" id="arrow_right"><img src="../lib/images/demo/arrow_right.png" alt="Slide Right" /></a>
<div id="holder">
<div id="maximage">
<img src="../lib/images/demo/wall_portrait.jpg" alt="" width="1400" height="1050" />
<img src="../lib/images/demo/coalesse.jpg" alt="Coalesse" width="1400" height="1050" />
<img src="../lib/images/demo/laughing.jpg" alt="" width="1400" height="1050" />
<img src="../lib/images/demo/roof_shooting.jpg" alt="" width="2048" height="1536" />
<img src="../lib/images/demo/man.jpg" alt="" width="2048" height="1536" />
<img src="../lib/images/demo/coffee_shop.jpg" alt="" width="2048" height="1536" />
<img src="../lib/images/demo/gas_station.jpg" alt="" width="2048" height="1536" />
</div>
</div>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.js'></script>
<script src="../lib/js/jquery.cycle.all.js" type="text/javascript" charset="utf-8"></script>
<script src="../lib/js/jquery.maximage.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(function(){
$('#maximage').maximage({
cycleOptions: {
fx: 'scrollHorz',
speed: 1000, // Set the speed for CSS transitions in jQuery.maximage.css (lines 30 - 33)
timeout: 5000,
prev: '#arrow_left',
next: '#arrow_right',
pause: 1
},
fillElement: '#holder',
backgroundSize: 'contain'
});
});
</script>
<!-- DON'T USE THIS: Insert Google Analytics code here -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-733524-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>