Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
25
assets/js/bxslider/bower.json
Normal file
25
assets/js/bxslider/bower.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "bxslider-4",
|
||||
"version": "4.1.2",
|
||||
"homepage": "http://bxslider.com",
|
||||
"license": "MIT",
|
||||
"main": [
|
||||
"jquery.bxslider.js",
|
||||
"jquery.bxslider.css",
|
||||
"images/bx_loader.gif",
|
||||
"images/controls.png"
|
||||
],
|
||||
"keywords": [
|
||||
"bxslider",
|
||||
"javascript",
|
||||
"jquery",
|
||||
"library"
|
||||
],
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"*.md"
|
||||
],
|
||||
"dependencies": {
|
||||
"jquery": ">=1.6"
|
||||
}
|
||||
}
|
||||
BIN
assets/js/bxslider/images/bx_loader.gif
Normal file
BIN
assets/js/bxslider/images/bx_loader.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.4 KiB |
BIN
assets/js/bxslider/images/controls.png
Normal file
BIN
assets/js/bxslider/images/controls.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
204
assets/js/bxslider/jquery.bxslider.css
Normal file
204
assets/js/bxslider/jquery.bxslider.css
Normal file
@@ -0,0 +1,204 @@
|
||||
/**
|
||||
* BxSlider v4.1.2 - Fully loaded, responsive content slider
|
||||
* http://bxslider.com
|
||||
*
|
||||
* Written by: Steven Wanderski, 2014
|
||||
* http://stevenwanderski.com
|
||||
* (while drinking Belgian ales and listening to jazz)
|
||||
*
|
||||
* CEO and founder of bxCreative, LTD
|
||||
* http://bxcreative.com
|
||||
*/
|
||||
|
||||
|
||||
/** RESET AND LAYOUT
|
||||
===================================*/
|
||||
|
||||
.bx-wrapper {
|
||||
position: relative;
|
||||
margin: 0 auto 60px;
|
||||
padding: 0;
|
||||
*zoom: 1;
|
||||
}
|
||||
|
||||
.bx-wrapper img {
|
||||
max-width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/** THEME
|
||||
===================================*/
|
||||
|
||||
.bx-wrapper .bx-viewport {
|
||||
-moz-box-shadow: 0 0 5px #ccc;
|
||||
-webkit-box-shadow: 0 0 5px #ccc;
|
||||
box-shadow: 0 0 5px #ccc;
|
||||
border: 5px solid #fff;
|
||||
left: -5px;
|
||||
background: #fff;
|
||||
|
||||
/*fix other elements on the page moving (on Chrome)*/
|
||||
-webkit-transform: translatez(0);
|
||||
-moz-transform: translatez(0);
|
||||
-ms-transform: translatez(0);
|
||||
-o-transform: translatez(0);
|
||||
transform: translatez(0);
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-pager,
|
||||
.bx-wrapper .bx-controls-auto {
|
||||
position: absolute;
|
||||
bottom: -30px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* LOADER */
|
||||
|
||||
.bx-wrapper .bx-loading {
|
||||
min-height: 50px;
|
||||
background: url(images/bx_loader.gif) center center no-repeat #fff;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 2000;
|
||||
}
|
||||
|
||||
/* PAGER */
|
||||
|
||||
.bx-wrapper .bx-pager {
|
||||
text-align: center;
|
||||
font-size: .85em;
|
||||
font-family: Arial;
|
||||
font-weight: bold;
|
||||
color: #666;
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-pager .bx-pager-item,
|
||||
.bx-wrapper .bx-controls-auto .bx-controls-auto-item {
|
||||
display: inline-block;
|
||||
*zoom: 1;
|
||||
*display: inline;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-pager.bx-default-pager a {
|
||||
background: #666;
|
||||
text-indent: -9999px;
|
||||
display: block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin: 0 5px;
|
||||
outline: 0;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-pager.bx-default-pager a:hover,
|
||||
.bx-wrapper .bx-pager.bx-default-pager a.active {
|
||||
background: #000;
|
||||
}
|
||||
|
||||
/* DIRECTION CONTROLS (NEXT / PREV) */
|
||||
|
||||
.bx-wrapper .bx-prev {
|
||||
left: 10px;
|
||||
background: url(images/controls.png) no-repeat 0 -32px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-next {
|
||||
right: 10px;
|
||||
background: url(images/controls.png) no-repeat -43px -32px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-prev:hover {
|
||||
background-position: 0 0;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-next:hover {
|
||||
background-position: -43px 0;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-direction a {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
margin-top: -16px;
|
||||
outline: 0;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
text-indent: -9999px;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-direction a.disabled {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* AUTO CONTROLS (START / STOP) */
|
||||
|
||||
.bx-wrapper .bx-controls-auto {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-auto .bx-start {
|
||||
display: block;
|
||||
text-indent: -9999px;
|
||||
width: 10px;
|
||||
height: 11px;
|
||||
outline: 0;
|
||||
background: url(images/controls.png) -86px -11px no-repeat;
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-auto .bx-start:hover,
|
||||
.bx-wrapper .bx-controls-auto .bx-start.active {
|
||||
background-position: -86px 0;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-auto .bx-stop {
|
||||
display: block;
|
||||
text-indent: -9999px;
|
||||
width: 9px;
|
||||
height: 11px;
|
||||
outline: 0;
|
||||
background: url(images/controls.png) -86px -44px no-repeat;
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-auto .bx-stop:hover,
|
||||
.bx-wrapper .bx-controls-auto .bx-stop.active {
|
||||
background-position: -86px -33px;
|
||||
}
|
||||
|
||||
/* PAGER WITH AUTO-CONTROLS HYBRID LAYOUT */
|
||||
|
||||
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-pager {
|
||||
text-align: left;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-controls-auto {
|
||||
right: 0;
|
||||
width: 35px;
|
||||
}
|
||||
|
||||
/* IMAGE CAPTIONS */
|
||||
|
||||
.bx-wrapper .bx-caption {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background: #666\9;
|
||||
background: rgba(80, 80, 80, 0.75);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-caption span {
|
||||
color: #fff;
|
||||
font-family: Arial;
|
||||
display: block;
|
||||
font-size: .85em;
|
||||
padding: 10px;
|
||||
}
|
||||
1343
assets/js/bxslider/jquery.bxslider.js
Normal file
1343
assets/js/bxslider/jquery.bxslider.js
Normal file
File diff suppressed because it is too large
Load Diff
10
assets/js/bxslider/jquery.bxslider.min.js
vendored
Normal file
10
assets/js/bxslider/jquery.bxslider.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
205
assets/js/bxslider/plugins/jquery.easing.1.3.js
Normal file
205
assets/js/bxslider/plugins/jquery.easing.1.3.js
Normal file
@@ -0,0 +1,205 @@
|
||||
/*
|
||||
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
||||
*
|
||||
* Uses the built in easing capabilities added In jQuery 1.1
|
||||
* to offer multiple easing options
|
||||
*
|
||||
* TERMS OF USE - jQuery Easing
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright © 2008 George McGinley Smith
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* Neither the name of the author nor the names of contributors may be used to endorse
|
||||
* or promote products derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
// t: current time, b: begInnIng value, c: change In value, d: duration
|
||||
jQuery.easing['jswing'] = jQuery.easing['swing'];
|
||||
|
||||
jQuery.extend( jQuery.easing,
|
||||
{
|
||||
def: 'easeOutQuad',
|
||||
swing: function (x, t, b, c, d) {
|
||||
//alert(jQuery.easing.default);
|
||||
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
|
||||
},
|
||||
easeInQuad: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t + b;
|
||||
},
|
||||
easeOutQuad: function (x, t, b, c, d) {
|
||||
return -c *(t/=d)*(t-2) + b;
|
||||
},
|
||||
easeInOutQuad: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t + b;
|
||||
return -c/2 * ((--t)*(t-2) - 1) + b;
|
||||
},
|
||||
easeInCubic: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t + b;
|
||||
},
|
||||
easeOutCubic: function (x, t, b, c, d) {
|
||||
return c*((t=t/d-1)*t*t + 1) + b;
|
||||
},
|
||||
easeInOutCubic: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t + b;
|
||||
return c/2*((t-=2)*t*t + 2) + b;
|
||||
},
|
||||
easeInQuart: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t*t + b;
|
||||
},
|
||||
easeOutQuart: function (x, t, b, c, d) {
|
||||
return -c * ((t=t/d-1)*t*t*t - 1) + b;
|
||||
},
|
||||
easeInOutQuart: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
|
||||
return -c/2 * ((t-=2)*t*t*t - 2) + b;
|
||||
},
|
||||
easeInQuint: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t*t*t + b;
|
||||
},
|
||||
easeOutQuint: function (x, t, b, c, d) {
|
||||
return c*((t=t/d-1)*t*t*t*t + 1) + b;
|
||||
},
|
||||
easeInOutQuint: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
|
||||
return c/2*((t-=2)*t*t*t*t + 2) + b;
|
||||
},
|
||||
easeInSine: function (x, t, b, c, d) {
|
||||
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
|
||||
},
|
||||
easeOutSine: function (x, t, b, c, d) {
|
||||
return c * Math.sin(t/d * (Math.PI/2)) + b;
|
||||
},
|
||||
easeInOutSine: function (x, t, b, c, d) {
|
||||
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
|
||||
},
|
||||
easeInExpo: function (x, t, b, c, d) {
|
||||
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
|
||||
},
|
||||
easeOutExpo: function (x, t, b, c, d) {
|
||||
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
|
||||
},
|
||||
easeInOutExpo: function (x, t, b, c, d) {
|
||||
if (t==0) return b;
|
||||
if (t==d) return b+c;
|
||||
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
|
||||
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
|
||||
},
|
||||
easeInCirc: function (x, t, b, c, d) {
|
||||
return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
|
||||
},
|
||||
easeOutCirc: function (x, t, b, c, d) {
|
||||
return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
|
||||
},
|
||||
easeInOutCirc: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
|
||||
return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
|
||||
},
|
||||
easeInElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
||||
},
|
||||
easeOutElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
|
||||
},
|
||||
easeInOutElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
||||
return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
|
||||
},
|
||||
easeInBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
return c*(t/=d)*t*((s+1)*t - s) + b;
|
||||
},
|
||||
easeOutBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
|
||||
},
|
||||
easeInOutBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
|
||||
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
|
||||
},
|
||||
easeInBounce: function (x, t, b, c, d) {
|
||||
return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
|
||||
},
|
||||
easeOutBounce: function (x, t, b, c, d) {
|
||||
if ((t/=d) < (1/2.75)) {
|
||||
return c*(7.5625*t*t) + b;
|
||||
} else if (t < (2/2.75)) {
|
||||
return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
|
||||
} else if (t < (2.5/2.75)) {
|
||||
return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
|
||||
} else {
|
||||
return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
|
||||
}
|
||||
},
|
||||
easeInOutBounce: function (x, t, b, c, d) {
|
||||
if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
|
||||
return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
*
|
||||
* TERMS OF USE - EASING EQUATIONS
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright © 2001 Robert Penner
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* Neither the name of the author nor the names of contributors may be used to endorse
|
||||
* or promote products derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
80
assets/js/bxslider/plugins/jquery.fitvids.js
Normal file
80
assets/js/bxslider/plugins/jquery.fitvids.js
Normal file
@@ -0,0 +1,80 @@
|
||||
/*global jQuery */
|
||||
/*jshint multistr:true browser:true */
|
||||
/*!
|
||||
* FitVids 1.0
|
||||
*
|
||||
* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
|
||||
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
|
||||
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
|
||||
*
|
||||
* Date: Thu Sept 01 18:00:00 2011 -0500
|
||||
*/
|
||||
|
||||
(function( $ ){
|
||||
|
||||
"use strict";
|
||||
|
||||
$.fn.fitVids = function( options ) {
|
||||
var settings = {
|
||||
customSelector: null
|
||||
};
|
||||
|
||||
var div = document.createElement('div'),
|
||||
ref = document.getElementsByTagName('base')[0] || document.getElementsByTagName('script')[0];
|
||||
|
||||
div.className = 'fit-vids-style';
|
||||
div.innerHTML = '­<style> \
|
||||
.fluid-width-video-wrapper { \
|
||||
width: 100%; \
|
||||
position: relative; \
|
||||
padding: 0; \
|
||||
} \
|
||||
\
|
||||
.fluid-width-video-wrapper iframe, \
|
||||
.fluid-width-video-wrapper object, \
|
||||
.fluid-width-video-wrapper embed { \
|
||||
position: absolute; \
|
||||
top: 0; \
|
||||
left: 0; \
|
||||
width: 100%; \
|
||||
height: 100%; \
|
||||
} \
|
||||
</style>';
|
||||
|
||||
ref.parentNode.insertBefore(div,ref);
|
||||
|
||||
if ( options ) {
|
||||
$.extend( settings, options );
|
||||
}
|
||||
|
||||
return this.each(function(){
|
||||
var selectors = [
|
||||
"iframe[src*='player.vimeo.com']",
|
||||
"iframe[src*='www.youtube.com']",
|
||||
"iframe[src*='www.kickstarter.com']",
|
||||
"object",
|
||||
"embed"
|
||||
];
|
||||
|
||||
if (settings.customSelector) {
|
||||
selectors.push(settings.customSelector);
|
||||
}
|
||||
|
||||
var $allVideos = $(this).find(selectors.join(','));
|
||||
|
||||
$allVideos.each(function(){
|
||||
var $this = $(this);
|
||||
if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; }
|
||||
var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(),
|
||||
width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(),
|
||||
aspectRatio = height / width;
|
||||
if(!$this.attr('id')){
|
||||
var videoID = 'fitvid' + Math.floor(Math.random()*999999);
|
||||
$this.attr('id', videoID);
|
||||
}
|
||||
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%");
|
||||
$this.removeAttr('height').removeAttr('width');
|
||||
});
|
||||
});
|
||||
};
|
||||
})( jQuery );
|
||||
578
assets/js/bxslider/readme.md
Normal file
578
assets/js/bxslider/readme.md
Normal file
@@ -0,0 +1,578 @@
|
||||
#bxSlider 4.1.2
|
||||
##The fully-loaded, responsive jQuery content slider
|
||||
|
||||
###Why should I use this slider?
|
||||
* Fully responsive - will adapt to any device
|
||||
* Horizontal, vertical, and fade modes
|
||||
* Slides can contain images, video, or HTML content
|
||||
* Full callback API and public methods
|
||||
* Small file size, fully themed, simple to implement
|
||||
* Browser support: Firefox, Chrome, Safari, iOS, Android, IE7+
|
||||
* Tons of configuration options
|
||||
|
||||
For complete documentation, tons of examples, and a good time, visit:
|
||||
|
||||
[http://bxslider.com](http://bxslider.com)
|
||||
|
||||
Written by: Steven Wanderski - [http://stevenwanderski.com](http://stevenwanderski.com)
|
||||
|
||||
###License
|
||||
Released under the MIT license - http://opensource.org/licenses/MIT
|
||||
|
||||
Let's get on with it!
|
||||
|
||||
##Installation
|
||||
|
||||
###Step 1: Link required files
|
||||
|
||||
First and most important, the jQuery library needs to be included (no need to download - link directly from Google). Next, download the package from this site and link the bxSlider CSS file (for the theme) and the bxSlider Javascript file.
|
||||
|
||||
```html
|
||||
<!-- jQuery library (served from Google) -->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
|
||||
<!-- bxSlider Javascript file -->
|
||||
<script src="/js/jquery.bxslider.min.js"></script>
|
||||
<!-- bxSlider CSS file -->
|
||||
<link href="/lib/jquery.bxslider.css" rel="stylesheet" />
|
||||
```
|
||||
|
||||
###Step 2: Create HTML markup
|
||||
|
||||
Create a `<ul class="bxslider">` element, with a `<li>` for each slide. Slides can contain images, video, or any other HTML content!
|
||||
|
||||
```html
|
||||
<ul class="bxslider">
|
||||
<li><img src="/images/pic1.jpg" /></li>
|
||||
<li><img src="/images/pic2.jpg" /></li>
|
||||
<li><img src="/images/pic3.jpg" /></li>
|
||||
<li><img src="/images/pic4.jpg" /></li>
|
||||
</ul>
|
||||
```
|
||||
|
||||
###Step 3: Call the bxSlider
|
||||
|
||||
Call .bxslider() on `<ul class="bxslider">`. Note that the call must be made inside of a $(document).ready() call, or the plugin will not work!
|
||||
|
||||
```javascript
|
||||
$(document).ready(function(){
|
||||
$('.bxslider').bxSlider();
|
||||
});
|
||||
```
|
||||
|
||||
##Configuration options
|
||||
|
||||
###General
|
||||
|
||||
**mode**
|
||||
Type of transition between slides
|
||||
```
|
||||
default: 'horizontal'
|
||||
options: 'horizontal', 'vertical', 'fade'
|
||||
```
|
||||
|
||||
**speed**
|
||||
Slide transition duration (in ms)
|
||||
```
|
||||
default: 500
|
||||
options: integer
|
||||
```
|
||||
|
||||
**slideMargin**
|
||||
Margin between each slide
|
||||
```
|
||||
default: 0
|
||||
options: integer
|
||||
```
|
||||
|
||||
**startSlide**
|
||||
Starting slide index (zero-based)
|
||||
```
|
||||
default: 0
|
||||
options: integer
|
||||
```
|
||||
|
||||
**randomStart**
|
||||
Start slider on a random slide
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**slideSelector**
|
||||
Element to use as slides (ex. <code>'div.slide'</code>).<br />Note: by default, bxSlider will use all immediate children of the slider element
|
||||
```
|
||||
default: ''
|
||||
options: jQuery selector
|
||||
```
|
||||
|
||||
**infiniteLoop**
|
||||
If <code>true</code>, clicking "Next" while on the last slide will transition to the first slide and vice-versa
|
||||
```
|
||||
default: true
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**hideControlOnEnd**
|
||||
If <code>true</code>, "Prev" and "Next" controls will receive a class <code>disabled</code> when slide is the first or the last<br/>Note: Only used when <code>infiniteLoop: false</code>
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**easing**
|
||||
The type of "easing" to use during transitions. If using CSS transitions, include a value for the <code>transition-timing-function</code> property. If not using CSS transitions, you may include <code>plugins/jquery.easing.1.3.js</code> for many options.<br />See <a href="http://gsgd.co.uk/sandbox/jquery/easing/" target="_blank">http://gsgd.co.uk/sandbox/jquery/easing/</a> for more info.
|
||||
```
|
||||
default: null
|
||||
options: if using CSS: 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out', 'cubic-bezier(n,n,n,n)'. If not using CSS: 'swing', 'linear' (see the above file for more options)
|
||||
```
|
||||
|
||||
**captions**
|
||||
Include image captions. Captions are derived from the image's <code>title</code> attribute
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**ticker**
|
||||
Use slider in ticker mode (similar to a news ticker)
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**tickerHover**
|
||||
Ticker will pause when mouse hovers over slider. Note: this functionality does NOT work if using CSS transitions!
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**adaptiveHeight**
|
||||
Dynamically adjust slider height based on each slide's height
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**adaptiveHeightSpeed**
|
||||
Slide height transition duration (in ms). Note: only used if <code>adaptiveHeight: true</code>
|
||||
```
|
||||
default: 500
|
||||
options: integer
|
||||
```
|
||||
|
||||
**video**
|
||||
If any slides contain video, set this to <code>true</code>. Also, include <code>plugins/jquery.fitvids.js</code><br />See <a href="http://fitvidsjs.com/" target="_blank">http://fitvidsjs.com/</a> for more info
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**responsive**
|
||||
Enable or disable auto resize of the slider. Useful if you need to use fixed width sliders.
|
||||
```
|
||||
default: true
|
||||
options: boolean (true /false)
|
||||
```
|
||||
|
||||
**useCSS**
|
||||
If true, CSS transitions will be used for horizontal and vertical slide animations (this uses native hardware acceleration). If false, jQuery animate() will be used.
|
||||
```
|
||||
default: true
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**preloadImages**
|
||||
If 'all', preloads all images before starting the slider. If 'visible', preloads only images in the initially visible slides before starting the slider (tip: use 'visible' if all slides are identical dimensions)
|
||||
```
|
||||
default: 'visible'
|
||||
options: 'all', 'visible'
|
||||
```
|
||||
|
||||
**touchEnabled**
|
||||
If <code>true</code>, slider will allow touch swipe transitions
|
||||
```
|
||||
default: true
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**swipeThreshold**
|
||||
Amount of pixels a touch swipe needs to exceed in order to execute a slide transition. Note: only used if <code>touchEnabled: true</code>
|
||||
```
|
||||
default: 50
|
||||
options: integer
|
||||
```
|
||||
|
||||
**oneToOneTouch**
|
||||
If <code>true</code>, non-fade slides follow the finger as it swipes
|
||||
```
|
||||
default: true
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**preventDefaultSwipeX**
|
||||
If <code>true</code>, touch screen will not move along the x-axis as the finger swipes
|
||||
```
|
||||
default: true
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**preventDefaultSwipeY**
|
||||
If <code>true</code>, touch screen will not move along the y-axis as the finger swipes
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**wrapperClass**
|
||||
Class to wrap the slider in. Change to prevent from using default bxSlider styles.
|
||||
```
|
||||
default: 'bx-wrapper'
|
||||
options: string
|
||||
```
|
||||
|
||||
###Pager
|
||||
|
||||
**pager**
|
||||
If <code>true</code>, a pager will be added
|
||||
```
|
||||
default: true
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**pagerType**
|
||||
If <code>'full'</code>, a pager link will be generated for each slide. If <code>'short'</code>, a x / y pager will be used (ex. 1 / 5)
|
||||
```
|
||||
default: 'full'
|
||||
options: 'full', 'short'
|
||||
```
|
||||
|
||||
**pagerShortSeparator**
|
||||
If <code>pagerType: 'short'</code>, pager will use this value as the separating character
|
||||
```
|
||||
default: ' / '
|
||||
options: string
|
||||
```
|
||||
|
||||
**pagerSelector**
|
||||
Element used to populate the populate the pager. By default, the pager is appended to the bx-viewport
|
||||
```
|
||||
default: ''
|
||||
options: jQuery selector
|
||||
```
|
||||
|
||||
**pagerCustom**
|
||||
Parent element to be used as the pager. Parent element must contain a <code><a data-slide-index="x"></code> element for each slide. See example <a href="/examples/thumbnail-method-1">here</a>. Not for use with dynamic carousels.
|
||||
```
|
||||
default: null
|
||||
options: jQuery selector
|
||||
```
|
||||
|
||||
**buildPager**
|
||||
If supplied, function is called on every slide element, and the returned value is used as the pager item markup.<br />See <a href="http://bxslider.com/examples">examples</a> for detailed implementation
|
||||
```
|
||||
default: null
|
||||
options: function(slideIndex)
|
||||
```
|
||||
|
||||
###Controls
|
||||
|
||||
**controls**
|
||||
If <code>true</code>, "Next" / "Prev" controls will be added
|
||||
```
|
||||
default: true
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**nextText**
|
||||
Text to be used for the "Next" control
|
||||
```
|
||||
default: 'Next'
|
||||
options: string
|
||||
```
|
||||
|
||||
**prevText**
|
||||
Text to be used for the "Prev" control
|
||||
```
|
||||
default: 'Prev'
|
||||
options: string
|
||||
```
|
||||
|
||||
**nextSelector**
|
||||
Element used to populate the "Next" control
|
||||
```
|
||||
default: null
|
||||
options: jQuery selector
|
||||
```
|
||||
|
||||
**prevSelector**
|
||||
Element used to populate the "Prev" control
|
||||
```
|
||||
default: null
|
||||
options: jQuery selector
|
||||
```
|
||||
|
||||
**autoControls**
|
||||
If <code>true</code>, "Start" / "Stop" controls will be added
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**startText**
|
||||
Text to be used for the "Start" control
|
||||
```
|
||||
default: 'Start'
|
||||
options: string
|
||||
```
|
||||
|
||||
**stopText**
|
||||
Text to be used for the "Stop" control
|
||||
```
|
||||
default: 'Stop'
|
||||
options: string
|
||||
```
|
||||
|
||||
**autoControlsCombine**
|
||||
When slideshow is playing only "Stop" control is displayed and vice-versa
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**autoControlsSelector**
|
||||
Element used to populate the auto controls
|
||||
```
|
||||
default: null
|
||||
options: jQuery selector
|
||||
```
|
||||
|
||||
###Auto
|
||||
|
||||
**auto**
|
||||
Slides will automatically transition
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**pause**
|
||||
The amount of time (in ms) between each auto transition
|
||||
```
|
||||
default: 4000
|
||||
options: integer
|
||||
```
|
||||
|
||||
**autoStart**
|
||||
Auto show starts playing on load. If <code>false</code>, slideshow will start when the "Start" control is clicked
|
||||
```
|
||||
default: true
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**autoDirection**
|
||||
The direction of auto show slide transitions
|
||||
```
|
||||
default: 'next'
|
||||
options: 'next', 'prev'
|
||||
```
|
||||
|
||||
**autoHover**
|
||||
Auto show will pause when mouse hovers over slider
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**autoDelay**
|
||||
Time (in ms) auto show should wait before starting
|
||||
```
|
||||
default: 0
|
||||
options: integer
|
||||
```
|
||||
|
||||
###Carousel
|
||||
|
||||
**minSlides**
|
||||
The minimum number of slides to be shown. Slides will be sized down if carousel becomes smaller than the original size.
|
||||
```
|
||||
default: 1
|
||||
options: integer
|
||||
```
|
||||
|
||||
**maxSlides**
|
||||
The maximum number of slides to be shown. Slides will be sized up if carousel becomes larger than the original size.
|
||||
```
|
||||
default: 1
|
||||
options: integer
|
||||
```
|
||||
|
||||
**moveSlides**
|
||||
The number of slides to move on transition. This value must be <code>>= minSlides</code>, and <code><= maxSlides</code>. If zero (default), the number of fully-visible slides will be used.
|
||||
```
|
||||
default: 0
|
||||
options: integer
|
||||
```
|
||||
|
||||
**slideWidth**
|
||||
The width of each slide. This setting is required for all horizontal carousels!
|
||||
```
|
||||
default: 0
|
||||
options: integer
|
||||
```
|
||||
|
||||
###Callbacks
|
||||
|
||||
**onSliderLoad**
|
||||
Executes immediately after the slider is fully loaded
|
||||
```
|
||||
default: function(){}
|
||||
options: function(currentIndex){ // your code here }
|
||||
arguments:
|
||||
currentIndex: element index of the current slide
|
||||
```
|
||||
|
||||
**onSliderResize**
|
||||
Executes immediately after the slider is resized
|
||||
```
|
||||
default: function(){}
|
||||
options: function(currentIndex){ // your code here }
|
||||
arguments:
|
||||
currentIndex: element index of the current slide
|
||||
```
|
||||
|
||||
**onSlideBefore**
|
||||
Executes immediately before each slide transition.
|
||||
```
|
||||
default: function(){}
|
||||
options: function($slideElement, oldIndex, newIndex){ // your code here }
|
||||
arguments:
|
||||
$slideElement: jQuery element of the destination element
|
||||
oldIndex: element index of the previous slide (before the transition)
|
||||
newIndex: element index of the destination slide (after the transition)
|
||||
```
|
||||
|
||||
**onSlideAfter**
|
||||
Executes immediately after each slide transition. Function argument is the current slide element (when transition completes).
|
||||
```
|
||||
default: function(){}
|
||||
options: function($slideElement, oldIndex, newIndex){ // your code here }
|
||||
arguments:
|
||||
$slideElement: jQuery element of the destination element
|
||||
oldIndex: element index of the previous slide (before the transition)
|
||||
newIndex: element index of the destination slide (after the transition)
|
||||
```
|
||||
|
||||
**onSlideNext**
|
||||
Executes immediately before each "Next" slide transition. Function argument is the target (next) slide element.
|
||||
```
|
||||
default: function(){}
|
||||
options: function($slideElement, oldIndex, newIndex){ // your code here }
|
||||
arguments:
|
||||
$slideElement: jQuery element of the destination element
|
||||
oldIndex: element index of the previous slide (before the transition)
|
||||
newIndex: element index of the destination slide (after the transition)
|
||||
```
|
||||
|
||||
**onSlidePrev**
|
||||
Executes immediately before each "Prev" slide transition. Function argument is the target (prev) slide element.
|
||||
```
|
||||
default: function(){}
|
||||
options: function($slideElement, oldIndex, newIndex){ // your code here }
|
||||
arguments:
|
||||
$slideElement: jQuery element of the destination element
|
||||
oldIndex: element index of the previous slide (before the transition)
|
||||
newIndex: element index of the destination slide (after the transition)
|
||||
```
|
||||
|
||||
###Public methods
|
||||
|
||||
**goToSlide**
|
||||
Performs a slide transition to the supplied slide index (zero-based)
|
||||
```
|
||||
example:
|
||||
slider = $('.bxslider').bxSlider();
|
||||
slider.goToSlide(3);
|
||||
```
|
||||
|
||||
**goToNextSlide**
|
||||
Performs a "Next" slide transition
|
||||
```
|
||||
example:
|
||||
slider = $('.bxslider').bxSlider();
|
||||
slider.goToNextSlide();
|
||||
```
|
||||
|
||||
**goToPrevSlide**
|
||||
Performs a "Prev" slide transition
|
||||
```
|
||||
example:
|
||||
slider = $('.bxslider').bxSlider();
|
||||
slider.goToPrevSlide();
|
||||
```
|
||||
|
||||
**startAuto**
|
||||
Starts the auto show. Provide an argument <code>false</code> to prevent the auto controls from being updated.
|
||||
```
|
||||
example:
|
||||
slider = $('.bxslider').bxSlider();
|
||||
slider.startAuto();
|
||||
```
|
||||
|
||||
**stopAuto**
|
||||
Stops the auto show. Provide an argument <code>false</code> to prevent the auto controls from being updated.
|
||||
```
|
||||
example:
|
||||
slider = $('.bxslider').bxSlider();
|
||||
slider.stopAuto();
|
||||
```
|
||||
|
||||
**getCurrentSlide**
|
||||
Returns the current active slide
|
||||
```
|
||||
example:
|
||||
slider = $('.bxslider').bxSlider();
|
||||
var current = slider.getCurrentSlide();
|
||||
```
|
||||
|
||||
**getSlideCount**
|
||||
Returns the total number of slides in the slider
|
||||
```
|
||||
example:
|
||||
slider = $('.bxslider').bxSlider();
|
||||
var slideQty = slider.getSlideCount();
|
||||
```
|
||||
|
||||
**reloadSlider**
|
||||
Reload the slider. Useful when adding slides on the fly. Accepts an optional settings object. <a href="/examples/reload-slider-settings">See here for an example.</a>
|
||||
```
|
||||
example:
|
||||
slider = $('.bxslider').bxSlider();
|
||||
slider.reloadSlider();
|
||||
```
|
||||
|
||||
**destroySlider**
|
||||
Destroy the slider. This reverts all slider elements back to their original state (before calling the slider).
|
||||
```
|
||||
example:
|
||||
slider = $('.bxslider').bxSlider();
|
||||
slider.destroySlider();
|
||||
```
|
||||
|
||||
## Changelog
|
||||
|
||||
### Version 4.1.2
|
||||
* Added `bower.json` configuration file. Manage bxSlider as a dependency using [bower](http://bower.io/).
|
||||
|
||||
### Version 4.1.1
|
||||
* Removed imagesLoaded library and added iframe preloading support
|
||||
* Added responsive option - setting to false will prevent $(window).resize binding
|
||||
|
||||
### Version 4.1
|
||||
* Carousel mode (minSlides / maxSlides) was re-written to be more intuitive.
|
||||
* SlideWidth now acts as it should (slides respect the width value).
|
||||
* SlideWidth now properly parsed: accepts string ("600px") or integer (600).
|
||||
* Slider now only needs to load visible slides (by default) in order to initialize which results in much faster loading. A "preloadImages" setting allows for configuration.
|
||||
|
||||
|
||||
Long live Zep.
|
||||
Reference in New Issue
Block a user