parallaxslider-rails 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +1 -0
- data/Rakefile +2 -0
- data/app/assets/images/1.png +0 -0
- data/app/assets/images/2.png +0 -0
- data/app/assets/images/3.png +0 -0
- data/app/assets/images/4.png +0 -0
- data/app/assets/images/ImageAttribution.txt +8 -0
- data/app/assets/images/Thumbs.db +0 -0
- data/app/assets/images/arrows.png +0 -0
- data/app/assets/images/bg.png +0 -0
- data/app/assets/images/waves.gif +0 -0
- data/app/assets/javascripts/jquery.cslider.js +320 -0
- data/app/assets/javascripts/modernizr.custom.28468.js +4 -0
- data/app/assets/stylesheets/demo.css +190 -0
- data/app/assets/stylesheets/fonts/BebasNeue-webfont.eot +0 -0
- data/app/assets/stylesheets/fonts/BebasNeue-webfont.svg +146 -0
- data/app/assets/stylesheets/fonts/BebasNeue-webfont.ttf +0 -0
- data/app/assets/stylesheets/fonts/BebasNeue-webfont.woff +0 -0
- data/app/assets/stylesheets/fonts/Dharma Type Font License.txt +57 -0
- data/app/assets/stylesheets/nojs.css +18 -0
- data/app/assets/stylesheets/style.css +704 -0
- data/app/assets/stylesheets/style2.css +694 -0
- data/lib/parallaxslider-rails/version.rb +5 -0
- data/lib/parallaxslider-rails.rb +8 -0
- data/parallaxslider-rails.gemspec +23 -0
- metadata +99 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MTNhOWViMzUwZTMxYjQwY2JjODczMWIwZmRlZGYzZjI4MzYwODk5YQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZWQ3YTBlZjIyOTg4YmYyYjRkNDMxYzZlMTAwMDRkZDRjZGNkZjMwYg==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ODc2NDRiYTBjNzY3ODIwZDg3NzYwYmIxNzk4ZWM1YjE4NzQ2OTExOGJhNzA2
|
10
|
+
NWZjNGViYjM2NTAwZWE1YmY5NzczMzRjYTgzOWFkYzAzZGZjZDc5NTc3ODdh
|
11
|
+
ZDViZDVhZjJiNWJhYWZiOTM5NTRiZWZkNzYwMWNiMzllZWNhODY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
Zjk1ZjI2Y2RmMjYyOGRiMDcxZjBkZDBhYWY3YzdmOTRmZTdhNGYxMGQ4MTQ2
|
14
|
+
YmY4MmYyMDFmM2NkZjQ3N2Y0Y2UxZTM4ZDFjMjcwODIyYjhkMDFhZWJlNDc3
|
15
|
+
MTFjNWE1MWMyNTYxYmYyZjhlYzY2N2JlZDhmYzg1Y2RjMDA2ZTM=
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 producao02
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# parallaxslider-rails
|
data/Rakefile
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,320 @@
|
|
1
|
+
(function( $, undefined ) {
|
2
|
+
|
3
|
+
/*
|
4
|
+
* Slider object.
|
5
|
+
*/
|
6
|
+
$.Slider = function( options, element ) {
|
7
|
+
|
8
|
+
this.$el = $( element );
|
9
|
+
|
10
|
+
this._init( options );
|
11
|
+
|
12
|
+
};
|
13
|
+
|
14
|
+
$.Slider.defaults = {
|
15
|
+
current : 0, // index of current slide
|
16
|
+
bgincrement : 50, // increment the bg position (parallax effect) when sliding
|
17
|
+
autoplay : false,// slideshow on / off
|
18
|
+
interval : 4000 // time between transitions
|
19
|
+
};
|
20
|
+
|
21
|
+
$.Slider.prototype = {
|
22
|
+
_init : function( options ) {
|
23
|
+
|
24
|
+
this.options = $.extend( true, {}, $.Slider.defaults, options );
|
25
|
+
|
26
|
+
this.$slides = this.$el.children('div.da-slide');
|
27
|
+
this.slidesCount = this.$slides.length;
|
28
|
+
|
29
|
+
this.current = this.options.current;
|
30
|
+
|
31
|
+
if( this.current < 0 || this.current >= this.slidesCount ) {
|
32
|
+
|
33
|
+
this.current = 0;
|
34
|
+
|
35
|
+
}
|
36
|
+
|
37
|
+
this.$slides.eq( this.current ).addClass( 'da-slide-current' );
|
38
|
+
|
39
|
+
var $navigation = $( '<nav class="da-dots"/>' );
|
40
|
+
for( var i = 0; i < this.slidesCount; ++i ) {
|
41
|
+
|
42
|
+
$navigation.append( '<span/>' );
|
43
|
+
|
44
|
+
}
|
45
|
+
$navigation.appendTo( this.$el );
|
46
|
+
|
47
|
+
this.$pages = this.$el.find('nav.da-dots > span');
|
48
|
+
this.$navNext = this.$el.find('span.da-arrows-next');
|
49
|
+
this.$navPrev = this.$el.find('span.da-arrows-prev');
|
50
|
+
|
51
|
+
this.isAnimating = false;
|
52
|
+
|
53
|
+
this.bgpositer = 0;
|
54
|
+
|
55
|
+
this.cssAnimations = Modernizr.cssanimations;
|
56
|
+
this.cssTransitions = Modernizr.csstransitions;
|
57
|
+
|
58
|
+
if( !this.cssAnimations || !this.cssAnimations ) {
|
59
|
+
|
60
|
+
this.$el.addClass( 'da-slider-fb' );
|
61
|
+
|
62
|
+
}
|
63
|
+
|
64
|
+
this._updatePage();
|
65
|
+
|
66
|
+
// load the events
|
67
|
+
this._loadEvents();
|
68
|
+
|
69
|
+
// slideshow
|
70
|
+
if( this.options.autoplay ) {
|
71
|
+
|
72
|
+
this._startSlideshow();
|
73
|
+
|
74
|
+
}
|
75
|
+
|
76
|
+
},
|
77
|
+
_navigate : function( page, dir ) {
|
78
|
+
|
79
|
+
var $current = this.$slides.eq( this.current ), $next, _self = this;
|
80
|
+
|
81
|
+
if( this.current === page || this.isAnimating ) return false;
|
82
|
+
|
83
|
+
this.isAnimating = true;
|
84
|
+
|
85
|
+
// check dir
|
86
|
+
var classTo, classFrom, d;
|
87
|
+
|
88
|
+
if( !dir ) {
|
89
|
+
|
90
|
+
( page > this.current ) ? d = 'next' : d = 'prev';
|
91
|
+
|
92
|
+
}
|
93
|
+
else {
|
94
|
+
|
95
|
+
d = dir;
|
96
|
+
|
97
|
+
}
|
98
|
+
|
99
|
+
if( this.cssAnimations && this.cssAnimations ) {
|
100
|
+
|
101
|
+
if( d === 'next' ) {
|
102
|
+
|
103
|
+
classTo = 'da-slide-toleft';
|
104
|
+
classFrom = 'da-slide-fromright';
|
105
|
+
++this.bgpositer;
|
106
|
+
|
107
|
+
}
|
108
|
+
else {
|
109
|
+
|
110
|
+
classTo = 'da-slide-toright';
|
111
|
+
classFrom = 'da-slide-fromleft';
|
112
|
+
--this.bgpositer;
|
113
|
+
|
114
|
+
}
|
115
|
+
|
116
|
+
this.$el.css( 'background-position' , this.bgpositer * this.options.bgincrement + '% 0%' );
|
117
|
+
|
118
|
+
}
|
119
|
+
|
120
|
+
this.current = page;
|
121
|
+
|
122
|
+
$next = this.$slides.eq( this.current );
|
123
|
+
|
124
|
+
if( this.cssAnimations && this.cssAnimations ) {
|
125
|
+
|
126
|
+
var rmClasses = 'da-slide-toleft da-slide-toright da-slide-fromleft da-slide-fromright';
|
127
|
+
$current.removeClass( rmClasses );
|
128
|
+
$next.removeClass( rmClasses );
|
129
|
+
|
130
|
+
$current.addClass( classTo );
|
131
|
+
$next.addClass( classFrom );
|
132
|
+
|
133
|
+
$current.removeClass( 'da-slide-current' );
|
134
|
+
$next.addClass( 'da-slide-current' );
|
135
|
+
|
136
|
+
}
|
137
|
+
|
138
|
+
// fallback
|
139
|
+
if( !this.cssAnimations || !this.cssAnimations ) {
|
140
|
+
|
141
|
+
$next.css( 'left', ( d === 'next' ) ? '100%' : '-100%' ).stop().animate( {
|
142
|
+
left : '0%'
|
143
|
+
}, 1000, function() {
|
144
|
+
_self.isAnimating = false;
|
145
|
+
});
|
146
|
+
|
147
|
+
$current.stop().animate( {
|
148
|
+
left : ( d === 'next' ) ? '-100%' : '100%'
|
149
|
+
}, 1000, function() {
|
150
|
+
$current.removeClass( 'da-slide-current' );
|
151
|
+
});
|
152
|
+
|
153
|
+
}
|
154
|
+
|
155
|
+
this._updatePage();
|
156
|
+
|
157
|
+
},
|
158
|
+
_updatePage : function() {
|
159
|
+
|
160
|
+
this.$pages.removeClass( 'da-dots-current' );
|
161
|
+
this.$pages.eq( this.current ).addClass( 'da-dots-current' );
|
162
|
+
|
163
|
+
},
|
164
|
+
_startSlideshow : function() {
|
165
|
+
|
166
|
+
var _self = this;
|
167
|
+
|
168
|
+
this.slideshow = setTimeout( function() {
|
169
|
+
|
170
|
+
var page = ( _self.current < _self.slidesCount - 1 ) ? page = _self.current + 1 : page = 0;
|
171
|
+
_self._navigate( page, 'next' );
|
172
|
+
|
173
|
+
if( _self.options.autoplay ) {
|
174
|
+
|
175
|
+
_self._startSlideshow();
|
176
|
+
|
177
|
+
}
|
178
|
+
|
179
|
+
}, this.options.interval );
|
180
|
+
|
181
|
+
},
|
182
|
+
page : function( idx ) {
|
183
|
+
|
184
|
+
if( idx >= this.slidesCount || idx < 0 ) {
|
185
|
+
|
186
|
+
return false;
|
187
|
+
|
188
|
+
}
|
189
|
+
|
190
|
+
if( this.options.autoplay ) {
|
191
|
+
|
192
|
+
clearTimeout( this.slideshow );
|
193
|
+
this.options.autoplay = false;
|
194
|
+
|
195
|
+
}
|
196
|
+
|
197
|
+
this._navigate( idx );
|
198
|
+
|
199
|
+
},
|
200
|
+
_loadEvents : function() {
|
201
|
+
|
202
|
+
var _self = this;
|
203
|
+
|
204
|
+
this.$pages.on( 'click.cslider', function( event ) {
|
205
|
+
|
206
|
+
_self.page( $(this).index() );
|
207
|
+
return false;
|
208
|
+
|
209
|
+
});
|
210
|
+
|
211
|
+
this.$navNext.on( 'click.cslider', function( event ) {
|
212
|
+
|
213
|
+
if( _self.options.autoplay ) {
|
214
|
+
|
215
|
+
clearTimeout( _self.slideshow );
|
216
|
+
_self.options.autoplay = false;
|
217
|
+
|
218
|
+
}
|
219
|
+
|
220
|
+
var page = ( _self.current < _self.slidesCount - 1 ) ? page = _self.current + 1 : page = 0;
|
221
|
+
_self._navigate( page, 'next' );
|
222
|
+
return false;
|
223
|
+
|
224
|
+
});
|
225
|
+
|
226
|
+
this.$navPrev.on( 'click.cslider', function( event ) {
|
227
|
+
|
228
|
+
if( _self.options.autoplay ) {
|
229
|
+
|
230
|
+
clearTimeout( _self.slideshow );
|
231
|
+
_self.options.autoplay = false;
|
232
|
+
|
233
|
+
}
|
234
|
+
|
235
|
+
var page = ( _self.current > 0 ) ? page = _self.current - 1 : page = _self.slidesCount - 1;
|
236
|
+
_self._navigate( page, 'prev' );
|
237
|
+
return false;
|
238
|
+
|
239
|
+
});
|
240
|
+
|
241
|
+
if( this.cssTransitions ) {
|
242
|
+
|
243
|
+
if( !this.options.bgincrement ) {
|
244
|
+
|
245
|
+
this.$el.on( 'webkitAnimationEnd.cslider animationend.cslider OAnimationEnd.cslider', function( event ) {
|
246
|
+
|
247
|
+
if( event.originalEvent.animationName === 'toRightAnim4' || event.originalEvent.animationName === 'toLeftAnim4' ) {
|
248
|
+
|
249
|
+
_self.isAnimating = false;
|
250
|
+
|
251
|
+
}
|
252
|
+
|
253
|
+
});
|
254
|
+
|
255
|
+
}
|
256
|
+
else {
|
257
|
+
|
258
|
+
this.$el.on( 'webkitTransitionEnd.cslider transitionend.cslider OTransitionEnd.cslider', function( event ) {
|
259
|
+
|
260
|
+
if( event.target.id === _self.$el.attr( 'id' ) )
|
261
|
+
_self.isAnimating = false;
|
262
|
+
|
263
|
+
});
|
264
|
+
|
265
|
+
}
|
266
|
+
|
267
|
+
}
|
268
|
+
|
269
|
+
}
|
270
|
+
};
|
271
|
+
|
272
|
+
var logError = function( message ) {
|
273
|
+
if ( this.console ) {
|
274
|
+
console.error( message );
|
275
|
+
}
|
276
|
+
};
|
277
|
+
|
278
|
+
$.fn.cslider = function( options ) {
|
279
|
+
|
280
|
+
if ( typeof options === 'string' ) {
|
281
|
+
|
282
|
+
var args = Array.prototype.slice.call( arguments, 1 );
|
283
|
+
|
284
|
+
this.each(function() {
|
285
|
+
|
286
|
+
var instance = $.data( this, 'cslider' );
|
287
|
+
|
288
|
+
if ( !instance ) {
|
289
|
+
logError( "cannot call methods on cslider prior to initialization; " +
|
290
|
+
"attempted to call method '" + options + "'" );
|
291
|
+
return;
|
292
|
+
}
|
293
|
+
|
294
|
+
if ( !$.isFunction( instance[options] ) || options.charAt(0) === "_" ) {
|
295
|
+
logError( "no such method '" + options + "' for cslider instance" );
|
296
|
+
return;
|
297
|
+
}
|
298
|
+
|
299
|
+
instance[ options ].apply( instance, args );
|
300
|
+
|
301
|
+
});
|
302
|
+
|
303
|
+
}
|
304
|
+
else {
|
305
|
+
|
306
|
+
this.each(function() {
|
307
|
+
|
308
|
+
var instance = $.data( this, 'cslider' );
|
309
|
+
if ( !instance ) {
|
310
|
+
$.data( this, 'cslider', new $.Slider( options, this ) );
|
311
|
+
}
|
312
|
+
});
|
313
|
+
|
314
|
+
}
|
315
|
+
|
316
|
+
return this;
|
317
|
+
|
318
|
+
};
|
319
|
+
|
320
|
+
})( jQuery );
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/* Modernizr 2.5.3 (Custom Build) | MIT & BSD
|
2
|
+
* Build: http://www.modernizr.com/download/#-cssanimations-csstransitions-shiv-cssclasses-testprop-testallprops-domprefixes-load
|
3
|
+
*/
|
4
|
+
;window.Modernizr=function(a,b,c){function x(a){j.cssText=a}function y(a,b){return x(prefixes.join(a+";")+(b||""))}function z(a,b){return typeof a===b}function A(a,b){return!!~(""+a).indexOf(b)}function B(a,b){for(var d in a)if(j[a[d]]!==c)return b=="pfx"?a[d]:!0;return!1}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:z(f,"function")?f.bind(d||b):f}return!1}function D(a,b,c){var d=a.charAt(0).toUpperCase()+a.substr(1),e=(a+" "+n.join(d+" ")+d).split(" ");return z(b,"string")||z(b,"undefined")?B(e,b):(e=(a+" "+o.join(d+" ")+d).split(" "),C(e,b,c))}var d="2.5.3",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m="Webkit Moz O ms",n=m.split(" "),o=m.toLowerCase().split(" "),p={},q={},r={},s=[],t=s.slice,u,v={}.hasOwnProperty,w;!z(v,"undefined")&&!z(v.call,"undefined")?w=function(a,b){return v.call(a,b)}:w=function(a,b){return b in a&&z(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=t.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(t.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(t.call(arguments)))};return e}),p.cssanimations=function(){return D("animationName")},p.csstransitions=function(){return D("transition")};for(var E in p)w(p,E)&&(u=E.toLowerCase(),e[u]=p[E](),s.push((e[u]?"":"no-")+u));return x(""),i=k=null,function(a,b){function g(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function h(){var a=k.elements;return typeof a=="string"?a.split(" "):a}function i(a){var b={},c=a.createElement,e=a.createDocumentFragment,f=e();a.createElement=function(a){var e=(b[a]||(b[a]=c(a))).cloneNode();return k.shivMethods&&e.canHaveChildren&&!d.test(a)?f.appendChild(e):e},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+h().join().replace(/\w+/g,function(a){return b[a]=c(a),f.createElement(a),'c("'+a+'")'})+");return n}")(k,f)}function j(a){var b;return a.documentShived?a:(k.shivCSS&&!e&&(b=!!g(a,"article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio{display:none}canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}mark{background:#FF0;color:#000}")),f||(b=!i(a)),b&&(a.documentShived=b),a)}var c=a.html5||{},d=/^<|^(?:button|form|map|select|textarea)$/i,e,f;(function(){var a=b.createElement("a");a.innerHTML="<xyz></xyz>",e="hidden"in a,f=a.childNodes.length==1||function(){try{b.createElement("a")}catch(a){return!0}var c=b.createDocumentFragment();return typeof c.cloneNode=="undefined"||typeof c.createDocumentFragment=="undefined"||typeof c.createElement=="undefined"}()})();var k={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:j};a.html5=k,j(b)}(this,b),e._version=d,e._domPrefixes=o,e._cssomPrefixes=n,e.testProp=function(a){return B([a])},e.testAllProps=D,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+s.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return o.call(a)=="[object Function]"}function e(a){return typeof a=="string"}function f(){}function g(a){return!a||a=="loaded"||a=="complete"||a=="uninitialized"}function h(){var a=p.shift();q=1,a?a.t?m(function(){(a.t=="c"?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){a!="img"&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l={},o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};y[c]===1&&(r=1,y[c]=[],l=b.createElement(a)),a=="object"?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),a!="img"&&(r||y[c]===2?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i(b=="c"?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),p.length==1&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&o.call(a.opera)=="[object Opera]",l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return o.call(a)=="[object Array]"},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,i){var j=b(a),l=j.autoCallback;j.url.split(".").pop().split("?").shift(),j.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]||h),j.instead?j.instead(a,e,f,g,i):(y[j.url]?j.noexec=!0:y[j.url]=1,f.load(j.url,j.forceCSS||!j.forceJS&&"css"==j.url.split(".").pop().split("?").shift()?"c":c,j.noexec,j.attrs,j.timeout),(d(e)||d(l))&&f.load(function(){k(),e&&e(j.origUrl,i,g),l&&l(j.origUrl,i,g),y[j.url]=2})))}function i(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var j,l,m=this.yepnope.loader;if(e(a))g(a,0,m,0);else if(w(a))for(j=0;j<a.length;j++)l=a[j],e(l)?g(l,0,m,0):w(l)?B(l):Object(l)===l&&i(l,m);else Object(a)===a&&i(a,m)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,b.readyState==null&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};
|
@@ -0,0 +1,190 @@
|
|
1
|
+
@font-face {
|
2
|
+
font-family: 'BebasNeueRegular';
|
3
|
+
src: url('fonts/BebasNeue-webfont.eot');
|
4
|
+
src: url('fonts/BebasNeue-webfont.eot?#iefix') format('embedded-opentype'),
|
5
|
+
url('fonts/BebasNeue-webfont.woff') format('woff'),
|
6
|
+
url('fonts/BebasNeue-webfont.ttf') format('truetype'),
|
7
|
+
url('fonts/BebasNeue-webfont.svg#BebasNeueRegular') format('svg');
|
8
|
+
font-weight: normal;
|
9
|
+
font-style: normal;
|
10
|
+
}
|
11
|
+
/* CSS reset */
|
12
|
+
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
|
13
|
+
margin:0;
|
14
|
+
padding:0;
|
15
|
+
}
|
16
|
+
html,body {
|
17
|
+
margin:0;
|
18
|
+
padding:0;
|
19
|
+
}
|
20
|
+
table {
|
21
|
+
border-collapse:collapse;
|
22
|
+
border-spacing:0;
|
23
|
+
}
|
24
|
+
fieldset,img {
|
25
|
+
border:0;
|
26
|
+
}
|
27
|
+
address,caption,cite,code,dfn,th,var {
|
28
|
+
font-style:normal;
|
29
|
+
font-weight:normal;
|
30
|
+
}
|
31
|
+
ol,ul {
|
32
|
+
list-style:none;
|
33
|
+
}
|
34
|
+
caption,th {
|
35
|
+
text-align:left;
|
36
|
+
}
|
37
|
+
h1,h2,h3,h4,h5,h6 {
|
38
|
+
font-size:100%;
|
39
|
+
font-weight:normal;
|
40
|
+
}
|
41
|
+
q:before,q:after {
|
42
|
+
content:'';
|
43
|
+
}
|
44
|
+
abbr,acronym { border:0;
|
45
|
+
}
|
46
|
+
section, header{
|
47
|
+
display: block;
|
48
|
+
}
|
49
|
+
/* General Demo Style */
|
50
|
+
body{
|
51
|
+
font-family: Cambria, Palatino, "Palatino Linotype", "Palatino LT STD", Georgia, serif;
|
52
|
+
background: #e0e3ec url(../images/bg.png) repeat top left;
|
53
|
+
font-weight: 400;
|
54
|
+
font-size: 15px;
|
55
|
+
color: #593741;
|
56
|
+
overflow-y: scroll;
|
57
|
+
}
|
58
|
+
a{
|
59
|
+
color: #333;
|
60
|
+
text-decoration: none;
|
61
|
+
}
|
62
|
+
.container{
|
63
|
+
width: 100%;
|
64
|
+
position: relative;
|
65
|
+
text-align: center;
|
66
|
+
}
|
67
|
+
.clr{
|
68
|
+
clear: both;
|
69
|
+
}
|
70
|
+
.container > header{
|
71
|
+
padding: 20px 30px 10px 30px;
|
72
|
+
margin: 0px 20px 10px 20px;
|
73
|
+
position: relative;
|
74
|
+
display: block;
|
75
|
+
text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
|
76
|
+
text-align: center;
|
77
|
+
}
|
78
|
+
.container > header h1{
|
79
|
+
font-family: 'BebasNeueRegular', 'Arial Narrow', Arial, sans-serif;
|
80
|
+
font-size: 35px;
|
81
|
+
line-height: 35px;
|
82
|
+
position: relative;
|
83
|
+
font-weight: 400;
|
84
|
+
color: #936975;
|
85
|
+
text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
|
86
|
+
padding: 0px 0px 5px 0px;
|
87
|
+
}
|
88
|
+
.container > header h1 span{
|
89
|
+
color: #b19099;
|
90
|
+
text-shadow: 0px 1px 1px rgba(255,255,255,0.8);
|
91
|
+
}
|
92
|
+
.container > header h2{
|
93
|
+
font-size: 16px;
|
94
|
+
font-style: italic;
|
95
|
+
color: #593741;
|
96
|
+
text-shadow: 0px 1px 1px rgba(255,255,255,0.8);
|
97
|
+
}
|
98
|
+
/* Header Style */
|
99
|
+
.codrops-top{
|
100
|
+
line-height: 24px;
|
101
|
+
font-size: 11px;
|
102
|
+
background: rgba(255, 255, 255, 0.6);
|
103
|
+
text-transform: uppercase;
|
104
|
+
z-index: 9999;
|
105
|
+
position: relative;
|
106
|
+
box-shadow: 1px 0px 2px rgba(0,0,0,0.2);
|
107
|
+
}
|
108
|
+
.codrops-top a{
|
109
|
+
padding: 0px 10px;
|
110
|
+
letter-spacing: 1px;
|
111
|
+
color: #333;
|
112
|
+
text-shadow: 0px 1px 1px #fff;
|
113
|
+
display: block;
|
114
|
+
float: left;
|
115
|
+
}
|
116
|
+
.codrops-top a:hover{
|
117
|
+
background: #fff;
|
118
|
+
}
|
119
|
+
.codrops-top span.right{
|
120
|
+
float: right;
|
121
|
+
}
|
122
|
+
.codrops-top span.right a{
|
123
|
+
float: left;
|
124
|
+
display: block;
|
125
|
+
}
|
126
|
+
|
127
|
+
p.codrops-demos{
|
128
|
+
text-align:center;
|
129
|
+
display: block;
|
130
|
+
padding: 14px;
|
131
|
+
}
|
132
|
+
p.codrops-demos a,
|
133
|
+
p.codrops-demos a.current-demo,
|
134
|
+
p.codrops-demos a.current-demo:hover{
|
135
|
+
display: inline-block;
|
136
|
+
border: 1px solid #b19099;
|
137
|
+
padding: 4px 10px 3px;
|
138
|
+
font-size: 13px;
|
139
|
+
line-height: 18px;
|
140
|
+
margin: 0px 3px;
|
141
|
+
font-weight: 800;
|
142
|
+
-webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.1);
|
143
|
+
-moz-box-shadow:0px 1px 1px rgba(0,0,0,0.1);
|
144
|
+
box-shadow: 0px 1px 1px rgba(0,0,0,0.1);
|
145
|
+
color: #fff;
|
146
|
+
text-shadow: 1px 1px 1px rgba(0,0,0,0.6);
|
147
|
+
-webkit-border-radius: 5px;
|
148
|
+
-moz-border-radius: 5px;
|
149
|
+
border-radius: 5px;
|
150
|
+
background: #b19099;
|
151
|
+
background: -moz-linear-gradient(top, #b19099 0%, #936975 100%);
|
152
|
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b19099), color-stop(100%,#936975));
|
153
|
+
background: -webkit-linear-gradient(top, #b19099 0%,#936975 100%);
|
154
|
+
background: -o-linear-gradient(top, #b19099 0%,#936975 100%);
|
155
|
+
background: -ms-linear-gradient(top, #b19099 0%,#936975 100%);
|
156
|
+
background: linear-gradient(top, #b19099 0%,#936975 100%);
|
157
|
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b19099', endColorstr='#936975',GradientType=0 );
|
158
|
+
}
|
159
|
+
p.codrops-demos a:hover{
|
160
|
+
background: #b19099;
|
161
|
+
}
|
162
|
+
p.codrops-demos a:active{
|
163
|
+
-webkit-box-shadow: 0px 1px 1px rgba(255,255,255,0.4);
|
164
|
+
-moz-box-shadow: 0px 1px 1px rgba(255,255,255,0.4);
|
165
|
+
box-shadow: 0px 1px 1px rgba(255,255,255,0.4);
|
166
|
+
}
|
167
|
+
p.codrops-demos a.current-demo,
|
168
|
+
p.codrops-demos a.current-demo:hover{
|
169
|
+
color: #443132;
|
170
|
+
text-shadow: 0px 1px 1px rgba(255,255,255,0.3);
|
171
|
+
}
|
172
|
+
#testSlide3 {
|
173
|
+
display: inline-block;
|
174
|
+
border: 1px solid #b19099;
|
175
|
+
padding: 4px 10px 3px;
|
176
|
+
margin: 0px 3px;
|
177
|
+
color: #fff;
|
178
|
+
background: #111;
|
179
|
+
}
|
180
|
+
/* Media Queries */
|
181
|
+
@media screen and (max-width: 767px) {
|
182
|
+
.container > header{
|
183
|
+
text-align: center;
|
184
|
+
}
|
185
|
+
p.codrops-demos {
|
186
|
+
position: relative;
|
187
|
+
top: auto;
|
188
|
+
left: auto;
|
189
|
+
}
|
190
|
+
}
|
Binary file
|