Responsive Lightbox & Gallery - Version 1.6.9

Version Description

  • New: PhotoSwipe Lightbox premium extension
  • Fix: data-rel attribute missing in multiline links
  • Tweak: Removed local translation files in favor of WP repository translations
  • Tweak: SwipeBox script updated to 1.4.4
Download this release

Release Info

Developer dfactory
Plugin Icon 128x128 Responsive Lightbox & Gallery
Version 1.6.9
Comparing to
See all releases

Code changes from version 1.6.8 to 1.6.9

assets/imagelightbox/css/imagelightbox.css CHANGED
@@ -1,8 +1,8 @@
1
- #imagelightbox
2
- {
3
- position: fixed;
4
- z-index: 9999;
5
-
6
- -ms-touch-action: none;
7
- touch-action: none;
8
}
1
+ #imagelightbox
2
+ {
3
+ position: fixed;
4
+ z-index: 9999;
5
+
6
+ -ms-touch-action: none;
7
+ touch-action: none;
8
}
assets/imagelightbox/js/imagelightbox.min.js CHANGED
@@ -3,4 +3,4 @@
3
Available for use under the MIT License
4
*/
5
6
- ;(function(e,t,n,r){"use strict";var i=function(){var e=n.body||n.documentElement,e=e.style;if(e.WebkitTransition=="")return"-webkit-";if(e.MozTransition=="")return"-moz-";if(e.OTransition=="")return"-o-";if(e.transition=="")return"";return false},s=i()===false?false:true,o=function(e,t,n){var r={},s=i();r[s+"transform"]="translateX("+t+")";r[s+"transition"]=s+"transform "+n+"s linear";e.css(r)},u="ontouchstart"in t,a=t.navigator.pointerEnabled||t.navigator.msPointerEnabled,f=function(e){if(u)return true;if(!a||typeof e==="undefined"||typeof e.pointerType==="undefined")return false;if(typeof e.MSPOINTER_TYPE_MOUSE!=="undefined"){if(e.MSPOINTER_TYPE_MOUSE!=e.pointerType)return true}else if(e.pointerType!="mouse")return true;return false};e.fn.imageLightbox=function(r){var r=e.extend({selector:'id="imagelightbox"',allowedTypes:"png|jpg|jpeg|gif",animationSpeed:250,preloadNext:true,enableKeyboard:true,quitOnEnd:false,quitOnImgClick:false,quitOnDocClick:true,onStart:false,onEnd:false,onLoadStart:false,onLoadEnd:false},r),i=e([]),l=e(),c=e(),h=0,p=0,d=0,v=false,m=function(t){return e(t).prop("tagName").toLowerCase()=="a"&&(new RegExp(".("+r.allowedTypes+")quot;,"i")).test(e(t).attr("href"))},g=function(){if(!c.length)return true;var n=e(t).width()*.8,r=e(t).height()*.9,i=new Image;i.src=c.attr("src");i.onload=function(){h=i.width;p=i.height;if(h>n||p>r){var s=h/p>n/r?h/n:p/r;h/=s;p/=s}c.css({width:h+"px",height:p+"px",top:(e(t).height()-p)/2+"px",left:(e(t).width()-h)/2+"px"})}},y=function(t){if(v)return false;t=typeof t==="undefined"?false:t=="left"?1:-1;if(c.length){if(t!==false&&(i.length<2||r.quitOnEnd===true&&(t===-1&&i.index(l)==0||t===1&&i.index(l)==i.length-1))){w();return false}var n={opacity:0};if(s)o(c,100*t-d+"px",r.animationSpeed/1e3);else n.left=parseInt(c.css("left"))+100*t+"px";c.animate(n,r.animationSpeed,function(){b()});d=0}v=true;if(r.onLoadStart!==false)r.onLoadStart();setTimeout(function(){c=e("<img "+r.selector+" />").attr("src",l.attr("href")).load(function(){c.appendTo("body");g();var n={opacity:1};c.css("opacity",0);if(s){o(c,-100*t+"px",0);setTimeout(function(){o(c,0+"px",r.animationSpeed/1e3)},50)}else{var u=parseInt(c.css("left"));n.left=u+"px";c.css("left",u-100*t+"px")}c.animate(n,r.animationSpeed,function(){v=false;if(r.onLoadEnd!==false)r.onLoadEnd()});if(r.preloadNext){var a=i.eq(i.index(l)+1);if(!a.length)a=i.eq(0);e("<img />").attr("src",a.attr("href")).load()}}).error(function(){if(r.onLoadEnd!==false)r.onLoadEnd()});var n=0,u=0,p=0;c.on(a?"pointerup MSPointerUp":"click",function(e){e.preventDefault();if(r.quitOnImgClick){w();return false}if(f(e.originalEvent))return true;var t=(e.pageX||e.originalEvent.pageX)-e.target.offsetLeft;l=i.eq(i.index(l)-(h/2>t?1:-1));if(!l.length)l=i.eq(h/2>t?i.length:0);y(h/2>t?"left":"right")}).on("touchstart pointerdown MSPointerDown",function(e){if(!f(e.originalEvent)||r.quitOnImgClick)return true;if(s)p=parseInt(c.css("left"));n=e.originalEvent.pageX||e.originalEvent.touches[0].pageX}).on("touchmove pointermove MSPointerMove",function(e){if(!f(e.originalEvent)||r.quitOnImgClick)return true;e.preventDefault();u=e.originalEvent.pageX||e.originalEvent.touches[0].pageX;d=n-u;if(s)o(c,-d+"px",0);else c.css("left",p-d+"px")}).on("touchend touchcancel pointerup pointercancel MSPointerUp MSPointerCancel",function(e){if(!f(e.originalEvent)||r.quitOnImgClick)return true;if(Math.abs(d)>50){l=i.eq(i.index(l)-(d<0?1:-1));if(!l.length)l=i.eq(d<0?i.length:0);y(d>0?"right":"left")}else{if(s)o(c,0+"px",r.animationSpeed/1e3);else c.animate({left:p+"px"},r.animationSpeed/2)}})},r.animationSpeed+100)},b=function(){if(!c.length)return false;c.remove();c=e()},w=function(){if(!c.length)return false;c.animate({opacity:0},r.animationSpeed,function(){b();v=false;if(r.onEnd!==false)r.onEnd()})};e(t).on("resize",g);if(r.quitOnDocClick){e(n).on(u?"touchend":"click",function(t){if(c.length&&!e(t.target).is(c))w()})}if(r.enableKeyboard){e(n).on("keyup",function(e){if(!c.length)return true;e.preventDefault();if(e.keyCode==27)w();if(e.keyCode==37||e.keyCode==39){l=i.eq(i.index(l)-(e.keyCode==37?1:-1));if(!l.length)l=i.eq(e.keyCode==37?i.length:0);y(e.keyCode==37?"left":"right")}})}e(n).on("click",this.selector,function(t){if(!m(this))return true;t.preventDefault();if(v)return false;v=false;if(r.onStart!==false)r.onStart();l=e(this);y()});this.each(function(){if(!m(this))return true;i=i.add(e(this))});this.switchImageLightbox=function(e){var t=i.eq(e);if(t.length){var n=i.index(l);l=t;y(e<n?"left":"right")}return this};this.quitImageLightbox=function(){w();return this};return this}})(jQuery,window,document);
3
Available for use under the MIT License
4
*/
5
6
+ !function(n,t,e,i){"use strict";var o=function(){var n=e.body||e.documentElement,n=n.style;return""==n.WebkitTransition?"-webkit-":""==n.MozTransition?"-moz-":""==n.OTransition?"-o-":""==n.transition?"":!1},r=o()===!1?!1:!0,a=function(n,t,e){var i={},r=o();i[r+"transform"]="translateX("+t+")",i[r+"transition"]=r+"transform "+e+"s linear",n.css(i)},u="ontouchstart"in t,d=t.navigator.pointerEnabled||t.navigator.msPointerEnabled,c=function(n){if(u)return!0;if(!d||"undefined"==typeof n||"undefined"==typeof n.pointerType)return!1;if("undefined"!=typeof n.MSPOINTER_TYPE_MOUSE){if(n.MSPOINTER_TYPE_MOUSE!=n.pointerType)return!0}else if("mouse"!=n.pointerType)return!0;return!1};n.fn.imageLightbox=function(i){var i=n.extend({selector:'id="imagelightbox"',animationSpeed:250,preloadNext:!0,enableKeyboard:!0,quitOnEnd:!1,quitOnImgClick:!1,quitOnDocClick:!0,onStart:!1,onEnd:!1,onLoadStart:!1,onLoadEnd:!1},i),o=n([]),f=n(),l=n(),p=0,g=0,s=0,h=!1,m=function(){if(!l.length)return!0;var e=.8*n(t).width(),i=.9*n(t).height(),o=new Image;o.src=l.attr("src"),o.onload=function(){if(p=o.width,g=o.height,p>e||g>i){var r=p/g>e/i?p/e:g/i;p/=r,g/=r}l.css({width:p+"px",height:g+"px",top:(n(t).height()-g)/2+"px",left:(n(t).width()-p)/2+"px"})}},v=function(t){if(h)return!1;if(t="undefined"==typeof t?!1:"left"==t?1:-1,l.length){if(t!==!1&&(o.length<2||i.quitOnEnd===!0&&(-1===t&&0==o.index(f)||1===t&&o.index(f)==o.length-1)))return E(),!1;var e={opacity:0};r?a(l,100*t-s+"px",i.animationSpeed/1e3):e.left=parseInt(l.css("left"))+100*t+"px",l.animate(e,i.animationSpeed,function(){x()}),s=0}h=!0,i.onLoadStart!==!1&&i.onLoadStart(),setTimeout(function(){l=n("<img "+i.selector+" />").attr("src",f.attr("href")).on("load",function(){l.appendTo("body"),m();var e={opacity:1};if(l.css("opacity",0),r)a(l,-100*t+"px",0),setTimeout(function(){a(l,"0px",i.animationSpeed/1e3)},50);else{var u=parseInt(l.css("left"));e.left=u+"px",l.css("left",u-100*t+"px")}if(l.animate(e,i.animationSpeed,function(){h=!1,i.onLoadEnd!==!1&&i.onLoadEnd()}),i.preloadNext){var d=o.eq(o.index(f)+1);d.length||(d=o.eq(0)),n("<img />").attr("src",d.attr("href"))}}).on("error",function(){i.onLoadEnd!==!1&&i.onLoadEnd()});var e=0,u=0,g=0;l.on(d?"pointerup MSPointerUp":"click",function(n){if(n.preventDefault(),i.quitOnImgClick)return E(),!1;if(c(n.originalEvent))return!0;var t=(n.pageX||n.originalEvent.pageX)-n.target.offsetLeft;f=o.eq(o.index(f)-(p/2>t?1:-1)),f.length||(f=o.eq(p/2>t?o.length:0)),v(p/2>t?"left":"right")}).on("touchstart pointerdown MSPointerDown",function(n){return!c(n.originalEvent)||i.quitOnImgClick?!0:(r&&(g=parseInt(l.css("left"))),void(e=n.originalEvent.pageX||n.originalEvent.touches[0].pageX))}).on("touchmove pointermove MSPointerMove",function(n){return!c(n.originalEvent)||i.quitOnImgClick?!0:(n.preventDefault(),u=n.originalEvent.pageX||n.originalEvent.touches[0].pageX,s=e-u,void(r?a(l,-s+"px",0):l.css("left",g-s+"px")))}).on("touchend touchcancel pointerup pointercancel MSPointerUp MSPointerCancel",function(n){return!c(n.originalEvent)||i.quitOnImgClick?!0:void(Math.abs(s)>50?(f=o.eq(o.index(f)-(0>s?1:-1)),f.length||(f=o.eq(0>s?o.length:0)),v(s>0?"right":"left")):r?a(l,"0px",i.animationSpeed/1e3):l.animate({left:g+"px"},i.animationSpeed/2))})},i.animationSpeed+100)},x=function(){return l.length?(l.remove(),void(l=n())):!1},E=function(){return l.length?void l.animate({opacity:0},i.animationSpeed,function(){x(),h=!1,i.onEnd!==!1&&i.onEnd()}):!1},y=function(t){t.each(function(){o=o.add(n(this))}),t.on("click.imageLightbox",function(t){return t.preventDefault(),h?!1:(h=!1,i.onStart!==!1&&i.onStart(),f=n(this),void v())})};return n(t).on("resize",m),i.quitOnDocClick&&n(e).on(u?"touchend":"click",function(t){l.length&&!n(t.target).is(l)&&E()}),i.enableKeyboard&&n(e).on("keyup",function(n){return l.length?(n.preventDefault(),27==n.keyCode&&E(),void((37==n.keyCode||39==n.keyCode)&&(f=o.eq(o.index(f)-(37==n.keyCode?1:-1)),f.length||(f=o.eq(37==n.keyCode?o.length:0)),v(37==n.keyCode?"left":"right")))):!0}),y(n(this)),this.switchImageLightbox=function(n){var t=o.eq(n);if(t.length){var e=o.index(f);f=t,v(e>n?"left":"right")}return this},this.addToImageLightbox=function(n){y(n)},this.quitImageLightbox=function(){return E(),this},this}}(jQuery,window,document);
assets/nivo/license.txt CHANGED
@@ -1,22 +1,22 @@
1
- Copyright (c) 2013 Dev7studios
2
-
3
- Permission is hereby granted, free of charge, to any person
4
- obtaining a copy of this software and associated documentation
5
- files (the "Software"), to deal in the Software without
6
- restriction, including without limitation the rights to use,
7
- copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the
9
- Software is furnished to do so, subject to the following
10
- conditions:
11
-
12
- The above copyright notice and this permission notice shall be
13
- included in all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
- OTHER DEALINGS IN THE SOFTWARE.
1
+ Copyright (c) 2013 Dev7studios
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
assets/swipebox/js/jquery.swipebox.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Swipebox v1.4.1 | Constantin Saguin csag.co | MIT License | github.com/brutaldesign/swipebox */
2
3
;( function ( window, document, $, undefined ) {
4
@@ -18,6 +18,7 @@
18
beforeOpen: null,
19
afterOpen: null,
20
afterClose: null,
21
nextSlide: null,
22
prevSlide: null,
23
loopAtEnd: false,
@@ -30,7 +31,6 @@
30
elements = [], // slides array [ { href:'...', title:'...' }, ...],
31
$elem,
32
selector = elem.selector,
33
- $selector = $( selector ),
34
isMobile = navigator.userAgent.match( /(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i ),
35
isTouch = isMobile !== null || document.createTouch !== undefined || ( 'ontouchstart' in window ) || ( 'onmsgesturechange' in window ) || navigator.msMaxTouchPoints,
36
supportSVG = !! document.createElementNS && !! document.createElementNS( 'http://www.w3.org/2000/svg', 'svg').createSVGRect,
@@ -92,12 +92,12 @@
92
}
93
94
elements = [];
95
- var index , relType, relVal;
96
97
// Allow for HTML5 compliant attribute before legacy use of rel
98
if ( ! relVal ) {
99
relType = 'data-rel';
100
- relVal = $( this ).attr( relType );
101
}
102
103
if ( ! relVal ) {
@@ -106,7 +106,7 @@
106
}
107
108
if ( relVal && relVal !== '' && relVal !== 'nofollow' ) {
109
- $elem = $selector.filter( '[' + relType + '="' + relVal + '"]' );
110
} else {
111
$elem = $( selector );
112
}
@@ -157,7 +157,7 @@
157
this.preloadMedia( index+1 );
158
this.preloadMedia( index-1 );
159
if ( plugin.settings.afterOpen ) {
160
- plugin.settings.afterOpen();
161
}
162
},
163
@@ -687,9 +687,17 @@
687
$this.loadMedia( src, function() {
688
slide.removeClass( 'slide-loading' );
689
slide.html( this );
690
} );
691
} else {
692
slide.html( $this.getVideo( src ) );
693
}
694
695
},
@@ -843,7 +851,7 @@
843
$this.setSlide( index );
844
$this.preloadMedia( index+1 );
845
if ( plugin.settings.nextSlide ) {
846
- plugin.settings.nextSlide();
847
}
848
} else {
849
@@ -855,7 +863,7 @@
855
$this.setSlide( index );
856
$this.preloadMedia( index + 1 );
857
if ( plugin.settings.nextSlide ) {
858
- plugin.settings.nextSlide();
859
}
860
} else {
861
$( '#swipebox-overlay' ).addClass( 'rightSpring' );
@@ -879,7 +887,7 @@
879
this.setSlide( index );
880
this.preloadMedia( index-1 );
881
if ( plugin.settings.prevSlide ) {
882
- plugin.settings.prevSlide();
883
}
884
} else {
885
$( '#swipebox-overlay' ).addClass( 'leftSpring' );
@@ -888,12 +896,12 @@
888
}, 500 );
889
}
890
},
891
-
892
- nextSlide : function () {
893
// Callback for next slide
894
},
895
896
- prevSlide : function () {
897
// Callback for prev slide
898
},
899
1
+ /*! Swipebox v1.4.4 | Constantin Saguin csag.co | MIT License | github.com/brutaldesign/swipebox */
2
3
;( function ( window, document, $, undefined ) {
4
18
beforeOpen: null,
19
afterOpen: null,
20
afterClose: null,
21
+ afterMedia: null,
22
nextSlide: null,
23
prevSlide: null,
24
loopAtEnd: false,
31
elements = [], // slides array [ { href:'...', title:'...' }, ...],
32
$elem,
33
selector = elem.selector,
34
isMobile = navigator.userAgent.match( /(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i ),
35
isTouch = isMobile !== null || document.createTouch !== undefined || ( 'ontouchstart' in window ) || ( 'onmsgesturechange' in window ) || navigator.msMaxTouchPoints,
36
supportSVG = !! document.createElementNS && !! document.createElementNS( 'http://www.w3.org/2000/svg', 'svg').createSVGRect,
92
}
93
94
elements = [];
95
+ var index, relType, relVal;
96
97
// Allow for HTML5 compliant attribute before legacy use of rel
98
if ( ! relVal ) {
99
relType = 'data-rel';
100
+ relVal = $( this ).attr( relType );
101
}
102
103
if ( ! relVal ) {
106
}
107
108
if ( relVal && relVal !== '' && relVal !== 'nofollow' ) {
109
+ $elem = $( selector ).filter( '[' + relType + '="' + relVal + '"]' );
110
} else {
111
$elem = $( selector );
112
}
157
this.preloadMedia( index+1 );
158
this.preloadMedia( index-1 );
159
if ( plugin.settings.afterOpen ) {
160
+ plugin.settings.afterOpen(index);
161
}
162
},
163
687
$this.loadMedia( src, function() {
688
slide.removeClass( 'slide-loading' );
689
slide.html( this );
690
+
691
+ if ( plugin.settings.afterMedia ) {
692
+ plugin.settings.afterMedia( index );
693
+ }
694
} );
695
} else {
696
slide.html( $this.getVideo( src ) );
697
+
698
+ if ( plugin.settings.afterMedia ) {
699
+ plugin.settings.afterMedia( index );
700
+ }
701
}
702
703
},
851
$this.setSlide( index );
852
$this.preloadMedia( index+1 );
853
if ( plugin.settings.nextSlide ) {
854
+ plugin.settings.nextSlide(index);
855
}
856
} else {
857
863
$this.setSlide( index );
864
$this.preloadMedia( index + 1 );
865
if ( plugin.settings.nextSlide ) {
866
+ plugin.settings.nextSlide(index);
867
}
868
} else {
869
$( '#swipebox-overlay' ).addClass( 'rightSpring' );
887
this.setSlide( index );
888
this.preloadMedia( index-1 );
889
if ( plugin.settings.prevSlide ) {
890
+ plugin.settings.prevSlide(index);
891
}
892
} else {
893
$( '#swipebox-overlay' ).addClass( 'leftSpring' );
896
}, 500 );
897
}
898
},
899
+ /* jshint unused:false */
900
+ nextSlide : function ( index ) {
901
// Callback for next slide
902
},
903
904
+ prevSlide : function ( index ) {
905
// Callback for prev slide
906
},
907
assets/swipebox/js/jquery.swipebox.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! Swipebox v1.4.1 | Constantin Saguin csag.co | MIT License | github.com/brutaldesign/swipebox */
2
- !function(a,b,c,d){c.swipebox=function(e,f){var g,h,i={useCSS:!0,useSVG:!0,initialIndexOnArray:0,removeBarsOnMobile:!0,hideCloseButtonOnMobile:!1,hideBarsDelay:3e3,videoMaxWidth:1140,vimeoColor:"cccccc",beforeOpen:null,afterOpen:null,afterClose:null,nextSlide:null,prevSlide:null,loopAtEnd:!1,autoplayVideos:!1,queryStringData:{},toggleClassOnLoad:""},j=this,k=[],l=e.selector,m=c(l),n=navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i),o=null!==n||b.createTouch!==d||"ontouchstart"in a||"onmsgesturechange"in a||navigator.msMaxTouchPoints,p=!!b.createElementNS&&!!b.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,q=a.innerWidth?a.innerWidth:c(a).width(),r=a.innerHeight?a.innerHeight:c(a).height(),s=0,t='<div id="swipebox-overlay"> <div id="swipebox-container"> <div id="swipebox-slider"></div> <div id="swipebox-top-bar"> <div id="swipebox-title"></div> </div> <div id="swipebox-bottom-bar"> <div id="swipebox-arrows"> <a id="swipebox-prev"></a> <a id="swipebox-next"></a> </div> </div> <a id="swipebox-close"></a> </div> </div>';j.settings={},c.swipebox.close=function(){g.closeSlide()},c.swipebox.extend=function(){return g},j.init=function(){j.settings=c.extend({},i,f),c.isArray(e)?(k=e,g.target=c(a),g.init(j.settings.initialIndexOnArray)):c(b).on("click",l,function(a){if("slide current"===a.target.parentNode.className)return!1;c.isArray(e)||(g.destroy(),h=c(l),g.actions()),k=[];var b,d,f;f||(d="data-rel",f=c(this).attr(d)),f||(d="rel",f=c(this).attr(d)),h=f&&""!==f&&"nofollow"!==f?m.filter("["+d+'="'+f+'"]'):c(l),h.each(function(){var a=null,b=null;c(this).attr("title")&&(a=c(this).attr("title")),c(this).attr("href")&&(b=c(this).attr("href")),k.push({href:b,title:a})}),b=h.index(c(this)),a.preventDefault(),a.stopPropagation(),g.target=c(a.target),g.init(b)})},g={init:function(a){j.settings.beforeOpen&&j.settings.beforeOpen(),this.target.trigger("swipebox-start"),c.swipebox.isOpen=!0,this.build(),this.openSlide(a),this.openMedia(a),this.preloadMedia(a+1),this.preloadMedia(a-1),j.settings.afterOpen&&j.settings.afterOpen()},build:function(){var a,b=this;c("body").append(t),p&&j.settings.useSVG===!0&&(a=c("#swipebox-close").css("background-image"),a=a.replace("png","svg"),c("#swipebox-prev, #swipebox-next, #swipebox-close").css({"background-image":a})),n&&j.settings.removeBarsOnMobile&&c("#swipebox-bottom-bar, #swipebox-top-bar").remove(),c.each(k,function(){c("#swipebox-slider").append('<div class="slide"></div>')}),b.setDim(),b.actions(),o&&b.gesture(),b.keyboard(),b.animBars(),b.resize()},setDim:function(){var b,d,e={};"onorientationchange"in a?a.addEventListener("orientationchange",function(){0===a.orientation?(b=q,d=r):(90===a.orientation||-90===a.orientation)&&(b=r,d=q)},!1):(b=a.innerWidth?a.innerWidth:c(a).width(),d=a.innerHeight?a.innerHeight:c(a).height()),e={width:b,height:d},c("#swipebox-overlay").css(e)},resize:function(){var b=this;c(a).resize(function(){b.setDim()}).resize()},supportTransition:function(){var a,c="transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition".split(" ");for(a=0;a<c.length;a++)if(b.createElement("div").style[c[a]]!==d)return c[a];return!1},doCssTrans:function(){return j.settings.useCSS&&this.supportTransition()?!0:void 0},gesture:function(){var a,b,d,e,f,g,h=this,i=!1,j=!1,l=10,m=50,n={},o={},p=c("#swipebox-top-bar, #swipebox-bottom-bar"),r=c("#swipebox-slider");p.addClass("visible-bars"),h.setTimeout(),c("body").bind("touchstart",function(h){return c(this).addClass("touching"),a=c("#swipebox-slider .slide").index(c("#swipebox-slider .slide.current")),o=h.originalEvent.targetTouches[0],n.pageX=h.originalEvent.targetTouches[0].pageX,n.pageY=h.originalEvent.targetTouches[0].pageY,c("#swipebox-slider").css({"-webkit-transform":"translate3d("+s+"%, 0, 0)",transform:"translate3d("+s+"%, 0, 0)"}),c(".touching").bind("touchmove",function(h){if(h.preventDefault(),h.stopPropagation(),o=h.originalEvent.targetTouches[0],!j&&(f=d,d=o.pageY-n.pageY,Math.abs(d)>=m||i)){var p=.75-Math.abs(d)/r.height();r.css({top:d+"px"}),r.css({opacity:p}),i=!0}e=b,b=o.pageX-n.pageX,g=100*b/q,!j&&!i&&Math.abs(b)>=l&&(c("#swipebox-slider").css({"-webkit-transition":"",transition:""}),j=!0),j&&(b>0?0===a?c("#swipebox-overlay").addClass("leftSpringTouch"):(c("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),c("#swipebox-slider").css({"-webkit-transform":"translate3d("+(s+g)+"%, 0, 0)",transform:"translate3d("+(s+g)+"%, 0, 0)"})):0>b&&(k.length===a+1?c("#swipebox-overlay").addClass("rightSpringTouch"):(c("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),c("#swipebox-slider").css({"-webkit-transform":"translate3d("+(s+g)+"%, 0, 0)",transform:"translate3d("+(s+g)+"%, 0, 0)"}))))}),!1}).bind("touchend",function(a){if(a.preventDefault(),a.stopPropagation(),c("#swipebox-slider").css({"-webkit-transition":"-webkit-transform 0.4s ease",transition:"transform 0.4s ease"}),d=o.pageY-n.pageY,b=o.pageX-n.pageX,g=100*b/q,i)if(i=!1,Math.abs(d)>=2*m&&Math.abs(d)>Math.abs(f)){var k=d>0?r.height():-r.height();r.animate({top:k+"px",opacity:0},300,function(){h.closeSlide()})}else r.animate({top:0,opacity:1},300);else j?(j=!1,b>=l&&b>=e?h.getPrev():-l>=b&&e>=b&&h.getNext()):p.hasClass("visible-bars")?(h.clearTimeout(),h.hideBars()):(h.showBars(),h.setTimeout());c("#swipebox-slider").css({"-webkit-transform":"translate3d("+s+"%, 0, 0)",transform:"translate3d("+s+"%, 0, 0)"}),c("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),c(".touching").off("touchmove").removeClass("touching")})},setTimeout:function(){if(j.settings.hideBarsDelay>0){var b=this;b.clearTimeout(),b.timeout=a.setTimeout(function(){b.hideBars()},j.settings.hideBarsDelay)}},clearTimeout:function(){a.clearTimeout(this.timeout),this.timeout=null},showBars:function(){var a=c("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?a.addClass("visible-bars"):(c("#swipebox-top-bar").animate({top:0},500),c("#swipebox-bottom-bar").animate({bottom:0},500),setTimeout(function(){a.addClass("visible-bars")},1e3))},hideBars:function(){var a=c("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?a.removeClass("visible-bars"):(c("#swipebox-top-bar").animate({top:"-50px"},500),c("#swipebox-bottom-bar").animate({bottom:"-50px"},500),setTimeout(function(){a.removeClass("visible-bars")},1e3))},animBars:function(){var a=this,b=c("#swipebox-top-bar, #swipebox-bottom-bar");b.addClass("visible-bars"),a.setTimeout(),c("#swipebox-slider").click(function(){b.hasClass("visible-bars")||(a.showBars(),a.setTimeout())}),c("#swipebox-bottom-bar").hover(function(){a.showBars(),b.addClass("visible-bars"),a.clearTimeout()},function(){j.settings.hideBarsDelay>0&&(b.removeClass("visible-bars"),a.setTimeout())})},keyboard:function(){var b=this;c(a).bind("keyup",function(a){a.preventDefault(),a.stopPropagation(),37===a.keyCode?b.getPrev():39===a.keyCode?b.getNext():27===a.keyCode&&b.closeSlide()})},actions:function(){var a=this,b="touchend click";k.length<2?(c("#swipebox-bottom-bar").hide(),d===k[1]&&c("#swipebox-top-bar").hide()):(c("#swipebox-prev").bind(b,function(b){b.preventDefault(),b.stopPropagation(),a.getPrev(),a.setTimeout()}),c("#swipebox-next").bind(b,function(b){b.preventDefault(),b.stopPropagation(),a.getNext(),a.setTimeout()})),c("#swipebox-close").bind(b,function(){a.closeSlide()})},setSlide:function(a,b){b=b||!1;var d=c("#swipebox-slider");s=100*-a,this.doCssTrans()?d.css({"-webkit-transform":"translate3d("+100*-a+"%, 0, 0)",transform:"translate3d("+100*-a+"%, 0, 0)"}):d.animate({left:100*-a+"%"}),c("#swipebox-slider .slide").removeClass("current"),c("#swipebox-slider .slide").eq(a).addClass("current"),this.setTitle(a),b&&d.fadeIn(),c("#swipebox-prev, #swipebox-next").removeClass("disabled"),0===a?c("#swipebox-prev").addClass("disabled"):a===k.length-1&&j.settings.loopAtEnd!==!0&&c("#swipebox-next").addClass("disabled")},openSlide:function(b){c("html").addClass("swipebox-html"),o?(c("html").addClass("swipebox-touch"),j.settings.hideCloseButtonOnMobile&&c("html").addClass("swipebox-no-close-button")):c("html").addClass("swipebox-no-touch"),c(a).trigger("resize"),this.setSlide(b,!0)},preloadMedia:function(a){var b=this,c=null;k[a]!==d&&(c=k[a].href),b.isVideo(c)?b.openMedia(a):setTimeout(function(){b.openMedia(a)},1e3)},openMedia:function(a){var b,e,f=this;return k[a]!==d&&(b=k[a].href),0>a||a>=k.length?!1:(e=c("#swipebox-slider .slide").eq(a),void(f.isVideo(b)?e.html(f.getVideo(b)):(e.addClass("slide-loading"),f.loadMedia(b,function(){e.removeClass("slide-loading"),e.html(this)}))))},setTitle:function(a){var b=null;c("#swipebox-title").empty(),k[a]!==d&&(b=k[a].title),b?(c("#swipebox-top-bar").show(),c("#swipebox-title").append(b)):c("#swipebox-top-bar").hide()},isVideo:function(a){if(a){if(a.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||a.match(/vimeo\.com\/([0-9]*)/)||a.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/))return!0;if(a.toLowerCase().indexOf("swipeboxvideo=1")>=0)return!0}},parseUri:function(a,d){var e=b.createElement("a"),f={};return e.href=decodeURIComponent(a),e.search&&(f=JSON.parse('{"'+e.search.toLowerCase().replace("?","").replace(/&/g,'","').replace(/=/g,'":"')+'"}')),c.isPlainObject(d)&&(f=c.extend(f,d,j.settings.queryStringData)),c.map(f,function(a,b){return a&&a>""?encodeURIComponent(b)+"="+encodeURIComponent(a):void 0}).join("&")},getVideo:function(a){var b="",c=a.match(/((?:www\.)?youtube\.com|(?:www\.)?youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/),d=a.match(/(?:www\.)?youtu\.be\/([a-zA-Z0-9\-_]+)/),e=a.match(/(?:www\.)?vimeo\.com\/([0-9]*)/),f="";return c||d?(d&&(c=d),f=g.parseUri(a,{autoplay:j.settings.autoplayVideos?"1":"0",v:""}),b='<iframe width="560" height="315" src="//'+c[1]+"/embed/"+c[2]+"?"+f+'" frameborder="0" allowfullscreen></iframe>'):e?(f=g.parseUri(a,{autoplay:j.settings.autoplayVideos?"1":"0",byline:"0",portrait:"0",color:j.settings.vimeoColor}),b='<iframe width="560" height="315" src="//player.vimeo.com/video/'+e[1]+"?"+f+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'):b='<iframe width="560" height="315" src="'+a+'" frameborder="0" allowfullscreen></iframe>','<div class="swipebox-video-container" style="max-width:'+j.settings.videoMaxWidth+'px"><div class="swipebox-video">'+b+"</div></div>"},loadMedia:function(a,b){if(0===a.trim().indexOf("#"))b.call(c("<div>",{"class":"swipebox-inline-container"}).append(c(a).clone().toggleClass(j.settings.toggleClassOnLoad)));else if(!this.isVideo(a)){var d=c("<img>").on("load",function(){b.call(d)});d.attr("src",a)}},getNext:function(){var a,b=this,d=c("#swipebox-slider .slide").index(c("#swipebox-slider .slide.current"));d+1<k.length?(a=c("#swipebox-slider .slide").eq(d).contents().find("iframe").attr("src"),c("#swipebox-slider .slide").eq(d).contents().find("iframe").attr("src",a),d++,b.setSlide(d),b.preloadMedia(d+1),j.settings.nextSlide&&j.settings.nextSlide()):j.settings.loopAtEnd===!0?(a=c("#swipebox-slider .slide").eq(d).contents().find("iframe").attr("src"),c("#swipebox-slider .slide").eq(d).contents().find("iframe").attr("src",a),d=0,b.preloadMedia(d),b.setSlide(d),b.preloadMedia(d+1),j.settings.nextSlide&&j.settings.nextSlide()):(c("#swipebox-overlay").addClass("rightSpring"),setTimeout(function(){c("#swipebox-overlay").removeClass("rightSpring")},500))},getPrev:function(){var a,b=c("#swipebox-slider .slide").index(c("#swipebox-slider .slide.current"));b>0?(a=c("#swipebox-slider .slide").eq(b).contents().find("iframe").attr("src"),c("#swipebox-slider .slide").eq(b).contents().find("iframe").attr("src",a),b--,this.setSlide(b),this.preloadMedia(b-1),j.settings.prevSlide&&j.settings.prevSlide()):(c("#swipebox-overlay").addClass("leftSpring"),setTimeout(function(){c("#swipebox-overlay").removeClass("leftSpring")},500))},nextSlide:function(){},prevSlide:function(){},closeSlide:function(){c("html").removeClass("swipebox-html"),c("html").removeClass("swipebox-touch"),c(a).trigger("resize"),this.destroy()},destroy:function(){c(a).unbind("keyup"),c("body").unbind("touchstart"),c("body").unbind("touchmove"),c("body").unbind("touchend"),c("#swipebox-slider").unbind(),c("#swipebox-overlay").remove(),c.isArray(e)||e.removeData("_swipebox"),this.target&&this.target.trigger("swipebox-destroy"),c.swipebox.isOpen=!1,j.settings.afterClose&&j.settings.afterClose()}},j.init()},c.fn.swipebox=function(a){if(!c.data(this,"_swipebox")){var b=new c.swipebox(this,a);this.data("_swipebox",b)}return this.data("_swipebox")}}(window,document,jQuery);
1
+ /*! Swipebox v1.4.4 | Constantin Saguin csag.co | MIT License | github.com/brutaldesign/swipebox */
2
+ !function(a,b,c,d){c.swipebox=function(e,f){var g,h,i={useCSS:!0,useSVG:!0,initialIndexOnArray:0,removeBarsOnMobile:!0,hideCloseButtonOnMobile:!1,hideBarsDelay:3e3,videoMaxWidth:1140,vimeoColor:"cccccc",beforeOpen:null,afterOpen:null,afterClose:null,afterMedia:null,nextSlide:null,prevSlide:null,loopAtEnd:!1,autoplayVideos:!1,queryStringData:{},toggleClassOnLoad:""},j=this,k=[],l=e.selector,m=navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i),n=null!==m||b.createTouch!==d||"ontouchstart"in a||"onmsgesturechange"in a||navigator.msMaxTouchPoints,o=!!b.createElementNS&&!!b.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,p=a.innerWidth?a.innerWidth:c(a).width(),q=a.innerHeight?a.innerHeight:c(a).height(),r=0,s='<div id="swipebox-overlay"> <div id="swipebox-container"> <div id="swipebox-slider"></div> <div id="swipebox-top-bar"> <div id="swipebox-title"></div> </div> <div id="swipebox-bottom-bar"> <div id="swipebox-arrows"> <a id="swipebox-prev"></a> <a id="swipebox-next"></a> </div> </div> <a id="swipebox-close"></a> </div> </div>';j.settings={},c.swipebox.close=function(){g.closeSlide()},c.swipebox.extend=function(){return g},j.init=function(){j.settings=c.extend({},i,f),c.isArray(e)?(k=e,g.target=c(a),g.init(j.settings.initialIndexOnArray)):c(b).on("click",l,function(a){if("slide current"===a.target.parentNode.className)return!1;c.isArray(e)||(g.destroy(),h=c(l),g.actions()),k=[];var b,d,f;f||(d="data-rel",f=c(this).attr(d)),f||(d="rel",f=c(this).attr(d)),h=f&&""!==f&&"nofollow"!==f?c(l).filter("["+d+'="'+f+'"]'):c(l),h.each(function(){var a=null,b=null;c(this).attr("title")&&(a=c(this).attr("title")),c(this).attr("href")&&(b=c(this).attr("href")),k.push({href:b,title:a})}),b=h.index(c(this)),a.preventDefault(),a.stopPropagation(),g.target=c(a.target),g.init(b)})},g={init:function(a){j.settings.beforeOpen&&j.settings.beforeOpen(),this.target.trigger("swipebox-start"),c.swipebox.isOpen=!0,this.build(),this.openSlide(a),this.openMedia(a),this.preloadMedia(a+1),this.preloadMedia(a-1),j.settings.afterOpen&&j.settings.afterOpen(a)},build:function(){var a,b=this;c("body").append(s),o&&j.settings.useSVG===!0&&(a=c("#swipebox-close").css("background-image"),a=a.replace("png","svg"),c("#swipebox-prev, #swipebox-next, #swipebox-close").css({"background-image":a})),m&&j.settings.removeBarsOnMobile&&c("#swipebox-bottom-bar, #swipebox-top-bar").remove(),c.each(k,function(){c("#swipebox-slider").append('<div class="slide"></div>')}),b.setDim(),b.actions(),n&&b.gesture(),b.keyboard(),b.animBars(),b.resize()},setDim:function(){var b,d,e={};"onorientationchange"in a?a.addEventListener("orientationchange",function(){0===a.orientation?(b=p,d=q):(90===a.orientation||-90===a.orientation)&&(b=q,d=p)},!1):(b=a.innerWidth?a.innerWidth:c(a).width(),d=a.innerHeight?a.innerHeight:c(a).height()),e={width:b,height:d},c("#swipebox-overlay").css(e)},resize:function(){var b=this;c(a).resize(function(){b.setDim()}).resize()},supportTransition:function(){var a,c="transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition".split(" ");for(a=0;a<c.length;a++)if(b.createElement("div").style[c[a]]!==d)return c[a];return!1},doCssTrans:function(){return j.settings.useCSS&&this.supportTransition()?!0:void 0},gesture:function(){var a,b,d,e,f,g,h=this,i=!1,j=!1,l=10,m=50,n={},o={},q=c("#swipebox-top-bar, #swipebox-bottom-bar"),s=c("#swipebox-slider");q.addClass("visible-bars"),h.setTimeout(),c("body").bind("touchstart",function(h){return c(this).addClass("touching"),a=c("#swipebox-slider .slide").index(c("#swipebox-slider .slide.current")),o=h.originalEvent.targetTouches[0],n.pageX=h.originalEvent.targetTouches[0].pageX,n.pageY=h.originalEvent.targetTouches[0].pageY,c("#swipebox-slider").css({"-webkit-transform":"translate3d("+r+"%, 0, 0)",transform:"translate3d("+r+"%, 0, 0)"}),c(".touching").bind("touchmove",function(h){if(h.preventDefault(),h.stopPropagation(),o=h.originalEvent.targetTouches[0],!j&&(f=d,d=o.pageY-n.pageY,Math.abs(d)>=m||i)){var q=.75-Math.abs(d)/s.height();s.css({top:d+"px"}),s.css({opacity:q}),i=!0}e=b,b=o.pageX-n.pageX,g=100*b/p,!j&&!i&&Math.abs(b)>=l&&(c("#swipebox-slider").css({"-webkit-transition":"",transition:""}),j=!0),j&&(b>0?0===a?c("#swipebox-overlay").addClass("leftSpringTouch"):(c("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),c("#swipebox-slider").css({"-webkit-transform":"translate3d("+(r+g)+"%, 0, 0)",transform:"translate3d("+(r+g)+"%, 0, 0)"})):0>b&&(k.length===a+1?c("#swipebox-overlay").addClass("rightSpringTouch"):(c("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),c("#swipebox-slider").css({"-webkit-transform":"translate3d("+(r+g)+"%, 0, 0)",transform:"translate3d("+(r+g)+"%, 0, 0)"}))))}),!1}).bind("touchend",function(a){if(a.preventDefault(),a.stopPropagation(),c("#swipebox-slider").css({"-webkit-transition":"-webkit-transform 0.4s ease",transition:"transform 0.4s ease"}),d=o.pageY-n.pageY,b=o.pageX-n.pageX,g=100*b/p,i)if(i=!1,Math.abs(d)>=2*m&&Math.abs(d)>Math.abs(f)){var k=d>0?s.height():-s.height();s.animate({top:k+"px",opacity:0},300,function(){h.closeSlide()})}else s.animate({top:0,opacity:1},300);else j?(j=!1,b>=l&&b>=e?h.getPrev():-l>=b&&e>=b&&h.getNext()):q.hasClass("visible-bars")?(h.clearTimeout(),h.hideBars()):(h.showBars(),h.setTimeout());c("#swipebox-slider").css({"-webkit-transform":"translate3d("+r+"%, 0, 0)",transform:"translate3d("+r+"%, 0, 0)"}),c("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),c(".touching").off("touchmove").removeClass("touching")})},setTimeout:function(){if(j.settings.hideBarsDelay>0){var b=this;b.clearTimeout(),b.timeout=a.setTimeout(function(){b.hideBars()},j.settings.hideBarsDelay)}},clearTimeout:function(){a.clearTimeout(this.timeout),this.timeout=null},showBars:function(){var a=c("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?a.addClass("visible-bars"):(c("#swipebox-top-bar").animate({top:0},500),c("#swipebox-bottom-bar").animate({bottom:0},500),setTimeout(function(){a.addClass("visible-bars")},1e3))},hideBars:function(){var a=c("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?a.removeClass("visible-bars"):(c("#swipebox-top-bar").animate({top:"-50px"},500),c("#swipebox-bottom-bar").animate({bottom:"-50px"},500),setTimeout(function(){a.removeClass("visible-bars")},1e3))},animBars:function(){var a=this,b=c("#swipebox-top-bar, #swipebox-bottom-bar");b.addClass("visible-bars"),a.setTimeout(),c("#swipebox-slider").click(function(){b.hasClass("visible-bars")||(a.showBars(),a.setTimeout())}),c("#swipebox-bottom-bar").hover(function(){a.showBars(),b.addClass("visible-bars"),a.clearTimeout()},function(){j.settings.hideBarsDelay>0&&(b.removeClass("visible-bars"),a.setTimeout())})},keyboard:function(){var b=this;c(a).bind("keyup",function(a){a.preventDefault(),a.stopPropagation(),37===a.keyCode?b.getPrev():39===a.keyCode?b.getNext():27===a.keyCode&&b.closeSlide()})},actions:function(){var a=this,b="touchend click";k.length<2?(c("#swipebox-bottom-bar").hide(),d===k[1]&&c("#swipebox-top-bar").hide()):(c("#swipebox-prev").bind(b,function(b){b.preventDefault(),b.stopPropagation(),a.getPrev(),a.setTimeout()}),c("#swipebox-next").bind(b,function(b){b.preventDefault(),b.stopPropagation(),a.getNext(),a.setTimeout()})),c("#swipebox-close").bind(b,function(){a.closeSlide()})},setSlide:function(a,b){b=b||!1;var d=c("#swipebox-slider");r=100*-a,this.doCssTrans()?d.css({"-webkit-transform":"translate3d("+100*-a+"%, 0, 0)",transform:"translate3d("+100*-a+"%, 0, 0)"}):d.animate({left:100*-a+"%"}),c("#swipebox-slider .slide").removeClass("current"),c("#swipebox-slider .slide").eq(a).addClass("current"),this.setTitle(a),b&&d.fadeIn(),c("#swipebox-prev, #swipebox-next").removeClass("disabled"),0===a?c("#swipebox-prev").addClass("disabled"):a===k.length-1&&j.settings.loopAtEnd!==!0&&c("#swipebox-next").addClass("disabled")},openSlide:function(b){c("html").addClass("swipebox-html"),n?(c("html").addClass("swipebox-touch"),j.settings.hideCloseButtonOnMobile&&c("html").addClass("swipebox-no-close-button")):c("html").addClass("swipebox-no-touch"),c(a).trigger("resize"),this.setSlide(b,!0)},preloadMedia:function(a){var b=this,c=null;k[a]!==d&&(c=k[a].href),b.isVideo(c)?b.openMedia(a):setTimeout(function(){b.openMedia(a)},1e3)},openMedia:function(a){var b,e,f=this;return k[a]!==d&&(b=k[a].href),0>a||a>=k.length?!1:(e=c("#swipebox-slider .slide").eq(a),void(f.isVideo(b)?(e.html(f.getVideo(b)),j.settings.afterMedia&&j.settings.afterMedia(a)):(e.addClass("slide-loading"),f.loadMedia(b,function(){e.removeClass("slide-loading"),e.html(this),j.settings.afterMedia&&j.settings.afterMedia(a)}))))},setTitle:function(a){var b=null;c("#swipebox-title").empty(),k[a]!==d&&(b=k[a].title),b?(c("#swipebox-top-bar").show(),c("#swipebox-title").append(b)):c("#swipebox-top-bar").hide()},isVideo:function(a){if(a){if(a.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||a.match(/vimeo\.com\/([0-9]*)/)||a.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/))return!0;if(a.toLowerCase().indexOf("swipeboxvideo=1")>=0)return!0}},parseUri:function(a,d){var e=b.createElement("a"),f={};return e.href=decodeURIComponent(a),e.search&&(f=JSON.parse('{"'+e.search.toLowerCase().replace("?","").replace(/&/g,'","').replace(/=/g,'":"')+'"}')),c.isPlainObject(d)&&(f=c.extend(f,d,j.settings.queryStringData)),c.map(f,function(a,b){return a&&a>""?encodeURIComponent(b)+"="+encodeURIComponent(a):void 0}).join("&")},getVideo:function(a){var b="",c=a.match(/((?:www\.)?youtube\.com|(?:www\.)?youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/),d=a.match(/(?:www\.)?youtu\.be\/([a-zA-Z0-9\-_]+)/),e=a.match(/(?:www\.)?vimeo\.com\/([0-9]*)/),f="";return c||d?(d&&(c=d),f=g.parseUri(a,{autoplay:j.settings.autoplayVideos?"1":"0",v:""}),b='<iframe width="560" height="315" src="//'+c[1]+"/embed/"+c[2]+"?"+f+'" frameborder="0" allowfullscreen></iframe>'):e?(f=g.parseUri(a,{autoplay:j.settings.autoplayVideos?"1":"0",byline:"0",portrait:"0",color:j.settings.vimeoColor}),b='<iframe width="560" height="315" src="//player.vimeo.com/video/'+e[1]+"?"+f+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'):b='<iframe width="560" height="315" src="'+a+'" frameborder="0" allowfullscreen></iframe>','<div class="swipebox-video-container" style="max-width:'+j.settings.videoMaxWidth+'px"><div class="swipebox-video">'+b+"</div></div>"},loadMedia:function(a,b){if(0===a.trim().indexOf("#"))b.call(c("<div>",{"class":"swipebox-inline-container"}).append(c(a).clone().toggleClass(j.settings.toggleClassOnLoad)));else if(!this.isVideo(a)){var d=c("<img>").on("load",function(){b.call(d)});d.attr("src",a)}},getNext:function(){var a,b=this,d=c("#swipebox-slider .slide").index(c("#swipebox-slider .slide.current"));d+1<k.length?(a=c("#swipebox-slider .slide").eq(d).contents().find("iframe").attr("src"),c("#swipebox-slider .slide").eq(d).contents().find("iframe").attr("src",a),d++,b.setSlide(d),b.preloadMedia(d+1),j.settings.nextSlide&&j.settings.nextSlide(d)):j.settings.loopAtEnd===!0?(a=c("#swipebox-slider .slide").eq(d).contents().find("iframe").attr("src"),c("#swipebox-slider .slide").eq(d).contents().find("iframe").attr("src",a),d=0,b.preloadMedia(d),b.setSlide(d),b.preloadMedia(d+1),j.settings.nextSlide&&j.settings.nextSlide(d)):(c("#swipebox-overlay").addClass("rightSpring"),setTimeout(function(){c("#swipebox-overlay").removeClass("rightSpring")},500))},getPrev:function(){var a,b=c("#swipebox-slider .slide").index(c("#swipebox-slider .slide.current"));b>0?(a=c("#swipebox-slider .slide").eq(b).contents().find("iframe").attr("src"),c("#swipebox-slider .slide").eq(b).contents().find("iframe").attr("src",a),b--,this.setSlide(b),this.preloadMedia(b-1),j.settings.prevSlide&&j.settings.prevSlide(b)):(c("#swipebox-overlay").addClass("leftSpring"),setTimeout(function(){c("#swipebox-overlay").removeClass("leftSpring")},500))},nextSlide:function(a){},prevSlide:function(a){},closeSlide:function(){c("html").removeClass("swipebox-html"),c("html").removeClass("swipebox-touch"),c(a).trigger("resize"),this.destroy()},destroy:function(){c(a).unbind("keyup"),c("body").unbind("touchstart"),c("body").unbind("touchmove"),c("body").unbind("touchend"),c("#swipebox-slider").unbind(),c("#swipebox-overlay").remove(),c.isArray(e)||e.removeData("_swipebox"),this.target&&this.target.trigger("swipebox-destroy"),c.swipebox.isOpen=!1,j.settings.afterClose&&j.settings.afterClose()}},j.init()},c.fn.swipebox=function(a){if(!c.data(this,"_swipebox")){var b=new c.swipebox(this,a);this.data("_swipebox",b)}return this.data("_swipebox")}}(window,document,jQuery);
assets/tosrus/css/jquery.tosrus.all.css CHANGED
@@ -1,605 +1,117 @@
1
- /*
2
- jQuery Touch Optimized Sliders "R"Us
3
- Core CSS
4
- */
5
- .tos-noanimation {
6
- -webkit-transition-property: none !important;
7
- -moz-transition-property: none !important;
8
- -ms-transition-property: none !important;
9
- -o-transition-property: none !important;
10
- transition-property: none !important; }
11
-
12
- .tos-fastanimation {
13
- -webkit-transition-duration: 0.2s !important;
14
- -moz-transition-duration: 0.2s !important;
15
- -ms-transition-duration: 0.2s !important;
16
- -o-transition-duration: 0.2s !important;
17
- transition-duration: 0.2s !important;
18
- -webkit-transition-timing-function: ease-out !important;
19
- -moz-transition-timing-function: ease-out !important;
20
- -ms-transition-timing-function: ease-out !important;
21
- -o-transition-timing-function: ease-out !important;
22
- transition-timing-function: ease-out !important; }
23
-
24
- .tos-wrapper {
25
- opacity: 0;
26
- -webkit-transition: opacity 0.4s ease;
27
- -moz-transition: opacity 0.4s ease;
28
- -ms-transition: opacity 0.4s ease;
29
- -o-transition: opacity 0.4s ease;
30
- transition: opacity 0.4s ease;
31
- display: none;
32
- width: 100%;
33
- height: 100%;
34
- padding: 0;
35
- margin: 0;
36
- overflow: hidden; }
37
- .tos-wrapper.tos-opened {
38
- display: block; }
39
- .tos-wrapper.tos-opening {
40
- opacity: 1; }
41
- .tos-wrapper.tos-fixed {
42
- background-color: black;
43
- position: fixed;
44
- top: 0;
45
- left: 0;
46
- z-index: 9000; }
47
- .tos-wrapper.tos-inline {
48
- position: relative; }
49
-
50
- .tos-slider {
51
- white-space: nowrap;
52
- width: 100%;
53
- height: 100%;
54
- padding: 0;
55
- margin: 0;
56
- position: relative; }
57
-
58
- .tos-wrapper.tos-fx-slide .tos-slider {
59
- left: 0;
60
- -webkit-transition: left 0.4s ease;
61
- -moz-transition: left 0.4s ease;
62
- -ms-transition: left 0.4s ease;
63
- -o-transition: left 0.4s ease;
64
- transition: left 0.4s ease; }
65
- .tos-wrapper.tos-fx-slide.tos-fixed .tos-slider {
66
- position: absolute; }
67
-
68
- .tos-wrapper.tos-fx-fade .tos-slider {
69
- opacity: 1;
70
- -webkit-transition: opacity 0.4s ease;
71
- -moz-transition: opacity 0.4s ease;
72
- -ms-transition: opacity 0.4s ease;
73
- -o-transition: opacity 0.4s ease;
74
- transition: opacity 0.4s ease; }
75
-
76
- .tos-uibg {
77
- background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
78
- background-image: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
79
- background-image: -ms-linear-gradient(bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
80
- background-image: -o-linear-gradient(bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
81
- background-image: linear-gradient(bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
82
- -webkit-transition: opacity 0.4s ease;
83
- -moz-transition: opacity 0.4s ease;
84
- -ms-transition: opacity 0.4s ease;
85
- -o-transition: opacity 0.4s ease;
86
- transition: opacity 0.4s ease;
87
- opacity: 0;
88
- width: 100%;
89
- position: absolute;
90
- left: 0;
91
- bottom: 0;
92
- z-index: 1; }
93
-
94
- .tos-desktop .tos-wrapper:hover .tos-uibg,
95
- .tos-touch .tos-wrapper.tos-hover .tos-uibg {
96
- opacity: 1; }
97
-
98
- .tos-slide {
99
- -webkit-overflow-scrolling: touch;
100
- line-height: 1px;
101
- text-align: center;
102
- box-sizing: border-box;
103
- display: inline-block;
104
- width: 100%;
105
- height: 100%;
106
- overflow: hidden;
107
- position: relative; }
108
- .tos-slide:before {
109
- content: "";
110
- display: inline-block;
111
- height: 50%;
112
- width: 1px;
113
- margin-right: -1px; }
114
- .tos-slide.tos-loading > * {
115
- opacity: 0; }
116
- .tos-slide > * {
117
- opacity: 1;
118
- -webkit-transition: opacity 0.4s ease;
119
- -moz-transition: opacity 0.4s ease;
120
- -ms-transition: opacity 0.4s ease;
121
- -o-transition: opacity 0.4s ease;
122
- transition: opacity 0.4s ease; }
123
-
124
- .tos-slide > * {
125
- vertical-align: middle;
126
- display: inline-block;
127
- max-height: 100%;
128
- max-width: 100%;
129
- box-sizing: border-box; }
130
- .tos-slide.tos-html > div {
131
- -webkit-overflow-scrolling: touch;
132
- white-space: normal;
133
- text-align: left;
134
- line-height: 1.5; }
135
- .tos-slide.tos-html > div * {
136
- -webkit-text-size-adjust: none;
137
- -moz-text-size-adjust: none;
138
- -ms-text-size-adjust: none;
139
- -o-text-size-adjust: none;
140
- text-size-adjust: none; }
141
-
142
- .tos-wrapper.tos-fill .tos-slide.tos-image > img {
143
- max-height: none;
144
- max-width: none;
145
- min-height: 100%;
146
- min-width: 100%; }
147
- .tos-wrapper.tos-fixed .tos-slide.tos-html > div {
148
- background-color: white;
149
- color: #333333;
150
- box-sizing: border-box;
151
- display: inline-block;
152
- padding: 40px;
153
- overflow: auto; }
154
-
155
- .tos-desktop .tos-wrapper.tos-fixed {
156
- background-color: rgba(0, 0, 0, 0.85); }
157
- .tos-desktop .tos-wrapper.tos-fixed.tos-fit .tos-slide {
158
- padding: 20px; }
159
-
160
- /*
161
- jQuery Touch Optimized Sliders "R"Us
162
- Buttons addon
163
- */
164
- .tos-prev,
165
- .tos-next,
166
- .tos-close {
167
- background: black;
168
- border-radius: 3px;
169
- opacity: 0;
170
- display: block;
171
- width: 40px;
172
- position: absolute;
173
- z-index: 1;
174
- -webkit-transition: opacity 0.4s ease;
175
- -moz-transition: opacity 0.4s ease;
176
- -ms-transition: opacity 0.4s ease;
177
- -o-transition: opacity 0.4s ease;
178
- transition: opacity 0.4s ease; }
179
-
180
- .tos-prev,
181
- .tos-next {
182
- height: 80px;
183
- margin-top: -40px;
184
- top: 50%; }
185
- .tos-prev.tos-disabled,
186
- .tos-next.tos-disabled {
187
- cursor: default; }
188
-
189
- .tos-prev {
190
- left: 20px; }
191
-
192
- .tos-next {
193
- right: 20px; }
194
-
195
- .tos-close {
196
- height: 40px;
197
- top: 20px;
198
- right: 20px; }
199
-
200
- .tos-desktop .tos-wrapper:hover .tos-prev,
201
- .tos-desktop .tos-wrapper:hover .tos-next,
202
- .tos-desktop .tos-wrapper:hover .tos-close,
203
- .tos-touch .tos-wrapper.tos-hover .tos-prev,
204
- .tos-touch .tos-wrapper.tos-hover .tos-next,
205
- .tos-touch .tos-wrapper.tos-hover .tos-close {
206
- opacity: 0.5; }
207
- .tos-desktop .tos-wrapper:hover .tos-prev:hover,
208
- .tos-desktop .tos-wrapper:hover .tos-next:hover,
209
- .tos-desktop .tos-wrapper:hover .tos-close:hover,
210
- .tos-touch .tos-wrapper.tos-hover .tos-prev:hover,
211
- .tos-touch .tos-wrapper.tos-hover .tos-next:hover,
212
- .tos-touch .tos-wrapper.tos-hover .tos-close:hover {
213
- opacity: 0.9; }
214
- .tos-desktop .tos-wrapper:hover .tos-prev.tos-disabled,
215
- .tos-desktop .tos-wrapper:hover .tos-next.tos-disabled,
216
- .tos-desktop .tos-wrapper:hover .tos-close.tos-disabled,
217
- .tos-touch .tos-wrapper.tos-hover .tos-prev.tos-disabled,
218
- .tos-touch .tos-wrapper.tos-hover .tos-next.tos-disabled,
219
- .tos-touch .tos-wrapper.tos-hover .tos-close.tos-disabled {
220
- opacity: 0.2; }
221
-
222
- .tos-prev span,
223
- .tos-next span,
224
- .tos-close span:before,
225
- .tos-close span:after {
226
- content: '';
227
- display: block;
228
- width: 12px;
229
- height: 12px;
230
- margin: -5px;
231
- position: absolute;
232
- top: 50%;
233
- -webkit-transform: rotate(45deg);
234
- -moz-transform: rotate(45deg);
235
- -ms-transform: rotate(45deg);
236
- -o-transform: rotate(45deg);
237
- transform: rotate(45deg); }
238
-
239
- .tos-close span:before,
240
- .tos-close span:after {
241
- width: 6px;
242
- height: 6px;
243
- margin-top: -4px;
244
- margin-left: 0;
245
- margin-right: 0; }
246
-
247
- .tos-prev span,
248
- .tos-close span:before {
249
- border-bottom: 3px solid white;
250
- border-left: 3px solid white;
251
- left: 50%; }
252
-
253
- .tos-next span,
254
- .tos-close span:after {
255
- border-top: 3px solid white;
256
- border-right: 3px solid white;
257
- right: 50%; }
258
-
259
- .tos-desktop .tos-wrapper.tos-fixed.tos-fit.tos-has-prev .tos-slide, .tos-desktop .tos-wrapper.tos-fixed.tos-fit.tos-has-next .tos-slide, .tos-desktop .tos-wrapper.tos-fixed.tos-fit.tos-has-close .tos-slide {
260
- padding-left: 80px;
261
- padding-right: 80px; }
262
-
263
- .tos-inline {
264
- opacity: 0;
265
- -webkit-transition: opacity 0.4s ease;
266
- -moz-transition: opacity 0.4s ease;
267
- -ms-transition: opacity 0.4s ease;
268
- -o-transition: opacity 0.4s ease;
269
- transition: opacity 0.4s ease;
270
- display: inline-block;
271
- margin: 0;
272
- position: relative;
273
- top: auto;
274
- left: auto;
275
- right: auto; }
276
- .tos-inline.tos-prev {
277
- margin-right: -60px; }
278
- .tos-inline.tos-next {
279
- margin-left: -60px; }
280
-
281
- .tos-loading .tos-inline {
282
- opacity: 0 !important; }
283
-
284
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-prev,
285
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-next,
286
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-close {
287
- -webkit-transform: scale(2);
288
- -moz-transform: scale(2);
289
- -ms-transform: scale(2);
290
- -o-transform: scale(2);
291
- transform: scale(2); }
292
- .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-prev,
293
- .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-next,
294
- .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-close {
295
- -webkit-transform: scale(3);
296
- -moz-transform: scale(3);
297
- -ms-transform: scale(3);
298
- -o-transform: scale(3);
299
- transform: scale(3); }
300
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-prev, .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-prev {
301
- -webkit-transform-origin: left center;
302
- -moz-transform-origin: left center;
303
- -ms-transform-origin: left center;
304
- -o-transform-origin: left center;
305
- transform-origin: left center; }
306
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-next, .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-next {
307
- -webkit-transform-origin: right center;
308
- -moz-transform-origin: right center;
309
- -ms-transform-origin: right center;
310
- -o-transform-origin: right center;
311
- transform-origin: right center; }
312
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-close, .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-close {
313
- -webkit-transform-origin: right top;
314
- -moz-transform-origin: right top;
315
- -ms-transform-origin: right top;
316
- -o-transform-origin: right top;
317
- transform-origin: right top; }
318
-
319
- /*
320
- jQuery Touch Optimized Sliders "R"Us
321
- Caption addon
322
- */
323
- .tos-caption {
324
- color: white;
325
- text-align: center;
326
- opacity: 0;
327
- -webkit-transition: opacity 0.4s ease;
328
- -moz-transition: opacity 0.4s ease;
329
- -ms-transition: opacity 0.4s ease;
330
- -o-transition: opacity 0.4s ease;
331
- transition: opacity 0.4s ease;
332
- width: 100%;
333
- position: absolute;
334
- left: 0;
335
- bottom: 0;
336
- z-index: 1; }
337
- .tos-caption:after {
338
- content: '';
339
- display: block;
340
- clear: both; }
341
- .tos-caption > div {
342
- white-space: nowrap;
343
- text-overflow: ellipsis;
344
- overflow: hidden;
345
- width: 100%;
346
- box-sizing: border-box;
347
- padding: 0 20px;
348
- float: left; }
349
- .tos-caption > div:last-child {
350
- float: right;
351
- margin-right: -2px; }
352
-
353
- .tos-desktop .tos-wrapper:hover .tos-caption,
354
- .tos-touch .tos-wrapper.tos-hover .tos-caption {
355
- opacity: 1; }
356
-
357
- .tos-wrapper .tos-caption {
358
- line-height: 20px;
359
- font-size: 15px;
360
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
361
- height: 40px; }
362
- .tos-wrapper.tos-has-caption .tos-uibg {
363
- height: 100px; }
364
-
365
- .tos-desktop .tos-wrapper.tos-fixed.tos-fit.tos-has-caption .tos-slide {
366
- padding-bottom: 60px; }
367
-
368
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-caption {
369
- line-height: 40px;
370
- font-size: 30px;
371
- text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
372
- height: 80px; }
373
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-caption .tos-uibg {
374
- height: 200px; }
375
- .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-caption {
376
- line-height: 60px;
377
- font-size: 45px;
378
- text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
379
- height: 120px; }
380
- .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-caption .tos-uibg {
381
- height: 300px; }
382
-
383
- /*
384
- jQuery Touch Optimized Sliders "R"Us
385
- Drag addon
386
- */
387
- .tos-wrapper.tos-fx-slide .tos-slider {
388
- -webkit-transition-property: left, margin;
389
- -moz-transition-property: left, margin;
390
- -ms-transition-property: left, margin;
391
- -o-transition-property: left, margin;
392
- transition-property: left, margin; }
393
-
394
- /*
395
- jQuery Touch Optimized Sliders "R"Us
396
- Pagination addon
397
- */
398
- .tos-pagination {
399
- text-align: center;
400
- white-space: nowrap;
401
- overflow-x: auto;
402
- -webkit-overflow-scrolling: touch;
403
- overflow-scrolling: touch;
404
- opacity: 0;
405
- -webkit-transition: opacity 0.4s ease;
406
- -moz-transition: opacity 0.4s ease;
407
- -ms-transition: opacity 0.4s ease;
408
- -o-transition: opacity 0.4s ease;
409
- transition: opacity 0.4s ease;
410
- width: 100%;
411
- position: absolute;
412
- bottom: 0;
413
- left: 0;
414
- z-index: 1; }
415
- .tos-pagination a {
416
- display: inline-block; }
417
- .tos-pagination.tos-bullets a {
418
- background-color: rgba(255, 255, 255, 0.2); }
419
- .tos-pagination.tos-bullets a:hover {
420
- background-color: rgba(255, 255, 255, 0.5); }
421
- .tos-pagination.tos-bullets a.tos-selected {
422
- background-color: rgba(255, 255, 255, 0.9); }
423
-
424
- .tos-desktop .tos-wrapper:hover .tos-pagination,
425
- .tos-touch .tos-wrapper.tos-hover .tos-pagination {
426
- opacity: 1; }
427
-
428
- .tos-wrapper .tos-pagination:before, .tos-wrapper .tos-pagination:after {
429
- content: '';
430
- display: inline-block;
431
- width: 20px;
432
- height: 10px; }
433
- .tos-wrapper.tos-has-bullets .tos-pagination {
434
- height: 30px; }
435
- .tos-wrapper.tos-has-bullets .tos-pagination a {
436
- border-radius: 10px;
437
- width: 10px;
438
- height: 10px;
439
- margin: 0 5px; }
440
- .tos-wrapper.tos-has-bullets .tos-caption {
441
- bottom: 30px; }
442
- .tos-wrapper.tos-has-bullets .tos-uibg {
443
- height: 90px; }
444
- .tos-wrapper.tos-has-bullets.tos-has-caption .tos-uibg {
445
- height: 130px; }
446
- .tos-wrapper.tos-has-thumbnails .tos-pagination {
447
- height: 70px; }
448
- .tos-wrapper.tos-has-thumbnails .tos-pagination a {
449
- background-position: center center;
450
- background-size: cover;
451
- width: 50px;
452
- height: 50px;
453
- margin: 0 5px; }
454
- .tos-wrapper.tos-has-thumbnails .tos-caption {
455
- bottom: 70px; }
456
- .tos-wrapper.tos-has-thumbnails .tos-uibg {
457
- height: 130px; }
458
- .tos-wrapper.tos-has-thumbnails.tos-has-caption .tos-uibg {
459
- height: 170px; }
460
-
461
- .tos-desktop .tos-wrapper.tos-fixed.tos-fit.tos-has-bullets .tos-slide {
462
- padding-bottom: 50px; }
463
- .tos-desktop .tos-wrapper.tos-fixed.tos-fit.tos-has-bullets.tos-has-caption .tos-slide {
464
- padding-bottom: 80px; }
465
- .tos-desktop .tos-wrapper.tos-fixed.tos-fit.tos-has-thumbnails .tos-slide {
466
- padding-bottom: 90px; }
467
- .tos-desktop .tos-wrapper.tos-fixed.tos-fit.tos-has-thumbnails.tos-has-caption .tos-slide {
468
- padding-bottom: 120px; }
469
-
470
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-pagination:before, .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-pagination:after {
471
- content: '';
472
- display: inline-block;
473
- width: 40px;
474
- height: 20px; }
475
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-bullets .tos-pagination {
476
- height: 60px; }
477
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-bullets .tos-pagination a {
478
- border-radius: 20px;
479
- width: 20px;
480
- height: 20px;
481
- margin: 0 10px; }
482
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-bullets .tos-caption {
483
- bottom: 60px; }
484
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-bullets .tos-uibg {
485
- height: 180px; }
486
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-bullets.tos-has-caption .tos-uibg {
487
- height: 260px; }
488
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-thumbnails .tos-pagination {
489
- height: 140px; }
490
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-thumbnails .tos-pagination a {
491
- background-position: center center;
492
- background-size: cover;
493
- width: 100px;
494
- height: 100px;
495
- margin: 0 10px; }
496
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-thumbnails .tos-caption {
497
- bottom: 140px; }
498
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-thumbnails .tos-uibg {
499
- height: 260px; }
500
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-thumbnails.tos-has-caption .tos-uibg {
501
- height: 340px; }
502
- .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-pagination:before, .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-pagination:after {
503
- content: '';
504
- display: inline-block;
505
- width: 60px;
506
- height: 30px; }
507
- .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-bullets .tos-pagination {
508
- height: 90px; }
509
- .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-bullets .tos-pagination a {
510
- border-radius: 30px;
511
- width: 30px;
512
- height: 30px;
513
- margin: 0 15px; }
514
- .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-bullets .tos-caption {
515
- bottom: 90px; }
516
- .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-bullets .tos-uibg {
517
- height: 270px; }
518
- .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-bullets.tos-has-caption .tos-uibg {
519
- height: 390px; }
520
- .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-thumbnails .tos-pagination {
521
- height: 210px; }
522
- .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-thumbnails .tos-pagination a {
523
- background-position: center center;
524
- background-size: cover;
525
- width: 150px;
526
- height: 150px;
527
- margin: 0 15px; }
528
- .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-thumbnails .tos-caption {
529
- bottom: 210px; }
530
- .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-thumbnails .tos-uibg {
531
- height: 390px; }
532
- .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-thumbnails.tos-has-caption .tos-uibg {
533
- height: 510px; }
534
-
535
- /*
536
- jQuery Touch Optimized Sliders "R"Us
537
- Html media
538
- */
539
- .tos-slide .tos-html {
540
- -webkit-overflow-scrolling: touch; }
541
-
542
- /*
543
- jQuery Touch Optimized Sliders "R"Us
544
- Youtube media
545
- */
546
- .tos-play {
547
- background: black;
548
- opacity: 0;
549
- display: block;
550
- position: absolute;
551
- top: 50%;
552
- left: 50%;
553
- -webkit-transition: opacity 0.4s ease;
554
- -moz-transition: opacity 0.4s ease;
555
- -ms-transition: opacity 0.4s ease;
556
- -o-transition: opacity 0.4s ease;
557
- transition: opacity 0.4s ease; }
558
- .tos-play:after {
559
- content: '';
560
- display: block;
561
- position: absolute;
562
- top: 50%;
563
- left: 50%; }
564
-
565
- .tos-desktop .tos-wrapper:hover .tos-play,
566
- .tos-touch .tos-wrapper.tos-hover .tos-play {
567
- opacity: 0.5; }
568
- .tos-desktop .tos-wrapper:hover .tos-play:hover,
569
- .tos-touch .tos-wrapper.tos-hover .tos-play:hover {
570
- opacity: 0.9; }
571
-
572
- .tos-wrapper .tos-play {
573
- border-radius: 80px;
574
- width: 80px;
575
- height: 80px;
576
- margin: -40px; }
577
- .tos-wrapper .tos-play:after {
578
- border: 20px solid transparent;
579
- border-left-color: white;
580
- border-left-width: 30px;
581
- margin-top: -20px;
582
- margin-left: -10.5px; }
583
-
584
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-play {
585
- border-radius: 160px;
586
- width: 160px;
587
- height: 160px;
588
- margin: -80px; }
589
- .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-play:after {
590
- border: 40px solid transparent;
591
- border-left-color: white;
592
- border-left-width: 60px;
593
- margin-top: -40px;
594
- margin-left: -21px; }
595
- .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-play {
596
- border-radius: 240px;
597
- width: 240px;
598
- height: 240px;
599
- margin: -120px; }
600
- .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-play:after {
601
- border: 60px solid transparent;
602
- border-left-color: white;
603
- border-left-width: 90px;
604
- margin-top: -60px;
605
- margin-left: -31.5px; }
1
+ .tos-slide,.tos-slider,.tos-wrapper{width:100%;height:100%}
2
+ .tos-noanimation{-webkit-transition-property:none!important;transition-property:none!important}
3
+ .tos-fastanimation{-webkit-transition-duration:.2s!important;transition-duration:.2s!important;-webkit-transition-timing-function:ease-out!important;transition-timing-function:ease-out!important}
4
+ .tos-wrapper{opacity:0;-webkit-transition:opacity .4s ease;transition:opacity .4s ease;display:none;padding:0;margin:0;overflow:hidden}
5
+ .tos-wrapper.tos-opened{display:block}
6
+ .tos-slide,.tos-slide:before,.tos-slide>*{display:inline-block}
7
+ .tos-wrapper.tos-opening{opacity:1}
8
+ .tos-wrapper.tos-fixed{background-color:#000;position:fixed;top:0;left:0;z-index:9000}
9
+ .tos-slider,.tos-wrapper.tos-inline{position:relative}
10
+ .tos-slider{white-space:nowrap;padding:0;margin:0}
11
+ .tos-uibg,.tos-wrapper.tos-fx-slide.tos-fixed .tos-slider{position:absolute}
12
+ .tos-wrapper.tos-fx-slide .tos-slider{left:0;-webkit-transition:left .4s ease;transition:left .4s ease}
13
+ .tos-wrapper.tos-fx-fade .tos-slider{opacity:1;-webkit-transition:opacity .4s ease;transition:opacity .4s ease}
14
+ .tos-uibg{opacity:0;-webkit-transition:opacity .4s ease;transition:opacity .4s ease;width:100%;left:0;bottom:0;z-index:1}
15
+ .tos-fill .tos-uibg{background:-webkit-linear-gradient(bottom,rgba(0,0,0,.5),transparent);background:linear-gradient(to top,rgba(0,0,0,.5),transparent)}
16
+ .tos-desktop .tos-wrapper:hover .tos-uibg,.tos-touch .tos-wrapper.tos-hover .tos-uibg{opacity:1}
17
+ .tos-slide{-webkit-overflow-scrolling:touch;line-height:1px;text-align:center;box-sizing:border-box;overflow:hidden;position:relative}
18
+ .tos-slide:before{content:"";height:50%;width:1px;margin-right:-1px}
19
+ .tos-slide.tos-loading>*{opacity:0}
20
+ .tos-slide>*{opacity:1;-webkit-transition:opacity .4s ease;transition:opacity .4s ease;vertical-align:middle;max-height:100%;max-width:100%;box-sizing:border-box}
21
+ .tos-slide.tos-html>div{-webkit-overflow-scrolling:touch;white-space:normal;text-align:left;line-height:1.5}
22
+ .tos-slide.tos-html>div *{-webkit-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none}
23
+ .tos-wrapper.tos-fill .tos-slide.tos-image>img{max-height:none;max-width:none;min-height:100%;min-width:100%}
24
+ .tos-wrapper.tos-fixed .tos-slide.tos-html>div{background-color:#fff;color:#333;box-sizing:border-box;display:inline-block;padding:40px;overflow:auto}
25
+ .tos-desktop .tos-wrapper.tos-fixed{background-color:rgba(0,0,0,.85)}
26
+ .tos-desktop .tos-wrapper.tos-fixed.tos-fit .tos-slide{padding:20px}
27
+ .tos-close,.tos-next{right:20px}
28
+ .tos-close,.tos-next,.tos-prev{background:#000;border-radius:3px;opacity:0;display:block;width:40px;position:absolute;z-index:1;-webkit-transition:opacity .4s ease;transition:opacity .4s ease}
29
+ .tos-next,.tos-prev{height:80px;margin-top:-40px;top:50%}
30
+ .tos-next.tos-disabled,.tos-prev.tos-disabled{cursor:default}
31
+ .tos-prev{left:20px}
32
+ .tos-close{height:40px;top:20px}
33
+ .tos-desktop .tos-wrapper:hover .tos-close,.tos-desktop .tos-wrapper:hover .tos-next,.tos-desktop .tos-wrapper:hover .tos-prev,.tos-touch .tos-wrapper.tos-hover .tos-close,.tos-touch .tos-wrapper.tos-hover .tos-next,.tos-touch .tos-wrapper.tos-hover .tos-prev{opacity:.5}
34
+ .tos-desktop .tos-wrapper:hover .tos-close:hover,.tos-desktop .tos-wrapper:hover .tos-next:hover,.tos-desktop .tos-wrapper:hover .tos-prev:hover,.tos-touch .tos-wrapper.tos-hover .tos-close:hover,.tos-touch .tos-wrapper.tos-hover .tos-next:hover,.tos-touch .tos-wrapper.tos-hover .tos-prev:hover{opacity:.9}
35
+ .tos-desktop .tos-wrapper:hover .tos-close.tos-disabled,.tos-desktop .tos-wrapper:hover .tos-next.tos-disabled,.tos-desktop .tos-wrapper:hover .tos-prev.tos-disabled,.tos-touch .tos-wrapper.tos-hover .tos-close.tos-disabled,.tos-touch .tos-wrapper.tos-hover .tos-next.tos-disabled,.tos-touch .tos-wrapper.tos-hover .tos-prev.tos-disabled{opacity:.2}
36
+ .tos-close span:after,.tos-close span:before,.tos-next span,.tos-prev span{content:'';display:block;width:12px;height:12px;margin:-5px;position:absolute;top:50%;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}
37
+ .tos-close span:after,.tos-close span:before{width:6px;height:6px;margin-top:-4px;margin-left:0;margin-right:0}
38
+ .tos-close span:before,.tos-prev span{border-bottom:3px solid #fff;border-left:3px solid #fff;left:50%}
39
+ .tos-close span:after,.tos-next span{border-top:3px solid #fff;border-right:3px solid #fff;right:50%}
40
+ .tos-desktop .tos-wrapper.tos-fixed.tos-fit.tos-has-close .tos-slide,.tos-desktop .tos-wrapper.tos-fixed.tos-fit.tos-has-next .tos-slide,.tos-desktop .tos-wrapper.tos-fixed.tos-fit.tos-has-prev .tos-slide{padding-left:80px;padding-right:80px}
41
+ .tos-inline{opacity:0;-webkit-transition:opacity .4s ease;transition:opacity .4s ease;display:inline-block;margin:0;position:relative;top:auto;left:auto;right:auto}
42
+ .tos-inline.tos-prev{margin-right:-60px}
43
+ .tos-inline.tos-next{margin-left:-60px}
44
+ .tos-loading .tos-inline{opacity:0!important}
45
+ .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-close,.tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-next,.tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-prev{-webkit-transform:scale(2);-ms-transform:scale(2);transform:scale(2)}
46
+ .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-close,.tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-next,.tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-prev{-webkit-transform:scale(3);-ms-transform:scale(3);transform:scale(3)}
47
+ .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-prev,.tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-prev{-webkit-transform-origin:left center;-ms-transform-origin:left center;transform-origin:left center}
48
+ .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-next,.tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-next{-webkit-transform-origin:right center;-ms-transform-origin:right center;transform-origin:right center}
49
+ .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-close,.tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-close{-webkit-transform-origin:right top;-ms-transform-origin:right top;transform-origin:right top}
50
+ .tos-caption{color:#fff;text-align:center;opacity:0;-webkit-transition:opacity .4s ease;transition:opacity .4s ease;width:100%;position:absolute;left:0;bottom:0;z-index:1}
51
+ .tos-caption:after{content:'';display:block;clear:both}
52
+ .tos-caption>div{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:100%;box-sizing:border-box;padding:0 20px;float:left}
53
+ .tos-caption>div:last-child{float:right;margin-right:-2px}
54
+ .tos-desktop .tos-wrapper:hover .tos-caption,.tos-touch .tos-wrapper.tos-hover .tos-caption{opacity:1}
55
+ .tos-wrapper .tos-caption{line-height:20px;font-size:15px;text-shadow:0 1px 2px rgba(0,0,0,.8);height:40px}
56
+ .tos-wrapper.tos-has-caption .tos-uibg{height:100px}
57
+ .tos-desktop .tos-wrapper.tos-fixed.tos-fit.tos-has-caption .tos-slide{padding-bottom:60px}
58
+ .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-caption{line-height:40px;font-size:30px;text-shadow:0 2px 4px rgba(0,0,0,.8);height:80px}
59
+ .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-caption .tos-uibg{height:200px}
60
+ .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-caption{line-height:60px;font-size:45px;text-shadow:0 3px 6px rgba(0,0,0,.8);height:120px}
61
+ .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-caption .tos-uibg{height:300px}
62
+ .tos-wrapper.tos-fx-slide .tos-slider{-webkit-transition-property:left,margin;transition-property:left,margin}
63
+ .tos-pagination{text-align:center;white-space:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;overflow-scrolling:touch;opacity:0;-webkit-transition:opacity .4s ease;transition:opacity .4s ease;width:100%;position:absolute;bottom:0;left:0;z-index:1}
64
+ .tos-pagination a{display:inline-block}
65
+ .tos-pagination.tos-bullets a{background-color:rgba(255,255,255,.2)}
66
+ .tos-pagination.tos-bullets a:hover{background-color:rgba(255,255,255,.5)}
67
+ .tos-pagination.tos-bullets a.tos-selected{background-color:rgba(255,255,255,.9)}
68
+ .tos-desktop .tos-wrapper:hover .tos-pagination,.tos-touch .tos-wrapper.tos-hover .tos-pagination{opacity:1}
69
+ .tos-wrapper .tos-pagination:after,.tos-wrapper .tos-pagination:before{content:'';display:inline-block;width:20px;height:10px}
70
+ .tos-wrapper.tos-has-bullets .tos-pagination{height:30px}
71
+ .tos-wrapper.tos-has-bullets .tos-pagination a{border-radius:10px;width:10px;height:10px;margin:0 5px}
72
+ .tos-wrapper.tos-has-bullets .tos-caption{bottom:30px}
73
+ .tos-wrapper.tos-has-bullets .tos-uibg{height:90px}
74
+ .tos-wrapper.tos-has-bullets.tos-has-caption .tos-uibg{height:130px}
75
+ .tos-wrapper.tos-has-thumbnails .tos-pagination{height:70px}
76
+ .tos-wrapper.tos-has-thumbnails .tos-pagination a{background-position:center center;background-size:cover;width:50px;height:50px;margin:0 5px}
77
+ .tos-wrapper.tos-has-thumbnails .tos-caption{bottom:70px}
78
+ .tos-wrapper.tos-has-thumbnails .tos-uibg{height:130px}
79
+ .tos-wrapper.tos-has-thumbnails.tos-has-caption .tos-uibg{height:170px}
80
+ .tos-desktop .tos-wrapper.tos-fixed.tos-fit.tos-has-bullets .tos-slide{padding-bottom:50px}
81
+ .tos-desktop .tos-wrapper.tos-fixed.tos-fit.tos-has-bullets.tos-has-caption .tos-slide{padding-bottom:80px}
82
+ .tos-desktop .tos-wrapper.tos-fixed.tos-fit.tos-has-thumbnails .tos-slide{padding-bottom:90px}
83
+ .tos-desktop .tos-wrapper.tos-fixed.tos-fit.tos-has-thumbnails.tos-has-caption .tos-slide{padding-bottom:120px}
84
+ .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-pagination:after,.tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-pagination:before{content:'';display:inline-block;width:40px;height:20px}
85
+ .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-bullets .tos-pagination{height:60px}
86
+ .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-bullets .tos-pagination a{border-radius:20px;width:20px;height:20px;margin:0 10px}
87
+ .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-bullets .tos-caption{bottom:60px}
88
+ .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-bullets .tos-uibg{height:180px}
89
+ .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-bullets.tos-has-caption .tos-uibg{height:260px}
90
+ .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-thumbnails .tos-pagination{height:140px}
91
+ .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-thumbnails .tos-pagination a{background-position:center center;background-size:cover;width:100px;height:100px;margin:0 10px}
92
+ .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-thumbnails .tos-caption{bottom:140px}
93
+ .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-thumbnails .tos-uibg{height:260px}
94
+ .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed.tos-has-thumbnails.tos-has-caption .tos-uibg{height:340px}
95
+ .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-pagination:after,.tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-pagination:before{content:'';display:inline-block;width:60px;height:30px}
96
+ .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-bullets .tos-pagination{height:90px}
97
+ .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-bullets .tos-pagination a{border-radius:30px;width:30px;height:30px;margin:0 15px}
98
+ .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-bullets .tos-caption{bottom:90px}
99
+ .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-bullets .tos-uibg{height:270px}
100
+ .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-bullets.tos-has-caption .tos-uibg{height:390px}
101
+ .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-thumbnails .tos-pagination{height:210px}
102
+ .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-thumbnails .tos-pagination a{background-position:center center;background-size:cover;width:150px;height:150px;margin:0 15px}
103
+ .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-thumbnails .tos-caption{bottom:210px}
104
+ .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-thumbnails .tos-uibg{height:390px}
105
+ .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed.tos-has-thumbnails.tos-has-caption .tos-uibg{height:510px}
106
+ .tos-slide .tos-html{-webkit-overflow-scrolling:touch}
107
+ .tos-play,.tos-play:after{display:block;position:absolute;top:50%;left:50%}
108
+ .tos-play{background:#000;opacity:0;-webkit-transition:opacity .4s ease;transition:opacity .4s ease}
109
+ .tos-play:after{content:''}
110
+ .tos-desktop .tos-wrapper:hover .tos-play,.tos-touch .tos-wrapper.tos-hover .tos-play{opacity:.5}
111
+ .tos-desktop .tos-wrapper:hover .tos-play:hover,.tos-touch .tos-wrapper.tos-hover .tos-play:hover{opacity:.9}
112
+ .tos-wrapper .tos-play{border-radius:80px;width:80px;height:80px;margin:-40px}
113
+ .tos-wrapper .tos-play:after{border:20px solid transparent;border-left-color:#fff;border-left-width:30px;margin-top:-20px;margin-left:-10.5px}
114
+ .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-play{border-radius:160px;width:160px;height:160px;margin:-80px}
115
+ .tos-touch.tos-scale-2 .tos-wrapper.tos-fixed .tos-play:after{border:40px solid transparent;border-left-color:#fff;border-left-width:60px;margin-top:-40px;margin-left:-21px}
116
+ .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-play{border-radius:240px;width:240px;height:240px;margin:-120px}
117
+ .tos-touch.tos-scale-3 .tos-wrapper.tos-fixed .tos-play:after{border:60px solid transparent;border-left-color:#fff;border-left-width:90px;margin-top:-60px;margin-left:-31.5px}
assets/tosrus/js/jquery.tosrus.min.all.js CHANGED
@@ -1,93 +1,83 @@
1
- /*
2
- * jQuery Touch Optimized Sliders "R"Us 2.4.2
3
- *
4
- * Copyright (c) Fred Heusschen
5
- * www.frebsite.nl
6
- *
7
- * Plugin website:
8
- * tosrus.frebsite.nl
9
- *
10
- * Licensed under the MIT license.
11
- * http://en.wikipedia.org/wiki/MIT_License
12
*/
13
- !function(s){function i(){o=function(s){return t+"-"+s},d=function(s){return t+"-"+s},a=function(s){return s+"."+t},s.each([o,d,a],function(s,i){i.add=function(s){s=s.split(" ");for(var e in s)i[s[e]]=i(s[e])}}),o.add("touch desktop scale-1 scale-2 scale-3 wrapper opened opening fixed inline hover slider slide loading noanimation fastanimation"),d.add("slide anchor"),a.add("open opening close closing prev next slideTo sliding click pinch scroll resize orientationchange load loading loaded transitionend webkitTransitionEnd"),r={complObject:function(i,e){return s.isPlainObject(i)||(i=e),i},complBoolean:function(s,i){return"boolean"!=typeof s&&(s=i),s},complNumber:function(i,e){return s.isNumeric(i)||(i=e),i},complString:function(s,i){return"string"!=typeof s&&(s=i),s},isPercentage:function(s){return"string"==typeof s&&"%"==s.slice(-1)},getPercentage:function(s){return parseInt(s.slice(0,-1))},resizeRatio:function(s,i,e,t,n){var o=i.width(),d=i.height();e&&o>e&&(o=e),t&&d>t&&(d=t),n>o/d?d=o/n:o=d*n,s.width(o).height(d)},transitionend:function(s,i,e){var t=!1,n=function(){t||i.call(s[0]),t=!0};s.one(a.transitionend,n),s.one(a.webkitTransitionEnd,n),setTimeout(n,1.1*e)},setViewportScale:function(){if(l.viewportScale){var s=l.viewportScale.getScale();"undefined"!=typeof s&&(s=1/s,l.$body.removeClass(o["scale-1"]).removeClass(o["scale-2"]).removeClass(o["scale-3"]).addClass(o["scale-"+Math.max(Math.min(Math.round(s),3),1)]))}}},l={$wndw:s(window),$html:s("html"),$body:s("body"),scrollPosition:0,viewportScale:null,viewportScaleInterval:null},l.$body.addClass(s[e].support.touch?o.touch:o.desktop),l.$wndw.on(a.scroll,function(s){l.$body.hasClass(o.opened)&&(window.scrollTo(0,l.scrollPosition),s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation())}),!l.viewportScale&&s[e].support.touch&&"undefined"!=typeof FlameViewportScale&&(l.viewportScale=new FlameViewportScale,r.setViewportScale(),l.$wndw.on(a.orientationchange+" "+a.resize,function(){l.viewportScaleInterval&&(clearTimeout(l.viewportScaleInterval),l.viewportScaleInterval=null),l.viewportScaleInterval=setTimeout(function(){r.setViewportScale()},500)})),s[e]._c=o,s[e]._d=d,s[e]._e=a,s[e]._f=r,s[e]._g=l}var e="tosrus",t="tos",n="2.4.2";if(!s[e]){var o={},d={},a={},r={},l={};s[e]=function(s,i,e){return this.$node=s,this.opts=i,this.conf=e,this.vars={},this.nodes={},this.slides={},this._init(),this},s[e].prototype={_init:function(){var i=this;this._complementOptions(),this.vars.fixed="window"==this.opts.wrapper.target,this.nodes.$wrpr=s('<div class="'+o.wrapper+'" />'),this.nodes.$sldr=s('<div class="'+o.slider+'" />').appendTo(this.nodes.$wrpr),this.nodes.$wrpr.addClass(this.vars.fixed?o.fixed:o.inline).addClass(o("fx-"+this.opts.effect)).addClass(o(this.opts.slides.scale)).addClass(this.opts.wrapper.classes),this.nodes.$wrpr.on(a.open+" "+a.close+" "+a.prev+" "+a.next+" "+a.slideTo,function(s){arguments=Array.prototype.slice.call(arguments);var s=arguments.shift(),e=s.type;s.stopPropagation(),"function"==typeof i[e]&&i[e].apply(i,arguments)}).on(a.opening+" "+a.closing+" "+a.sliding+" "+a.loading+" "+a.loaded,function(s){s.stopPropagation()}).on(a.click,function(e){switch(e.stopPropagation(),i.opts.wrapper.onClick){case"toggleUI":i.nodes.$wrpr.toggleClass(o.hover);break;case"close":s(e.target).is("img")||i.close()}}),this.nodes.$anchors=this._initAnchors(),this.nodes.$slides=this._initSlides(),this.slides.total=this.nodes.$slides.length,this.slides.visible=this.opts.slides.visible,this.slides.index=0,this.vars.opened=!0;for(var t=0;t<s[e].addons.length;t++)s.isFunction(this["_addon_"+s[e].addons[t]])&&this["_addon_"+s[e].addons[t]]();for(var n=0;n<s[e].ui.length;n++)this.nodes.$wrpr.find("."+o[s[e].ui[n]]).length&&this.nodes.$wrpr.addClass(o("has-"+s[e].ui[n]));"close"==this.opts.wrapper.onClick&&(this.nodes.$uibg||s().add(this.nodes.$capt||s()).add(this.nodes.$pagr||s()).on(a.click,function(s){s.stopPropagation()})),this.vars.fixed?(this.nodes.$wrpr.appendTo(l.$body),this.close(!0)):(this.nodes.$wrpr.appendTo(this.opts.wrapper.target),this.opts.show?(this.vars.opened=!1,this.open(0,!0)):this.close(!0))},open:function(i,e){var t=this;this.vars.opened||(this.vars.fixed&&(l.scrollPosition=l.$wndw.scrollTop(),l.$body.addClass(o.opened),r.setViewportScale()),e?this.nodes.$wrpr.addClass(o.opening).trigger(a.opening,[i,e]):setTimeout(function(){t.nodes.$wrpr.addClass(o.opening).trigger(a.opening,[i,e])},5),this.nodes.$wrpr.addClass(o.hover).addClass(o.opened)),this.vars.opened=!0,this._loadContents(),s.isNumeric(i)&&(e=e||!this.vars.opened,this.slideTo(i,e))},close:function(i){this.vars.opened&&(this.vars.fixed&&l.$body.removeClass(o.opened),i?this.nodes.$wrpr.removeClass(o.opened):r.transitionend(this.nodes.$wrpr,function(){s(this).removeClass(o.opened)},this.conf.transitionDuration),this.nodes.$wrpr.removeClass(o.hover).removeClass(o.opening).trigger(a.closing,[this.slides.index,i])),this.vars.opened=!1},prev:function(i,e){s.isNumeric(i)||(i=this.opts.slides.slide),this.slideTo(this.slides.index-i,e)},next:function(i,e){s.isNumeric(i)||(i=this.opts.slides.slide),this.slideTo(this.slides.index+i,e)},slideTo:function(i,t){if(!this.vars.opened)return!1;if(!s.isNumeric(i))return!1;var n=!0;if(0>i){var d=0==this.slides.index;this.opts.infinite?i=d?this.slides.total-this.slides.visible:0:(i=0,d&&(n=!1))}if(i+this.slides.visible>this.slides.total){var l=this.slides.index+this.slides.visible>=this.slides.total;this.opts.infinite?i=l?0:this.slides.total-this.slides.visible:(i=this.slides.total-this.slides.visible,l&&(n=!1))}if(this.slides.index=i,this._loadContents(),n){var h=0-this.slides.index*this.opts.slides.width+this.opts.slides.offset;this.slides.widthPercentage&&(h+="%"),t&&(this.nodes.$sldr.addClass(o.noanimation),r.transitionend(this.nodes.$sldr,function(){s(this).removeClass(o.noanimation)},5));for(var c in s[e].effects)if(c==this.opts.effect){s[e].effects[c].call(this,h,t);break}this.nodes.$wrpr.trigger(a.sliding,[i,t])}},_initAnchors:function(){var i=this,t=s();if(this.$node.is("a"))for(var n in s[e].media)t=t.add(this.$node.filter(function(){if(i.opts.media[n]&&i.opts.media[n].filterAnchors){var t=i.opts.media[n].filterAnchors.call(i,s(this));if("boolean"==typeof t)return t}return s[e].media[n].filterAnchors.call(i,s(this))}));return t},_initSlides:function(){return this[this.$node.is("a")?"_initSlidesFromAnchors":"_initSlidesFromContent"](),this.nodes.$sldr.children().css("width",this.opts.slides.width+(this.slides.widthPercentage?"%":"px"))},_initSlidesFromAnchors:function(){var i=this;this.nodes.$anchors.each(function(e){var t=s(this),n=s('<div class="'+o.slide+" "+o.loading+'" />').data(d.anchor,t).appendTo(i.nodes.$sldr);t.data(d.slide,n).on(a.click,function(s){s.preventDefault(),i.open(e)})})},_initSlidesFromContent:function(){var i=this;this.$node.children().each(function(){var t=s(this);s('<div class="'+o.slide+'" />').append(t).appendTo(i.nodes.$sldr);for(var n in s[e].media){var d=null;if(i.opts.media[n]&&i.opts.media[n].filterSlides&&(d=i.opts.media[n].filterSlides.call(i,t)),"boolean"!=typeof d&&(d=s[e].media[n].filterSlides.call(i,t)),d){s[e].media[n].initSlides.call(i,t),t.parent().addClass(o(n));break}}})},_loadContents:function(){var s=this;switch(this.opts.slides.load){case"all":this._loadContent(0,this.slides.total);break;case"visible":this._loadContent(this.slides.index,this.slides.index+this.slides.visible);break;case"near-visible":default:this._loadContent(this.slides.index,this.slides.index+this.slides.visible),setTimeout(function(){s._loadContent(s.slides.index-s.slides.visible,s.slides.index),s._loadContent(s.slides.index+s.slides.visible,s.slides.index+2*s.slides.visible)},this.conf.transitionDuration)}},_loadContent:function(i,t){var n=this;this.nodes.$slides.slice(i,t).each(function(){var i=s(this);if(0==i.children().length){var t=i.data(d.anchor),r=t.attr("href");for(var l in s[e].media){var h=null;if(n.opts.media[l]&&n.opts.media[l].filterAnchors&&(h=n.opts.media[l].filterAnchors.call(n,t)),"boolean"!=typeof h&&(h=s[e].media[l].filterAnchors.call(n,t)),h){s[e].media[l].initAnchors.call(n,i,r),i.addClass(o(l));break}}i.trigger(a.loading,[i.data(d.anchor)])}})},_complementOptions:function(){if("undefined"==typeof this.opts.wrapper.target&&(this.opts.wrapper.target=this.$node.is("a")?"window":this.$node),"window"!=this.opts.wrapper.target&&"string"==typeof this.opts.wrapper.target&&(this.opts.wrapper.target=s(this.opts.wrapper.target)),this.opts.show=r.complBoolean(this.opts.show,"window"!=this.opts.wrapper.target),s.isNumeric(this.opts.slides.width))this.slides.widthPercentage=!1,this.opts.slides.visible=r.complNumber(this.opts.slides.visible,1);else{var i=r.isPercentage(this.opts.slides.width)?r.getPercentage(this.opts.slides.width):!1;this.slides.widthPercentage=!0,this.opts.slides.visible=r.complNumber(this.opts.slides.visible,i?Math.floor(100/i):1),this.opts.slides.width=i?i:Math.ceil(1e4/this.opts.slides.visible)/100}this.opts.slides.slide=r.complNumber(this.opts.slides.slide,this.opts.slides.visible),this.opts.slides.offset=r.isPercentage(this.opts.slides.offset)?r.getPercentage(this.opts.slides.offset):r.complNumber(this.opts.slides.offset,0)},_uniqueID:function(){return this.__uniqueID||(this.__uniqueID=0),this.__uniqueID++,o("uid-"+this.__uniqueID)}},s.fn[e]=function(t,n,o,d){l.$wndw||i(),t=s.extend(!0,{},s[e].defaults,t),t=s.extend(!0,{},t,s[e].support.touch?o:n),d=s.extend(!0,{},s[e].configuration,d);var a=new s[e](this,t,d);return this.data(e,a),a.nodes.$wrpr},s[e].support={touch:"ontouchstart"in window.document||navigator.msMaxTouchPoints},s[e].defaults={infinite:!1,effect:"slide",wrapper:{classes:"",onClick:"toggleUI"},slides:{offset:0,scale:"fit",load:"near-visible",visible:1},media:{}},s[e].configuration={transitionDuration:400},s[e].constants={},s[e].debug=function(){},s[e].deprecated=function(s,i){"undefined"!=typeof console&&"undefined"!=typeof console.warn&&console.warn(e+": "+s+" is deprecated, use "+i+" instead.")},s[e].effects={slide:function(s){this.nodes.$sldr.css("left",s)},fade:function(i){r.transitionend(this.nodes.$sldr,function(){s(this).css("left",i).css("opacity",1)},this.conf.transitionDuration),this.nodes.$sldr.css("opacity",0)}},s[e].version=n,s[e].media={},s[e].addons=[],s[e].ui=[]}}(jQuery);
14
- /*
15
- * jQuery Touch Optimized Sliders "R"Us
16
- * Autoplay addon
17
- *
18
- * Copyright (c) Fred Heusschen
19
- * www.frebsite.nl
20
*/
21
- !function(t){var o,s,u,a,i,n="tosrus",e="autoplay",p=!1;t[n].prototype["_addon_"+e]=function(){p||(o=t[n]._c,s=t[n]._d,u=t[n]._e,a=t[n]._f,i=t[n]._g,u.add("mouseover mouseout"),p=!0);var r=this,y=this.opts[e];y.play&&(this.opts.infinite=!0,this.nodes.$wrpr.on(u.sliding,function(){r.autoplay()}),y.pauseOnHover&&this.nodes.$wrpr.on(u.mouseover,function(){r.autostop()}).on(u.mouseout,function(){r.autoplay()}),this.autoplay())},t[n].prototype.autoplay=function(){var t=this;this.autostop(),this.vars.autoplay=setTimeout(function(){t.next()},this.opts[e].timeout)},t[n].prototype.autostop=function(){this.vars.autoplay&&clearTimeout(this.vars.autoplay)},t[n].defaults[e]={play:!1,timeout:4e3,pauseOnHover:!1},t[n].addons.push(e)}(jQuery);
22
- /*
23
- * jQuery Touch Optimized Sliders "R"Us
24
- * Buttons addon
25
- *
26
- * Copyright (c) Fred Heusschen
27
- * www.frebsite.nl
28
*/
29
- !function(s){function e(e,n){return s('<a class="'+t[e]+n+'" href="#"><span></span></a>')}function n(s,e,n,t){e.on(o.click,function(e){e.preventDefault(),e.stopPropagation(),s.trigger(o[n],[t])})}var t,i,o,d,p,l="tosrus",r="buttons",a=!1;s[l].prototype["_addon_"+r]=function(){a||(t=s[l]._c,i=s[l]._d,o=s[l]._e,d=s[l]._f,p=s[l]._g,t.add("prev next close disabled"),a=!0);var u=this,h=this.opts[r];this.nodes.$prev=null,this.nodes.$next=null,this.nodes.$clse=null,("boolean"==typeof h||"string"==typeof h&&"inline"==h)&&(h={prev:h,next:h}),"undefined"==typeof h.close&&(h.close=this.vars.fixed),this.nodes.$slides.length<2&&(h.prev=!1,h.next=!1),s.each({prev:"prev",next:"next",close:"clse"},function(i,d){h[i]&&("string"==typeof h[i]&&"inline"==h[i]?u.vars.fixed&&"close"!=i&&u.nodes.$slides.on(o.loading,function(){var o=e(i," "+t.inline)["prev"==i?"prependTo":"appendTo"](this);n(u.nodes.$wrpr,o,i,1),u.opts.infinite||("prev"==i&&s(this).is(":first-child")||"next"==i&&s(this).is(":last-child"))&&o.addClass(t.disabled)}):("string"==typeof h[i]&&(h[i]=s(h[i])),u.nodes["quot;+d]=h[i]instanceof s?h[i]:e(i,"").appendTo(u.nodes.$wrpr),n(u.nodes.$wrpr,u.nodes["quot;+d],i,null)))}),this.opts.infinite||(this.updateButtons(),this.nodes.$wrpr.on(o.sliding,function(){u.updateButtons()}))},s[l].prototype.updateButtons=function(){this.nodes.$prev&&this.nodes.$prev[(this.slides.index<1?"add":"remove")+"Class"](t.disabled),this.nodes.$next&&this.nodes.$next[(this.slides.index>=this.slides.total-this.slides.visible?"add":"remove")+"Class"](t.disabled)},s[l].defaults[r]={prev:!s[l].support.touch,next:!s[l].support.touch},s[l].addons.push(r),s[l].ui.push("prev"),s[l].ui.push("next"),s[l].ui.push("close")}(jQuery);
30
- /*
31
- * jQuery Touch Optimized Sliders "R"Us
32
- * Caption addon
33
- *
34
- * Copyright (c) Fred Heusschen
35
- * www.frebsite.nl
36
*/
37
- !function(t){var i,s,a,e,d,n="tosrus",r="caption",o=!1;t[n].prototype["_addon_"+r]=function(){o||(i=t[n]._c,s=t[n]._d,a=t[n]._e,e=t[n]._f,d=t[n]._g,i.add("caption uibg"),s.add("caption"),o=!0);var p=this,c=this.opts[r];if(c.add){c.attributes=c.attributes||[],"string"==typeof c.target&&(c.target=t(c.target)),c.target instanceof t?this.nodes.$capt=c.target:(this.nodes.$capt=t('<div class="'+i.caption+'" />').appendTo(this.nodes.$wrpr),this.nodes.$uibg||(this.nodes.$uibg=t('<div class="'+i.uibg+'" />').prependTo(this.nodes.$wrpr)));for(var h=0,l=this.slides.visible;l>h;h++)t('<div class="'+i.caption+"-"+h+'" />').css("width",this.opts.slides.width+(this.slides.widthPercentage?"%":"px")).appendTo(this.nodes.$capt);this.nodes.$slides.each(function(){var i=t(this),a=p.vars.fixed?i.data(s.anchor):i.children();i.data(s.caption,"");for(var e=0,d=c.attributes.length;d>e;e++){var n=a.attr(c.attributes[e]);if(n&&n.length){i.data(s.caption,n);break}}}),this.nodes.$wrpr.on(a.sliding,function(){for(var t=0,i=p.slides.visible;i>t;t++)p.nodes.$capt.children().eq(t).html(p.nodes.$sldr.children().eq(p.slides.index+t).data(s.caption)||"")})}},t[n].defaults[r]={add:!1,target:null,attributes:["title","alt"]},t[n].addons.push(r),t[n].ui.push("caption")}(jQuery);
38
- /*
39
- * jQuery Touch Optimized Sliders "R"Us
40
- * Drag addon
41
- *
42
- * Copyright (c) Fred Heusschen
43
- * www.frebsite.nl
44
*/
45
- !function(e){if("function"==typeof Hammer){var n,s,t,i,r,a="tosrus",o="drag",d=!1;e[a].prototype["_addon_"+o]=function(){d||(n=e[a]._c,s=e[a]._d,t=e[a]._e,i=e[a]._f,r=e[a]._g,d=!0);var l=this;if(this.opts[o]&&"slide"==this.opts.effect){if(Hammer.VERSION<2)return e[a].deprecated("Older version of the Hammer library","version 2 or newer"),void 0;if(this.nodes.$slides.length>1){var f=0,p=!1,h=!1,c=new Hammer(this.nodes.$wrpr[0]);c.on("panstart panleft panright panend swipeleft swiperight",function(e){e.preventDefault()}).on("panstart",function(){l.nodes.$sldr.addClass(n.noanimation)}).on("panleft panright",function(e){switch(f=e.deltaX,h=!1,e.direction){case 2:p="left";break;case 4:p="right";break;default:p=!1}("left"==p&&l.slides.index+l.slides.visible>=l.slides.total||"right"==p&&0==l.slides.index)&&(f/=2.5),l.nodes.$sldr.css("margin-left",Math.round(f))}).on("swipeleft swiperight",function(){h=!0}).on("panend",function(){if(l.nodes.$sldr.removeClass(n.noanimation).addClass(n.fastanimation),i.transitionend(l.nodes.$sldr,function(){l.nodes.$sldr.removeClass(n.fastanimation)},l.conf.transitionDuration/2),l.nodes.$sldr.css("margin-left",0),"left"==p||"right"==p){if(h)var e=l.slides.visible;else var s=l.nodes.$slides.first().width(),e=Math.floor((Math.abs(f)+s/2)/s);e>0&&l.nodes.$wrpr.trigger(t["left"==p?"next":"prev"],[e])}p=!1})}}},e[a].defaults[o]=e[a].support.touch,e[a].addons.push(o)}}(jQuery);
46
- /*
47
- * jQuery Touch Optimized Sliders "R"Us
48
- * Keys addon
49
- *
50
- * Copyright (c) Fred Heusschen
51
- * www.frebsite.nl
52
*/
53
- !function(e){var t,o,n,s,a,r="tosrus",p="keys",c=!1;e[r].prototype["_addon_"+p]=function(){c||(t=e[r]._c,o=e[r]._d,n=e[r]._e,s=e[r]._f,a=e[r]._g,n.add("keyup"),c=!0);var i=this,d=this.opts[p];if("boolean"==typeof d&&d&&(d={prev:!0,next:!0,close:!0}),e.isPlainObject(d)){for(var f in e[r].constants[p])"boolean"==typeof d[f]&&d[f]&&(d[f]=e[r].constants[p][f]);this.nodes.$slides.length<2&&(d.prev=!1,d.next=!1),e(document).on(n.keyup,function(e){if(i.vars.opened){var t=!1;switch(e.keyCode){case d.prev:t=n.prev;break;case d.next:t=n.next;break;case d.close:t=n.close}t&&(e.preventDefault(),e.stopPropagation(),i.nodes.$wrpr.trigger(t))}})}},e[r].defaults[p]=!1,e[r].constants[p]={prev:37,next:39,close:27},e[r].addons.push(p)}(jQuery);
54
- /*
55
- * jQuery Touch Optimized Sliders "R"Us
56
- * Pagination addon
57
- *
58
- * Copyright (c) Fred Heusschen
59
- * www.frebsite.nl
60
*/
61
- !function(t){var e,i,n,s,a,r="tosrus",o="pagination",d=!1;t[r].prototype["_addon_"+o]=function(){d||(e=t[r]._c,i=t[r]._d,n=t[r]._e,s=t[r]._f,a=t[r]._g,e.add("pagination selected uibg bullets thumbnails"),d=!0);var u=this,l=this.opts[o];if(this.nodes.$slides.length<2&&(l.add=!1),l.add){if("string"==typeof l.target&&(l.target=t(l.target)),l.target instanceof t?this.nodes.$pagr=l.target:(this.nodes.$pagr=t('<div class="'+e.pagination+" "+e[l.type]+'" />').appendTo(this.nodes.$wrpr),this.nodes.$uibg||(this.nodes.$uibg=t('<div class="'+e.uibg+'" />').prependTo(this.nodes.$wrpr))),"function"!=typeof l.anchorBuilder)switch(l.type){case"thumbnails":var h='<a href="#" style="background-image: url(',p=');"></a>';l.anchorBuilder=this.vars.fixed?function(){return h+t(this).data(i.anchor).attr("href")+p}:function(){return h+t(this).find("img").attr("src")+p};break;case"bullets":default:l.anchorBuilder=function(){return'<a href="#"></a>'}}this.nodes.$slides.each(function(e){t(l.anchorBuilder.call(this,e+1)).appendTo(u.nodes.$pagr).on(n.click,function(t){t.preventDefault(),t.stopPropagation(),u.nodes.$wrpr.trigger(n.slideTo,[e])})}),this.updatePagination(),this.nodes.$wrpr.on(n.sliding,function(){u.updatePagination()})}},t[r].prototype.updatePagination=function(){this.nodes.$pagr&&this.nodes.$pagr.children().removeClass(e.selected).eq(this.slides.index).addClass(e.selected)},t[r].defaults[o]={add:!1,type:"bullets",target:null,anchorBuilder:null},t[r].addons.push(o),t[r].ui.push("pagination"),t[r].ui.push("bullets"),t[r].ui.push("thumbnails")}(jQuery);
62
- /*
63
- * jQuery Touch Optimized Sliders "R"Us
64
- * HTML media
65
- *
66
- * Copyright (c) Fred Heusschen
67
- * www.frebsite.nl
68
*/
69
- !function(i){var e="tosrus",n="html";i[e].media[n]={filterAnchors:function(e){var n=e.attr("href");return"#"==n.slice(0,1)&&i(n).is("div")},initAnchors:function(n,t){i('<div class="'+i[e]._c("html")+'" />').append(i(t)).appendTo(n),n.removeClass(i[e]._c.loading).trigger(i[e]._e.loaded)},filterSlides:function(i){return i.is("div")},initSlides:function(){}},i[e].defaults.media[n]={}}(jQuery);
70
- /*
71
- * jQuery Touch Optimized Sliders "R"Us
72
- * Images media
73
- *
74
- * Copyright (c) Fred Heusschen
75
- * www.frebsite.nl
76
*/
77
- !function(i){var e="tosrus",n="image";i[e].media[n]={filterAnchors:function(e){return i.inArray(e.attr("href").toLowerCase().split(".").pop().split("?")[0],["jpg","jpe","jpeg","gif","png"])>-1},initAnchors:function(n,r){i('<img border="0" />').on(i[e]._e.load,function(r){r.stopPropagation(),n.removeClass(i[e]._c.loading).trigger(i[e]._e.loaded)}).appendTo(n).attr("src",r)},filterSlides:function(i){return i.is("img")},initSlides:function(){}},i[e].defaults.media[n]={}}(jQuery);
78
- /*
79
- * jQuery Touch Optimized Sliders "R"Us
80
- * Vimeo media
81
- *
82
- * Copyright (c) Fred Heusschen
83
- * www.frebsite.nl
84
*/
85
- !function(i){function t(t){function l(){f.length&&(f.attr("src",""),f.attr("src",h))}c||(a=i[s]._c,e=i[s]._d,o=i[s]._e,r=i[s]._f,n=i[s]._g,e.add("ratio maxWidth maxHeight"),c=!0);var f=t.children(),m=t.data(i[s]._d.anchor)||i(),h=f.attr("src"),u=m.data(e.ratio)||this.opts[d].ratio,g=m.data(e.maxWidth)||this.opts[d].maxWidth,p=m.data(e.maxHeight)||this.opts[d].maxHeight;t.removeClass(a.loading).trigger(o.loaded).on(o.loading,function(){r.resizeRatio(f,t,g,p,u)}),this.nodes.$wrpr.on(o.sliding,function(){l()}).on(o.closing,function(){l()}),n.$wndw.on(o.resize,function(){r.resizeRatio(f,t,g,p,u)})}var a,e,o,r,n,s="tosrus",d="vimeo",c=!1;i[s].media[d]={filterAnchors:function(i){return i.attr("href").toLowerCase().indexOf("vimeo.com/")>-1},initAnchors:function(a,e){var o=this._uniqueID();e=e.split("vimeo.com/")[1].split("?")[0]+"?api=1&player_id="+o,i('<iframe id="'+o+'" src="http://player.vimeo.com/video/'+e+'" frameborder="0" allowfullscreen />').appendTo(a),t.call(this,a)},filterSlides:function(i){return i.is("iframe")&&i.attr("src")?i.attr("src").toLowerCase().indexOf("vimeo.com/video/")>-1:!1},initSlides:function(i){t.call(this,i)}},i[s].defaults.media[d]={},i[s].defaults[d]={ratio:16/9,maxWidth:!1,maxHeight:!1}}(jQuery);
86
- /*
87
- * jQuery Touch Optimized Sliders "R"Us
88
- * Youtube media
89
- *
90
- * Copyright (c) Fred Heusschen
91
- * www.frebsite.nl
92
*/
93
- !function(t){function e(e){function u(t){l.length&&l[0].contentWindow.postMessage('{ "event": "command", "func": "'+t+'Video" }',"*")}c||(i=t[s]._c,o=t[s]._d,a=t[s]._e,n=t[s]._f,r=t[s]._g,o.add("ratio maxWidth maxHeight"),c=!0);var l=e.children(),m=e.data(t[s]._d.anchor)||t(),f=m.data(o.ratio)||this.opts[d].ratio,h=m.data(o.maxWidth)||this.opts[d].maxWidth,p=m.data(o.maxHeight)||this.opts[d].maxHeight;e.removeClass(i.loading).trigger(a.loaded).on(a.loading,function(){n.resizeRatio(l,e,h,p,f)}),this.nodes.$wrpr.on(a.sliding,function(){u("pause")}).on(a.closing,function(){u("stop")}),r.$wndw.on(a.resize,function(){n.resizeRatio(l,e,h,p,f)})}var i,o,a,n,r,s="tosrus",d="youtube",c=!1;t[s].media[d]={filterAnchors:function(t){return t.attr("href").toLowerCase().indexOf("youtube.com/watch?v=")>-1},initAnchors:function(i,o){var a=o;o=o.split("?v=")[1].split("&")[0],this.opts[d].imageLink?(o="http://img.youtube.com/vi/"+o+"/0.jpg",t('<a href="'+a+'" class="'+t[s]._c("play")+'" target="_blank" />').appendTo(i),t('<img border="0" />').on(t[s]._e.load,function(e){e.stopPropagation(),i.removeClass(t[s]._c.loading).trigger(t[s]._e.loaded)}).appendTo(i).attr("src",o)):(t('<iframe src="http://www.youtube.com/embed/'+o+'?enablejsapi=1" frameborder="0" allowfullscreen />').appendTo(i),e.call(this,i))},filterSlides:function(t){return t.is("iframe")&&t.attr("src")?t.attr("src").toLowerCase().indexOf("youtube.com/embed/")>-1:!1},initSlides:function(t){e.call(this,t)}},t[s].defaults.media[d]={},t[s].defaults[d]={ratio:16/9,maxWidth:!1,maxHeight:!1,imageLink:t[s].support.touch}}(jQuery);
1
+ /*
2
+ * jQuery Touch Optimized Sliders "R"Us 2.5.0
3
+ *
4
+ * Copyright (c) Fred Heusschen
5
+ * www.frebsite.nl
6
+ *
7
+ * Plugin website:
8
+ * tosrus.frebsite.nl
9
+ *
10
+ * Licensed under the MIT license.
11
+ * http://en.wikipedia.org/wiki/MIT_License
12
*/
13
+ !function(t){function i(){o=function(t){return s+"-"+t},a=function(t){return s+"-"+t},r=function(t){return t+"."+s},t.each([o,a,r],function(t,i){i.add=function(t){t=t.split(" ");for(var e in t)i[t[e]]=i(t[e])}}),o.add("touch desktop scale-1 scale-2 scale-3 wrapper opened opening fixed inline hover slider slide loading noanimation fastanimation"),a.add("slide anchor"),r.add("open opening close closing prev next slideTo sliding click pinch scroll resize orientationchange load loading loaded transitionend webkitTransitionEnd"),d={complObject:function(i,e){return t.isPlainObject(i)||(i=e),i},complBoolean:function(t,i){return"boolean"!=typeof t&&(t=i),t},complNumber:function(i,e){return t.isNumeric(i)||(i=e),i},complString:function(t,i){return"string"!=typeof t&&(t=i),t},isPercentage:function(t){return"string"==typeof t&&"%"==t.slice(-1)},getPercentage:function(t){return parseInt(t.slice(0,-1))},resizeRatio:function(t,i,e,s,n){if(i.is(":visible")){var o=i.width(),a=i.height();e&&o>e&&(o=e),s&&a>s&&(a=s),n>o/a?a=o/n:o=a*n,t.width(o).height(a)}},transitionend:function(t,i,e){var s=!1,n=function(){s||i.call(t[0]),s=!0};t.one(r.transitionend,n),t.one(r.webkitTransitionEnd,n),setTimeout(n,1.1*e)},setViewportScale:function(){if(l.viewportScale){var t=l.viewportScale.getScale();"undefined"!=typeof t&&(t=1/t,l.$body.removeClass(o["scale-1"]).removeClass(o["scale-2"]).removeClass(o["scale-3"]).addClass(o["scale-"+Math.max(Math.min(Math.round(t),3),1)]))}}},l={$wndw:t(window),$html:t("html"),$body:t("body"),scrollPosition:0,viewportScale:null,viewportScaleInterval:null},l.$body.addClass(t[e].support.touch?o.touch:o.desktop),l.$wndw.on(r.scroll,function(t){l.$body.hasClass(o.opened)&&(window.scrollTo(0,l.scrollPosition),t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}),!l.viewportScale&&t[e].support.touch&&"undefined"!=typeof FlameViewportScale&&(l.viewportScale=new FlameViewportScale,d.setViewportScale(),l.$wndw.on(r.orientationchange+" "+r.resize,function(t){l.viewportScaleInterval&&(clearTimeout(l.viewportScaleInterval),l.viewportScaleInterval=null),l.viewportScaleInterval=setTimeout(function(){d.setViewportScale()},500)})),t[e]._c=o,t[e]._d=a,t[e]._e=r,t[e]._f=d,t[e]._g=l}var e="tosrus",s="tos",n="2.5.0";if(!t[e]){var o={},a={},r={},d={},l={};t[e]=function(t,i,e){return this.$node=t,this.opts=i,this.conf=e,this.vars={},this.nodes={},this.slides={},this._init(),this},t[e].prototype={_init:function(){var i=this;this._complementOptions(),this.vars.fixed="window"==this.opts.wrapper.target,this.nodes.$wrpr=t('<div class="'+o.wrapper+'" />'),this.nodes.$sldr=t('<div class="'+o.slider+'" />').appendTo(this.nodes.$wrpr),this.nodes.$wrpr.addClass(this.vars.fixed?o.fixed:o.inline).addClass(o("fx-"+this.opts.effect)).addClass(o(this.opts.slides.scale)).addClass(this.opts.wrapper.classes),this.nodes.$wrpr.on(r.open+" "+r.close+" "+r.prev+" "+r.next+" "+r.slideTo,function(t){arguments=Array.prototype.slice.call(arguments);var t=arguments.shift(),e=t.type;t.stopPropagation(),"function"==typeof i[e]&&i[e].apply(i,arguments)}).on(r.opening+" "+r.closing+" "+r.sliding+" "+r.loading+" "+r.loaded,function(t){t.stopPropagation()}).on(r.click,function(e){switch(e.stopPropagation(),i.opts.wrapper.onClick){case"toggleUI":i.nodes.$wrpr.toggleClass(o.hover);break;case"close":t(e.target).is("img")||i.close()}}),this.nodes.$anchors=this._initAnchors(),this.nodes.$slides=this._initSlides(),this.slides.total=this.nodes.$slides.length,this.slides.visible=this.opts.slides.visible,this.slides.index=0,this.vars.opened=!0;for(var s=0;s<t[e].addons.length;s++)t.isFunction(this["_addon_"+t[e].addons[s]])&&this["_addon_"+t[e].addons[s]]();for(var n=0;n<t[e].ui.length;n++)this.nodes.$wrpr.find("."+o[t[e].ui[n]]).length&&this.nodes.$wrpr.addClass(o("has-"+t[e].ui[n]));"close"==this.opts.wrapper.onClick&&(this.nodes.$uibg||t().add(this.nodes.$capt||t()).add(this.nodes.$pagr||t()).on(r.click,function(t){t.stopPropagation()})),this.vars.fixed?(this.nodes.$wrpr.appendTo(l.$body),this.close(!0)):(this.nodes.$wrpr.appendTo(this.opts.wrapper.target),this.opts.show?(this.vars.opened=!1,this.open(0,!0)):this.close(!0))},open:function(i,e){var s=this;this.vars.opened||(this.vars.fixed&&(l.scrollPosition=l.$wndw.scrollTop(),l.$body.addClass(o.opened),d.setViewportScale()),e?this.nodes.$wrpr.addClass(o.opening).trigger(r.opening,[i,e]):setTimeout(function(){s.nodes.$wrpr.addClass(o.opening).trigger(r.opening,[i,e])},5),this.nodes.$wrpr.addClass(o.hover).addClass(o.opened)),this.vars.opened=!0,this._loadContents(),t.isNumeric(i)&&(e=e||!this.vars.opened,this.slideTo(i,e))},close:function(i){this.vars.opened&&(this.vars.fixed&&l.$body.removeClass(o.opened),i?this.nodes.$wrpr.removeClass(o.opened):d.transitionend(this.nodes.$wrpr,function(){t(this).removeClass(o.opened)},this.conf.transitionDuration),this.nodes.$wrpr.removeClass(o.hover).removeClass(o.opening).trigger(r.closing,[this.slides.index,i])),this.vars.opened=!1},prev:function(i,e){t.isNumeric(i)||(i=this.opts.slides.slide),this.slideTo(this.slides.index-i,e)},next:function(i,e){t.isNumeric(i)||(i=this.opts.slides.slide),this.slideTo(this.slides.index+i,e)},slideTo:function(i,s){if(!this.vars.opened)return!1;if(!t.isNumeric(i))return!1;var n=!0;if(0>i){var a=0==this.slides.index;this.opts.infinite?i=a?this.slides.total-this.slides.visible:0:(i=0,a&&(n=!1))}if(i+this.slides.visible>this.slides.total){var l=this.slides.index+this.slides.visible>=this.slides.total;this.opts.infinite?i=l?0:this.slides.total-this.slides.visible:(i=this.slides.total-this.slides.visible,l&&(n=!1))}if(this.slides.index=i,this._loadContents(),n){var p=0-this.slides.index*this.opts.slides.width+this.opts.slides.offset;this.slides.widthPercentage&&(p+="%"),s&&(this.nodes.$sldr.addClass(o.noanimation),d.transitionend(this.nodes.$sldr,function(){t(this).removeClass(o.noanimation)},5));for(var c in t[e].effects)if(c==this.opts.effect){t[e].effects[c].call(this,p,s);break}this.nodes.$wrpr.trigger(r.sliding,[i,s])}},_initAnchors:function(){var i=this,s=t();if(this.$node.is("a"))for(var n in t[e].media)s=s.add(this.$node.filter(function(){if(i.opts.media[n]&&i.opts.media[n].filterAnchors){var s=i.opts.media[n].filterAnchors.call(i,t(this));if("boolean"==typeof s)return s}return t[e].media[n].filterAnchors.call(i,t(this))}));return s},_initSlides:function(){return this[this.$node.is("a")?"_initSlidesFromAnchors":"_initSlidesFromContent"](),this.nodes.$sldr.children().css("width",this.opts.slides.width+(this.slides.widthPercentage?"%":"px"))},_initSlidesFromAnchors:function(){var i=this;this.nodes.$anchors.each(function(e){var s=t(this),n=t('<div class="'+o.slide+" "+o.loading+'" />').data(a.anchor,s).appendTo(i.nodes.$sldr);s.data(a.slide,n).on(r.click,function(t){t.preventDefault(),i.open(e)})})},_initSlidesFromContent:function(){var i=this;this.$node.children().each(function(){var s=t(this);t('<div class="'+o.slide+'" />').append(s).appendTo(i.nodes.$sldr);for(var n in t[e].media){var a=null;if(i.opts.media[n]&&i.opts.media[n].filterSlides&&(a=i.opts.media[n].filterSlides.call(i,s)),"boolean"!=typeof a&&(a=t[e].media[n].filterSlides.call(i,s)),a){t[e].media[n].initSlides.call(i,s),s.parent().addClass(o(n));break}}})},_loadContents:function(){var t=this;switch(this.opts.slides.load){case"all":this._loadContent(0,this.slides.total);break;case"visible":this._loadContent(this.slides.index,this.slides.index+this.slides.visible);break;case"near-visible":default:this._loadContent(this.slides.index,this.slides.index+this.slides.visible),setTimeout(function(){t._loadContent(t.slides.index-t.slides.visible,t.slides.index),t._loadContent(t.slides.index+t.slides.visible,t.slides.index+2*t.slides.visible)},this.conf.transitionDuration)}},_loadContent:function(i,s){var n=this;this.nodes.$slides.slice(i,s).each(function(){var i=t(this);if(0==i.children().length){var s=i.data(a.anchor),d=s.attr("href");for(var l in t[e].media){var p=null;if(n.opts.media[l]&&n.opts.media[l].filterAnchors&&(p=n.opts.media[l].filterAnchors.call(n,s)),"boolean"!=typeof p&&(p=t[e].media[l].filterAnchors.call(n,s)),p){t[e].media[l].initAnchors.call(n,i,d),i.addClass(o(l));break}}i.trigger(r.loading,[i.data(a.anchor)])}})},_complementOptions:function(){if("undefined"==typeof this.opts.wrapper.target&&(this.opts.wrapper.target=this.$node.is("a")?"window":this.$node),"window"!=this.opts.wrapper.target&&"string"==typeof this.opts.wrapper.target&&(this.opts.wrapper.target=t(this.opts.wrapper.target)),this.opts.show=d.complBoolean(this.opts.show,"window"!=this.opts.wrapper.target),t.isNumeric(this.opts.slides.width))this.slides.widthPercentage=!1,this.opts.slides.visible=d.complNumber(this.opts.slides.visible,1);else{var i=d.isPercentage(this.opts.slides.width)?d.getPercentage(this.opts.slides.width):!1;this.slides.widthPercentage=!0,this.opts.slides.visible=d.complNumber(this.opts.slides.visible,i?Math.floor(100/i):1),this.opts.slides.width=i?i:Math.ceil(1e4/this.opts.slides.visible)/100}this.opts.slides.slide=d.complNumber(this.opts.slides.slide,this.opts.slides.visible),this.opts.slides.offset=d.isPercentage(this.opts.slides.offset)?d.getPercentage(this.opts.slides.offset):d.complNumber(this.opts.slides.offset,0)},_uniqueID:function(){return this.__uniqueID||(this.__uniqueID=0),this.__uniqueID++,o("uid-"+this.__uniqueID)}},t.fn[e]=function(s,n,o,a){l.$wndw||i(),s=t.extend(!0,{},t[e].defaults,s),s=t.extend(!0,{},s,t[e].support.touch?o:n),a=t.extend(!0,{},t[e].configuration,a);var r=new t[e](this,s,a);return this.data(e,r),r.nodes.$wrpr},t[e].support={touch:"ontouchstart"in window.document||navigator.msMaxTouchPoints},t[e].defaults={infinite:!1,effect:"slide",wrapper:{classes:"",onClick:"toggleUI"},slides:{offset:0,scale:"fit",load:"near-visible",visible:1},media:{}},t[e].configuration={transitionDuration:400},t[e].constants={},t[e].debug=function(t){},t[e].deprecated=function(t,i){"undefined"!=typeof console&&"undefined"!=typeof console.warn&&console.warn(e+": "+t+" is deprecated, use "+i+" instead.")},t[e].effects={slide:function(t){this.nodes.$sldr.css("left",t)},fade:function(i){d.transitionend(this.nodes.$sldr,function(){t(this).css("left",i).css("opacity",1)},this.conf.transitionDuration),this.nodes.$sldr.css("opacity",0)}},t[e].version=n,t[e].media={},t[e].addons=[],t[e].ui=[]}}(jQuery),/*
14
+ * jQuery Touch Optimized Sliders "R"Us
15
+ * Autoplay addon
16
+ *
17
+ * Copyright (c) Fred Heusschen
18
+ * www.frebsite.nl
19
*/
20
+ function(t){var i,e,s,n,o,a="tosrus",r="autoplay",d=!1;t[a].prototype["_addon_"+r]=function(){d||(i=t[a]._c,e=t[a]._d,s=t[a]._e,n=t[a]._f,o=t[a]._g,s.add("mouseover mouseout"),d=!0);var l=this,p=this.opts[r];p.play&&(this.opts.infinite=!0,this.nodes.$wrpr.on(s.sliding,function(t){l.autoplay()}),p.pauseOnHover&&this.nodes.$wrpr.on(s.mouseover,function(t){l.autostop()}).on(s.mouseout,function(t){l.autoplay()}),this.autoplay())},t[a].prototype.autoplay=function(){var t=this;this.autostop(),this.vars.autoplay=setTimeout(function(){t.next()},this.opts[r].timeout)},t[a].prototype.autostop=function(){this.vars.autoplay&&clearTimeout(this.vars.autoplay)},t[a].defaults[r]={play:!1,timeout:4e3,pauseOnHover:!1},t[a].addons.push(r)}(jQuery),/*
21
+ * jQuery Touch Optimized Sliders "R"Us
22
+ * Buttons addon
23
+ *
24
+ * Copyright (c) Fred Heusschen
25
+ * www.frebsite.nl
26
*/
27
+ function(t){function i(i,e){return t('<a class="'+s[i]+e+'" href="#"><span></span></a>')}function e(t,i,e,s){i.on(o.click,function(i){i.preventDefault(),i.stopPropagation(),t.trigger(o[e],[s])})}var s,n,o,a,r,d="tosrus",l="buttons",p=!1;t[d].prototype["_addon_"+l]=function(){p||(s=t[d]._c,n=t[d]._d,o=t[d]._e,a=t[d]._f,r=t[d]._g,s.add("prev next close disabled"),p=!0);var c=this,h=this.opts[l];this.nodes.$prev=null,this.nodes.$next=null,this.nodes.$clse=null,("boolean"==typeof h||"string"==typeof h&&"inline"==h)&&(h={prev:h,next:h}),"undefined"==typeof h.close&&(h.close=this.vars.fixed),this.nodes.$slides.length<2&&(h.prev=!1,h.next=!1),t.each({prev:"prev",next:"next",close:"clse"},function(n,a){h[n]&&("string"==typeof h[n]&&"inline"==h[n]?c.vars.fixed&&"close"!=n&&c.nodes.$slides.on(o.loading,function(o,a){var r=i(n," "+s.inline)["prev"==n?"prependTo":"appendTo"](this);e(c.nodes.$wrpr,r,n,1),c.opts.infinite||("prev"==n&&t(this).is(":first-child")||"next"==n&&t(this).is(":last-child"))&&r.addClass(s.disabled)}):("string"==typeof h[n]&&(h[n]=t(h[n])),c.nodes["quot;+a]=h[n]instanceof t?h[n]:i(n,"").appendTo(c.nodes.$wrpr),e(c.nodes.$wrpr,c.nodes["quot;+a],n,null)))}),this.opts.infinite||(this.updateButtons(),this.nodes.$wrpr.on(o.sliding,function(t,i,e){c.updateButtons()}))},t[d].prototype.updateButtons=function(){this.nodes.$prev&&this.nodes.$prev[(this.slides.index<1?"add":"remove")+"Class"](s.disabled),this.nodes.$next&&this.nodes.$next[(this.slides.index>=this.slides.total-this.slides.visible?"add":"remove")+"Class"](s.disabled)},t[d].defaults[l]={prev:!t[d].support.touch,next:!t[d].support.touch},t[d].addons.push(l),t[d].ui.push("prev"),t[d].ui.push("next"),t[d].ui.push("close")}(jQuery),/*
28
+ * jQuery Touch Optimized Sliders "R"Us
29
+ * Caption addon
30
+ *
31
+ * Copyright (c) Fred Heusschen
32
+ * www.frebsite.nl
33
*/
34
+ function(t){var i,e,s,n,o,a="tosrus",r="caption",d=!1;t[a].prototype["_addon_"+r]=function(){d||(i=t[a]._c,e=t[a]._d,s=t[a]._e,n=t[a]._f,o=t[a]._g,i.add("caption uibg"),e.add("caption"),d=!0);var l=this,p=this.opts[r];if(p.add){p.attributes=p.attributes||[],"string"==typeof p.target&&(p.target=t(p.target)),p.target instanceof t?this.nodes.$capt=p.target:(this.nodes.$capt=t('<div class="'+i.caption+'" />').appendTo(this.nodes.$wrpr),this.nodes.$uibg||(this.nodes.$uibg=t('<div class="'+i.uibg+'" />').prependTo(this.nodes.$wrpr)));for(var c=0,h=this.slides.visible;h>c;c++)t('<div class="'+i.caption+"-"+c+'" />').css("width",this.opts.slides.width+(this.slides.widthPercentage?"%":"px")).appendTo(this.nodes.$capt);this.nodes.$slides.each(function(i){var s=t(this),n=l.vars.fixed?s.data(e.anchor):s.children();s.data(e.caption,"");for(var o=0,a=p.attributes.length;a>o;o++){var r=n.attr(p.attributes[o]);if(r&&r.length){s.data(e.caption,r);break}}}),this.nodes.$wrpr.on(s.sliding,function(t,i,s){for(var n=0,o=l.slides.visible;o>n;n++)l.nodes.$capt.children().eq(n).html(l.nodes.$sldr.children().eq(l.slides.index+n).data(e.caption)||"")})}},t[a].defaults[r]={add:!1,target:null,attributes:["title","alt","rel"]},t[a].addons.push(r),t[a].ui.push("caption")}(jQuery),/*
35
+ * jQuery Touch Optimized Sliders "R"Us
36
+ * Drag addon
37
+ *
38
+ * Copyright (c) Fred Heusschen
39
+ * www.frebsite.nl
40
*/
41
+ function(t){if("function"==typeof Hammer){var i,e,s,n,o,a="tosrus",r="drag",d=!1;t[a].prototype["_addon_"+r]=function(){d||(i=t[a]._c,e=t[a]._d,s=t[a]._e,n=t[a]._f,o=t[a]._g,d=!0);var l=this;if(this.opts[r]&&"slide"==this.opts.effect){if(Hammer.VERSION<2)return void t[a].deprecated("Older version of the Hammer library","version 2 or newer");if(this.nodes.$slides.length>1){var p=0,c=!1,h=!1,u=new Hammer(this.nodes.$wrpr[0]);u.on("panstart panleft panright panend swipeleft swiperight",function(t){t.preventDefault()}).on("panstart",function(t){l.nodes.$sldr.addClass(i.noanimation)}).on("panleft panright",function(t){switch(p=t.deltaX,h=!1,t.direction){case 2:c="left";break;case 4:c="right";break;default:c=!1}("left"==c&&l.slides.index+l.slides.visible>=l.slides.total||"right"==c&&0==l.slides.index)&&(p/=2.5),l.nodes.$sldr.css("margin-left",Math.round(p))}).on("swipeleft swiperight",function(t){h=!0}).on("panend",function(t){if(l.nodes.$sldr.removeClass(i.noanimation).addClass(i.fastanimation),n.transitionend(l.nodes.$sldr,function(){l.nodes.$sldr.removeClass(i.fastanimation)},l.conf.transitionDuration/2),l.nodes.$sldr.css("margin-left",0),"left"==c||"right"==c){if(h)var e=l.slides.visible;else var o=l.nodes.$slides.first().width(),e=Math.floor((Math.abs(p)+o/2)/o);e>0&&l.nodes.$wrpr.trigger(s["left"==c?"next":"prev"],[e])}c=!1})}}},t[a].defaults[r]=t[a].support.touch,t[a].addons.push(r)}}(jQuery),/*
42
+ * jQuery Touch Optimized Sliders "R"Us
43
+ * Keys addon
44
+ *
45
+ * Copyright (c) Fred Heusschen
46
+ * www.frebsite.nl
47
*/
48
+ function(t){var i,e,s,n,o,a="tosrus",r="keys",d=!1;t[a].prototype["_addon_"+r]=function(){d||(i=t[a]._c,e=t[a]._d,s=t[a]._e,n=t[a]._f,o=t[a]._g,s.add("keyup"),d=!0);var l=this,p=this.opts[r];if("boolean"==typeof p&&p&&(p={prev:!0,next:!0,close:!0}),t.isPlainObject(p)){for(var c in t[a].constants[r])"boolean"==typeof p[c]&&p[c]&&(p[c]=t[a].constants[r][c]);this.nodes.$slides.length<2&&(p.prev=!1,p.next=!1),t(document).on(s.keyup,function(t){if(l.vars.opened){var i=!1;switch(t.keyCode){case p.prev:i=s.prev;break;case p.next:i=s.next;break;case p.close:i=s.close}i&&(t.preventDefault(),t.stopPropagation(),l.nodes.$wrpr.trigger(i))}})}},t[a].defaults[r]=!1,t[a].constants[r]={prev:37,next:39,close:27},t[a].addons.push(r)}(jQuery),/*
49
+ * jQuery Touch Optimized Sliders "R"Us
50
+ * Pagination addon
51
+ *
52
+ * Copyright (c) Fred Heusschen
53
+ * www.frebsite.nl
54
*/
55
+ function(t){var i,e,s,n,o,a="tosrus",r="pagination",d=!1;t[a].prototype["_addon_"+r]=function(){d||(i=t[a]._c,e=t[a]._d,s=t[a]._e,n=t[a]._f,o=t[a]._g,i.add("pagination selected uibg bullets thumbnails"),d=!0);var l=this,p=this.opts[r];if(this.nodes.$slides.length<2&&(p.add=!1),p.add){if("string"==typeof p.target&&(p.target=t(p.target)),p.target instanceof t?this.nodes.$pagr=p.target:(this.nodes.$pagr=t('<div class="'+i.pagination+" "+i[p.type]+'" />').appendTo(this.nodes.$wrpr),this.nodes.$uibg||(this.nodes.$uibg=t('<div class="'+i.uibg+'" />').prependTo(this.nodes.$wrpr))),"function"!=typeof p.anchorBuilder)switch(p.type){case"thumbnails":var c='<a href="#" style="background-image: url(\'',h="');\"></a>";this.vars.fixed?p.anchorBuilder=function(i){return c+t(this).data(e.anchor).attr("href")+h}:p.anchorBuilder=function(i){return c+t(this).find("img").attr("src")+h};break;case"bullets":default:p.anchorBuilder=function(t){return'<a href="#"></a>'}}this.nodes.$slides.each(function(i){t(p.anchorBuilder.call(this,i+1)).appendTo(l.nodes.$pagr).on(s.click,function(t){t.preventDefault(),t.stopPropagation(),l.nodes.$wrpr.trigger(s.slideTo,[i])})}),this.updatePagination(),this.nodes.$wrpr.on(s.sliding,function(t,i,e){l.updatePagination()})}},t[a].prototype.updatePagination=function(){this.nodes.$pagr&&this.nodes.$pagr.children().removeClass(i.selected).eq(this.slides.index).addClass(i.selected)},t[a].defaults[r]={add:!1,type:"bullets",target:null,anchorBuilder:null},t[a].addons.push(r),t[a].ui.push("pagination"),t[a].ui.push("bullets"),t[a].ui.push("thumbnails")}(jQuery),/*
56
+ * jQuery Touch Optimized Sliders "R"Us
57
+ * HTML media
58
+ *
59
+ * Copyright (c) Fred Heusschen
60
+ * www.frebsite.nl
61
*/
62
+ function(t){var i="tosrus",e="html";t[i].media[e]={filterAnchors:function(i){var e=i.attr("href");return"#"==e.slice(0,1)&&t(e).is("div")},initAnchors:function(e,s){t('<div class="'+t[i]._c("html")+'" />').append(t(s)).appendTo(e),e.removeClass(t[i]._c.loading).trigger(t[i]._e.loaded)},filterSlides:function(t){return t.is("div")},initSlides:function(t){}},t[i].defaults.media[e]={}}(jQuery),/*
63
+ * jQuery Touch Optimized Sliders "R"Us
64
+ * Images media
65
+ *
66
+ * Copyright (c) Fred Heusschen
67
+ * www.frebsite.nl
68
*/
69
+ function(t){var i="tosrus",e="image";t[i].media[e]={filterAnchors:function(i){return t.inArray(i.attr("href").toLowerCase().split(".").pop().split("?")[0],["jpg","jpe","jpeg","gif","png"])>-1},initAnchors:function(e,s){t('<img border="0" />').on(t[i]._e.load,function(s){s.stopPropagation(),e.removeClass(t[i]._c.loading).trigger(t[i]._e.loaded)}).appendTo(e).attr("src",s)},filterSlides:function(t){return t.is("img")},initSlides:function(t){}},t[i].defaults.media[e]={}}(jQuery),/*
70
+ * jQuery Touch Optimized Sliders "R"Us
71
+ * Vimeo media
72
+ *
73
+ * Copyright (c) Fred Heusschen
74
+ * www.frebsite.nl
75
*/
76
+ function(t){function i(i){function p(){c.length&&(c.attr("src",""),c.attr("src",u))}l||(e=t[r]._c,s=t[r]._d,n=t[r]._e,o=t[r]._f,a=t[r]._g,s.add("ratio maxWidth maxHeight"),l=!0);var c=i.children(),h=i.data(t[r]._d.anchor)||t(),u=c.attr("src"),f=h.data(s.ratio)||this.opts[d].ratio,g=h.data(s.maxWidth)||this.opts[d].maxWidth,v=h.data(s.maxHeight)||this.opts[d].maxHeight;i.removeClass(e.loading).trigger(n.loaded).on(n.loading,function(t){o.resizeRatio(c,i,g,v,f)}),this.nodes.$wrpr.on(n.sliding,function(t){p()}).on(n.opening,function(t){o.resizeRatio(c,i,g,v,f)}).on(n.closing,function(t){p()}),a.$wndw.on(n.resize,function(t){o.resizeRatio(c,i,g,v,f)})}var e,s,n,o,a,r="tosrus",d="vimeo",l=!1;t[r].media[d]={filterAnchors:function(t){return t.attr("href").toLowerCase().indexOf("vimeo.com/")>-1},initAnchors:function(e,s){var n=this._uniqueID();s=s.split("vimeo.com/")[1].split("?")[0]+"?api=1&player_id="+n,t('<iframe id="'+n+'" src="http://player.vimeo.com/video/'+s+'" frameborder="0" allowfullscreen />').appendTo(e),i.call(this,e)},filterSlides:function(t){return t.is("iframe")&&t.attr("src")?t.attr("src").toLowerCase().indexOf("vimeo.com/video/")>-1:!1},initSlides:function(t){i.call(this,t)}},t[r].defaults.media[d]={},t[r].defaults[d]={ratio:16/9,maxWidth:!1,maxHeight:!1}}(jQuery),/*
77
+ * jQuery Touch Optimized Sliders "R"Us
78
+ * Youtube media
79
+ *
80
+ * Copyright (c) Fred Heusschen
81
+ * www.frebsite.nl
82
*/
83
+ function(t){function i(i){function p(t){c.length&&c[0].contentWindow.postMessage('{ "event": "command", "func": "'+t+'Video" }',"*")}l||(e=t[r]._c,s=t[r]._d,n=t[r]._e,o=t[r]._f,a=t[r]._g,s.add("ratio maxWidth maxHeight"),l=!0);var c=i.children(),h=i.data(t[r]._d.anchor)||t(),u=h.data(s.ratio)||this.opts[d].ratio,f=h.data(s.maxWidth)||this.opts[d].maxWidth,g=h.data(s.maxHeight)||this.opts[d].maxHeight;i.removeClass(e.loading).trigger(n.loaded).on(n.loading,function(t){o.resizeRatio(c,i,f,g,u)}),this.nodes.$wrpr.on(n.sliding,function(t){p("pause")}).on(n.opening,function(t){o.resizeRatio(c,i,f,g,u)}).on(n.closing,function(t){p("stop")}),a.$wndw.on(n.resize,function(t){o.resizeRatio(c,i,f,g,u)})}var e,s,n,o,a,r="tosrus",d="youtube",l=!1;t[r].media[d]={filterAnchors:function(t){return t.attr("href").toLowerCase().indexOf("youtube.com/watch?v=")>-1},initAnchors:function(e,s){var n=s;s=s.split("?v=")[1].split("&")[0],this.opts[d].imageLink?(s="http://img.youtube.com/vi/"+s+"/0.jpg",t('<a href="'+n+'" class="'+t[r]._c("play")+'" target="_blank" />').appendTo(e),t('<img border="0" />').on(t[r]._e.load,function(i){i.stopPropagation(),e.removeClass(t[r]._c.loading).trigger(t[r]._e.loaded)}).appendTo(e).attr("src",s)):(t('<iframe src="http://www.youtube.com/embed/'+s+'?enablejsapi=1" frameborder="0" allowfullscreen />').appendTo(e),i.call(this,e))},filterSlides:function(t){return t.is("iframe")&&t.attr("src")?t.attr("src").toLowerCase().indexOf("youtube.com/embed/")>-1:!1},initSlides:function(t){i.call(this,t)}},t[r].defaults.media[d]={},t[r].defaults[d]={ratio:16/9,maxWidth:!1,maxHeight:!1,imageLink:t[r].support.touch}}(jQuery);
assets/tosrus/js/jquery.tosrus.min.js CHANGED
@@ -1,13 +1,13 @@
1
- /*
2
- * jQuery Touch Optimized Sliders "R"Us 2.4.2
3
- *
4
- * Copyright (c) Fred Heusschen
5
- * www.frebsite.nl
6
- *
7
- * Plugin website:
8
- * tosrus.frebsite.nl
9
- *
10
- * Licensed under the MIT license.
11
- * http://en.wikipedia.org/wiki/MIT_License
12
*/
13
- !function(s){function i(){o=function(s){return t+"-"+s},d=function(s){return t+"-"+s},a=function(s){return s+"."+t},s.each([o,d,a],function(s,i){i.add=function(s){s=s.split(" ");for(var e in s)i[s[e]]=i(s[e])}}),o.add("touch desktop scale-1 scale-2 scale-3 wrapper opened opening fixed inline hover slider slide loading noanimation fastanimation"),d.add("slide anchor"),a.add("open opening close closing prev next slideTo sliding click pinch scroll resize orientationchange load loading loaded transitionend webkitTransitionEnd"),r={complObject:function(i,e){return s.isPlainObject(i)||(i=e),i},complBoolean:function(s,i){return"boolean"!=typeof s&&(s=i),s},complNumber:function(i,e){return s.isNumeric(i)||(i=e),i},complString:function(s,i){return"string"!=typeof s&&(s=i),s},isPercentage:function(s){return"string"==typeof s&&"%"==s.slice(-1)},getPercentage:function(s){return parseInt(s.slice(0,-1))},resizeRatio:function(s,i,e,t,n){var o=i.width(),d=i.height();e&&o>e&&(o=e),t&&d>t&&(d=t),n>o/d?d=o/n:o=d*n,s.width(o).height(d)},transitionend:function(s,i,e){var t=!1,n=function(){t||i.call(s[0]),t=!0};s.one(a.transitionend,n),s.one(a.webkitTransitionEnd,n),setTimeout(n,1.1*e)},setViewportScale:function(){if(l.viewportScale){var s=l.viewportScale.getScale();"undefined"!=typeof s&&(s=1/s,l.$body.removeClass(o["scale-1"]).removeClass(o["scale-2"]).removeClass(o["scale-3"]).addClass(o["scale-"+Math.max(Math.min(Math.round(s),3),1)]))}}},l={$wndw:s(window),$html:s("html"),$body:s("body"),scrollPosition:0,viewportScale:null,viewportScaleInterval:null},l.$body.addClass(s[e].support.touch?o.touch:o.desktop),l.$wndw.on(a.scroll,function(s){l.$body.hasClass(o.opened)&&(window.scrollTo(0,l.scrollPosition),s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation())}),!l.viewportScale&&s[e].support.touch&&"undefined"!=typeof FlameViewportScale&&(l.viewportScale=new FlameViewportScale,r.setViewportScale(),l.$wndw.on(a.orientationchange+" "+a.resize,function(){l.viewportScaleInterval&&(clearTimeout(l.viewportScaleInterval),l.viewportScaleInterval=null),l.viewportScaleInterval=setTimeout(function(){r.setViewportScale()},500)})),s[e]._c=o,s[e]._d=d,s[e]._e=a,s[e]._f=r,s[e]._g=l}var e="tosrus",t="tos",n="2.4.2";if(!s[e]){var o={},d={},a={},r={},l={};s[e]=function(s,i,e){return this.$node=s,this.opts=i,this.conf=e,this.vars={},this.nodes={},this.slides={},this._init(),this},s[e].prototype={_init:function(){var i=this;this._complementOptions(),this.vars.fixed="window"==this.opts.wrapper.target,this.nodes.$wrpr=s('<div class="'+o.wrapper+'" />'),this.nodes.$sldr=s('<div class="'+o.slider+'" />').appendTo(this.nodes.$wrpr),this.nodes.$wrpr.addClass(this.vars.fixed?o.fixed:o.inline).addClass(o("fx-"+this.opts.effect)).addClass(o(this.opts.slides.scale)).addClass(this.opts.wrapper.classes),this.nodes.$wrpr.on(a.open+" "+a.close+" "+a.prev+" "+a.next+" "+a.slideTo,function(s){arguments=Array.prototype.slice.call(arguments);var s=arguments.shift(),e=s.type;s.stopPropagation(),"function"==typeof i[e]&&i[e].apply(i,arguments)}).on(a.opening+" "+a.closing+" "+a.sliding+" "+a.loading+" "+a.loaded,function(s){s.stopPropagation()}).on(a.click,function(e){switch(e.stopPropagation(),i.opts.wrapper.onClick){case"toggleUI":i.nodes.$wrpr.toggleClass(o.hover);break;case"close":s(e.target).is("img")||i.close()}}),this.nodes.$anchors=this._initAnchors(),this.nodes.$slides=this._initSlides(),this.slides.total=this.nodes.$slides.length,this.slides.visible=this.opts.slides.visible,this.slides.index=0,this.vars.opened=!0;for(var t=0;t<s[e].addons.length;t++)s.isFunction(this["_addon_"+s[e].addons[t]])&&this["_addon_"+s[e].addons[t]]();for(var n=0;n<s[e].ui.length;n++)this.nodes.$wrpr.find("."+o[s[e].ui[n]]).length&&this.nodes.$wrpr.addClass(o("has-"+s[e].ui[n]));"close"==this.opts.wrapper.onClick&&(this.nodes.$uibg||s().add(this.nodes.$capt||s()).add(this.nodes.$pagr||s()).on(a.click,function(s){s.stopPropagation()})),this.vars.fixed?(this.nodes.$wrpr.appendTo(l.$body),this.close(!0)):(this.nodes.$wrpr.appendTo(this.opts.wrapper.target),this.opts.show?(this.vars.opened=!1,this.open(0,!0)):this.close(!0))},open:function(i,e){var t=this;this.vars.opened||(this.vars.fixed&&(l.scrollPosition=l.$wndw.scrollTop(),l.$body.addClass(o.opened),r.setViewportScale()),e?this.nodes.$wrpr.addClass(o.opening).trigger(a.opening,[i,e]):setTimeout(function(){t.nodes.$wrpr.addClass(o.opening).trigger(a.opening,[i,e])},5),this.nodes.$wrpr.addClass(o.hover).addClass(o.opened)),this.vars.opened=!0,this._loadContents(),s.isNumeric(i)&&(e=e||!this.vars.opened,this.slideTo(i,e))},close:function(i){this.vars.opened&&(this.vars.fixed&&l.$body.removeClass(o.opened),i?this.nodes.$wrpr.removeClass(o.opened):r.transitionend(this.nodes.$wrpr,function(){s(this).removeClass(o.opened)},this.conf.transitionDuration),this.nodes.$wrpr.removeClass(o.hover).removeClass(o.opening).trigger(a.closing,[this.slides.index,i])),this.vars.opened=!1},prev:function(i,e){s.isNumeric(i)||(i=this.opts.slides.slide),this.slideTo(this.slides.index-i,e)},next:function(i,e){s.isNumeric(i)||(i=this.opts.slides.slide),this.slideTo(this.slides.index+i,e)},slideTo:function(i,t){if(!this.vars.opened)return!1;if(!s.isNumeric(i))return!1;var n=!0;if(0>i){var d=0==this.slides.index;this.opts.infinite?i=d?this.slides.total-this.slides.visible:0:(i=0,d&&(n=!1))}if(i+this.slides.visible>this.slides.total){var l=this.slides.index+this.slides.visible>=this.slides.total;this.opts.infinite?i=l?0:this.slides.total-this.slides.visible:(i=this.slides.total-this.slides.visible,l&&(n=!1))}if(this.slides.index=i,this._loadContents(),n){var h=0-this.slides.index*this.opts.slides.width+this.opts.slides.offset;this.slides.widthPercentage&&(h+="%"),t&&(this.nodes.$sldr.addClass(o.noanimation),r.transitionend(this.nodes.$sldr,function(){s(this).removeClass(o.noanimation)},5));for(var c in s[e].effects)if(c==this.opts.effect){s[e].effects[c].call(this,h,t);break}this.nodes.$wrpr.trigger(a.sliding,[i,t])}},_initAnchors:function(){var i=this,t=s();if(this.$node.is("a"))for(var n in s[e].media)t=t.add(this.$node.filter(function(){if(i.opts.media[n]&&i.opts.media[n].filterAnchors){var t=i.opts.media[n].filterAnchors.call(i,s(this));if("boolean"==typeof t)return t}return s[e].media[n].filterAnchors.call(i,s(this))}));return t},_initSlides:function(){return this[this.$node.is("a")?"_initSlidesFromAnchors":"_initSlidesFromContent"](),this.nodes.$sldr.children().css("width",this.opts.slides.width+(this.slides.widthPercentage?"%":"px"))},_initSlidesFromAnchors:function(){var i=this;this.nodes.$anchors.each(function(e){var t=s(this),n=s('<div class="'+o.slide+" "+o.loading+'" />').data(d.anchor,t).appendTo(i.nodes.$sldr);t.data(d.slide,n).on(a.click,function(s){s.preventDefault(),i.open(e)})})},_initSlidesFromContent:function(){var i=this;this.$node.children().each(function(){var t=s(this);s('<div class="'+o.slide+'" />').append(t).appendTo(i.nodes.$sldr);for(var n in s[e].media){var d=null;if(i.opts.media[n]&&i.opts.media[n].filterSlides&&(d=i.opts.media[n].filterSlides.call(i,t)),"boolean"!=typeof d&&(d=s[e].media[n].filterSlides.call(i,t)),d){s[e].media[n].initSlides.call(i,t),t.parent().addClass(o(n));break}}})},_loadContents:function(){var s=this;switch(this.opts.slides.load){case"all":this._loadContent(0,this.slides.total);break;case"visible":this._loadContent(this.slides.index,this.slides.index+this.slides.visible);break;case"near-visible":default:this._loadContent(this.slides.index,this.slides.index+this.slides.visible),setTimeout(function(){s._loadContent(s.slides.index-s.slides.visible,s.slides.index),s._loadContent(s.slides.index+s.slides.visible,s.slides.index+2*s.slides.visible)},this.conf.transitionDuration)}},_loadContent:function(i,t){var n=this;this.nodes.$slides.slice(i,t).each(function(){var i=s(this);if(0==i.children().length){var t=i.data(d.anchor),r=t.attr("href");for(var l in s[e].media){var h=null;if(n.opts.media[l]&&n.opts.media[l].filterAnchors&&(h=n.opts.media[l].filterAnchors.call(n,t)),"boolean"!=typeof h&&(h=s[e].media[l].filterAnchors.call(n,t)),h){s[e].media[l].initAnchors.call(n,i,r),i.addClass(o(l));break}}i.trigger(a.loading,[i.data(d.anchor)])}})},_complementOptions:function(){if("undefined"==typeof this.opts.wrapper.target&&(this.opts.wrapper.target=this.$node.is("a")?"window":this.$node),"window"!=this.opts.wrapper.target&&"string"==typeof this.opts.wrapper.target&&(this.opts.wrapper.target=s(this.opts.wrapper.target)),this.opts.show=r.complBoolean(this.opts.show,"window"!=this.opts.wrapper.target),s.isNumeric(this.opts.slides.width))this.slides.widthPercentage=!1,this.opts.slides.visible=r.complNumber(this.opts.slides.visible,1);else{var i=r.isPercentage(this.opts.slides.width)?r.getPercentage(this.opts.slides.width):!1;this.slides.widthPercentage=!0,this.opts.slides.visible=r.complNumber(this.opts.slides.visible,i?Math.floor(100/i):1),this.opts.slides.width=i?i:Math.ceil(1e4/this.opts.slides.visible)/100}this.opts.slides.slide=r.complNumber(this.opts.slides.slide,this.opts.slides.visible),this.opts.slides.offset=r.isPercentage(this.opts.slides.offset)?r.getPercentage(this.opts.slides.offset):r.complNumber(this.opts.slides.offset,0)},_uniqueID:function(){return this.__uniqueID||(this.__uniqueID=0),this.__uniqueID++,o("uid-"+this.__uniqueID)}},s.fn[e]=function(t,n,o,d){l.$wndw||i(),t=s.extend(!0,{},s[e].defaults,t),t=s.extend(!0,{},t,s[e].support.touch?o:n),d=s.extend(!0,{},s[e].configuration,d);var a=new s[e](this,t,d);return this.data(e,a),a.nodes.$wrpr},s[e].support={touch:"ontouchstart"in window.document||navigator.msMaxTouchPoints},s[e].defaults={infinite:!1,effect:"slide",wrapper:{classes:"",onClick:"toggleUI"},slides:{offset:0,scale:"fit",load:"near-visible",visible:1},media:{}},s[e].configuration={transitionDuration:400},s[e].constants={},s[e].debug=function(){},s[e].deprecated=function(s,i){"undefined"!=typeof console&&"undefined"!=typeof console.warn&&console.warn(e+": "+s+" is deprecated, use "+i+" instead.")},s[e].effects={slide:function(s){this.nodes.$sldr.css("left",s)},fade:function(i){r.transitionend(this.nodes.$sldr,function(){s(this).css("left",i).css("opacity",1)},this.conf.transitionDuration),this.nodes.$sldr.css("opacity",0)}},s[e].version=n,s[e].media={},s[e].addons=[],s[e].ui=[]}}(jQuery);
1
+ /*
2
+ * jQuery Touch Optimized Sliders "R"Us 2.5.0
3
+ *
4
+ * Copyright (c) Fred Heusschen
5
+ * www.frebsite.nl
6
+ *
7
+ * Plugin website:
8
+ * tosrus.frebsite.nl
9
+ *
10
+ * Licensed under the MIT license.
11
+ * http://en.wikipedia.org/wiki/MIT_License
12
*/
13
+ !function(s){function i(){o=function(s){return t+"-"+s},d=function(s){return t+"-"+s},a=function(s){return s+"."+t},s.each([o,d,a],function(s,i){i.add=function(s){s=s.split(" ");for(var e in s)i[s[e]]=i(s[e])}}),o.add("touch desktop scale-1 scale-2 scale-3 wrapper opened opening fixed inline hover slider slide loading noanimation fastanimation"),d.add("slide anchor"),a.add("open opening close closing prev next slideTo sliding click pinch scroll resize orientationchange load loading loaded transitionend webkitTransitionEnd"),r={complObject:function(i,e){return s.isPlainObject(i)||(i=e),i},complBoolean:function(s,i){return"boolean"!=typeof s&&(s=i),s},complNumber:function(i,e){return s.isNumeric(i)||(i=e),i},complString:function(s,i){return"string"!=typeof s&&(s=i),s},isPercentage:function(s){return"string"==typeof s&&"%"==s.slice(-1)},getPercentage:function(s){return parseInt(s.slice(0,-1))},resizeRatio:function(s,i,e,t,n){if(i.is(":visible")){var o=i.width(),d=i.height();e&&o>e&&(o=e),t&&d>t&&(d=t),n>o/d?d=o/n:o=d*n,s.width(o).height(d)}},transitionend:function(s,i,e){var t=!1,n=function(){t||i.call(s[0]),t=!0};s.one(a.transitionend,n),s.one(a.webkitTransitionEnd,n),setTimeout(n,1.1*e)},setViewportScale:function(){if(l.viewportScale){var s=l.viewportScale.getScale();"undefined"!=typeof s&&(s=1/s,l.$body.removeClass(o["scale-1"]).removeClass(o["scale-2"]).removeClass(o["scale-3"]).addClass(o["scale-"+Math.max(Math.min(Math.round(s),3),1)]))}}},l={$wndw:s(window),$html:s("html"),$body:s("body"),scrollPosition:0,viewportScale:null,viewportScaleInterval:null},l.$body.addClass(s[e].support.touch?o.touch:o.desktop),l.$wndw.on(a.scroll,function(s){l.$body.hasClass(o.opened)&&(window.scrollTo(0,l.scrollPosition),s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation())}),!l.viewportScale&&s[e].support.touch&&"undefined"!=typeof FlameViewportScale&&(l.viewportScale=new FlameViewportScale,r.setViewportScale(),l.$wndw.on(a.orientationchange+" "+a.resize,function(s){l.viewportScaleInterval&&(clearTimeout(l.viewportScaleInterval),l.viewportScaleInterval=null),l.viewportScaleInterval=setTimeout(function(){r.setViewportScale()},500)})),s[e]._c=o,s[e]._d=d,s[e]._e=a,s[e]._f=r,s[e]._g=l}var e="tosrus",t="tos",n="2.5.0";if(!s[e]){var o={},d={},a={},r={},l={};s[e]=function(s,i,e){return this.$node=s,this.opts=i,this.conf=e,this.vars={},this.nodes={},this.slides={},this._init(),this},s[e].prototype={_init:function(){var i=this;this._complementOptions(),this.vars.fixed="window"==this.opts.wrapper.target,this.nodes.$wrpr=s('<div class="'+o.wrapper+'" />'),this.nodes.$sldr=s('<div class="'+o.slider+'" />').appendTo(this.nodes.$wrpr),this.nodes.$wrpr.addClass(this.vars.fixed?o.fixed:o.inline).addClass(o("fx-"+this.opts.effect)).addClass(o(this.opts.slides.scale)).addClass(this.opts.wrapper.classes),this.nodes.$wrpr.on(a.open+" "+a.close+" "+a.prev+" "+a.next+" "+a.slideTo,function(s){arguments=Array.prototype.slice.call(arguments);var s=arguments.shift(),e=s.type;s.stopPropagation(),"function"==typeof i[e]&&i[e].apply(i,arguments)}).on(a.opening+" "+a.closing+" "+a.sliding+" "+a.loading+" "+a.loaded,function(s){s.stopPropagation()}).on(a.click,function(e){switch(e.stopPropagation(),i.opts.wrapper.onClick){case"toggleUI":i.nodes.$wrpr.toggleClass(o.hover);break;case"close":s(e.target).is("img")||i.close()}}),this.nodes.$anchors=this._initAnchors(),this.nodes.$slides=this._initSlides(),this.slides.total=this.nodes.$slides.length,this.slides.visible=this.opts.slides.visible,this.slides.index=0,this.vars.opened=!0;for(var t=0;t<s[e].addons.length;t++)s.isFunction(this["_addon_"+s[e].addons[t]])&&this["_addon_"+s[e].addons[t]]();for(var n=0;n<s[e].ui.length;n++)this.nodes.$wrpr.find("."+o[s[e].ui[n]]).length&&this.nodes.$wrpr.addClass(o("has-"+s[e].ui[n]));"close"==this.opts.wrapper.onClick&&(this.nodes.$uibg||s().add(this.nodes.$capt||s()).add(this.nodes.$pagr||s()).on(a.click,function(s){s.stopPropagation()})),this.vars.fixed?(this.nodes.$wrpr.appendTo(l.$body),this.close(!0)):(this.nodes.$wrpr.appendTo(this.opts.wrapper.target),this.opts.show?(this.vars.opened=!1,this.open(0,!0)):this.close(!0))},open:function(i,e){var t=this;this.vars.opened||(this.vars.fixed&&(l.scrollPosition=l.$wndw.scrollTop(),l.$body.addClass(o.opened),r.setViewportScale()),e?this.nodes.$wrpr.addClass(o.opening).trigger(a.opening,[i,e]):setTimeout(function(){t.nodes.$wrpr.addClass(o.opening).trigger(a.opening,[i,e])},5),this.nodes.$wrpr.addClass(o.hover).addClass(o.opened)),this.vars.opened=!0,this._loadContents(),s.isNumeric(i)&&(e=e||!this.vars.opened,this.slideTo(i,e))},close:function(i){this.vars.opened&&(this.vars.fixed&&l.$body.removeClass(o.opened),i?this.nodes.$wrpr.removeClass(o.opened):r.transitionend(this.nodes.$wrpr,function(){s(this).removeClass(o.opened)},this.conf.transitionDuration),this.nodes.$wrpr.removeClass(o.hover).removeClass(o.opening).trigger(a.closing,[this.slides.index,i])),this.vars.opened=!1},prev:function(i,e){s.isNumeric(i)||(i=this.opts.slides.slide),this.slideTo(this.slides.index-i,e)},next:function(i,e){s.isNumeric(i)||(i=this.opts.slides.slide),this.slideTo(this.slides.index+i,e)},slideTo:function(i,t){if(!this.vars.opened)return!1;if(!s.isNumeric(i))return!1;var n=!0;if(0>i){var d=0==this.slides.index;this.opts.infinite?i=d?this.slides.total-this.slides.visible:0:(i=0,d&&(n=!1))}if(i+this.slides.visible>this.slides.total){var l=this.slides.index+this.slides.visible>=this.slides.total;this.opts.infinite?i=l?0:this.slides.total-this.slides.visible:(i=this.slides.total-this.slides.visible,l&&(n=!1))}if(this.slides.index=i,this._loadContents(),n){var h=0-this.slides.index*this.opts.slides.width+this.opts.slides.offset;this.slides.widthPercentage&&(h+="%"),t&&(this.nodes.$sldr.addClass(o.noanimation),r.transitionend(this.nodes.$sldr,function(){s(this).removeClass(o.noanimation)},5));for(var c in s[e].effects)if(c==this.opts.effect){s[e].effects[c].call(this,h,t);break}this.nodes.$wrpr.trigger(a.sliding,[i,t])}},_initAnchors:function(){var i=this,t=s();if(this.$node.is("a"))for(var n in s[e].media)t=t.add(this.$node.filter(function(){if(i.opts.media[n]&&i.opts.media[n].filterAnchors){var t=i.opts.media[n].filterAnchors.call(i,s(this));if("boolean"==typeof t)return t}return s[e].media[n].filterAnchors.call(i,s(this))}));return t},_initSlides:function(){return this[this.$node.is("a")?"_initSlidesFromAnchors":"_initSlidesFromContent"](),this.nodes.$sldr.children().css("width",this.opts.slides.width+(this.slides.widthPercentage?"%":"px"))},_initSlidesFromAnchors:function(){var i=this;this.nodes.$anchors.each(function(e){var t=s(this),n=s('<div class="'+o.slide+" "+o.loading+'" />').data(d.anchor,t).appendTo(i.nodes.$sldr);t.data(d.slide,n).on(a.click,function(s){s.preventDefault(),i.open(e)})})},_initSlidesFromContent:function(){var i=this;this.$node.children().each(function(){var t=s(this);s('<div class="'+o.slide+'" />').append(t).appendTo(i.nodes.$sldr);for(var n in s[e].media){var d=null;if(i.opts.media[n]&&i.opts.media[n].filterSlides&&(d=i.opts.media[n].filterSlides.call(i,t)),"boolean"!=typeof d&&(d=s[e].media[n].filterSlides.call(i,t)),d){s[e].media[n].initSlides.call(i,t),t.parent().addClass(o(n));break}}})},_loadContents:function(){var s=this;switch(this.opts.slides.load){case"all":this._loadContent(0,this.slides.total);break;case"visible":this._loadContent(this.slides.index,this.slides.index+this.slides.visible);break;case"near-visible":default:this._loadContent(this.slides.index,this.slides.index+this.slides.visible),setTimeout(function(){s._loadContent(s.slides.index-s.slides.visible,s.slides.index),s._loadContent(s.slides.index+s.slides.visible,s.slides.index+2*s.slides.visible)},this.conf.transitionDuration)}},_loadContent:function(i,t){var n=this;this.nodes.$slides.slice(i,t).each(function(){var i=s(this);if(0==i.children().length){var t=i.data(d.anchor),r=t.attr("href");for(var l in s[e].media){var h=null;if(n.opts.media[l]&&n.opts.media[l].filterAnchors&&(h=n.opts.media[l].filterAnchors.call(n,t)),"boolean"!=typeof h&&(h=s[e].media[l].filterAnchors.call(n,t)),h){s[e].media[l].initAnchors.call(n,i,r),i.addClass(o(l));break}}i.trigger(a.loading,[i.data(d.anchor)])}})},_complementOptions:function(){if("undefined"==typeof this.opts.wrapper.target&&(this.opts.wrapper.target=this.$node.is("a")?"window":this.$node),"window"!=this.opts.wrapper.target&&"string"==typeof this.opts.wrapper.target&&(this.opts.wrapper.target=s(this.opts.wrapper.target)),this.opts.show=r.complBoolean(this.opts.show,"window"!=this.opts.wrapper.target),s.isNumeric(this.opts.slides.width))this.slides.widthPercentage=!1,this.opts.slides.visible=r.complNumber(this.opts.slides.visible,1);else{var i=r.isPercentage(this.opts.slides.width)?r.getPercentage(this.opts.slides.width):!1;this.slides.widthPercentage=!0,this.opts.slides.visible=r.complNumber(this.opts.slides.visible,i?Math.floor(100/i):1),this.opts.slides.width=i?i:Math.ceil(1e4/this.opts.slides.visible)/100}this.opts.slides.slide=r.complNumber(this.opts.slides.slide,this.opts.slides.visible),this.opts.slides.offset=r.isPercentage(this.opts.slides.offset)?r.getPercentage(this.opts.slides.offset):r.complNumber(this.opts.slides.offset,0)},_uniqueID:function(){return this.__uniqueID||(this.__uniqueID=0),this.__uniqueID++,o("uid-"+this.__uniqueID)}},s.fn[e]=function(t,n,o,d){l.$wndw||i(),t=s.extend(!0,{},s[e].defaults,t),t=s.extend(!0,{},t,s[e].support.touch?o:n),d=s.extend(!0,{},s[e].configuration,d);var a=new s[e](this,t,d);return this.data(e,a),a.nodes.$wrpr},s[e].support={touch:"ontouchstart"in window.document||navigator.msMaxTouchPoints},s[e].defaults={infinite:!1,effect:"slide",wrapper:{classes:"",onClick:"toggleUI"},slides:{offset:0,scale:"fit",load:"near-visible",visible:1},media:{}},s[e].configuration={transitionDuration:400},s[e].constants={},s[e].debug=function(s){},s[e].deprecated=function(s,i){"undefined"!=typeof console&&"undefined"!=typeof console.warn&&console.warn(e+": "+s+" is deprecated, use "+i+" instead.")},s[e].effects={slide:function(s){this.nodes.$sldr.css("left",s)},fade:function(i){r.transitionend(this.nodes.$sldr,function(){s(this).css("left",i).css("opacity",1)},this.conf.transitionDuration),this.nodes.$sldr.css("opacity",0)}},s[e].version=n,s[e].media={},s[e].addons=[],s[e].ui=[]}}(jQuery);
css/admin.css CHANGED
@@ -1,508 +1,508 @@
1
- /* Responsive Lightbox settings */
2
- .responsive-lightbox-settings .df-credits form {
3
- min-width: 260px;
4
- margin-bottom: 1em;
5
- }
6
- .responsive-lightbox-settings .df-credits form input {
7
- margin: 0;
8
- padding: 0;
9
- }
10
- .responsive-lightbox-settings {
11
- margin-right: 300px;
12
- }
13
- .responsive-lightbox-settings td > label {
14
- margin-right: 5px;
15
- }
16
- .responsive-lightbox-settings hr, .df-credits hr {
17
- border: solid #eee;
18
- border-width: 1px 0 0;
19
- clear: both;
20
- height: 0;
21
- }
22
- .responsive-lightbox-settings form {
23
- float: left;
24
- min-width: 463px;
25
- width: auto;
26
- }
27
- .responsive-lightbox-settings fieldset span.description {
28
- margin-bottom: 8px;
29
- margin-top: 4px;
30
- display: block;
31
- }
32
- .responsive-lightbox-settings output {
33
- display: inline-block;
34
- font-size: inherit;
35
- margin: 0;
36
- text-align: left;
37
- }
38
- .responsive-lightbox-settings .rl_license .dashicons {
39
- vertical-align: middle;
40
- }
41
- .responsive-lightbox-settings .rl_license .dashicons-yes {
42
- color: #0073aa;
43
- }
44
- .responsive-lightbox-settings .rl_license .dashicons-no {
45
- color: #a00;
46
- }
47
- .rtl .responsive-lightbox-settings output {
48
- text-align: right;
49
- }
50
-
51
- .df-credits {
52
- float: right;
53
- width: 280px;
54
- background: #fff;
55
- margin: 20px -300px 20px 20px;
56
- position: relative;
57
- }
58
- .df-credits .inner {
59
- padding-left: 10px;
60
- padding-right: 10px;
61
- }
62
- .df-credits h3 {
63
- font-size: 14px;
64
- line-height: 1.4;
65
- margin: 0;
66
- padding: 8px 12px;
67
- border-bottom: 1px solid #eee;
68
- }
69
- .df-credits .df-link {
70
- font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
71
- font-style: italic;
72
- padding-bottom: 10px;
73
- margin: 0;
74
- }
75
- .df-credits .df-link a {
76
- vertical-align: middle;
77
- padding: 5px 0 0 4px;
78
- }
79
- .df-credits .df-link a {
80
- vertical-align: middle;
81
- padding: 5px 0 0 4px;
82
- }
83
-
84
- .df-addons li {
85
- float: left;
86
- margin: 0 1em 1em 0 !important;
87
- padding: 0;
88
- vertical-align: top;
89
- width: 320px;
90
- border: 1px solid #ddd;
91
- box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 -1px 0 rgba(0, 0, 0, 0.1) inset;
92
- color: inherit;
93
- display: block;
94
- min-height: 260px;
95
- overflow: hidden;
96
- }
97
- .df-addons li h3.addon-title {
98
- background: #fff;
99
- margin: 0 !important;
100
- padding: 20px !important;
101
- }
102
- .df-addons li p.addon-description {
103
- padding: 20px !important;
104
- margin: 0 !important;
105
- }
106
- .df-addons li a.addon-image {
107
- margin: 0;
108
- padding: 0;
109
- }
110
- .df-addons li a.addon-image img {
111
- display: block;
112
- }
113
- .df-addons li a.addon-link {
114
- margin: 0 20px 20px !important;
115
- }
116
-
117
- /* All Mobile Sizes (devices and browser) */
118
- @media only screen and (max-width: 959px) {
119
- .df-credits {
120
- width: 100%;
121
- float: none;
122
- margin: 20px 0;
123
- }
124
- .responsive-lightbox-settings {
125
- margin-right: 0;
126
- }
127
- }
128
-
129
- /*
130
- * checkBo lightweight jQuery plugin v0.1.4 by @ElmahdiMahmoud
131
- * Licensed under the MIT license - https://github.com/elmahdim/checkbo/blob/master/LICENSE
132
- *
133
- * Custom checkbox and radio
134
- * Author URL: elmahdim.com
135
- */
136
- .cb-checkbox .cb-inner, .cb-checkbox i {
137
- width:18px;
138
- height:18px;
139
- -moz-border-radius:3px;
140
- -webkit-border-radius:3px;
141
- border-radius:3px
142
- }
143
- .cb-checkbox.cb-sm i, .cb-checkbox.cb-sm .cb-inner {
144
- width:14px;
145
- height:14px
146
- }
147
- .cb-checkbox.cb-md i, .cb-checkbox.cb-md .cb-inner {
148
- width:24px;
149
- height:24px;
150
- -moz-border-radius:4px;
151
- -webkit-border-radius:4px;
152
- border-radius:4px
153
- }
154
- .cb-checkbox.cb-lg i, .cb-checkbox.cb-lg .cb-inner {
155
- width:30px;
156
- height:30px;
157
- -moz-border-radius:6px;
158
- -webkit-border-radius:6px;
159
- border-radius:6px
160
- }
161
- .cb-radio .cb-inner {
162
- width:18px;
163
- height:18px
164
- }
165
- .cb-radio.cb-sm .cb-inner {
166
- width:14px;
167
- height:14px
168
- }
169
- .cb-radio.cb-md .cb-inner {
170
- width:24px;
171
- height:24px
172
- }
173
- .cb-radio.cb-lg .cb-inner {
174
- width:30px;
175
- height:30px
176
- }
177
- .cb-checkbox, .cb-radio {
178
- padding:3px 0;
179
- color:inherit;
180
- cursor:pointer;
181
- overflow:hidden;
182
- font-size:inherit;
183
- font-weight:normal;
184
- display:inline-block;
185
- line-height:18px
186
- }
187
- .cb-checkbox.disabled, .cb-checkbox.disabled *, .cb-radio.disabled, .cb-radio.disabled * {
188
- cursor:default
189
- }
190
- .cb-checkbox input[type="checkbox"], .cb-radio input[type="radio"], .cb-switcher input[type="checkbox"], .cb-switcher input[type="radio"] {
191
- display:none
192
- }
193
- .cb-checkbox.disabled, .cb-checkbox.disabled *, .cb-radio.disabled, .cb-radio.disabled *, .cb-switcher.disabled, .cb-switcher.disabled * {
194
- cursor:default
195
- }
196
- .cb-checkbox.disabled {
197
- color:#ddd
198
- }
199
- .cb-checkbox.disabled .cb-inner {
200
- color:#ddd
201
- }
202
- .cb-checkbox.disabled:hover .cb-inner {
203
- border-color:#ddd
204
- }
205
- .cb-checkbox.disabled.checked .cb-inner {
206
- background-color:#ddd;
207
- border-color:#ddd
208
- }
209
- .cb-radio.disabled {
210
- color:#ddd
211
- }
212
- .cb-radio.disabled .cb-inner {
213
- border-color:#ddd
214
- }
215
- .cb-radio.disabled i {
216
- background-color:transparent
217
- }
218
- .cb-radio.disabled.checked .cb-inner {
219
- border-color:#ddd
220
- }
221
- .cb-radio.disabled.checked .cb-inner i {
222
- background-color:#ddd
223
- }
224
- .cb-radio.disabled:hover .cb-inner {
225
- border-color:#ddd
226
- }
227
- .cb-checkbox .cb-inner {
228
- float:left;
229
- overflow:hidden;
230
- margin:0 5px 0 0;
231
- position:relative;
232
- background:#f2f2f2;
233
- display:inline-block;
234
- border:1px solid #d6d6d6;
235
- -moz-transition:all 0.5s ease;
236
- -o-transition:all 0.5s ease;
237
- -webkit-transition:all 0.5s ease;
238
- transition:all 0.5s ease
239
- }
240
- .cb-checkbox i {
241
- top:1px;
242
- left:2px;
243
- display:block;
244
- position:absolute
245
- }
246
- .cb-checkbox i:before, .cb-checkbox i:after {
247
- height:0;
248
- width:2px;
249
- content:"";
250
- display:block;
251
- position:absolute;
252
- background-color:#fff;
253
- -moz-transition:all 0.2s ease;
254
- -o-transition:all 0.2s ease;
255
- -webkit-transition:all 0.2s ease;
256
- transition:all 0.2s ease
257
- }
258
- .cb-checkbox i:before {
259
- top:0;
260
- left:0;
261
- -moz-transform:rotate(-45deg);
262
- -ms-transform:rotate(-45deg);
263
- -webkit-transform:rotate(-45deg);
264
- transform:rotate(-45deg)
265
- }
266
- .cb-checkbox i:after {
267
- left:7px;
268
- bottom:5px;
269
- -moz-transition-delay:0.3s;
270
- -o-transition-delay:0.3s;
271
- -webkit-transition-delay:0.3s;
272
- transition-delay:0.3s;
273
- -moz-transform:rotate(30deg);
274
- -ms-transform:rotate(30deg);
275
- -webkit-transform:rotate(30deg);
276
- transform:rotate(30deg)
277
- }
278
- .cb-radio .cb-inner {
279
- float:left;
280
- overflow:hidden;
281
- margin:0 5px 0 0;
282
- position:relative;
283
- display:inline-block;
284
- border:1px solid #d7d7d7;
285
- background-color:#f2f2f2;
286
- -moz-border-radius:100%;
287
- -webkit-border-radius:100%;
288
- border-radius:100%;
289
- -moz-transition:all 0.1s ease;
290
- -o-transition:all 0.1s ease;
291
- -webkit-transition:all 0.1s ease;
292
- transition:all 0.1s ease
293
- }
294
- .cb-radio i {
295
- top:50%;
296
- left:50%;
297
- width:6px;
298
- height:6px;
299
- margin-top:-3px;
300
- margin-left:-3px;
301
- position:absolute;
302
- background-color:transparent;
303
- -moz-border-radius:100%;
304
- -webkit-border-radius:100%;
305
- border-radius:100%;
306
- -moz-transform:scale(0.05, 5);
307
- -ms-transform:scale(0.05, 5);
308
- -webkit-transform:scale(0.05, 5);
309
- transform:scale(0.05, 5);
310
- -moz-transition:all 0.2s ease;
311
- -o-transition:all 0.2s ease;
312
- -webkit-transition:all 0.2s ease;
313
- transition:all 0.2s ease
314
- }
315
- .cb-checkbox.cb-sm, .cb-radio.cb-sm {
316
- line-height:14px
317
- }
318
- .cb-checkbox.cb-md, .cb-radio.cb-md {
319
- line-height:24px
320
- }
321
- .cb-checkbox.cb-lg, .cb-radio.cb-lg {
322
- line-height:30px
323
- }
324
- .cb-checkbox.cb-sm i:before {
325
- top:4px;
326
- left:1px
327
- }
328
- .cb-checkbox.cb-sm i:after {
329
- left:5px
330
- }
331
- .cb-checkbox.cb-md i:before {
332
- top:10px;
333
- left:5px
334
- }
335
- .cb-checkbox.cb-md i:after {
336
- bottom:6px;
337
- left:11px
338
- }
339
- .cb-checkbox.checked .cb-inner {
340
- border-color:#0073aa;
341
- background-color:#00a0d2;
342
- box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15);
343
- }
344
- .cb-checkbox.checked:hover .cb-inner {
345
- background-color:#0091cd
346
- }
347
- .cb-checkbox.checked.cb-sm i:before {
348
- top:4px;
349
- left:1px
350
- }
351
- .cb-checkbox.checked.cb-sm i:after {
352
- height:9px
353
- }
354
- .cb-checkbox.checked.cb-md i:before {
355
- top:10px;
356
- left:4px;
357
- height:8px
358
- }
359
- .cb-checkbox.checked.cb-md i:after {
360
- bottom:6px;
361
- left:11px;
362
- height:16px
363
- }
364
- .cb-checkbox.checked.cb-lg i:before {
365
- top:11px;
366
- left:6px;
367
- height:12px
368
- }
369
- .cb-checkbox.checked.cb-lg i:after {
370
- left:14px;
371
- bottom:7px;
372
- height:20px
373
- }
374
- .cb-checkbox.checked i:before {
375
- top:6px;
376
- left:2px;
377
- height:6px
378
- }
379
- .cb-checkbox.checked i:after {
380
- height:12px
381
- }
382
- .cb-radio.checked .cb-inner {
383
- background:#fff;
384
- box-shadow:0 0 3px #efefef
385
- }
386
- .cb-radio.checked i {
387
- -moz-transform:scale(1.1, 1.1);
388
- -ms-transform:scale(1.1, 1.1);
389
- -webkit-transform:scale(1.1, 1.1);
390
- transform:scale(1.1, 1.1);
391
- background-color:#00a0d2
392
- }
393
- .cb-checkbox:hover .cb-inner, .cb-radio:hover .cb-inner {
394
- border-color:#0073aa
395
- }
396
- .cb-switcher {
397
- display:inline-block;
398
- border:1px solid #eee;
399
- background-color:#fff;
400
- width:95px;
401
- height:35px;
402
- position:relative;
403
- -moz-border-radius:20px;
404
- -webkit-border-radius:20px;
405
- border-radius:20px;
406
- -moz-transition:background 0.4s ease;
407
- -o-transition:background 0.4s ease;
408
- -webkit-transition:background 0.4s ease;
409
- transition:background 0.4s ease
410
- }
411
- .cb-switcher, .cb-switcher * {
412
- cursor:pointer
413
- }
414
- .cb-switcher ::-moz-selection {
415
- background-color:transparent
416
- }
417
- .cb-switcher ::selection {
418
- background-color:transparent
419
- }
420
- .cb-switcher .cb-state {
421
- z-index:1;
422
- text-align:center;
423
- font-size:12px
424
- }
425
- .cb-switcher .cb-state, .cb-switcher:before {
426
- width:34px;
427
- height:34px;
428
- line-height:34px;
429
- position:absolute;
430
- left:0;
431
- top:-1px;
432
- -moz-border-radius:100%;
433
- -webkit-border-radius:100%;
434
- border-radius:100%;
435
- -moz-transition:all 0.4s ease;
436
- -o-transition:all 0.4s ease;
437
- -webkit-transition:all 0.4s ease;
438
- transition:all 0.4s ease
439
- }
440
- .cb-switcher:before {
441
- content:"";
442
- background-color:#eee;
443
- -moz-box-shadow:1px 1px 1px rgba(0, 0, 0, 0.1);
444
- -webkit-box-shadow:1px 1px 1px rgba(0, 0, 0, 0.1);
445
- box-shadow:1px 1px 1px rgba(0, 0, 0, 0.1)
446
- }
447
- .cb-switcher.checked {
448
- background-color:#00a0d2
449
- }
450
- .cb-switcher.checked .cb-state, .cb-switcher.checked:before {
451
- left:60px;
452
- color:#00a0d2
453
- }
454
- .cb-switcher.checked:before {
455
- background-color:#fff;
456
- -moz-box-shadow:-1px 1px 1px rgba(0, 0, 0, 0.1);
457
- -webkit-box-shadow:-1px 1px 1px rgba(0, 0, 0, 0.1);
458
- box-shadow:-1px 1px 1px rgba(0, 0, 0, 0.1)
459
- }
460
- .cb-switcher.checked .inner-switcher:before {
461
- border-top-color:#0073aa
462
- }
463
- .cb-switcher.checked .inner-switcher:after {
464
- border-bottom-color:#0073aa
465
- }
466
- .cb-switcher .inner-switcher:before, .cb-switcher .inner-switcher:after {
467
- content:"";
468
- position:absolute;
469
- left:50%;
470
- width:0;
471
- height:0;
472
- z-index:2;
473
- margin-left:-20px;
474
- border-left:20px solid transparent;
475
- border-right:20px solid transparent;
476
- -moz-transition:border 0.4s ease;
477
- -o-transition:border 0.4s ease;
478
- -webkit-transition:border 0.4s ease;
479
- transition:border 0.4s ease
480
- }
481
- .cb-switcher .inner-switcher:before {
482
- border-top:17px solid #fff;
483
- top:0
484
- }
485
- .cb-switcher .inner-switcher:after {
486
- border-bottom:17px solid #fff;
487
- bottom:0
488
- }
489
- .cb-state {
490
- color:#ccc;
491
- display:inline-block
492
- }
493
- .cb-switcher-group .cb-state {
494
- position:relative;
495
- top:7px
496
- }
497
- .is-hidden {
498
- display:none !important;
499
- visibility:hidden !important
500
- }
501
- output {
502
- display: block;
503
- font-size: 30px;
504
- font-weight: bold;
505
- text-align: center;
506
- margin: 30px 0;
507
- width: 100%;
508
}
1
+ /* Responsive Lightbox settings */
2
+ .responsive-lightbox-settings .df-credits form {
3
+ min-width: 260px;
4
+ margin-bottom: 1em;
5
+ }
6
+ .responsive-lightbox-settings .df-credits form input {
7
+ margin: 0;
8
+ padding: 0;
9
+ }
10
+ .responsive-lightbox-settings {
11
+ margin-right: 300px;
12
+ }
13
+ .responsive-lightbox-settings td > label {
14
+ margin-right: 5px;
15
+ }
16
+ .responsive-lightbox-settings hr, .df-credits hr {
17
+ border: solid #eee;
18
+ border-width: 1px 0 0;
19
+ clear: both;
20
+ height: 0;
21
+ }
22
+ .responsive-lightbox-settings form {
23
+ float: left;
24
+ min-width: 463px;
25
+ width: auto;
26
+ }
27
+ .responsive-lightbox-settings fieldset span.description {
28
+ margin-bottom: 8px;
29
+ margin-top: 4px;
30
+ display: block;
31
+ }
32
+ .responsive-lightbox-settings output {
33
+ display: inline-block;
34
+ font-size: inherit;
35
+ margin: 0;
36
+ text-align: left;
37
+ }
38
+ .responsive-lightbox-settings .rl_license .dashicons {
39
+ vertical-align: middle;
40
+ }
41
+ .responsive-lightbox-settings .rl_license .dashicons-yes {
42
+ color: #0073aa;
43
+ }
44
+ .responsive-lightbox-settings .rl_license .dashicons-no {
45
+ color: #a00;
46
+ }
47
+ .rtl .responsive-lightbox-settings output {
48
+ text-align: right;
49
+ }
50
+
51
+ .df-credits {
52
+ float: right;
53
+ width: 280px;
54
+ background: #fff;
55
+ margin: 20px -300px 20px 20px;
56
+ position: relative;
57
+ }
58
+ .df-credits .inner {
59
+ padding-left: 10px;
60
+ padding-right: 10px;
61
+ }
62
+ .df-credits h3 {
63
+ font-size: 14px;
64
+ line-height: 1.4;
65
+ margin: 0;
66
+ padding: 8px 12px;
67
+ border-bottom: 1px solid #eee;
68
+ }
69
+ .df-credits .df-link {
70
+ font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
71
+ font-style: italic;
72
+ padding-bottom: 10px;
73
+ margin: 0;
74
+ }
75
+ .df-credits .df-link a {
76
+ vertical-align: middle;
77
+ padding: 5px 0 0 4px;
78
+ }
79
+ .df-credits .df-link a {
80
+ vertical-align: middle;
81
+ padding: 5px 0 0 4px;
82
+ }
83
+
84
+ .df-addons li {
85
+ float: left;
86
+ margin: 0 1em 1em 0 !important;
87
+ padding: 0;
88
+ vertical-align: top;
89
+ width: 320px;
90
+ border: 1px solid #ddd;
91
+ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 -1px 0 rgba(0, 0, 0, 0.1) inset;
92
+ color: inherit;
93
+ display: block;
94
+ min-height: 260px;
95
+ overflow: hidden;
96
+ }
97
+ .df-addons li h3.addon-title {
98
+ background: #fff;
99
+ margin: 0 !important;
100
+ padding: 20px !important;
101
+ }
102
+ .df-addons li p.addon-description {
103
+ padding: 20px !important;
104
+ margin: 0 !important;
105
+ }
106
+ .df-addons li a.addon-image {
107
+ margin: 0;
108
+ padding: 0;
109
+ }
110
+ .df-addons li a.addon-image img {
111
+ display: block;
112
+ }
113
+ .df-addons li a.addon-link {
114
+ margin: 0 20px 20px !important;
115
+ }
116
+
117
+ /* All Mobile Sizes (devices and browser) */
118
+ @media only screen and (max-width: 959px) {
119
+ .df-credits {
120
+ width: 100%;
121
+ float: none;
122
+ margin: 20px 0;
123
+ }
124
+ .responsive-lightbox-settings {
125
+ margin-right: 0;
126
+ }
127
+ }
128
+
129
+ /*
130
+ * checkBo lightweight jQuery plugin v0.1.4 by @ElmahdiMahmoud
131
+ * Licensed under the MIT license - https://github.com/elmahdim/checkbo/blob/master/LICENSE
132
+ *
133
+ * Custom checkbox and radio
134
+ * Author URL: elmahdim.com
135
+ */
136
+ .cb-checkbox .cb-inner, .cb-checkbox i {
137
+ width:18px;
138
+ height:18px;
139
+ -moz-border-radius:3px;
140
+ -webkit-border-radius:3px;
141
+ border-radius:3px
142
+ }
143
+ .cb-checkbox.cb-sm i, .cb-checkbox.cb-sm .cb-inner {
144
+ width:14px;
145
+ height:14px
146
+ }
147
+ .cb-checkbox.cb-md i, .cb-checkbox.cb-md .cb-inner {
148
+ width:24px;
149
+ height:24px;
150
+ -moz-border-radius:4px;
151
+ -webkit-border-radius:4px;
152
+ border-radius:4px
153
+ }
154
+ .cb-checkbox.cb-lg i, .cb-checkbox.cb-lg .cb-inner {
155
+ width:30px;
156
+ height:30px;
157
+ -moz-border-radius:6px;
158
+ -webkit-border-radius:6px;
159
+ border-radius:6px
160
+ }
161
+ .cb-radio .cb-inner {
162
+ width:18px;
163
+ height:18px
164
+ }
165
+ .cb-radio.cb-sm .cb-inner {
166
+ width:14px;
167
+ height:14px
168
+ }
169
+ .cb-radio.cb-md .cb-inner {
170
+ width:24px;
171
+ height:24px
172
+ }
173
+ .cb-radio.cb-lg .cb-inner {
174
+ width:30px;
175
+ height:30px
176
+ }
177
+ .cb-checkbox, .cb-radio {
178
+ padding:3px 0;
179
+ color:inherit;
180
+ cursor:pointer;
181
+ overflow:hidden;
182
+ font-size:inherit;
183
+ font-weight:normal;
184
+ display:inline-block;
185
+ line-height:18px
186
+ }
187
+ .cb-checkbox.disabled, .cb-checkbox.disabled *, .cb-radio.disabled, .cb-radio.disabled * {
188
+ cursor:default
189
+ }
190
+ .cb-checkbox input[type="checkbox"], .cb-radio input[type="radio"], .cb-switcher input[type="checkbox"], .cb-switcher input[type="radio"] {
191
+ display:none
192
+ }
193
+ .cb-checkbox.disabled, .cb-checkbox.disabled *, .cb-radio.disabled, .cb-radio.disabled *, .cb-switcher.disabled, .cb-switcher.disabled * {
194
+ cursor:default
195
+ }
196
+ .cb-checkbox.disabled {
197
+ color:#ddd
198
+ }
199
+ .cb-checkbox.disabled .cb-inner {
200
+ color:#ddd
201
+ }
202
+ .cb-checkbox.disabled:hover .cb-inner {
203
+ border-color:#ddd
204
+ }
205
+ .cb-checkbox.disabled.checked .cb-inner {
206
+ background-color:#ddd;
207
+ border-color:#ddd
208
+ }
209
+ .cb-radio.disabled {
210
+ color:#ddd
211
+ }
212
+ .cb-radio.disabled .cb-inner {
213
+ border-color:#ddd
214
+ }
215
+ .cb-radio.disabled i {
216
+ background-color:transparent
217
+ }
218
+ .cb-radio.disabled.checked .cb-inner {
219
+ border-color:#ddd
220
+ }
221
+ .cb-radio.disabled.checked .cb-inner i {
222
+ background-color:#ddd
223
+ }
224
+ .cb-radio.disabled:hover .cb-inner {
225
+ border-color:#ddd
226
+ }
227
+ .cb-checkbox .cb-inner {
228
+ float:left;
229
+ overflow:hidden;
230
+ margin:0 5px 0 0;
231
+ position:relative;
232
+ background:#f2f2f2;
233
+ display:inline-block;
234
+ border:1px solid #d6d6d6;
235
+ -moz-transition:all 0.5s ease;
236
+ -o-transition:all 0.5s ease;
237
+ -webkit-transition:all 0.5s ease;
238
+ transition:all 0.5s ease
239
+ }
240
+ .cb-checkbox i {
241
+ top:1px;
242
+ left:2px;
243
+ display:block;
244
+ position:absolute
245
+ }
246
+ .cb-checkbox i:before, .cb-checkbox i:after {
247
+ height:0;
248
+ width:2px;
249
+ content:"";
250
+ display:block;
251
+ position:absolute;
252
+ background-color:#fff;
253
+ -moz-transition:all 0.2s ease;
254
+ -o-transition:all 0.2s ease;
255
+ -webkit-transition:all 0.2s ease;
256
+ transition:all 0.2s ease
257
+ }
258
+ .cb-checkbox i:before {
259
+ top:0;
260
+ left:0;
261
+ -moz-transform:rotate(-45deg);
262
+ -ms-transform:rotate(-45deg);
263
+ -webkit-transform:rotate(-45deg);
264
+ transform:rotate(-45deg)
265
+ }
266
+ .cb-checkbox i:after {
267
+ left:7px;
268
+ bottom:5px;
269
+ -moz-transition-delay:0.3s;
270
+ -o-transition-delay:0.3s;
271
+ -webkit-transition-delay:0.3s;
272
+ transition-delay:0.3s;
273
+ -moz-transform:rotate(30deg);
274
+ -ms-transform:rotate(30deg);
275
+ -webkit-transform:rotate(30deg);
276
+ transform:rotate(30deg)
277
+ }
278
+ .cb-radio .cb-inner {
279
+ float:left;
280
+ overflow:hidden;
281
+ margin:0 5px 0 0;
282
+ position:relative;
283
+ display:inline-block;
284
+ border:1px solid #d7d7d7;
285
+ background-color:#f2f2f2;
286
+ -moz-border-radius:100%;
287
+ -webkit-border-radius:100%;
288
+ border-radius:100%;
289
+ -moz-transition:all 0.1s ease;
290
+ -o-transition:all 0.1s ease;
291
+ -webkit-transition:all 0.1s ease;
292
+ transition:all 0.1s ease
293
+ }
294
+ .cb-radio i {
295
+ top:50%;
296
+ left:50%;
297
+ width:6px;
298
+ height:6px;
299
+ margin-top:-3px;
300
+ margin-left:-3px;
301
+ position:absolute;
302
+ background-color:transparent;
303
+ -moz-border-radius:100%;
304
+ -webkit-border-radius:100%;
305
+ border-radius:100%;
306
+ -moz-transform:scale(0.05, 5);
307
+ -ms-transform:scale(0.05, 5);
308
+ -webkit-transform:scale(0.05, 5);
309
+ transform:scale(0.05, 5);
310
+ -moz-transition:all 0.2s ease;
311
+ -o-transition:all 0.2s ease;
312
+ -webkit-transition:all 0.2s ease;
313
+ transition:all 0.2s ease
314
+ }
315
+ .cb-checkbox.cb-sm, .cb-radio.cb-sm {
316
+ line-height:14px
317
+ }
318
+ .cb-checkbox.cb-md, .cb-radio.cb-md {
319
+ line-height:24px
320
+ }
321
+ .cb-checkbox.cb-lg, .cb-radio.cb-lg {
322
+ line-height:30px
323
+ }
324
+ .cb-checkbox.cb-sm i:before {
325
+ top:4px;
326
+ left:1px
327
+ }
328
+ .cb-checkbox.cb-sm i:after {
329
+ left:5px
330
+ }
331
+ .cb-checkbox.cb-md i:before {
332
+ top:10px;
333
+ left:5px
334
+ }
335
+ .cb-checkbox.cb-md i:after {
336
+ bottom:6px;
337
+ left:11px
338
+ }
339
+ .cb-checkbox.checked .cb-inner {
340
+ border-color:#0073aa;
341
+ background-color:#00a0d2;
342
+ box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15);
343
+ }
344
+ .cb-checkbox.checked:hover .cb-inner {
345
+ background-color:#0091cd
346
+ }
347
+ .cb-checkbox.checked.cb-sm i:before {
348
+ top:4px;
349
+ left:1px
350
+ }
351
+ .cb-checkbox.checked.cb-sm i:after {
352
+ height:9px
353
+ }
354
+ .cb-checkbox.checked.cb-md i:before {
355
+ top:10px;
356
+ left:4px;
357
+ height:8px
358
+ }
359
+ .cb-checkbox.checked.cb-md i:after {
360
+ bottom:6px;
361
+ left:11px;
362
+ height:16px
363
+ }
364
+ .cb-checkbox.checked.cb-lg i:before {
365
+ top:11px;
366
+ left:6px;
367
+ height:12px
368
+ }
369
+ .cb-checkbox.checked.cb-lg i:after {
370
+ left:14px;
371
+ bottom:7px;
372
+ height:20px
373
+ }
374
+ .cb-checkbox.checked i:before {
375
+ top:6px;
376
+ left:2px;
377
+ height:6px
378
+ }
379
+ .cb-checkbox.checked i:after {
380
+ height:12px
381
+ }
382
+ .cb-radio.checked .cb-inner {
383
+ background:#fff;
384
+ box-shadow:0 0 3px #efefef
385
+ }
386
+ .cb-radio.checked i {
387
+ -moz-transform:scale(1.1, 1.1);
388
+ -ms-transform:scale(1.1, 1.1);
389
+ -webkit-transform:scale(1.1, 1.1);
390
+ transform:scale(1.1, 1.1);
391
+ background-color:#00a0d2
392
+ }
393
+ .cb-checkbox:hover .cb-inner, .cb-radio:hover .cb-inner {
394
+ border-color:#0073aa
395
+ }
396
+ .cb-switcher {
397
+ display:inline-block;
398
+ border:1px solid #eee;
399
+ background-color:#fff;
400
+ width:95px;
401
+ height:35px;
402
+ position:relative;
403
+ -moz-border-radius:20px;
404
+ -webkit-border-radius:20px;
405
+ border-radius:20px;
406
+ -moz-transition:background 0.4s ease;
407
+ -o-transition:background 0.4s ease;
408
+ -webkit-transition:background 0.4s ease;
409
+ transition:background 0.4s ease
410
+ }
411
+ .cb-switcher, .cb-switcher * {
412
+ cursor:pointer
413
+ }
414
+ .cb-switcher ::-moz-selection {
415
+ background-color:transparent
416
+ }
417
+ .cb-switcher ::selection {
418
+ background-color:transparent
419
+ }
420
+ .cb-switcher .cb-state {
421
+ z-index:1;
422
+ text-align:center;
423
+ font-size:12px
424
+ }
425
+ .cb-switcher .cb-state, .cb-switcher:before {
426
+ width:34px;
427
+ height:34px;
428
+ line-height:34px;
429
+ position:absolute;
430
+ left:0;
431
+ top:-1px;
432
+ -moz-border-radius:100%;
433
+ -webkit-border-radius:100%;
434
+ border-radius:100%;
435
+ -moz-transition:all 0.4s ease;
436
+ -o-transition:all 0.4s ease;
437
+ -webkit-transition:all 0.4s ease;
438
+ transition:all 0.4s ease
439
+ }
440
+ .cb-switcher:before {
441
+ content:"";
442
+ background-color:#eee;
443
+ -moz-box-shadow:1px 1px 1px rgba(0, 0, 0, 0.1);
444
+ -webkit-box-shadow:1px 1px 1px rgba(0, 0, 0, 0.1);
445
+ box-shadow:1px 1px 1px rgba(0, 0, 0, 0.1)
446
+ }
447
+ .cb-switcher.checked {
448
+ background-color:#00a0d2
449
+ }
450
+ .cb-switcher.checked .cb-state, .cb-switcher.checked:before {
451
+ left:60px;
452
+ color:#00a0d2
453
+ }
454
+ .cb-switcher.checked:before {
455
+ background-color:#fff;
456
+ -moz-box-shadow:-1px 1px 1px rgba(0, 0, 0, 0.1);
457
+ -webkit-box-shadow:-1px 1px 1px rgba(0, 0, 0, 0.1);
458
+ box-shadow:-1px 1px 1px rgba(0, 0, 0, 0.1)
459
+ }
460
+ .cb-switcher.checked .inner-switcher:before {
461
+ border-top-color:#0073aa
462
+ }
463
+ .cb-switcher.checked .inner-switcher:after {
464
+ border-bottom-color:#0073aa
465
+ }
466
+ .cb-switcher .inner-switcher:before, .cb-switcher .inner-switcher:after {
467
+ content:"";
468
+ position:absolute;
469
+ left:50%;
470
+ width:0;
471
+ height:0;
472
+ z-index:2;
473
+ margin-left:-20px;
474
+ border-left:20px solid transparent;
475
+ border-right:20px solid transparent;
476
+ -moz-transition:border 0.4s ease;
477
+ -o-transition:border 0.4s ease;
478
+ -webkit-transition:border 0.4s ease;
479
+ transition:border 0.4s ease
480
+ }
481
+ .cb-switcher .inner-switcher:before {
482
+ border-top:17px solid #fff;
483
+ top:0
484
+ }
485
+ .cb-switcher .inner-switcher:after {
486
+ border-bottom:17px solid #fff;
487
+ bottom:0
488
+ }
489
+ .cb-state {
490
+ color:#ccc;
491
+ display:inline-block
492
+ }
493
+ .cb-switcher-group .cb-state {
494
+ position:relative;
495
+ top:7px
496
+ }
497
+ .is-hidden {
498
+ display:none !important;
499
+ visibility:hidden !important
500
+ }
501
+ output {
502
+ display: block;
503
+ font-size: 30px;
504
+ font-weight: bold;
505
+ text-align: center;
506
+ margin: 30px 0;
507
+ width: 100%;
508
}
includes/class-frontend.php CHANGED
@@ -1,345 +1,350 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) )
3
- exit;
4
-
5
- new Responsive_Lightbox_Frontend();
6
-
7
- /**
8
- * Responsive Lightbox frontend class.
9
- *
10
- * @class Responsive_Lightbox_Frontend
11
- */
12
- class Responsive_Lightbox_Frontend {
13
-
14
- public $gallery_no = 0;
15
-
16
- public function __construct() {
17
- // set instance
18
- Responsive_Lightbox()->frontend = $this;
19
-
20
- // filters
21
- add_filter( 'post_gallery', array( $this, 'gallery_attributes' ), 1000 );
22
- add_filter( 'post_gallery', array( $this, 'add_custom_gallery_lightbox_selector' ), 2000, 2 );
23
- add_filter( 'wp_get_attachment_link', array( $this, 'add_gallery_lightbox_selector' ), 1000, 6 );
24
- add_filter( 'the_content', array( $this, 'add_videos_lightbox_selector' ) );
25
- add_filter( 'the_content', array( $this, 'add_links_lightbox_selector' ) );
26
- add_filter( 'woocommerce_single_product_image_html', array( $this, 'woocommerce_single_product_image_html' ), 100 );
27
- add_filter( 'woocommerce_single_product_image_thumbnail_html', array( $this, 'woocommerce_single_product_image_thumbnail_html' ), 100 );
28
-
29
- // actions
30
- add_action( 'wp_enqueue_scripts', array( $this, 'woocommerce_remove_lightbox' ), 100 );
31
- }
32
-
33
- /**
34
- * Add lightbox to videos
35
- *
36
- * @param mixed $content
37
- * @return mixed
38
- */
39
- public function add_videos_lightbox_selector( $content ) {
40
- if ( Responsive_Lightbox()->options['settings']['videos'] ) {
41
- // search for video-links
42
- preg_match_all('/<a(.*?)href=(?:\'|")((?:http|https)(?::\/\/|)(?:www.)?(?:(?:(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=))(?:[\w\-]{11})[a-z0-9;:@#?&%=+\/\$_.-]*)|(?:vimeo\.com\/[0-9]+[a-z0-9;:@#?&%=+\/\$_.-]*)))(?:\'|")(.*?)>/i', $content, $links );
43
-
44
- // found?
45
- if ( ! empty ( $links[0] ) ) {
46
- foreach ( $links[0] as $id => $link ) {
47
- if ( preg_match( '/<a.*?(?:data-rel)=(?:\'|")(.*?)(?:\'|").*?>/', $link, $result ) === 1 ) {
48
-
49
- // do not modify this link
50
- if ( $result[1] === 'norl' )
51
- continue;
52
-
53
- // swipebox video fix
54
- if ( Responsive_Lightbox()->options['settings']['script'] === 'swipebox' && strpos( $links[2][$id], 'vimeo.com') !== false )
55
- $content = str_replace( $link, str_replace( $links[2][$id], $links[2][$id] . '?width=' . Responsive_Lightbox()->options['configuration']['swipebox']['video_max_width'], $link ), $content );
56
-
57
- // replace data-rel
58
- $content = str_replace( $link, preg_replace( '/(?:data-rel)=(?:\'|")(.*?)(?:\'|")/', 'data-rel="' . Responsive_Lightbox()->options['settings']['selector'] . '-video-' . $id . '"', $link ), $content );
59
- } else {
60
- // swipebox video fix
61
- if ( Responsive_Lightbox()->options['settings']['script'] === 'swipebox' && strpos( $links[2][$id], 'vimeo.com') !== false )
62
- $links[2][$id] = $links[2][$id] . '?width=' . Responsive_Lightbox()->options['configuration']['swipebox']['video_max_width'];
63
-
64
- // replace data-rel
65
- $content = str_replace( $link, '<a' . $links[1][$id] . 'href="' . $links[2][$id] . '" data-rel="' . Responsive_Lightbox()->options['settings']['selector'] . '-video-' . $id . '"' . $links[3][$id] . '>', $content );
66
- }
67
- }
68
- }
69
- }
70
-
71
- return $content;
72
- }
73
-
74
- /**
75
- * Add lightbox to to image links
76
- *
77
- * @param mixed $content
78
- * @return mixed
79
- */
80
- public function add_links_lightbox_selector( $content ) {
81
- if ( Responsive_Lightbox()->options['settings']['image_links'] || Responsive_Lightbox()->options['settings']['images_as_gallery'] ) {
82
-
83
- // search for image-links
84
- preg_match_all( '/<a(.*?)href=(?:\'|")([^<]*?).(bmp|gif|jpeg|jpg|png)(?:\'|")(.*?)>/i', $content, $links );
85
-
86
- // found?
87
- if ( ! empty ( $links[0] ) ) {
88
- // generate hash for single images gallery
89
- if ( Responsive_Lightbox()->options['settings']['images_as_gallery'] )
90
- $rel_hash = '-gallery-' . $this->generate_password( 4 );
91
-
92
- foreach ( $links[0] as $id => $link ) {
93
-
94
- // single image title
95
- $title = '';
96
-
97
- if ( ( $title_arg = Responsive_Lightbox()->options['settings']['image_title'] ) !== 'default' ) {
98
- $image_id = (int) $this->get_attachment_id_by_url( $links[2][$id] . '.' . $links[3][$id] );
99
-
100
- if ( $image_id )
101
- $title = wp_strip_all_tags( trim( $this->get_attachment_title( $image_id, apply_filters( 'rl_lightbox_attachment_image_title_arg', $title_arg, $image_id, $links[2][$id] . '.' . $links[3][$id] ) ) ) );
102
- }
103
-
104
- // link contains data-rel attribute
105
- if ( preg_match( '/<a.*?(?:data-rel)=(?:\'|")(.*?)(?:\'|").*?>/', $link, $result ) === 1 ) {
106
-
107
- // do not modify this link
108
- if ( $result[1] === 'norl' )
109
- continue;
110
-
111
- // single images gallery
112
- if ( Responsive_Lightbox()->options['settings']['images_as_gallery'] )
113
- $content = str_replace( $link, preg_replace( '/(?:data-rel)=(?:\'|")(?:.*?)(?:\'|")/', 'data-rel="' . Responsive_Lightbox()->options['settings']['selector'] . $rel_hash . '"' . ( Responsive_Lightbox()->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ) . ' title="' . esc_attr( $title ) . '"', $link ), $content );
114
- // single image
115
- else {
116
- $content = str_replace( $link, preg_replace( '/(?:data-rel)=(?:\'|")(?:.*?)(?:\'|")/', 'data-rel="' . Responsive_Lightbox()->options['settings']['selector'] . '-' . $id . '"' . ( Responsive_Lightbox()->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ) . ' title="' . esc_attr( $title ) . '"', $link ), $content );
117
- }
118
- // link without data-rel
119
- } else {
120
- $content = str_replace( $link, '<a' . $links[1][$id] . 'href="' . $links[2][$id] . '.' . $links[3][$id] . '"' . $links[4][$id] . ' data-rel="' . Responsive_Lightbox()->options['settings']['selector'] . ( Responsive_Lightbox()->options['settings']['images_as_gallery'] ? $rel_hash : '-' . $id ) . '"' . ( Responsive_Lightbox()->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ) . ' title="' . esc_attr( $title ) . '">', $content );
121
- }
122
- }
123
- }
124
- }
125
-
126
- return $content;
127
- }
128
-
129
- /**
130
- * Add lightbox to gallery
131
- */
132
- public function add_gallery_lightbox_selector( $link, $id, $size, $permalink, $icon, $text ) {
133
-
134
- if ( Responsive_Lightbox()->options['settings']['galleries'] && wp_attachment_is_image( $id ) ) {
135
-
136
- // gallery link target image
137
- $src = array();
138
-
139
- // gallery image title
140
- $title = '';
141
-
142
- if ( ( $title_arg = Responsive_Lightbox()->options['settings']['gallery_image_title'] ) !== 'default' ) {
143
- $title_arg = apply_filters( 'rl_lightbox_attachment_image_title_arg', $title_arg, $link, $id );
144
- $title = wp_strip_all_tags( trim( $this->get_attachment_title( $id, $title_arg ) ) );
145
- }
146
-
147
- if ( $title )
148
- $link = str_replace( '<a href', '<a title="'. esc_attr( $title ) .'" href', $link );
149
-
150
- $link = ( preg_match( '/<a.*? (?:data-rel)=("|\').*?("|\')>/', $link ) === 1 ? preg_replace( '/(<a.*? data-rel=(?:"|\').*?)((?:"|\').*?>)/', '$1 ' . Responsive_Lightbox()->options['settings']['selector'] . '-gallery-' . $this->gallery_no . '$2', $link ) : preg_replace( '/(<a.*?)>/', '$1 data-rel="' . Responsive_Lightbox()->options['settings']['selector'] . '-gallery-' . $this->gallery_no . '">', $link ) );
151
-
152
- // gallery image size
153
- if ( Responsive_Lightbox()->options['settings']['gallery_image_size'] != 'full' ) {
154
- $src = wp_get_attachment_image_src( $id, Responsive_Lightbox()->options['settings']['gallery_image_size'] );
155
-
156
- $link = ( preg_match( '/<a.*? href=("|\').*?("|\')>/', $link ) === 1 ? preg_replace( '/(<a.*? href=(?:"|\')).*?((?:"|\').*?>)/', '$1' . $src[0] . '$2', $link ) : preg_replace( '/(<a.*?)>/', '$1 href="' . $src[0] . '">', $link ) );
157
- } else {