Easy FancyBox - Version 1.9.1

Version Description

Bugfix release.

=

Download this release

Release Info

Developer RavanH
Plugin Icon 128x128 Easy FancyBox
Version 1.9.1
Comparing to
See all releases

Code changes from version 1.9 to 1.9.1

Files changed (46) hide show
  1. easy-fancybox.php +4 -4
  2. fancybox/1.3.26/jquery.fancybox.min.js +0 -1
  3. fancybox/{1.3.26 → 1.3.27}/blank.gif +0 -0
  4. fancybox/{1.3.26 → 1.3.27}/fancy_close.png +0 -0
  5. fancybox/{1.3.26 → 1.3.27}/fancy_loading.png +0 -0
  6. fancybox/{1.3.26 → 1.3.27}/fancy_nav_left.png +0 -0
  7. fancybox/{1.3.26 → 1.3.27}/fancy_nav_right.png +0 -0
  8. fancybox/{1.3.26 → 1.3.27}/fancy_shadow_e.png +0 -0
  9. fancybox/{1.3.26 → 1.3.27}/fancy_shadow_n.png +0 -0
  10. fancybox/{1.3.26 → 1.3.27}/fancy_shadow_ne.png +0 -0
  11. fancybox/{1.3.26 → 1.3.27}/fancy_shadow_nw.png +0 -0
  12. fancybox/{1.3.26 → 1.3.27}/fancy_shadow_s.png +0 -0
  13. fancybox/{1.3.26 → 1.3.27}/fancy_shadow_se.png +0 -0
  14. fancybox/{1.3.26 → 1.3.27}/fancy_shadow_sw.png +0 -0
  15. fancybox/{1.3.26 → 1.3.27}/fancy_shadow_w.png +0 -0
  16. fancybox/{1.3.26 → 1.3.27}/fancy_title_left.png +0 -0
  17. fancybox/{1.3.26 → 1.3.27}/fancy_title_main.png +0 -0
  18. fancybox/{1.3.26 → 1.3.27}/fancy_title_over.png +0 -0
  19. fancybox/{1.3.26 → 1.3.27}/fancy_title_right.png +0 -0
  20. fancybox/{1.3.26 → 1.3.27}/fancybox-x.png +0 -0
  21. fancybox/{1.3.26 → 1.3.27}/fancybox-y.png +0 -0
  22. fancybox/{1.3.26 → 1.3.27}/fancybox.png +0 -0
  23. fancybox/{1.3.26 → 1.3.27}/jquery.fancybox-ie.css +0 -0
  24. fancybox/{1.3.26 → 1.3.27}/jquery.fancybox-ie.min.css +0 -0
  25. fancybox/{1.3.26 → 1.3.27}/jquery.fancybox.css +0 -0
  26. fancybox/{1.3.26 → 1.3.27}/jquery.fancybox.js +7 -1
  27. fancybox/{1.3.26 → 1.3.27}/jquery.fancybox.min.css +0 -0
  28. fancybox/1.3.27/jquery.fancybox.min.js +1 -0
  29. fancybox/1.5.0/jquery.fancybox.min.js +0 -1
  30. fancybox/{1.5.0 → 1.5.1}/jquery.fancybox.css +0 -0
  31. fancybox/{1.5.0 → 1.5.1}/jquery.fancybox.js +7 -7
  32. fancybox/{1.5.0 → 1.5.1}/jquery.fancybox.min.css +0 -0
  33. fancybox/1.5.1/jquery.fancybox.min.js +1 -0
  34. fancybox/2.2.0/jquery.fancybox.js +1 -1
  35. fancybox/2.2.0/jquery.fancybox.min.js +1 -1
  36. inc/class-easyfancybox-admin.php +2 -2
  37. inc/class-easyfancybox.php +1 -1
  38. inc/fancybox-2-options.php +22 -14
  39. inc/fancybox-2.php +18 -8
  40. inc/fancybox-classic-options.php +23 -19
  41. inc/fancybox-classic.php +6 -4
  42. inc/fancybox-legacy-options.php +23 -20
  43. inc/fancybox-legacy.php +6 -4
  44. readme.txt +8 -3
  45. views/admin-notice.php +10 -4
  46. views/settings-section-intro.php +3 -1
easy-fancybox.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://status301.net/wordpress-plugins/easy-fancybox/
5
  Description: Easily enable the FancyBox jQuery light box on all media file links. Also supports iframe, inline content and well known video hosts.
6
  Text Domain: easy-fancybox
7
  Domain Path: languages
8
- Version: 1.9
9
  Author: RavanH
10
  Author URI: http://status301.net/
11
  */
@@ -31,10 +31,10 @@ if ( ! defined( 'ABSPATH' ) ) exit;
31
  * CONSTANTS
32
  **************/
33
 
34
- define( 'EASY_FANCYBOX_VERSION', '1.9' );
35
  define( 'FANCYBOX_VERSIONS', array(
36
- 'legacy' => '1.3.26',
37
- 'classic' => '1.5.0',
38
  'fancyBox2' => '2.2.0',
39
  //'fancyBox3' => '3.5.7'
40
  ) );
5
  Description: Easily enable the FancyBox jQuery light box on all media file links. Also supports iframe, inline content and well known video hosts.
6
  Text Domain: easy-fancybox
7
  Domain Path: languages
8
+ Version: 1.9.1
9
  Author: RavanH
10
  Author URI: http://status301.net/
11
  */
31
  * CONSTANTS
32
  **************/
33
 
34
+ define( 'EASY_FANCYBOX_VERSION', '1.9.1' );
35
  define( 'FANCYBOX_VERSIONS', array(
36
+ 'legacy' => '1.3.27',
37
+ 'classic' => '1.5.1',
38
  'fancyBox2' => '2.2.0',
39
  //'fancyBox3' => '3.5.7'
40
  ) );
fancybox/1.3.26/jquery.fancybox.min.js DELETED
@@ -1 +0,0 @@
1
- !function(e){var t,i,n,o,a,d,r,c,s,l,h,f,p,g,b=0,u={},y=[],m=0,w={},v=[],x=null,_=new Image,k=/\.(jpg|gif|png|bmp|jpeg|webp)(.*)?$/i,C=/[^\.]\.(swf)\s*$/i,I=/[^\.]\.(svg)\s*$/i,j=/[^\.]\.(pdf)\s*$/i,O=1,T=0,N="",A=!1,E=e.extend(e("<div/>")[0],{prop:0}),S=/MSIE|Trident/.test(window.navigator.userAgent),D=S&&!window.XMLHttpRequest,W=void 0!==document.createTouch;_abort=function(){e.fancybox.hideActivity(),_.onerror=_.onload=null,x&&x.abort(),t.empty()},_error=function(i){if(!1===u.onError(y,b,u))return e.fancybox.hideActivity(),void(A=!1);void 0===i&&(i="Please try again later."),u.titleShow=!1,u.width="auto",u.height="auto",t.html('<p id="fancybox-error">The requested content cannot be loaded.<br />'+i+"</p>"),_process_inline()},_start=function(){var i,n,o,a,r,c,s=y[b];if(_abort(),u=e.extend({},e.fn.fancybox.defaults,void 0===e(s).data("fancybox")?u:e(s).data("fancybox")),document.documentElement.clientWidth<u.minViewportWidth)A=!1;else if(!1!==(c=u.onStart(y,b,u)))if("object"==typeof c&&(u=e.extend(u,c)),o=u.title||(s.nodeName?e(s).attr("title"):s.title)||"",s.nodeName&&!u.orig&&(u.orig=e(s).find("img:first").length?e(s).find("img:first"):e(s)),""===o&&u.orig&&(o=u.orig.attr("title")||(u.titleFromAlt?u.orig.attr("alt"):"")),i=u.href||(s.nodeName?e(s).attr("href"):s.href)||null,(/^(?:javascript)/i.test(i)||"#"==i)&&(i=null),u.type?(n=u.type,i||(i=u.content)):u.content?n="html":e(s).hasClass("iframe")?n="iframe":i&&(n=i.match(k)||e(s).hasClass("image")?"image":i.match(C)?"swf":i.match(I)?"svg":i.match(j)?"pdf":0===i.indexOf("#")?"inline":"ajax"),n)switch(e(s).hasClass("modal")&&(u.modal=!0),"inline"==n&&(s=i.substr(i.indexOf("#")),n=e(s).length>0?"inline":"ajax"),u.type=n,u.href=i,u.title=o,u.autoDimensions&&("html"==u.type||"inline"==u.type||"ajax"==u.type?(u.width="auto",u.height="auto"):u.autoDimensions=!1),u.modal&&(u.overlayShow=!0,u.hideOnOverlayClick=!1,u.hideOnContentClick=!1,u.enableEscapeButton=!1,u.showCloseButton=!1),u.padding=parseInt(u.padding,10),u.margin=parseInt(u.margin,10),t.css("padding",u.padding+u.margin),e(".fancybox-inline-tmp").off("fancybox-cancel").on("fancybox-change",(function(){e(this).replaceWith(d.children())})),n){case"html":t.html(u.content),_process_inline();break;case"inline":if(!0===e(s).parent().is("#fancybox-content"))return void(A=!1);e('<div class="fancybox-inline-tmp" />').hide().insertBefore(e(s)).on("fancybox-cleanup",(function(){e(this).replaceWith(d.find(s))})).on("fancybox-cancel",(function(){e(this).replaceWith(t.find(s))})),e(s).appendTo(t),_process_inline();break;case"image":u.keepRatio=!0,A=!1,e.fancybox.showActivity(),(_=new Image).onerror=function(){_error("No image found.")},_.onload=function(){A=!0,_.onerror=_.onload=null,_process_image()},_.src=i;break;case"swf":u.scrolling="no",u.keepRatio=!0,a='<object type="application/x-shockwave-flash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+u.width+'" height="'+u.height+'"><param name="movie" value="'+i+'"></param>',r="",e.each(u.swf,(function(e,t){a+='<param name="'+e+'" value="'+t+'"></param>',r+=" "+e+'="'+t+'"'})),a+='<embed src="'+i+'" type="application/x-shockwave-flash" width="'+u.width+'" height="'+u.height+'"'+r+"></embed></object>",t.html(a),_process_inline();break;case"svg":u.scrolling="no",u.keepRatio=!0,a='<object type="image/svg+xml" width="'+u.width+'" height="'+u.height+'" data="'+i+'"></object>',t.html(a),_process_inline();break;case"pdf":u.scrolling="no",u.enableKeyboardNav=!1,u.showNavArrows=!1,a='<object type="application/pdf" width="100%" height="100%" data="'+i+'"><a href="'+i+'" style="display:block;position:absolute;top:48%;width:100%;text-align:center">'+e(s).html()+"</a></object>",t.html(a),_process_inline();break;case"ajax":A=!1,e.fancybox.showActivity(),u.ajax.win=u.ajax.success,x=e.ajax(e.extend({},u.ajax,{url:i,data:u.ajax.data||{},error:function(e,t,i){e.status>0&&_error(i)},success:function(n,o,a){if(200==("object"==typeof a?a:x).status){if("function"==typeof u.ajax.win){if(!1===(c=u.ajax.win(i,n,o,a)))return void e.fancybox.hideActivity();"string"!=typeof c&&"object"!=typeof c||(n=c)}n.indexOf("<!DOCTYPE")>-1||n.indexOf("<html")>-1||n.indexOf("<body")>-1?_error("Unexpected response."):(t.html(n),_process_inline())}}}));break;case"iframe":u.enableKeyboardNav=!1,u.showNavArrows=!1,e.fancybox.showActivity(),_show();break}else _error("No content type found.");else A=!1},_process_inline=function(){var i=u.width,n=u.height,o=0==e(window).width()?window.innerWidth:e(window).width(),a=0==e(window).height()?window.innerHeight:e(window).height();i=i.toString().indexOf("%")>-1?parseInt((o-2*u.margin)*parseFloat(i)/100,10)+"px":"auto"==i?"auto":i+"px",n=n.toString().indexOf("%")>-1?parseInt((a-2*u.margin)*parseFloat(n)/100,10)+"px":"auto"==n?"auto":n+"px",t.wrapInner('<div style="width:'+i+";height:"+n+";overflow:"+("auto"==u.scrolling?"auto":"yes"==u.scrolling?"scroll":"hidden")+';position:relative;"></div>'),u.width=t.width(),u.height=t.height(),_show()},_process_image=function(){u.width=_.width,u.height=_.height,e("<img />").attr({id:"fancybox-img",src:_.src,alt:u.title}).appendTo(t),_show()},_show=function(){var i,a;return"iframe"!==u.type&&e.fancybox.hideActivity(),o.is(":visible")&&!1===w.onCleanup(v,m,w)?(e(".fancybox-inline-tmp").trigger("fancybox-cancel"),void(A=!1)):(A=!0,e(d.add(n)).off(),e(window).off("orientationchange.fb resize.fb scroll.fb"),e(document).off("keydown.fb"),o.is(":visible")&&"outside"!==w.titlePosition&&o.css("height",o.height()),v=y,m=b,(w=u).overlayShow?(n.css({"background-color":w.overlayColor,opacity:w.overlayOpacity,cursor:w.hideOnOverlayClick?"pointer":"auto",height:e(document).height()}),n.is(":visible")||(D&&e("select:not(#fancybox-tmp select)").filter((function(){return"hidden"!==this.style.visibility})).css({visibility:"hidden"}).one("fancybox-cleanup",(function(){this.style.visibility="inherit"})),n.show())):n.hide(),g=_get_zoom_to(),_process_title(),o.is(":visible")?(e(r.add(s).add(l)).hide(),i=o.position(),p={top:i.top,left:i.left,width:o.width(),height:o.height()},a=p.width==g.width&&p.height==g.height,void d.fadeTo(w.changeFade,.3,(function(){var i=function(){d.html(t.contents()).fadeTo(w.changeFade,1,_finish)};e(".fancybox-inline-tmp").trigger("fancybox-change"),d.empty().removeAttr("filter").css({"border-width":w.padding,width:g.width-2*w.padding,height:w.autoDimensions?"auto":g.height-T-2*w.padding}),a?i():(E.prop=0,e(E).animate({prop:1},{duration:w.changeSpeed,easing:w.easingChange,step:_draw,complete:i}))}))):(o.removeAttr("style"),d.css("border-width",w.padding),"elastic"==w.transitionIn?(p=_get_zoom_from(),d.html(t.contents()),o.show(),w.opacity&&(g.opacity=0),E.prop=0,void e(E).animate({prop:1},{duration:w.speedIn,easing:w.easingIn,step:_draw,complete:_finish})):("inside"==w.titlePosition&&T>0&&c.show(),d.css({width:g.width-2*w.padding,height:w.autoDimensions?"auto":g.height-T-2*w.padding}).html(t.contents()),void o.css(g).fadeIn("none"==w.transitionIn?0:w.speedIn,_finish))))},_format_title=function(e){return!(!e||!e.length)&&("float"==w.titlePosition?'<table id="fancybox-title-float-wrap" style="border-spacing:0;border-collapse:collapse"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+e+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+w.titlePosition+'">'+e+"</div>")},_process_title=function(){if(N=w.title||"",T=0,c.empty().removeAttr("style").removeClass(),!1!==w.titleShow)if((N=e.isFunction(w.titleFormat)?w.titleFormat(N,v,m,w):_format_title(N))&&""!==N){switch(c.addClass("fancybox-title-"+w.titlePosition).html(N).appendTo("body").show(),w.titlePosition){case"inside":c.css({width:g.width-2*w.padding,marginLeft:w.padding,marginRight:w.padding}).appendTo(a),T=c.outerHeight(!0),g.height+=T;break;case"over":c.css({marginLeft:w.padding,width:g.width-2*w.padding,bottom:w.padding}).appendTo(a);break;case"float":c.css("left",-1*parseInt((c.width()-g.width)/2,10)).appendTo(a);break;default:c.css({width:g.width-2*w.padding,paddingLeft:w.padding,paddingRight:w.padding}).appendTo(o);break}c.hide()}else c.hide();else c.hide()},_set_navigation=function(){if((w.enableEscapeButton||w.enableKeyboardNav)&&e(document).on("keydown.fb",(function(t){27==t.keyCode&&w.enableEscapeButton?(t.preventDefault(),e.fancybox.close()):37!=t.keyCode&&39!=t.keyCode||!w.enableKeyboardNav||"INPUT"===t.target.tagName||"TEXTAREA"===t.target.tagName||"SELECT"===t.target.tagName?9==t.keyCode&&w.enableKeyboardNav&&"INPUT"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName&&"SELECT"!==t.target.tagName&&(t.preventDefault(),e.fancybox[t.shiftKey?"prev":"next"]()):(t.preventDefault(),e.fancybox[37==t.keyCode?"prev":"next"]())})),!w.showNavArrows)return s.hide(),void l.hide();(w.cyclic&&v.length>1||0!==m)&&s.show(),(w.cyclic&&v.length>1||m!=v.length-1)&&l.show()},_finish=function(){S&&(d.css("filter",0),o.css("filter",0)),w.autoDimensions&&d.css("height","auto"),o.css("height","auto"),N&&N.length&&c.show(),w.showCloseButton&&r.show(),_set_navigation(),w.hideOnContentClick&&d.on("click",e.fancybox.close),w.hideOnOverlayClick&&n.on("click",e.fancybox.close),w.autoResize&&e(window).on("resize.fb",e.fancybox.resize),w.centerOnScroll&&!W&&e(window).on("scroll.fb",e.fancybox.center),e.fn.mousewheel&&o.on("mousewheel.fb",(function(t,i){A?t.preventDefault():"image"!=w.type||0!=e(t.target).outerHeight()&&e(t.target).prop("scrollHeight")!==e(t.target).outerHeight()||(t.preventDefault(),e.fancybox[i>0?"prev":"next"]())})),"iframe"==w.type&&e('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'"'+(navigator.userAgent.match(/msie [6]/i)?' allowtransparency="true""':"")+' style="border:0;margin:0;overflow:'+("auto"==w.scrolling?"auto":"yes"==w.scrolling?"scroll":"hidden")+'" src="'+w.href+'"'+(!1===w.allowfullscreen?"":" allowfullscreen")+' allow="autoplay; encrypted-media" tabindex="999"></iframe>').appendTo(d).on("load",(function(){e.fancybox.hideActivity()})).focus(),o.show(),A=!1,e.fancybox.center(),w.onComplete(v,m,w),v.length>1&&(_preload_next(),_preload_prev())},_preload_next=function(){var e="number"==typeof arguments[0]?arguments[0]:m+1;if(e>=v.length){if(!w.cyclic)return;e=0}if(e==m)return w.enableKeyboardNav=!1,o.off("mousewheel.fb"),void l.hide();_preload_image(e)||_preload_next(e+1)},_preload_prev=function(){var e="number"==typeof arguments[0]?arguments[0]:m-1;if(e<0){if(!w.cyclic)return;e=v.length-1}if(e==m)return w.enableKeyboardNav=!1,o.off("mousewheel.fb"),void s.hide();_preload_image(e)||_preload_prev(e-1)},_preload_image=function(t){var i=v[t];return!(void 0===i||void 0===i.href||i.href===w.href||!i.href.match(k)&&!e(i).hasClass("image"))&&((new Image).src=i.href,!0)},_draw=function(e){var t={width:parseInt(p.width+(g.width-p.width)*e,10),height:parseInt(p.height+(g.height-p.height)*e,10),top:parseInt(p.top+(g.top-p.top)*e,10),left:parseInt(p.left+(g.left-p.left)*e,10)};void 0!==g.opacity&&(t.opacity=e<.5?.5:e),o.css(t),d.css({width:t.width-2*w.padding,height:t.height-T*e-2*w.padding})},_get_viewport=function(){var t,i=!W&&window.innerWidth&&document.documentElement.clientWidth?Math.min(window.innerWidth,document.documentElement.clientWidth):window.innerWidth||document.documentElement.clientWidth||document.getElementsByTagName("body")[0].clientWidth,n=!W&&window.innerHeight&&document.documentElement.clientHeight?Math.min(window.innerHeight,document.documentElement.clientHeight):window.innerHeight||document.documentElement.clientHeight||document.getElementsByTagName("body")[0].clientHeight;return[i-2*(t=!0===arguments[0]?0:w.margin),n-2*t,e(document).scrollLeft()+t,e(document).scrollTop()+t]},_get_zoom_to=function(){var e,t=_get_viewport(),i={},n=2*w.padding;return w.width.toString().indexOf("%")>-1?i.width=parseInt(t[0]*parseFloat(w.width)/100,10):i.width=w.width+n,w.height.toString().indexOf("%")>-1?i.height=parseInt(t[1]*parseFloat(w.height)/100,10):i.height=w.height+n,w.autoScale&&(i.width>t[0]||i.height>t[1])&&(w.keepRatio?(e=w.width/w.height,i.width>t[0]&&(i.width=t[0],i.height=parseInt((i.width-n)/e+n,10)),i.height>t[1]&&(i.height=t[1],i.width=parseInt((i.height-n)*e+n,10))):(i.width=Math.min(i.width,t[0]),i.height=Math.min(i.height,t[1]))),i.top=parseInt(Math.max(t[3]-20,t[3]+.5*(t[1]-i.height-40)),10),i.left=parseInt(Math.max(t[2]-20,t[2]+.5*(t[0]-i.width-40)),10),i},_get_obj_pos=function(e){var t=e.offset();return t.top+=parseInt(e.css("paddingTop"),10)||0,t.left+=parseInt(e.css("paddingLeft"),10)||0,t.top+=parseInt(e.css("border-top-width"),10)||0,t.left+=parseInt(e.css("border-left-width"),10)||0,t.width=e.width(),t.height=e.height(),t},_get_zoom_from=function(){var t,i,n=!!u.orig&&e(u.orig),o={};return n&&n.length?o={width:(t=_get_obj_pos(n)).width+2*w.padding,height:t.height+2*w.padding,top:t.top-w.padding-20,left:t.left-w.padding-20}:(i=_get_viewport(),o={width:2*w.padding,height:2*w.padding,top:parseInt(.5*(i[3]+i[1]),10),left:parseInt(.5*(i[2]+i[0]),10)}),o},_animate_loading=function(){i.is(":visible")?(e("div",i).css("top",-40*O+"px"),O=(O+1)%12):clearInterval(f)},e.fn.fancybox=function(t){return e(this).length?(e(this).data("fancybox",e.extend({},t,e.metadata?e(this).metadata():{})).off("click.fb").on("click.fb",(function(t){if(t.preventDefault(),!A){A=!0,e(this).blur(),y=[],b=0;var i=e(this).attr("rel")||"";return""==i||""==i.replace(/alternate|external|help|license|nofollow|noreferrer|noopener|\s+/gi,"")?y.push(this):(y=e('a[rel="'+i+'"], area[rel="'+i+'"]'),b=y.index(this)),_start(),!1}})),this):this},e.fancybox=function(t){var i;if(!A){if(A=!0,i=void 0!==arguments[1]?arguments[1]:{},y=[],b=parseInt(i.index,10)||0,e.isArray(t)){for(var n=0,o=t.length;n<o;n++)"object"==typeof t[n]?e(t[n]).data("fancybox",e.extend({},i,t[n])):t[n]=e({}).data("fancybox",e.extend({content:t[n]},i));y=jQuery.merge(y,t)}else"object"==typeof t?e(t).data("fancybox",e.extend({},i,t)):t=e({}).data("fancybox",e.extend({content:t},i)),y.push(t);(b>y.length||b<0)&&(b=0),_start()}},e.fancybox.showActivity=function(){clearInterval(f),i.show(),f=setInterval(_animate_loading,66)},e.fancybox.hideActivity=function(){i.hide()},e.fancybox.next=function(){var t,i="number"==typeof arguments[0]?arguments[0]:m+1;if(i>=v.length){if(!w.cyclic)return;i=0}t=v[i],i!=m&&void 0!==t&&void 0!==t.href&&t.href===w.href?e.fancybox.next(i+1):e.fancybox.pos(i)},e.fancybox.prev=function(){var t,i="number"==typeof arguments[0]?arguments[0]:m-1;if(i<0){if(!w.cyclic)return;i=v.length-1}t=v[i],i!=m&&void 0!==t&&void 0!==t.href&&t.href===w.href?e.fancybox.prev(i-1):e.fancybox.pos(i)},e.fancybox.pos=function(e){A||(e=parseInt(e),y=v,e>-1&&e<v.length&&(b=e,_start()))},e.fancybox.cancel=function(){A||(A=!0,e(".fancybox-inline-tmp").trigger("fancybox-cancel"),_abort(),u.onCancel(y,b,u),A=!1)},e.fancybox.close=function(){if(!A&&!o.is(":hidden"))if(A=!0,w&&!1===w.onCleanup(v,m,w))A=!1;else if(_abort(),e(r.add(s).add(l)).hide(),e(d.add(n)).off(),e(window).off("orientationchange.fb resize.fb scroll.fb mousewheel.fb"),e(document).off("keydown.fb"),S&&d.find("iframe#fancybox-frame").attr("src",D&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"//about:blank"),"inside"!==w.titlePosition&&c.empty(),o.stop(),"elastic"==w.transitionOut){p=_get_zoom_from();var t=o.position();g={top:t.top,left:t.left,width:o.width(),height:o.height()},w.opacity&&(g.opacity=1),c.empty().hide(),E.prop=1,e(E).animate({prop:0},{duration:w.speedOut,easing:w.easingOut,step:_draw,complete:i})}else o.fadeOut("none"==w.transitionOut?0:w.speedOut,i);function i(){n.fadeOut("fast"),c.empty().hide(),o.hide(),e(".fancybox-inline-tmp").trigger("fancybox-cleanup"),d.empty(),w.onClosed(v,m,w),v=u=[],m=b=0,w=u={},A=!1}},e.fancybox.resize=function(){var t;clearTimeout(h),h=setTimeout((function(){n.is(":visible")&&n.css("height",e(document).height()),t=o.position(),p={top:t.top,left:t.left,width:o.width(),height:o.height()},g=_get_zoom_to(),A=!0,_process_title(),E.prop=0,e(E).animate({prop:1},{duration:w.changeSpeed,easing:w.easingChange,step:_draw,complete:function(){u.autoDimensions&&d.css("height","auto"),o.css("height","auto"),N&&N.length&&c.show(),A=!1,e.fancybox.center(!0)}})}),500)},e.fancybox.center=function(){var e,t;A||(t=!0===arguments[0]?1:0,e=_get_viewport(!0),!t&&(o.width()+40>e[0]||o.height()+40>e[1])||o.stop().animate({top:parseInt(Math.max(e[3]-20,e[3]+.5*(e[1]-d.height()-40)-w.padding)),left:parseInt(Math.max(e[2]-20,e[2]+.5*(e[0]-d.width()-40)-w.padding))},"number"==typeof arguments[0]?arguments[0]:300))},e.fancybox.init=function(){e("#fancybox-wrap").length||(e("body").append(t=e('<div id="fancybox-tmp"></div>'),i=e('<div id="fancybox-loading"><div></div></div>'),n=e('<div id="fancybox-overlay"></div>'),o=e('<div id="fancybox-wrap"></div>')),(a=e('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(o)).append(d=e('<div id="fancybox-content"></div>'),r=e('<a id="fancybox-close" title="Close" class="fancy-ico" href="javascript:;"></a>'),c=e('<div id="fancybox-title"></div>'),s=e('<a id="fancybox-left" title="Previous" href="javascript:;"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),l=e('<a id="fancybox-right" title="Next" href="javascript:;"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')),r.click(e.fancybox.close),i.click(e.fancybox.cancel),s.click((function(t){t.preventDefault(),e.fancybox.prev()})),l.click((function(t){t.preventDefault(),e.fancybox.next()})),S&&o.addClass("fancybox-ie"),D&&(i.addClass("fancybox-ie6"),o.addClass("fancybox-ie6"),e('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" style="overflow:hidden;border:0" tabindex="-1"></iframe>').prependTo(a)))},e.fn.fancybox.defaults={padding:10,margin:40,opacity:!1,modal:!1,cyclic:!1,allowfullscreen:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!1,autoResize:!0,keepRatio:!1,minViewportWidth:0,ajax:{},swf:{wmode:"opaque"},svg:{wmode:"opaque"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:.7,overlayColor:"#777",titleShow:!0,titlePosition:"float",titleFormat:null,titleFromAlt:!0,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,enableKeyboardNav:!0,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}},e(document).ready((function(){e.fancybox.init()}))}(jQuery);
 
fancybox/{1.3.26 → 1.3.27}/blank.gif RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/fancy_close.png RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/fancy_loading.png RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/fancy_nav_left.png RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/fancy_nav_right.png RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/fancy_shadow_e.png RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/fancy_shadow_n.png RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/fancy_shadow_ne.png RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/fancy_shadow_nw.png RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/fancy_shadow_s.png RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/fancy_shadow_se.png RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/fancy_shadow_sw.png RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/fancy_shadow_w.png RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/fancy_title_left.png RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/fancy_title_main.png RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/fancy_title_over.png RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/fancy_title_right.png RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/fancybox-x.png RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/fancybox-y.png RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/fancybox.png RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/jquery.fancybox-ie.css RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/jquery.fancybox-ie.min.css RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/jquery.fancybox.css RENAMED
File without changes
fancybox/{1.3.26 → 1.3.27}/jquery.fancybox.js RENAMED
@@ -7,7 +7,7 @@
7
  * Copyright (c) 2008 - 2010 Janis Skarnelis
8
  * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
9
  *
10
- * Version: 1.3.26 (2019/04/07)
11
  * Requires: jQuery v1.7+
12
  *
13
  * Dual licensed under the MIT and GPL licenses:
@@ -80,6 +80,8 @@
80
  return;
81
  }
82
 
 
 
83
  ret = selectedOpts.onStart(selectedArray, selectedIndex, selectedOpts);
84
 
85
  if (ret === false) {
@@ -690,6 +692,8 @@
690
 
691
  $.fancybox.center();
692
 
 
 
693
  currentOpts.onComplete(currentArray, currentIndex, currentOpts);
694
 
695
  if (currentArray.length > 1) {
@@ -1114,6 +1118,8 @@
1114
 
1115
  content.empty();
1116
 
 
 
1117
  currentOpts.onClosed(currentArray, currentIndex, currentOpts);
1118
 
1119
  currentArray = selectedOpts = [];
7
  * Copyright (c) 2008 - 2010 Janis Skarnelis
8
  * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
9
  *
10
+ * Version: 1.3.27 (2019/04/07)
11
  * Requires: jQuery v1.7+
12
  *
13
  * Dual licensed under the MIT and GPL licenses:
80
  return;
81
  }
82
 
83
+ $(document).trigger('fancybox-start', [ selectedArray, selectedIndex, selectedOpts ] );
84
+
85
  ret = selectedOpts.onStart(selectedArray, selectedIndex, selectedOpts);
86
 
87
  if (ret === false) {
692
 
693
  $.fancybox.center();
694
 
695
+ $(document).trigger('fancybox-complete', [ currentArray, currentIndex, currentOpts ] );
696
+
697
  currentOpts.onComplete(currentArray, currentIndex, currentOpts);
698
 
699
  if (currentArray.length > 1) {
1118
 
1119
  content.empty();
1120
 
1121
+ $(document).trigger('fancybox-closed', [ currentArray, currentIndex, currentOpts ] );
1122
+
1123
  currentOpts.onClosed(currentArray, currentIndex, currentOpts);
1124
 
1125
  currentArray = selectedOpts = [];
fancybox/{1.3.26 → 1.3.27}/jquery.fancybox.min.css RENAMED
File without changes
fancybox/1.3.27/jquery.fancybox.min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e){var t,i,n,o,a,d,r,c,s,l,h,f,p,g,b=0,u={},y=[],m=0,w={},v=[],x=null,_=new Image,k=/\.(jpg|gif|png|bmp|jpeg|webp)(.*)?$/i,C=/[^\.]\.(swf)\s*$/i,I=/[^\.]\.(svg)\s*$/i,j=/[^\.]\.(pdf)\s*$/i,O=1,T=0,N="",A=!1,E=e.extend(e("<div/>")[0],{prop:0}),S=/MSIE|Trident/.test(window.navigator.userAgent),D=S&&!window.XMLHttpRequest,W=void 0!==document.createTouch;_abort=function(){e.fancybox.hideActivity(),_.onerror=_.onload=null,x&&x.abort(),t.empty()},_error=function(i){if(!1===u.onError(y,b,u))return e.fancybox.hideActivity(),void(A=!1);void 0===i&&(i="Please try again later."),u.titleShow=!1,u.width="auto",u.height="auto",t.html('<p id="fancybox-error">The requested content cannot be loaded.<br />'+i+"</p>"),_process_inline()},_start=function(){var i,n,o,a,r,c,s=y[b];if(_abort(),u=e.extend({},e.fn.fancybox.defaults,void 0===e(s).data("fancybox")?u:e(s).data("fancybox")),document.documentElement.clientWidth<u.minViewportWidth)A=!1;else if(e(document).trigger("fancybox-start",[y,b,u]),!1!==(c=u.onStart(y,b,u)))if("object"==typeof c&&(u=e.extend(u,c)),o=u.title||(s.nodeName?e(s).attr("title"):s.title)||"",s.nodeName&&!u.orig&&(u.orig=e(s).find("img:first").length?e(s).find("img:first"):e(s)),""===o&&u.orig&&(o=u.orig.attr("title")||(u.titleFromAlt?u.orig.attr("alt"):"")),i=u.href||(s.nodeName?e(s).attr("href"):s.href)||null,(/^(?:javascript)/i.test(i)||"#"==i)&&(i=null),u.type?(n=u.type,i||(i=u.content)):u.content?n="html":e(s).hasClass("iframe")?n="iframe":i&&(n=i.match(k)||e(s).hasClass("image")?"image":i.match(C)?"swf":i.match(I)?"svg":i.match(j)?"pdf":0===i.indexOf("#")?"inline":"ajax"),n)switch(e(s).hasClass("modal")&&(u.modal=!0),"inline"==n&&(s=i.substr(i.indexOf("#")),n=e(s).length>0?"inline":"ajax"),u.type=n,u.href=i,u.title=o,u.autoDimensions&&("html"==u.type||"inline"==u.type||"ajax"==u.type?(u.width="auto",u.height="auto"):u.autoDimensions=!1),u.modal&&(u.overlayShow=!0,u.hideOnOverlayClick=!1,u.hideOnContentClick=!1,u.enableEscapeButton=!1,u.showCloseButton=!1),u.padding=parseInt(u.padding,10),u.margin=parseInt(u.margin,10),t.css("padding",u.padding+u.margin),e(".fancybox-inline-tmp").off("fancybox-cancel").on("fancybox-change",(function(){e(this).replaceWith(d.children())})),n){case"html":t.html(u.content),_process_inline();break;case"inline":if(!0===e(s).parent().is("#fancybox-content"))return void(A=!1);e('<div class="fancybox-inline-tmp" />').hide().insertBefore(e(s)).on("fancybox-cleanup",(function(){e(this).replaceWith(d.find(s))})).on("fancybox-cancel",(function(){e(this).replaceWith(t.find(s))})),e(s).appendTo(t),_process_inline();break;case"image":u.keepRatio=!0,A=!1,e.fancybox.showActivity(),(_=new Image).onerror=function(){_error("No image found.")},_.onload=function(){A=!0,_.onerror=_.onload=null,_process_image()},_.src=i;break;case"swf":u.scrolling="no",u.keepRatio=!0,a='<object type="application/x-shockwave-flash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+u.width+'" height="'+u.height+'"><param name="movie" value="'+i+'"></param>',r="",e.each(u.swf,(function(e,t){a+='<param name="'+e+'" value="'+t+'"></param>',r+=" "+e+'="'+t+'"'})),a+='<embed src="'+i+'" type="application/x-shockwave-flash" width="'+u.width+'" height="'+u.height+'"'+r+"></embed></object>",t.html(a),_process_inline();break;case"svg":u.scrolling="no",u.keepRatio=!0,a='<object type="image/svg+xml" width="'+u.width+'" height="'+u.height+'" data="'+i+'"></object>',t.html(a),_process_inline();break;case"pdf":u.scrolling="no",u.enableKeyboardNav=!1,u.showNavArrows=!1,a='<object type="application/pdf" width="100%" height="100%" data="'+i+'"><a href="'+i+'" style="display:block;position:absolute;top:48%;width:100%;text-align:center">'+e(s).html()+"</a></object>",t.html(a),_process_inline();break;case"ajax":A=!1,e.fancybox.showActivity(),u.ajax.win=u.ajax.success,x=e.ajax(e.extend({},u.ajax,{url:i,data:u.ajax.data||{},error:function(e,t,i){e.status>0&&_error(i)},success:function(n,o,a){if(200==("object"==typeof a?a:x).status){if("function"==typeof u.ajax.win){if(!1===(c=u.ajax.win(i,n,o,a)))return void e.fancybox.hideActivity();"string"!=typeof c&&"object"!=typeof c||(n=c)}n.indexOf("<!DOCTYPE")>-1||n.indexOf("<html")>-1||n.indexOf("<body")>-1?_error("Unexpected response."):(t.html(n),_process_inline())}}}));break;case"iframe":u.enableKeyboardNav=!1,u.showNavArrows=!1,e.fancybox.showActivity(),_show();break}else _error("No content type found.");else A=!1},_process_inline=function(){var i=u.width,n=u.height,o=0==e(window).width()?window.innerWidth:e(window).width(),a=0==e(window).height()?window.innerHeight:e(window).height();i=i.toString().indexOf("%")>-1?parseInt((o-2*u.margin)*parseFloat(i)/100,10)+"px":"auto"==i?"auto":i+"px",n=n.toString().indexOf("%")>-1?parseInt((a-2*u.margin)*parseFloat(n)/100,10)+"px":"auto"==n?"auto":n+"px",t.wrapInner('<div style="width:'+i+";height:"+n+";overflow:"+("auto"==u.scrolling?"auto":"yes"==u.scrolling?"scroll":"hidden")+';position:relative;"></div>'),u.width=t.width(),u.height=t.height(),_show()},_process_image=function(){u.width=_.width,u.height=_.height,e("<img />").attr({id:"fancybox-img",src:_.src,alt:u.title}).appendTo(t),_show()},_show=function(){var i,a;return"iframe"!==u.type&&e.fancybox.hideActivity(),o.is(":visible")&&!1===w.onCleanup(v,m,w)?(e(".fancybox-inline-tmp").trigger("fancybox-cancel"),void(A=!1)):(A=!0,e(d.add(n)).off(),e(window).off("orientationchange.fb resize.fb scroll.fb"),e(document).off("keydown.fb"),o.is(":visible")&&"outside"!==w.titlePosition&&o.css("height",o.height()),v=y,m=b,(w=u).overlayShow?(n.css({"background-color":w.overlayColor,opacity:w.overlayOpacity,cursor:w.hideOnOverlayClick?"pointer":"auto",height:e(document).height()}),n.is(":visible")||(D&&e("select:not(#fancybox-tmp select)").filter((function(){return"hidden"!==this.style.visibility})).css({visibility:"hidden"}).one("fancybox-cleanup",(function(){this.style.visibility="inherit"})),n.show())):n.hide(),g=_get_zoom_to(),_process_title(),o.is(":visible")?(e(r.add(s).add(l)).hide(),i=o.position(),p={top:i.top,left:i.left,width:o.width(),height:o.height()},a=p.width==g.width&&p.height==g.height,void d.fadeTo(w.changeFade,.3,(function(){var i=function(){d.html(t.contents()).fadeTo(w.changeFade,1,_finish)};e(".fancybox-inline-tmp").trigger("fancybox-change"),d.empty().removeAttr("filter").css({"border-width":w.padding,width:g.width-2*w.padding,height:w.autoDimensions?"auto":g.height-T-2*w.padding}),a?i():(E.prop=0,e(E).animate({prop:1},{duration:w.changeSpeed,easing:w.easingChange,step:_draw,complete:i}))}))):(o.removeAttr("style"),d.css("border-width",w.padding),"elastic"==w.transitionIn?(p=_get_zoom_from(),d.html(t.contents()),o.show(),w.opacity&&(g.opacity=0),E.prop=0,void e(E).animate({prop:1},{duration:w.speedIn,easing:w.easingIn,step:_draw,complete:_finish})):("inside"==w.titlePosition&&T>0&&c.show(),d.css({width:g.width-2*w.padding,height:w.autoDimensions?"auto":g.height-T-2*w.padding}).html(t.contents()),void o.css(g).fadeIn("none"==w.transitionIn?0:w.speedIn,_finish))))},_format_title=function(e){return!(!e||!e.length)&&("float"==w.titlePosition?'<table id="fancybox-title-float-wrap" style="border-spacing:0;border-collapse:collapse"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+e+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+w.titlePosition+'">'+e+"</div>")},_process_title=function(){if(N=w.title||"",T=0,c.empty().removeAttr("style").removeClass(),!1!==w.titleShow)if((N=e.isFunction(w.titleFormat)?w.titleFormat(N,v,m,w):_format_title(N))&&""!==N){switch(c.addClass("fancybox-title-"+w.titlePosition).html(N).appendTo("body").show(),w.titlePosition){case"inside":c.css({width:g.width-2*w.padding,marginLeft:w.padding,marginRight:w.padding}).appendTo(a),T=c.outerHeight(!0),g.height+=T;break;case"over":c.css({marginLeft:w.padding,width:g.width-2*w.padding,bottom:w.padding}).appendTo(a);break;case"float":c.css("left",-1*parseInt((c.width()-g.width)/2,10)).appendTo(a);break;default:c.css({width:g.width-2*w.padding,paddingLeft:w.padding,paddingRight:w.padding}).appendTo(o);break}c.hide()}else c.hide();else c.hide()},_set_navigation=function(){if((w.enableEscapeButton||w.enableKeyboardNav)&&e(document).on("keydown.fb",(function(t){27==t.keyCode&&w.enableEscapeButton?(t.preventDefault(),e.fancybox.close()):37!=t.keyCode&&39!=t.keyCode||!w.enableKeyboardNav||"INPUT"===t.target.tagName||"TEXTAREA"===t.target.tagName||"SELECT"===t.target.tagName?9==t.keyCode&&w.enableKeyboardNav&&"INPUT"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName&&"SELECT"!==t.target.tagName&&(t.preventDefault(),e.fancybox[t.shiftKey?"prev":"next"]()):(t.preventDefault(),e.fancybox[37==t.keyCode?"prev":"next"]())})),!w.showNavArrows)return s.hide(),void l.hide();(w.cyclic&&v.length>1||0!==m)&&s.show(),(w.cyclic&&v.length>1||m!=v.length-1)&&l.show()},_finish=function(){S&&(d.css("filter",0),o.css("filter",0)),w.autoDimensions&&d.css("height","auto"),o.css("height","auto"),N&&N.length&&c.show(),w.showCloseButton&&r.show(),_set_navigation(),w.hideOnContentClick&&d.on("click",e.fancybox.close),w.hideOnOverlayClick&&n.on("click",e.fancybox.close),w.autoResize&&e(window).on("resize.fb",e.fancybox.resize),w.centerOnScroll&&!W&&e(window).on("scroll.fb",e.fancybox.center),e.fn.mousewheel&&o.on("mousewheel.fb",(function(t,i){A?t.preventDefault():"image"!=w.type||0!=e(t.target).outerHeight()&&e(t.target).prop("scrollHeight")!==e(t.target).outerHeight()||(t.preventDefault(),e.fancybox[i>0?"prev":"next"]())})),"iframe"==w.type&&e('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'"'+(navigator.userAgent.match(/msie [6]/i)?' allowtransparency="true""':"")+' style="border:0;margin:0;overflow:'+("auto"==w.scrolling?"auto":"yes"==w.scrolling?"scroll":"hidden")+'" src="'+w.href+'"'+(!1===w.allowfullscreen?"":" allowfullscreen")+' allow="autoplay; encrypted-media" tabindex="999"></iframe>').appendTo(d).on("load",(function(){e.fancybox.hideActivity()})).focus(),o.show(),A=!1,e.fancybox.center(),e(document).trigger("fancybox-complete",[v,m,w]),w.onComplete(v,m,w),v.length>1&&(_preload_next(),_preload_prev())},_preload_next=function(){var e="number"==typeof arguments[0]?arguments[0]:m+1;if(e>=v.length){if(!w.cyclic)return;e=0}if(e==m)return w.enableKeyboardNav=!1,o.off("mousewheel.fb"),void l.hide();_preload_image(e)||_preload_next(e+1)},_preload_prev=function(){var e="number"==typeof arguments[0]?arguments[0]:m-1;if(e<0){if(!w.cyclic)return;e=v.length-1}if(e==m)return w.enableKeyboardNav=!1,o.off("mousewheel.fb"),void s.hide();_preload_image(e)||_preload_prev(e-1)},_preload_image=function(t){var i=v[t];return!(void 0===i||void 0===i.href||i.href===w.href||!i.href.match(k)&&!e(i).hasClass("image"))&&((new Image).src=i.href,!0)},_draw=function(e){var t={width:parseInt(p.width+(g.width-p.width)*e,10),height:parseInt(p.height+(g.height-p.height)*e,10),top:parseInt(p.top+(g.top-p.top)*e,10),left:parseInt(p.left+(g.left-p.left)*e,10)};void 0!==g.opacity&&(t.opacity=e<.5?.5:e),o.css(t),d.css({width:t.width-2*w.padding,height:t.height-T*e-2*w.padding})},_get_viewport=function(){var t,i=!W&&window.innerWidth&&document.documentElement.clientWidth?Math.min(window.innerWidth,document.documentElement.clientWidth):window.innerWidth||document.documentElement.clientWidth||document.getElementsByTagName("body")[0].clientWidth,n=!W&&window.innerHeight&&document.documentElement.clientHeight?Math.min(window.innerHeight,document.documentElement.clientHeight):window.innerHeight||document.documentElement.clientHeight||document.getElementsByTagName("body")[0].clientHeight;return[i-2*(t=!0===arguments[0]?0:w.margin),n-2*t,e(document).scrollLeft()+t,e(document).scrollTop()+t]},_get_zoom_to=function(){var e,t=_get_viewport(),i={},n=2*w.padding;return w.width.toString().indexOf("%")>-1?i.width=parseInt(t[0]*parseFloat(w.width)/100,10):i.width=w.width+n,w.height.toString().indexOf("%")>-1?i.height=parseInt(t[1]*parseFloat(w.height)/100,10):i.height=w.height+n,w.autoScale&&(i.width>t[0]||i.height>t[1])&&(w.keepRatio?(e=w.width/w.height,i.width>t[0]&&(i.width=t[0],i.height=parseInt((i.width-n)/e+n,10)),i.height>t[1]&&(i.height=t[1],i.width=parseInt((i.height-n)*e+n,10))):(i.width=Math.min(i.width,t[0]),i.height=Math.min(i.height,t[1]))),i.top=parseInt(Math.max(t[3]-20,t[3]+.5*(t[1]-i.height-40)),10),i.left=parseInt(Math.max(t[2]-20,t[2]+.5*(t[0]-i.width-40)),10),i},_get_obj_pos=function(e){var t=e.offset();return t.top+=parseInt(e.css("paddingTop"),10)||0,t.left+=parseInt(e.css("paddingLeft"),10)||0,t.top+=parseInt(e.css("border-top-width"),10)||0,t.left+=parseInt(e.css("border-left-width"),10)||0,t.width=e.width(),t.height=e.height(),t},_get_zoom_from=function(){var t,i,n=!!u.orig&&e(u.orig),o={};return n&&n.length?o={width:(t=_get_obj_pos(n)).width+2*w.padding,height:t.height+2*w.padding,top:t.top-w.padding-20,left:t.left-w.padding-20}:(i=_get_viewport(),o={width:2*w.padding,height:2*w.padding,top:parseInt(.5*(i[3]+i[1]),10),left:parseInt(.5*(i[2]+i[0]),10)}),o},_animate_loading=function(){i.is(":visible")?(e("div",i).css("top",-40*O+"px"),O=(O+1)%12):clearInterval(f)},e.fn.fancybox=function(t){return e(this).length?(e(this).data("fancybox",e.extend({},t,e.metadata?e(this).metadata():{})).off("click.fb").on("click.fb",(function(t){if(t.preventDefault(),!A){A=!0,e(this).blur(),y=[],b=0;var i=e(this).attr("rel")||"";return""==i||""==i.replace(/alternate|external|help|license|nofollow|noreferrer|noopener|\s+/gi,"")?y.push(this):(y=e('a[rel="'+i+'"], area[rel="'+i+'"]'),b=y.index(this)),_start(),!1}})),this):this},e.fancybox=function(t){var i;if(!A){if(A=!0,i=void 0!==arguments[1]?arguments[1]:{},y=[],b=parseInt(i.index,10)||0,e.isArray(t)){for(var n=0,o=t.length;n<o;n++)"object"==typeof t[n]?e(t[n]).data("fancybox",e.extend({},i,t[n])):t[n]=e({}).data("fancybox",e.extend({content:t[n]},i));y=jQuery.merge(y,t)}else"object"==typeof t?e(t).data("fancybox",e.extend({},i,t)):t=e({}).data("fancybox",e.extend({content:t},i)),y.push(t);(b>y.length||b<0)&&(b=0),_start()}},e.fancybox.showActivity=function(){clearInterval(f),i.show(),f=setInterval(_animate_loading,66)},e.fancybox.hideActivity=function(){i.hide()},e.fancybox.next=function(){var t,i="number"==typeof arguments[0]?arguments[0]:m+1;if(i>=v.length){if(!w.cyclic)return;i=0}t=v[i],i!=m&&void 0!==t&&void 0!==t.href&&t.href===w.href?e.fancybox.next(i+1):e.fancybox.pos(i)},e.fancybox.prev=function(){var t,i="number"==typeof arguments[0]?arguments[0]:m-1;if(i<0){if(!w.cyclic)return;i=v.length-1}t=v[i],i!=m&&void 0!==t&&void 0!==t.href&&t.href===w.href?e.fancybox.prev(i-1):e.fancybox.pos(i)},e.fancybox.pos=function(e){A||(e=parseInt(e),y=v,e>-1&&e<v.length&&(b=e,_start()))},e.fancybox.cancel=function(){A||(A=!0,e(".fancybox-inline-tmp").trigger("fancybox-cancel"),_abort(),u.onCancel(y,b,u),A=!1)},e.fancybox.close=function(){if(!A&&!o.is(":hidden"))if(A=!0,w&&!1===w.onCleanup(v,m,w))A=!1;else if(_abort(),e(r.add(s).add(l)).hide(),e(d.add(n)).off(),e(window).off("orientationchange.fb resize.fb scroll.fb mousewheel.fb"),e(document).off("keydown.fb"),S&&d.find("iframe#fancybox-frame").attr("src",D&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"//about:blank"),"inside"!==w.titlePosition&&c.empty(),o.stop(),"elastic"==w.transitionOut){p=_get_zoom_from();var t=o.position();g={top:t.top,left:t.left,width:o.width(),height:o.height()},w.opacity&&(g.opacity=1),c.empty().hide(),E.prop=1,e(E).animate({prop:0},{duration:w.speedOut,easing:w.easingOut,step:_draw,complete:i})}else o.fadeOut("none"==w.transitionOut?0:w.speedOut,i);function i(){n.fadeOut("fast"),c.empty().hide(),o.hide(),e(".fancybox-inline-tmp").trigger("fancybox-cleanup"),d.empty(),e(document).trigger("fancybox-closed",[v,m,w]),w.onClosed(v,m,w),v=u=[],m=b=0,w=u={},A=!1}},e.fancybox.resize=function(){var t;clearTimeout(h),h=setTimeout((function(){n.is(":visible")&&n.css("height",e(document).height()),t=o.position(),p={top:t.top,left:t.left,width:o.width(),height:o.height()},g=_get_zoom_to(),A=!0,_process_title(),E.prop=0,e(E).animate({prop:1},{duration:w.changeSpeed,easing:w.easingChange,step:_draw,complete:function(){u.autoDimensions&&d.css("height","auto"),o.css("height","auto"),N&&N.length&&c.show(),A=!1,e.fancybox.center(!0)}})}),500)},e.fancybox.center=function(){var e,t;A||(t=!0===arguments[0]?1:0,e=_get_viewport(!0),!t&&(o.width()+40>e[0]||o.height()+40>e[1])||o.stop().animate({top:parseInt(Math.max(e[3]-20,e[3]+.5*(e[1]-d.height()-40)-w.padding)),left:parseInt(Math.max(e[2]-20,e[2]+.5*(e[0]-d.width()-40)-w.padding))},"number"==typeof arguments[0]?arguments[0]:300))},e.fancybox.init=function(){e("#fancybox-wrap").length||(e("body").append(t=e('<div id="fancybox-tmp"></div>'),i=e('<div id="fancybox-loading"><div></div></div>'),n=e('<div id="fancybox-overlay"></div>'),o=e('<div id="fancybox-wrap"></div>')),(a=e('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(o)).append(d=e('<div id="fancybox-content"></div>'),r=e('<a id="fancybox-close" title="Close" class="fancy-ico" href="javascript:;"></a>'),c=e('<div id="fancybox-title"></div>'),s=e('<a id="fancybox-left" title="Previous" href="javascript:;"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),l=e('<a id="fancybox-right" title="Next" href="javascript:;"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')),r.click(e.fancybox.close),i.click(e.fancybox.cancel),s.click((function(t){t.preventDefault(),e.fancybox.prev()})),l.click((function(t){t.preventDefault(),e.fancybox.next()})),S&&o.addClass("fancybox-ie"),D&&(i.addClass("fancybox-ie6"),o.addClass("fancybox-ie6"),e('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" style="overflow:hidden;border:0" tabindex="-1"></iframe>').prependTo(a)))},e.fn.fancybox.defaults={padding:10,margin:40,opacity:!1,modal:!1,cyclic:!1,allowfullscreen:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!1,autoResize:!0,keepRatio:!1,minViewportWidth:0,ajax:{},swf:{wmode:"opaque"},svg:{wmode:"opaque"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:.7,overlayColor:"#777",titleShow:!0,titlePosition:"float",titleFormat:null,titleFromAlt:!0,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,enableKeyboardNav:!0,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}},e(document).ready((function(){e.fancybox.init()}))}(jQuery);
fancybox/1.5.0/jquery.fancybox.min.js DELETED
@@ -1 +0,0 @@
1
- !function(e){var t,n,o,i,a,r,c,d,s,l,f,h,u,p,b,g=0,m={},v=[],y=0,w={},x=[],_=null,C=new Image,k=/\.(jpg|gif|png|bmp|jpeg|webp)(.*)?$/i,I=/[^\.]\.(svg)\s*$/i,N=/[^\.]\.(pdf)\s*$/i,S=0,T="",O=!1,j=!1,A=(window.devicePixelRatio,"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);_abort=function(){e.fancybox.hideActivity(),C.onerror=C.onload=null,_&&_.abort(),t.empty()},_error=function(n){if(!1===m.onError(v,g,m))return e.fancybox.hideActivity(),void(O=!1);void 0===n&&(n=m.txt.error.later),m.type="html",m.enableSwipeNav=!1,m.titleShow=!1,m.width="auto",m.height="auto",t.html('<p id="fancybox-error">'+m.txt.error.content+"<br />"+n+"</p>"),_process_inline()},_start=function(){var n,o,i,a,c=v[g];if(_abort(),m=e.extend({},e.fn.fancybox.defaults,void 0===e(c).data("fancybox")?m:e(c).data("fancybox")),e("html").addClass("fancybox-active"),e(document).trigger("fancybox-start",v,g,m),!1!==(a=m.onStart(v,g,m)))if("object"==typeof a&&(m=e.extend(m,a)),i=m.title||(c.nodeName?e(c).attr("title"):c.title)||"",c.nodeName&&!m.orig&&(m.orig=e(c).find("img:first").length?e(c).find("img:first"):e(c)),""===i&&m.orig&&(i=m.orig.attr("title")||(m.titleFromAlt?m.orig.attr("alt"):"")),n=m.href||(c.nodeName?e(c).attr("href"):c.href)||null,(/^(?:javascript)/i.test(n)||"#"==n)&&(n=null),m.type?(o=m.type,n||(n=m.content)):m.content?o="html":e(c).hasClass("iframe")?o="iframe":n&&(o=n.match(k)||e(c).hasClass("image")?"image":n.match(I)?"svg":n.match(N)?"pdf":0===n.indexOf("#")?"inline":"ajax"),o)switch(e(c).hasClass("modal")&&(m.modal=!0),"inline"==o&&(c=n.substr(n.indexOf("#")),o=e(c).length>0?"inline":"ajax"),m.type=o,m.href=n,m.title=i,m.autoDimensions&&("html"==m.type||"inline"==m.type||"ajax"==m.type?(m.width="auto",m.height="auto"):m.autoDimensions=!1),m.modal&&(m.overlayShow=!0,m.hideOnOverlayClick=!1,m.hideOnContentClick=!1,m.enableEscapeButton=!1,m.showCloseButton=!1),m.padding=parseInt(m.padding,10),m.margin=parseInt(m.margin,10),t.css("padding",m.padding+m.margin),m.enableEscapeButton&&e(document).on("keydown.fb",(function(t){if(27==t.keyCode)return t.preventDefault(),e.fancybox.cancel(),!1})),o){case"html":t.html(m.content),m.enableSwipeNav=!1,_process_inline();break;case"inline":if(!0===e(c).parent().is("#fancybox-content"))return void(O=!1);m.enableSwipeNav=!1,e(c).clone().attr("id",e(c).attr("id")+"-tmp").insertBefore(e(c)),e(document).on("fancybox-cleanup fancybox-change",(function(){let t=r.children().children();e("#"+t.attr("id")+"-tmp").replaceWith(t)})).on("fancybox-cancel",(function(){let n=t.children();n.length||(n=r.children().children()),e("#"+n.attr("id")+"-tmp").replaceWith(n)})),e(c).appendTo(t),_process_inline();break;case"image":m.keepRatio=!0,O=!1,(C=new Image).onerror=function(){_error(m.txt.error.image)},C.onload=function(){O=!0,e.fancybox.hideActivity(),C.onerror=C.onload=null,m.width=C.width,m.height=C.height,e("<img />").attr({id:"fancybox-img",src:C.src,alt:m.title}).appendTo(t),_show()},C.src=n,e.fancybox.showActivity();break;case"svg":m.scrolling="no",m.keepRatio=!0;var d='<object type="image/svg+xml" width="'+m.width+'" height="'+m.height+'" data="'+n+'"></object>';t.html(d),_process_inline();break;case"pdf":m.scrolling="no",m.enableSwipeNav=!1;d='<object type="application/pdf" width="100%" height="100%" data="'+n+'"><a href="'+n+'" style="display:block;position:absolute;top:48%;width:100%;text-align:center">'+e(c).html()+"</a></object>";t.html(d),_process_inline();break;case"ajax":m.enableKeyboardNav=!1,m.showNavArrows=!1,m.enableSwipeNav=!1,O=!1,e.fancybox.showActivity(),m.ajax.win=m.ajax.success,_=e.ajax(e.extend({},m.ajax,{url:n,data:m.ajax.data||{},error:function(){arguments[0].status>0&&_error(arguments[2])},success:function(o,i,r){if(200==("object"==typeof r?r:_).status){if("function"==typeof m.ajax.win){if(!1===(a=m.ajax.win(n,o,i,r)))return void e.fancybox.hideActivity();"string"!=typeof a&&"object"!=typeof a||(o=a)}o.indexOf("<!DOCTYPE")>-1||o.indexOf("<html")>-1||o.indexOf("<body")>-1?_error(m.txt.error.unexpected):(t.html(o),_process_inline())}}}));break;case"iframe":m.enableSwipeNav=!1,e.fancybox.showActivity(),_show();break}else _error(m.txt.error.type);else O=!1},_process_inline=function(){var n=m.width,o=m.height;e.fancybox.hideActivity(),n=n.toString().indexOf("%")>-1?parseInt((window.innerWidth-2*m.margin)*parseFloat(n)/100,10)+"px":"auto"==n?"auto":n+"px",o=o.toString().indexOf("%")>-1?parseInt((window.innerHeight-2*m.margin)*parseFloat(o)/100,10)+"px":"auto"==o?"auto":o+"px",t.wrapInner('<div style="width:'+n+";height:"+o+';overflow:hidden;position:relative;"></div>'),m.width=t.width(),m.height=t.height(),_show()},_show=function(){if(O=!0,e(r.add(o)).off(),e(window).off("resize.fb"),h=w.type,x=v,y=g,(w=m).overlayShow?(w.overlayColor&&o.css("background-color",w.overlayColor),w.hideOnOverlayClick&&o.css("cursor","pointer"),o.is(":visible")||o.fadeIn("fast")):o.hide(),_process_title(),u=_get_zoom_to(),i.is(":visible"))return e(c.add(s).add(l)).hide(),void("image"===h&&"image"===w.type?(r.prepend(t.contents()),r.children().first().next().fadeOut(w.changeSpeed,(function(){e(this).remove()})),r.css("border-width",w.padding),i.animate(u,{duration:w.changeSpeed,easing:w.easingChange,complete:_finish})):r.fadeTo(w.changeFade,.3,(function(){r.css("border-width",w.padding),i.animate(u,{duration:w.changeSpeed,easing:w.easingChange,complete:function(){r.html(t.contents()).fadeTo(w.changeFade,1,_finish)}})})));i.removeAttr("style"),r.css("border-width",w.padding),r.html(t.contents()),"elastic"==w.transitionIn?(i.css(_get_orig_pos()).show(),u.opacity=1,i.attr("aria-hidden","false").animate(u,{duration:w.speedIn,easing:w.easingIn,complete:_finish})):i.css(u).attr("aria-hidden","false").fadeIn("none"==w.transitionIn?0:w.speedIn,_finish)},_format_title=function(e){return!(!e||!e.length)&&'<div id="fancybox-title">'+e+"</div>"},_process_title=function(){if(T=w.title||"",S=0,d.empty().removeAttr("style").removeClass(),!1!==w.titleShow)if((T=e.isFunction(w.titleFormat)?w.titleFormat(T,x,y,w):_format_title(T))&&""!==T){switch(d.addClass("fancybox-title-"+w.titlePosition).html(T).appendTo("body").show(),w.titlePosition){case"outside":case"inside":S=d.outerHeight(!0),d.appendTo(a);break;case"over":r.is(":visible")?d.appendTo(r):d.appendTo(t);break;default:d.css({paddingLeft:w.padding,paddingRight:w.padding}).appendTo(i)}d.hide()}else d.hide();else d.hide()},_swipe=function(){let t=p-b;p=b=0,Math.abs(t)<w.swipeThreshold||(t<0?e.fancybox.prev():e.fancybox.next())},_set_navigation=function(){1!==x.length&&(w.enableSwipeNav&&(i.css("cursor","move"),i.on("mousedown.fb",(function(e){e.preventDefault(),p=b=void 0!==e.clientX?e.clientX:e.originalEvent.clientX,i.on("mousemove.fb",(function(e){b=void 0!==e.clientX?e.clientX:e.originalEvent.clientX}))})),i.on("mouseup.fb",(function(){i.off("mousemove.fb"),_swipe()})),A&&(i.on("touchstart.fb",(function(e){j=1===e.touches.length,p=b=void 0!==e.touches?e.touches[0].clientX:e.originalEvent.touches[0].clientX,i.on("touchmove.fb",(function(e){1===e.touches.length?b=void 0!==e.touches?e.touches[0].clientX:e.originalEvent.touches[0].clientX:(j=!1,i.off("touchmove.fb"))}))})),i.on("touchend.fb",(function(){i.off("touchmove.fb"),j&&(j=!1,_swipe())})))),e.fn.mousewheel&&i.on("mousewheel.fb",(function(t,n){O?t.preventDefault():"image"!=w.type||0!=e(t.target).outerHeight()&&e(t.target).prop("scrollHeight")!==e(t.target).outerHeight()||(t.preventDefault(),e.fancybox[n>0?"prev":"next"]())})),e(document).off("keydown.fb"),(w.enableEscapeButton||w.enableKeyboardNav)&&e(document).on("keydown.fb",(function(t){if(w.enableEscapeButton&&27==t.keyCode)return t.preventDefault(),e.fancybox.close(),!1;!w.enableKeyboardNav||37!=t.keyCode&&39!=t.keyCode||"INPUT"===t.target.tagName||"TEXTAREA"===t.target.tagName||"SELECT"===t.target.tagName?w.enableKeyboardNav&&9==t.keyCode&&"INPUT"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName&&"SELECT"!==t.target.tagName&&(t.preventDefault(),e.fancybox[t.shiftKey?"prev":"next"]()):(t.preventDefault(),e.fancybox[37==t.keyCode?"prev":"next"]())})),w.showNavArrows&&((w.cyclic||0!==y)&&s.attr("title",w.txt.prev).show(),(w.cyclic||y!=x.length-1)&&l.attr("title",w.txt.next).show()))},_finish=function(){T&&T.length&&d.fadeIn(),w.showCloseButton&&c.attr("title",w.txt.close).show(),_set_navigation(),w.hideOnContentClick&&r.on("click",e.fancybox.close).css("cursor","pointer"),w.hideOnOverlayClick&&o.on("click",e.fancybox.close),w.autoResize&&e(window).on("resize.fb",e.fancybox.resize),"iframe"==w.type&&e('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" style="border:0;margin:0;overflow:'+("auto"==w.scrolling?"auto":"yes"==w.scrolling?"scroll":"hidden")+'" src="'+w.href+'"'+(!1===w.allowfullscreen?"":" allowfullscreen")+' allow="autoplay; encrypted-media" tabindex="999"></iframe>').appendTo(r).on("load",(function(){e.fancybox.hideActivity()})),"inline"!=w.type&&"html"!=w.type||e(r).children().css("overflow","auto"==w.scrolling?"auto":"yes"==w.scrolling?"scroll":"hidden"),i.show().focus(),O=!1,e(document).trigger("fancybox-complete",x,y,w),w.onComplete(x,y,w),x.length>1&&(_preload_next(),_preload_prev())},_preload_next=function(){var e="number"==typeof arguments[0]?arguments[0]:y+1;if(e>=x.length){if(!w.cyclic)return;e=0}if(e==y)return w.enableKeyboardNav=!1,w.enableSwipeNav=!1,i.off("mousewheel.fb touchstart.fb touchmove.fb touchend.fb mousedown.fb mousemove.fb mouseup.fb"),void l.hide();_preload_image(e)||_preload_next(e+1)},_preload_prev=function(){var e="number"==typeof arguments[0]?arguments[0]:y-1;if(e<0){if(!w.cyclic)return;e=x.length-1}if(e==y)return w.enableKeyboardNav=!1,w.enableSwipeNav=!1,i.off("mousewheel.fb touchstart.fb touchmove.fb touchend.fb mousedown.fb mousemove.fb mouseup.fb"),void s.hide();_preload_image(e)||_preload_prev(e-1)},_preload_image=function(t){var n=x[t];return!(void 0===n||void 0===n.href||n.href===w.href||!n.href.match(k)&&!e(n).hasClass("image"))&&((new Image).src=n.href,!0)},_get_zoom_to=function(){var t=[window.innerWidth-2*w.margin,window.innerHeight-2*w.margin-S,e(document).scrollLeft()+w.margin,e(document).scrollTop()+w.margin],n={},o=w.keepRatio&&w.height?w.width/w.height:1;return w.width.toString().indexOf("%")>-1?n.width=parseInt(t[0]*parseFloat(w.width)/100,10):n.width=w.width+2*w.padding,w.height.toString().indexOf("%")>-1?n.height=parseInt(t[1]*parseFloat(w.height)/100,10):n.height=w.height+2*w.padding,w.autoScale&&n.width>t[0]&&(n.width=t[0]-2*w.padding,n.height=parseInt(n.width/o,10)),w.autoScale&&n.height>t[1]&&(n.height=t[1]-2*w.padding,n.width=parseInt(n.height*o,10)),n.left=parseInt(Math.max(t[2],t[2]+(t[0]-n.width)/2),10),n.top=parseInt(Math.max(t[3],t[3]+(t[1]-n.height)/2),10),n},_get_orig_pos=function(){if(!m.orig)return!1;var t=e(m.orig);if(!t.length)return!1;var n=t.offset();return n.top+=parseInt(t.css("paddingTop"),10)||parseInt(t.css("border-top-width"),10)||0,n.left+=parseInt(t.css("paddingLeft"),10)||parseInt(t.css("border-left-width"),10)||0,{width:t.width()+2*w.padding,height:t.height()+2*w.padding,top:n.top-w.padding,left:n.left-w.padding,opacity:0}},_closed=function(){o.fadeOut("fast"),e(document).trigger("fancybox-closed",x,y,w),w.onClosed(x,y,w),_cleanup()},_cleanup=function(){o.hide(),d.empty().hide(),i.hide().attr("aria-hidden","true"),r.empty(),x=v=[],y=g=0,w=m={},e("html").css({"--vertical-scrollbar":"","--horizontal-scrollbar":""}),e("html").removeClass("fancybox-active"),e(document).off("fancybox-cancel fancybox-change fancybox-cleanup fancybox-closed"),O=!1},e.fn.fancybox=function(t){if(!e(this).length)return this;let n=e.extend({},t,e.metadata?e(this).metadata():{});return(!n.minViewportWidth||document.documentElement.clientWidth>=n.minViewportWidth)&&e(this).data("fancybox",n).attr({"aria-controls":"fancybox","aria-haspopup":"dialog"}).off("click.fb").on("click.fb",(function(t){if(t.preventDefault(),O)return!1;O=!0,e(this).blur(),v=[],g=0;var n=e(this).attr("rel")||"";return""==n||""==n.replace(/alternate|external|help|license|nofollow|noreferrer|noopener|\s+/gi,"")?v.push(this):(v=e('a[rel="'+n+'"], area[rel="'+n+'"]'),g=v.index(this)),e("html").css({"--vertical-scrollbar":window.innerWidth-e(window).width()+"px","--horizontal-scrollbar":window.innerHeight-e(window).height()+"px"}),_start(),!1})),this},e.fancybox=function(t){var n;if(!O){if(O=!0,n=void 0!==arguments[1]?arguments[1]:{},v=[],g=parseInt(n.index,10)||0,e.isArray(t)){for(var o=0,i=t.length;o<i;o++)"object"==typeof t[o]?e(t[o]).data("fancybox",e.extend({},n,t[o])):t[o]=e({}).data("fancybox",e.extend({content:t[o]},n));v=jQuery.merge(v,t)}else"object"==typeof t?e(t).data("fancybox",e.extend({},n,t)):t=e({}).data("fancybox",e.extend({content:t},n)),v.push(t);(g>v.length||g<0)&&(g=0),e("html").css({"--vertical-scrollbar":window.innerWidth-e(window).width()+"px","--horizontal-scrollbar":window.innerHeight-e(window).height()+"px"}),_start()}},e.fancybox.showActivity=function(){n.attr("title",m.txt.loading).show()},e.fancybox.hideActivity=function(){n.hide()},e.fancybox.next=function(){var t,n="number"==typeof arguments[0]?arguments[0]:y+1;if(n>=x.length){if(!w.cyclic)return;n=0}t=x[n],n!=y&&void 0!==t&&void 0!==t.href&&t.href===w.href?e.fancybox.next(n+1):e.fancybox.pos(n)},e.fancybox.prev=function(){var t,n="number"==typeof arguments[0]?arguments[0]:y-1;if(n<0){if(!w.cyclic)return;n=x.length-1}t=x[n],n!=y&&void 0!==t&&void 0!==t.href&&t.href===w.href?e.fancybox.prev(n-1):e.fancybox.pos(n)},e.fancybox.pos=function(t){O||(t=parseInt(t),x.length>1&&t!=y&&t>-1&&t<x.length&&(e(document).trigger("fancybox-change"),v=x,g=t,i.off("mousewheel.fb touchstart.fb touchmove.fb touchend.fb mousedown.fb mousemove.fb mouseup.fb").css("cursor","initial"),r.off("click"),_start()))},e.fancybox.cancel=function(){O=!0,_abort(),e(document).trigger("fancybox-cancel",v,g,m),m&&!1===m.onCancel(v,g,m)?O=!1:(e(v[g]).focus(),e(c.add(s).add(l)).hide(),e(r.add(o)).off(),e(window).off("resize.fb"),e(i).off("mousewheel.fb touchstart.fb touchmove.fb touchend.fb mousedown.fb mousemove.fb mouseup.fb"),e(document).off("keydown.fb"),/MSIE|Trident/.test(window.navigator.userAgent)&&r.find("iframe#fancybox-frame").attr("src","//about:blank"),i.stop(),_cleanup())},e.fancybox.close=function(){O||i.is(":hidden")||(O=!0,_abort(),e(document).trigger("fancybox-cleanup",x,y,w),w&&!1===w.onCleanup(x,y,w)?O=!1:(e(x[y]).focus(),e(c.add(s).add(l)).hide(),e(r.add(o)).off(),e(window).off("resize.fb"),e(i).off("mousewheel.fb touchstart.fb touchmove.fb touchend.fb mousedown.fb mousemove.fb mouseup.fb"),e(document).off("keydown.fb"),/MSIE|Trident/.test(window.navigator.userAgent)&&r.find("iframe#fancybox-frame").attr("src","//about:blank"),"inside"!==w.titlePosition&&d.empty(),i.stop(),"elastic"==w.transitionOut?(d.empty().hide(),i.animate(_get_orig_pos(),{duration:w.speedOut,easing:w.easingOut,complete:_closed})):i.fadeOut("none"==w.transitionOut?0:w.speedOut,_closed)))},e.fancybox.resize=function(){clearTimeout(f),f=setTimeout((function(){var e=[];O=!0,_process_title(),u=_get_zoom_to(),c.is(":visible")&&e.push(c)&&c.hide(),s.is(":visible")&&e.push(s)&&s.hide(),l.is(":visible")&&e.push(l)&&l.hide(),i.animate(u,{duration:w.changeSpeed,easing:w.easingChange,complete:function(){T&&T.length&&d.fadeIn(),e.forEach((function(e){e.show()})),O=!1}})}),500)},e.fancybox.init=function(){e("#fancybox-wrap").length||(e("body").append(t=e('<div id="fancybox-tmp"></div>'),n=e('<div id="fancybox-loading" title="Cancel"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>'),o=e('<div id="fancybox-overlay"></div>'),i=e('<div id="fancybox-wrap" role="dialog" aria-hidden="true" aria-labelledby="fancybox-title" tabindex="-1"></div>')),i.append(a=e('<div id="fancybox-outer"></div>')),a.append(r=e('<div id="fancybox-content"></div>'),c=e('<a id="fancybox-close" href="javascript:;" title="Close" class="fancy-ico" tabindex="1"><span></span></a>'),l=e('<a id="fancybox-next" href="javascript:;" title="Next" class="fancy-ico" tabindex="2"><span></span></a>'),s=e('<a id="fancybox-prev" href="javascript:;" title="Previous" class="fancy-ico" tabindex="3"><span></span></a>'),d=e('<div id="fancybox-title-wrap"></div>')),c.click(e.fancybox.close),n.click(e.fancybox.cancel),s.click((function(t){t.preventDefault(),e.fancybox.prev()})),l.click((function(t){t.preventDefault(),e.fancybox.next()})))},e.fn.fancybox.defaults={padding:10,margin:40,modal:!1,cyclic:!1,allowfullscreen:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,autoResize:!0,keepRatio:!1,minViewportWidth:0,swipeThreshold:80,ajax:{},svg:{wmode:"opaque"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayColor:"",titleShow:!0,titlePosition:"float",titleFormat:null,titleFromAlt:!0,transitionIn:"fade",transitionOut:"fade",speedIn:400,speedOut:400,changeSpeed:200,changeFade:200,easingIn:"swing",easingOut:"swing",showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,enableKeyboardNav:!0,enableSwipeNav:!0,txt:{error:{content:"The requested content cannot be loaded.",later:"Please try again later.",type:"No content type found.",image:"No image found.",unexpected:"Unexpected response."},loading:"Cancel",close:"Close",next:"Next",prev:"Previous"},onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}},e(document).ready((function(){e.fancybox.init()}))}(jQuery);
 
fancybox/{1.5.0 → 1.5.1}/jquery.fancybox.css RENAMED
File without changes
fancybox/{1.5.0 → 1.5.1}/jquery.fancybox.js RENAMED
@@ -8,7 +8,7 @@
8
  * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
9
  *
10
  * Copyright (c) 2020 - RavanH
11
- * Version: 1.5.0 (2020/11/09)
12
  * Requires: jQuery v1.7+
13
  *
14
  * Dual licensed under the MIT and GPL licenses:
@@ -71,7 +71,7 @@
71
 
72
  $('html').addClass('fancybox-active');
73
 
74
- $(document).trigger('fancybox-start', selectedArray, selectedIndex, selectedOpts);
75
 
76
  ret = selectedOpts.onStart(selectedArray, selectedIndex, selectedOpts);
77
 
@@ -633,7 +633,7 @@
633
 
634
  busy = false;
635
 
636
- $(document).trigger('fancybox-complete', currentArray, currentIndex, currentOpts);
637
 
638
  currentOpts.onComplete(currentArray, currentIndex, currentOpts);
639
 
@@ -770,7 +770,7 @@
770
  _closed = function() {
771
  overlay.fadeOut('fast');
772
 
773
- $(document).trigger('fancybox-closed', currentArray, currentIndex, currentOpts);
774
 
775
  currentOpts.onClosed(currentArray, currentIndex, currentOpts);
776
 
@@ -968,7 +968,7 @@
968
 
969
  _abort();
970
 
971
- $(document).trigger('fancybox-cancel', selectedArray, selectedIndex, selectedOpts);
972
 
973
  if (selectedOpts && false === selectedOpts.onCancel(selectedArray, selectedIndex, selectedOpts) ) {
974
  busy = false;
@@ -1005,7 +1005,7 @@
1005
 
1006
  _abort();
1007
 
1008
- $(document).trigger('fancybox-cleanup', currentArray, currentIndex, currentOpts);
1009
 
1010
  if (currentOpts && false === currentOpts.onCleanup(currentArray, currentIndex, currentOpts)) {
1011
  busy = false;
@@ -1132,7 +1132,7 @@
1132
  keepRatio : false,
1133
  minViewportWidth : 0,
1134
 
1135
- swipeThreshold: 80,
1136
 
1137
  ajax : {},
1138
  svg : { wmode: 'opaque' },
8
  * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
9
  *
10
  * Copyright (c) 2020 - RavanH
11
+ * Version: 1.5.1 (2020/11/09)
12
  * Requires: jQuery v1.7+
13
  *
14
  * Dual licensed under the MIT and GPL licenses:
71
 
72
  $('html').addClass('fancybox-active');
73
 
74
+ $(document).trigger('fancybox-start', [ selectedArray, selectedIndex, selectedOpts ] );
75
 
76
  ret = selectedOpts.onStart(selectedArray, selectedIndex, selectedOpts);
77
 
633
 
634
  busy = false;
635
 
636
+ $(document).trigger('fancybox-complete', [ currentArray, currentIndex, currentOpts ] );
637
 
638
  currentOpts.onComplete(currentArray, currentIndex, currentOpts);
639
 
770
  _closed = function() {
771
  overlay.fadeOut('fast');
772
 
773
+ $(document).trigger('fancybox-closed', [ currentArray, currentIndex, currentOpts ] );
774
 
775
  currentOpts.onClosed(currentArray, currentIndex, currentOpts);
776
 
968
 
969
  _abort();
970
 
971
+ $(document).trigger('fancybox-cancel', [ selectedArray, selectedIndex, selectedOpts ] );
972
 
973
  if (selectedOpts && false === selectedOpts.onCancel(selectedArray, selectedIndex, selectedOpts) ) {
974
  busy = false;
1005
 
1006
  _abort();
1007
 
1008
+ $(document).trigger('fancybox-cleanup', [ currentArray, currentIndex, currentOpts ] );
1009
 
1010
  if (currentOpts && false === currentOpts.onCleanup(currentArray, currentIndex, currentOpts)) {
1011
  busy = false;
1132
  keepRatio : false,
1133
  minViewportWidth : 0,
1134
 
1135
+ swipeThreshold: 100,
1136
 
1137
  ajax : {},
1138
  svg : { wmode: 'opaque' },
fancybox/{1.5.0 → 1.5.1}/jquery.fancybox.min.css RENAMED
File without changes
fancybox/1.5.1/jquery.fancybox.min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e){var t,n,o,i,a,r,c,d,s,l,f,h,u,p,b,g=0,m={},v=[],y=0,w={},x=[],_=null,C=new Image,k=/\.(jpg|gif|png|bmp|jpeg|webp)(.*)?$/i,I=/[^\.]\.(svg)\s*$/i,N=/[^\.]\.(pdf)\s*$/i,S=0,T="",O=!1,j=!1,A=(window.devicePixelRatio,"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);_abort=function(){e.fancybox.hideActivity(),C.onerror=C.onload=null,_&&_.abort(),t.empty()},_error=function(n){if(!1===m.onError(v,g,m))return e.fancybox.hideActivity(),void(O=!1);void 0===n&&(n=m.txt.error.later),m.type="html",m.enableSwipeNav=!1,m.titleShow=!1,m.width="auto",m.height="auto",t.html('<p id="fancybox-error">'+m.txt.error.content+"<br />"+n+"</p>"),_process_inline()},_start=function(){var n,o,i,a,c=v[g];if(_abort(),m=e.extend({},e.fn.fancybox.defaults,void 0===e(c).data("fancybox")?m:e(c).data("fancybox")),e("html").addClass("fancybox-active"),e(document).trigger("fancybox-start",[v,g,m]),!1!==(a=m.onStart(v,g,m)))if("object"==typeof a&&(m=e.extend(m,a)),i=m.title||(c.nodeName?e(c).attr("title"):c.title)||"",c.nodeName&&!m.orig&&(m.orig=e(c).find("img:first").length?e(c).find("img:first"):e(c)),""===i&&m.orig&&(i=m.orig.attr("title")||(m.titleFromAlt?m.orig.attr("alt"):"")),n=m.href||(c.nodeName?e(c).attr("href"):c.href)||null,(/^(?:javascript)/i.test(n)||"#"==n)&&(n=null),m.type?(o=m.type,n||(n=m.content)):m.content?o="html":e(c).hasClass("iframe")?o="iframe":n&&(o=n.match(k)||e(c).hasClass("image")?"image":n.match(I)?"svg":n.match(N)?"pdf":0===n.indexOf("#")?"inline":"ajax"),o)switch(e(c).hasClass("modal")&&(m.modal=!0),"inline"==o&&(c=n.substr(n.indexOf("#")),o=e(c).length>0?"inline":"ajax"),m.type=o,m.href=n,m.title=i,m.autoDimensions&&("html"==m.type||"inline"==m.type||"ajax"==m.type?(m.width="auto",m.height="auto"):m.autoDimensions=!1),m.modal&&(m.overlayShow=!0,m.hideOnOverlayClick=!1,m.hideOnContentClick=!1,m.enableEscapeButton=!1,m.showCloseButton=!1),m.padding=parseInt(m.padding,10),m.margin=parseInt(m.margin,10),t.css("padding",m.padding+m.margin),m.enableEscapeButton&&e(document).on("keydown.fb",(function(t){if(27==t.keyCode)return t.preventDefault(),e.fancybox.cancel(),!1})),o){case"html":t.html(m.content),m.enableSwipeNav=!1,_process_inline();break;case"inline":if(!0===e(c).parent().is("#fancybox-content"))return void(O=!1);m.enableSwipeNav=!1,e(c).clone().attr("id",e(c).attr("id")+"-tmp").insertBefore(e(c)),e(document).on("fancybox-cleanup fancybox-change",(function(){let t=r.children().children();e("#"+t.attr("id")+"-tmp").replaceWith(t)})).on("fancybox-cancel",(function(){let n=t.children();n.length||(n=r.children().children()),e("#"+n.attr("id")+"-tmp").replaceWith(n)})),e(c).appendTo(t),_process_inline();break;case"image":m.keepRatio=!0,O=!1,(C=new Image).onerror=function(){_error(m.txt.error.image)},C.onload=function(){O=!0,e.fancybox.hideActivity(),C.onerror=C.onload=null,m.width=C.width,m.height=C.height,e("<img />").attr({id:"fancybox-img",src:C.src,alt:m.title}).appendTo(t),_show()},C.src=n,e.fancybox.showActivity();break;case"svg":m.scrolling="no",m.keepRatio=!0;var d='<object type="image/svg+xml" width="'+m.width+'" height="'+m.height+'" data="'+n+'"></object>';t.html(d),_process_inline();break;case"pdf":m.scrolling="no",m.enableSwipeNav=!1;d='<object type="application/pdf" width="100%" height="100%" data="'+n+'"><a href="'+n+'" style="display:block;position:absolute;top:48%;width:100%;text-align:center">'+e(c).html()+"</a></object>";t.html(d),_process_inline();break;case"ajax":m.enableKeyboardNav=!1,m.showNavArrows=!1,m.enableSwipeNav=!1,O=!1,e.fancybox.showActivity(),m.ajax.win=m.ajax.success,_=e.ajax(e.extend({},m.ajax,{url:n,data:m.ajax.data||{},error:function(){arguments[0].status>0&&_error(arguments[2])},success:function(o,i,r){if(200==("object"==typeof r?r:_).status){if("function"==typeof m.ajax.win){if(!1===(a=m.ajax.win(n,o,i,r)))return void e.fancybox.hideActivity();"string"!=typeof a&&"object"!=typeof a||(o=a)}o.indexOf("<!DOCTYPE")>-1||o.indexOf("<html")>-1||o.indexOf("<body")>-1?_error(m.txt.error.unexpected):(t.html(o),_process_inline())}}}));break;case"iframe":m.enableSwipeNav=!1,e.fancybox.showActivity(),_show();break}else _error(m.txt.error.type);else O=!1},_process_inline=function(){var n=m.width,o=m.height;e.fancybox.hideActivity(),n=n.toString().indexOf("%")>-1?parseInt((window.innerWidth-2*m.margin)*parseFloat(n)/100,10)+"px":"auto"==n?"auto":n+"px",o=o.toString().indexOf("%")>-1?parseInt((window.innerHeight-2*m.margin)*parseFloat(o)/100,10)+"px":"auto"==o?"auto":o+"px",t.wrapInner('<div style="width:'+n+";height:"+o+';overflow:hidden;position:relative;"></div>'),m.width=t.width(),m.height=t.height(),_show()},_show=function(){if(O=!0,e(r.add(o)).off(),e(window).off("resize.fb"),h=w.type,x=v,y=g,(w=m).overlayShow?(w.overlayColor&&o.css("background-color",w.overlayColor),w.hideOnOverlayClick&&o.css("cursor","pointer"),o.is(":visible")||o.fadeIn("fast")):o.hide(),_process_title(),u=_get_zoom_to(),i.is(":visible"))return e(c.add(s).add(l)).hide(),void("image"===h&&"image"===w.type?(r.prepend(t.contents()),r.children().first().next().fadeOut(w.changeSpeed,(function(){e(this).remove()})),r.css("border-width",w.padding),i.animate(u,{duration:w.changeSpeed,easing:w.easingChange,complete:_finish})):r.fadeTo(w.changeFade,.3,(function(){r.css("border-width",w.padding),i.animate(u,{duration:w.changeSpeed,easing:w.easingChange,complete:function(){r.html(t.contents()).fadeTo(w.changeFade,1,_finish)}})})));i.removeAttr("style"),r.css("border-width",w.padding),r.html(t.contents()),"elastic"==w.transitionIn?(i.css(_get_orig_pos()).show(),u.opacity=1,i.attr("aria-hidden","false").animate(u,{duration:w.speedIn,easing:w.easingIn,complete:_finish})):i.css(u).attr("aria-hidden","false").fadeIn("none"==w.transitionIn?0:w.speedIn,_finish)},_format_title=function(e){return!(!e||!e.length)&&'<div id="fancybox-title">'+e+"</div>"},_process_title=function(){if(T=w.title||"",S=0,d.empty().removeAttr("style").removeClass(),!1!==w.titleShow)if((T=e.isFunction(w.titleFormat)?w.titleFormat(T,x,y,w):_format_title(T))&&""!==T){switch(d.addClass("fancybox-title-"+w.titlePosition).html(T).appendTo("body").show(),w.titlePosition){case"outside":case"inside":S=d.outerHeight(!0),d.appendTo(a);break;case"over":r.is(":visible")?d.appendTo(r):d.appendTo(t);break;default:d.css({paddingLeft:w.padding,paddingRight:w.padding}).appendTo(i)}d.hide()}else d.hide();else d.hide()},_swipe=function(){let t=p-b;p=b=0,Math.abs(t)<w.swipeThreshold||(t<0?e.fancybox.prev():e.fancybox.next())},_set_navigation=function(){1!==x.length&&(w.enableSwipeNav&&(i.css("cursor","move"),i.on("mousedown.fb",(function(e){e.preventDefault(),p=b=void 0!==e.clientX?e.clientX:e.originalEvent.clientX,i.on("mousemove.fb",(function(e){b=void 0!==e.clientX?e.clientX:e.originalEvent.clientX}))})),i.on("mouseup.fb",(function(){i.off("mousemove.fb"),_swipe()})),A&&(i.on("touchstart.fb",(function(e){j=1===e.touches.length,p=b=void 0!==e.touches?e.touches[0].clientX:e.originalEvent.touches[0].clientX,i.on("touchmove.fb",(function(e){1===e.touches.length?b=void 0!==e.touches?e.touches[0].clientX:e.originalEvent.touches[0].clientX:(j=!1,i.off("touchmove.fb"))}))})),i.on("touchend.fb",(function(){i.off("touchmove.fb"),j&&(j=!1,_swipe())})))),e.fn.mousewheel&&i.on("mousewheel.fb",(function(t,n){O?t.preventDefault():"image"!=w.type||0!=e(t.target).outerHeight()&&e(t.target).prop("scrollHeight")!==e(t.target).outerHeight()||(t.preventDefault(),e.fancybox[n>0?"prev":"next"]())})),e(document).off("keydown.fb"),(w.enableEscapeButton||w.enableKeyboardNav)&&e(document).on("keydown.fb",(function(t){if(w.enableEscapeButton&&27==t.keyCode)return t.preventDefault(),e.fancybox.close(),!1;!w.enableKeyboardNav||37!=t.keyCode&&39!=t.keyCode||"INPUT"===t.target.tagName||"TEXTAREA"===t.target.tagName||"SELECT"===t.target.tagName?w.enableKeyboardNav&&9==t.keyCode&&"INPUT"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName&&"SELECT"!==t.target.tagName&&(t.preventDefault(),e.fancybox[t.shiftKey?"prev":"next"]()):(t.preventDefault(),e.fancybox[37==t.keyCode?"prev":"next"]())})),w.showNavArrows&&((w.cyclic||0!==y)&&s.attr("title",w.txt.prev).show(),(w.cyclic||y!=x.length-1)&&l.attr("title",w.txt.next).show()))},_finish=function(){T&&T.length&&d.fadeIn(),w.showCloseButton&&c.attr("title",w.txt.close).show(),_set_navigation(),w.hideOnContentClick&&r.on("click",e.fancybox.close).css("cursor","pointer"),w.hideOnOverlayClick&&o.on("click",e.fancybox.close),w.autoResize&&e(window).on("resize.fb",e.fancybox.resize),"iframe"==w.type&&e('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" style="border:0;margin:0;overflow:'+("auto"==w.scrolling?"auto":"yes"==w.scrolling?"scroll":"hidden")+'" src="'+w.href+'"'+(!1===w.allowfullscreen?"":" allowfullscreen")+' allow="autoplay; encrypted-media" tabindex="999"></iframe>').appendTo(r).on("load",(function(){e.fancybox.hideActivity()})),"inline"!=w.type&&"html"!=w.type||e(r).children().css("overflow","auto"==w.scrolling?"auto":"yes"==w.scrolling?"scroll":"hidden"),i.show().focus(),O=!1,e(document).trigger("fancybox-complete",[x,y,w]),w.onComplete(x,y,w),x.length>1&&(_preload_next(),_preload_prev())},_preload_next=function(){var e="number"==typeof arguments[0]?arguments[0]:y+1;if(e>=x.length){if(!w.cyclic)return;e=0}if(e==y)return w.enableKeyboardNav=!1,w.enableSwipeNav=!1,i.off("mousewheel.fb touchstart.fb touchmove.fb touchend.fb mousedown.fb mousemove.fb mouseup.fb"),void l.hide();_preload_image(e)||_preload_next(e+1)},_preload_prev=function(){var e="number"==typeof arguments[0]?arguments[0]:y-1;if(e<0){if(!w.cyclic)return;e=x.length-1}if(e==y)return w.enableKeyboardNav=!1,w.enableSwipeNav=!1,i.off("mousewheel.fb touchstart.fb touchmove.fb touchend.fb mousedown.fb mousemove.fb mouseup.fb"),void s.hide();_preload_image(e)||_preload_prev(e-1)},_preload_image=function(t){var n=x[t];return!(void 0===n||void 0===n.href||n.href===w.href||!n.href.match(k)&&!e(n).hasClass("image"))&&((new Image).src=n.href,!0)},_get_zoom_to=function(){var t=[window.innerWidth-2*w.margin,window.innerHeight-2*w.margin-S,e(document).scrollLeft()+w.margin,e(document).scrollTop()+w.margin],n={},o=w.keepRatio&&w.height?w.width/w.height:1;return w.width.toString().indexOf("%")>-1?n.width=parseInt(t[0]*parseFloat(w.width)/100,10):n.width=w.width+2*w.padding,w.height.toString().indexOf("%")>-1?n.height=parseInt(t[1]*parseFloat(w.height)/100,10):n.height=w.height+2*w.padding,w.autoScale&&n.width>t[0]&&(n.width=t[0]-2*w.padding,n.height=parseInt(n.width/o,10)),w.autoScale&&n.height>t[1]&&(n.height=t[1]-2*w.padding,n.width=parseInt(n.height*o,10)),n.left=parseInt(Math.max(t[2],t[2]+(t[0]-n.width)/2),10),n.top=parseInt(Math.max(t[3],t[3]+(t[1]-n.height)/2),10),n},_get_orig_pos=function(){if(!m.orig)return!1;var t=e(m.orig);if(!t.length)return!1;var n=t.offset();return n.top+=parseInt(t.css("paddingTop"),10)||parseInt(t.css("border-top-width"),10)||0,n.left+=parseInt(t.css("paddingLeft"),10)||parseInt(t.css("border-left-width"),10)||0,{width:t.width()+2*w.padding,height:t.height()+2*w.padding,top:n.top-w.padding,left:n.left-w.padding,opacity:0}},_closed=function(){o.fadeOut("fast"),e(document).trigger("fancybox-closed",[x,y,w]),w.onClosed(x,y,w),_cleanup()},_cleanup=function(){o.hide(),d.empty().hide(),i.hide().attr("aria-hidden","true"),r.empty(),x=v=[],y=g=0,w=m={},e("html").css({"--vertical-scrollbar":"","--horizontal-scrollbar":""}),e("html").removeClass("fancybox-active"),e(document).off("fancybox-cancel fancybox-change fancybox-cleanup fancybox-closed"),O=!1},e.fn.fancybox=function(t){if(!e(this).length)return this;let n=e.extend({},t,e.metadata?e(this).metadata():{});return(!n.minViewportWidth||document.documentElement.clientWidth>=n.minViewportWidth)&&e(this).data("fancybox",n).attr({"aria-controls":"fancybox","aria-haspopup":"dialog"}).off("click.fb").on("click.fb",(function(t){if(t.preventDefault(),O)return!1;O=!0,e(this).blur(),v=[],g=0;var n=e(this).attr("rel")||"";return""==n||""==n.replace(/alternate|external|help|license|nofollow|noreferrer|noopener|\s+/gi,"")?v.push(this):(v=e('a[rel="'+n+'"], area[rel="'+n+'"]'),g=v.index(this)),e("html").css({"--vertical-scrollbar":window.innerWidth-e(window).width()+"px","--horizontal-scrollbar":window.innerHeight-e(window).height()+"px"}),_start(),!1})),this},e.fancybox=function(t){var n;if(!O){if(O=!0,n=void 0!==arguments[1]?arguments[1]:{},v=[],g=parseInt(n.index,10)||0,e.isArray(t)){for(var o=0,i=t.length;o<i;o++)"object"==typeof t[o]?e(t[o]).data("fancybox",e.extend({},n,t[o])):t[o]=e({}).data("fancybox",e.extend({content:t[o]},n));v=jQuery.merge(v,t)}else"object"==typeof t?e(t).data("fancybox",e.extend({},n,t)):t=e({}).data("fancybox",e.extend({content:t},n)),v.push(t);(g>v.length||g<0)&&(g=0),e("html").css({"--vertical-scrollbar":window.innerWidth-e(window).width()+"px","--horizontal-scrollbar":window.innerHeight-e(window).height()+"px"}),_start()}},e.fancybox.showActivity=function(){n.attr("title",m.txt.loading).show()},e.fancybox.hideActivity=function(){n.hide()},e.fancybox.next=function(){var t,n="number"==typeof arguments[0]?arguments[0]:y+1;if(n>=x.length){if(!w.cyclic)return;n=0}t=x[n],n!=y&&void 0!==t&&void 0!==t.href&&t.href===w.href?e.fancybox.next(n+1):e.fancybox.pos(n)},e.fancybox.prev=function(){var t,n="number"==typeof arguments[0]?arguments[0]:y-1;if(n<0){if(!w.cyclic)return;n=x.length-1}t=x[n],n!=y&&void 0!==t&&void 0!==t.href&&t.href===w.href?e.fancybox.prev(n-1):e.fancybox.pos(n)},e.fancybox.pos=function(t){O||(t=parseInt(t),x.length>1&&t!=y&&t>-1&&t<x.length&&(e(document).trigger("fancybox-change"),v=x,g=t,i.off("mousewheel.fb touchstart.fb touchmove.fb touchend.fb mousedown.fb mousemove.fb mouseup.fb").css("cursor","initial"),r.off("click"),_start()))},e.fancybox.cancel=function(){O=!0,_abort(),e(document).trigger("fancybox-cancel",[v,g,m]),m&&!1===m.onCancel(v,g,m)?O=!1:(e(v[g]).focus(),e(c.add(s).add(l)).hide(),e(r.add(o)).off(),e(window).off("resize.fb"),e(i).off("mousewheel.fb touchstart.fb touchmove.fb touchend.fb mousedown.fb mousemove.fb mouseup.fb"),e(document).off("keydown.fb"),/MSIE|Trident/.test(window.navigator.userAgent)&&r.find("iframe#fancybox-frame").attr("src","//about:blank"),i.stop(),_cleanup())},e.fancybox.close=function(){O||i.is(":hidden")||(O=!0,_abort(),e(document).trigger("fancybox-cleanup",[x,y,w]),w&&!1===w.onCleanup(x,y,w)?O=!1:(e(x[y]).focus(),e(c.add(s).add(l)).hide(),e(r.add(o)).off(),e(window).off("resize.fb"),e(i).off("mousewheel.fb touchstart.fb touchmove.fb touchend.fb mousedown.fb mousemove.fb mouseup.fb"),e(document).off("keydown.fb"),/MSIE|Trident/.test(window.navigator.userAgent)&&r.find("iframe#fancybox-frame").attr("src","//about:blank"),"inside"!==w.titlePosition&&d.empty(),i.stop(),"elastic"==w.transitionOut?(d.empty().hide(),i.animate(_get_orig_pos(),{duration:w.speedOut,easing:w.easingOut,complete:_closed})):i.fadeOut("none"==w.transitionOut?0:w.speedOut,_closed)))},e.fancybox.resize=function(){clearTimeout(f),f=setTimeout((function(){var e=[];O=!0,_process_title(),u=_get_zoom_to(),c.is(":visible")&&e.push(c)&&c.hide(),s.is(":visible")&&e.push(s)&&s.hide(),l.is(":visible")&&e.push(l)&&l.hide(),i.animate(u,{duration:w.changeSpeed,easing:w.easingChange,complete:function(){T&&T.length&&d.fadeIn(),e.forEach((function(e){e.show()})),O=!1}})}),500)},e.fancybox.init=function(){e("#fancybox-wrap").length||(e("body").append(t=e('<div id="fancybox-tmp"></div>'),n=e('<div id="fancybox-loading" title="Cancel"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>'),o=e('<div id="fancybox-overlay"></div>'),i=e('<div id="fancybox-wrap" role="dialog" aria-hidden="true" aria-labelledby="fancybox-title" tabindex="-1"></div>')),i.append(a=e('<div id="fancybox-outer"></div>')),a.append(r=e('<div id="fancybox-content"></div>'),c=e('<a id="fancybox-close" href="javascript:;" title="Close" class="fancy-ico" tabindex="1"><span></span></a>'),l=e('<a id="fancybox-next" href="javascript:;" title="Next" class="fancy-ico" tabindex="2"><span></span></a>'),s=e('<a id="fancybox-prev" href="javascript:;" title="Previous" class="fancy-ico" tabindex="3"><span></span></a>'),d=e('<div id="fancybox-title-wrap"></div>')),c.click(e.fancybox.close),n.click(e.fancybox.cancel),s.click((function(t){t.preventDefault(),e.fancybox.prev()})),l.click((function(t){t.preventDefault(),e.fancybox.next()})))},e.fn.fancybox.defaults={padding:10,margin:40,modal:!1,cyclic:!1,allowfullscreen:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,autoResize:!0,keepRatio:!1,minViewportWidth:0,swipeThreshold:100,ajax:{},svg:{wmode:"opaque"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayColor:"",titleShow:!0,titlePosition:"float",titleFormat:null,titleFromAlt:!0,transitionIn:"fade",transitionOut:"fade",speedIn:400,speedOut:400,changeSpeed:200,changeFade:200,easingIn:"swing",easingOut:"swing",showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,enableKeyboardNav:!0,enableSwipeNav:!0,txt:{error:{content:"The requested content cannot be loaded.",later:"Please try again later.",type:"No content type found.",image:"No image found.",unexpected:"Unexpected response."},loading:"Cancel",close:"Close",next:"Next",prev:"Previous"},onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}},e(document).ready((function(){e.fancybox.init()}))}(jQuery);
fancybox/2.2.0/jquery.fancybox.js CHANGED
@@ -142,7 +142,7 @@
142
  tpl: {
143
  wrap : '<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',
144
  image : '<img class="fancybox-image" src="{href}" alt="" />',
145
- iframe : '<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" allow="autoplay"' + (IE ? ' allowtransparency="true"' : '') + '></iframe>',
146
  error : '<p class="fancybox-error">{error}</p>',
147
  close : '<a title="{close}" class="fancybox-item fancybox-close" href="javascript:;"></a>',
148
  next : '<a title="{next}" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',
142
  tpl: {
143
  wrap : '<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',
144
  image : '<img class="fancybox-image" src="{href}" alt="" />',
145
+ iframe : '<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" allow="autoplay; encrypted-media;"' + (IE ? ' allowtransparency="true"' : '') + '></iframe>',
146
  error : '<p class="fancybox-error">{error}</p>',
147
  close : '<a title="{close}" class="fancybox-item fancybox-close" href="javascript:;"></a>',
148
  next : '<a title="{next}" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',
fancybox/2.2.0/jquery.fancybox.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,t,o,n){"use strict";var i=o("html"),a=o(e),r=o(t),l=o.fancybox=function(){l.open.apply(this,arguments)},s=navigator.userAgent.match(/msie/i),c=null,p="ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,d=function(e){return e&&e.hasOwnProperty&&e instanceof o},h=function(e){return e&&"string"===o.type(e)},f=function(e){return h(e)&&e.indexOf("%")>0},u=function(e,t){var o=parseInt(e,10)||0;return t&&f(e)&&(o=l.getViewport()[t]/100*o),Math.ceil(o)},g=function(e,t){return u(e,t)+"px"};o.extend(l,{version:"2.2.0",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:e.devicePixelRatio||1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!p,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,minVpWidth:320,minVpHeight:320,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,zoomClick:!1,mouseWheel:!0,swipe:p,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",allowfullscreen:!0,preload:!0},svg:{},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" allow="autoplay"'+(s?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">{error}</p>',close:'<a title="{close}" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="{next}" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="{prev}" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>',loading:'<div id="fancybox-loading"><div></div></div>'},txt:{error:{content:"The requested content cannot be loaded.<br/>Please try again later.",image:"The requested image cannot be loaded.<br/>Please try again later.",ajax:"An AJAX error occurred.<br/>Please contact the site administrator.",href:"Missing media target URL.<br/>Please contact the site administrator."},close:"Close",next:"Next",prev:"Previous"},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:o.noop,beforeLoad:o.noop,afterLoad:o.noop,beforeShow:o.noop,afterShow:o.noop,beforeChange:o.noop,beforeClose:o.noop,afterClose:o.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(e,t){if(e&&(o.isPlainObject(t)||(t={}),!1!==l.close(!0)))return o.isArray(e)||(e=d(e)?o(e).get():[e]),o.each(e,(function(i,a){var r,s,c,p,f,u,g,m={};"object"===o.type(a)&&(a.nodeType&&(a=o(a)),d(a)?(m={href:a.data("fancybox-href")||a.attr("href"),title:o("<div/>").text(a.data("fancybox-title")||a.attr("title")||"").html(),isDom:!0,element:a},o.metadata&&o.extend(!0,m,a.metadata())):m=a),r=t.href||m.href||(h(a)?a:null),s=t.title!==n?t.title:m.title||"",!(p=(c=t.content||m.content)?"html":t.type||m.type)&&m.isDom&&((p=a.data("fancybox-type"))||(p=(f=a.prop("class").match(/fancybox\.(\w+)/))?f[1]:null)),h(r)&&(p||(l.isImage(r)?p="image":l.isSVG(r)?p="svg":"#"===r.charAt(0)?p="inline":h(a)&&(p="html",c=a)),"ajax"===p&&(u=r.split(/\s+/,2),r=u.shift(),g=u.shift())),c||("inline"===p?r?c=o(h(r)?r.replace(/.*(?=#[^\s]+$)/,""):r):m.isDom&&(c=a):"html"===p?c=r:p||r||!m.isDom||(p="inline",c=a)),o.extend(m,{href:r,type:p,content:c,title:s,selector:g}),e[i]=m})),l.opts=o.extend(!0,{},l.defaults,t),t.keys!==n&&(l.opts.keys=!!t.keys&&o.extend({},l.defaults.keys,t.keys)),l.group=e,l._start(l.opts.index)},cancel:function(){var e=l.coming;e&&!1===l.trigger("onCancel")||(l.hideLoading(),e&&(l.ajaxLoad&&l.ajaxLoad.abort(),l.ajaxLoad=null,l.imgPreload&&(l.imgPreload.onload=l.imgPreload.onerror=null),e.wrap&&e.wrap.stop(!0,!0).trigger("onReset").remove(),l.coming=null,l.current||l._afterZoomOut(e)))},close:function(e){l.cancel(),!1!==l.trigger("beforeClose")&&(l.unbindEvents(),l.isActive&&(l.isOpen&&!0!==e?(l.isOpen=l.isOpened=!1,l.isClosing=!0,o(".fancybox-item, .fancybox-nav").remove(),l.wrap.stop(!0,!0).removeClass("fancybox-opened"),l.transitions[l.current.closeMethod]()):(o(".fancybox-wrap").stop(!0).trigger("onReset").remove(),l._afterZoomOut())))},play:function(e){var t=function(){clearTimeout(l.player.timer)},o=function(){t(),l.current&&l.player.isActive&&(l.player.timer=setTimeout(l.next,l.current.playSpeed))},n=function(){t(),r.off(".player"),l.player.isActive=!1,l.trigger("onPlayEnd")};!0===e||!l.player.isActive&&!1!==e?l.current&&(l.current.loop||l.current.index<l.group.length-1)&&(l.player.isActive=!0,r.on({"onCancel.player beforeClose.player":n,"onUpdate.player":o,"beforeLoad.player":t}),o(),l.trigger("onPlayStart")):n()},swipe:function(e,t,o){e>o||t>o?(l.wrap.off("touchstart.fb touchmove.fb touchend.fb mouseup.fb mousedown.fb mousemove.fb mousewheel.fb"),l.next(t>o?"up":"left")):(e<-o||t<-o)&&(l.wrap.off("touchstart.fb touchmove.fb touchend.fb mouseup.fb mousedown.fb mousemove.fb mousewheel.fb"),l.prev(t<-o?"down":"right"))},next:function(e){var t=l.current;t&&(h(e)||(e=t.direction.next),l.jumpto(t.index+1,e,"next"))},prev:function(e){var t=l.current;t&&(h(e)||(e=t.direction.prev),l.jumpto(t.index-1,e,"prev"))},jumpto:function(e,t,o){var i=l.current;i&&(e=u(e),l.direction=t||i.direction[e>=i.index?"next":"prev"],l.router=o||"jumpto",i.loop&&(e<0&&(e=i.group.length+e%i.group.length),e%=i.group.length),i.group[e]!==n&&(l.cancel(),l.isJumping=!0,l._start(e)))},canScroll:function(e){let t=!1,n=o(e);for(;n.length&&!(t||n.is(".fancybox-skin")||n.is(".fancybox-wrap"));)t=(i=n[0])&&!(i.style.overflow&&"hidden"===i.style.overflow)&&(i.clientWidth&&i.scrollWidth>i.clientWidth||i.clientHeight&&i.scrollHeight>i.clientHeight),n=o(n).parent();var i;return t},reposition:function(e,t){var n,i=l.current,a=i?i.wrap:null;a&&(n=l._getPosition(t),e&&"scroll"===e.type?(delete n.position,a.stop(!0,!0).animate(n,200)):(a.css(n),i.pos=o.extend({},i.dim,n)))},update:function(e){var t=e&&e.originalEvent&&e.originalEvent.type,o=!t||"orientationchange"===t;o&&(clearTimeout(c),c=null),l.isOpen&&!c&&(c=setTimeout((function(){var n=l.current;n&&!l.isClosing&&(l.wrap.removeClass("fancybox-tmp"),(o||"load"===t||"resize"===t&&n.autoResize)&&l._setDimension(),"scroll"===t&&n.canShrink||l.reposition(e),n.zoomClick&&l.inner.css("cursor",n.canExpand?"zoom-in":"zoom-out"),l.trigger("onUpdate"),c=null)}),o&&!p?0:300))},toggle:function(e){l.isOpen&&(l.current.fitToView="boolean"===o.type(e)?e:!l.current.fitToView,p&&(l.wrap.removeAttr("style").addClass("fancybox-tmp"),l.trigger("onUpdate")),l.update())},hideLoading:function(){r.off(".loading"),o("#fancybox-loading").remove()},showLoading:function(){var e,t;l.hideLoading(),e=o(l.opts.tpl.loading).click(l.cancel).appendTo("body"),r.on("keydown.loading",(function(e){if(27===(e.which||e.keyCode))return l.cancel(),e.preventDefault(),!1})),l.defaults.fixed||(t=l.getViewport(),e.css({position:"absolute",top:.5*t.h+t.y,left:.5*t.w+t.x})),l.trigger("onLoading")},getViewport:function(){var t=l.current&&l.current.locked||!1,o={x:a.scrollLeft(),y:a.scrollTop()};return t&&t.length?(o.w=t[0].clientWidth,o.h=t[0].clientHeight):(o.w=p&&e.innerWidth?e.innerWidth:a.width(),o.h=p&&e.innerHeight?e.innerHeight:a.height()),o},unbindEvents:function(){l.wrap&&d(l.wrap)&&l.wrap.off(".fb"),r.off(".fb"),a.off(".fb")},bindEvents:function(){var e,t=l.current;t&&(a.on("orientationchange.fb"+(p?"":" resize.fb")+(t.autoCenter&&!t.locked?" scroll.fb":""),l.update),(e=t.keys)&&r.on("keydown.fb",(function(i){var a=i.which||i.keyCode,r=i.target||i.srcElement;if(27===a&&l.coming)return!1;i.ctrlKey||i.altKey||i.shiftKey||i.metaKey||r&&(r.type||o(r).is("[contenteditable]"))||o.each(e,(function(e,r){return t.group.length>1&&r[a]!==n?(l[e](r[a]),i.preventDefault(),!1):o.inArray(a,r)>-1?(l[e](),i.preventDefault(),!1):void 0}))})),t.group.length>1&&(l.wrap.css("cursor","move"),l.wrap.on("mousedown.fb",(function(e){let t={};e.preventDefault(),t.startX=void 0!==e.clientX?e.clientX:e.originalEvent.clientX,t.startY=void 0!==e.clientY?e.clientY:e.originalEvent.clientY,l.wrap.on("mousemove.fb",(function(e){e.preventDefault(),t.endX=void 0!==e.clientX?e.clientX:e.originalEvent.clientX,t.endY=void 0!==e.clientY?e.clientY:e.originalEvent.clientY})),l.wrap.on("mouseup.fb",(function(){l.wrap.off("mousemove.fb"),l.swipe(t.startX-t.endX,t.startY-t.endY,100)}))})),t.swipe&&(l.wrap.on("touchstart.fb",(function(e){let o=e.target||null,n={},i=void 0!==e.touches?e.touches.length:e.originalEvent.touches.length;t.canShrink||i>1||l.canScroll(o)||(e.preventDefault(),n.startX=void 0!==e.touches?e.touches[0].clientX:e.originalEvent.touches[0].clientX,n.startY=void 0!==e.touches?e.touches[0].clientY:e.originalEvent.touches[0].clientY,l.wrap.on("touchmove.fb",(function(e){if(i=void 0!==e.touches?e.touches.length:e.originalEvent.touches.length,i>1)return;e.preventDefault();let t=void 0!==e.touches?e.touches[0].clientX:e.originalEvent.touches[0].clientX,o=void 0!==e.touches?e.touches[0].clientY:e.originalEvent.touches[0].clientY;l.swipe(n.startX-t,n.startY-o,100)})))})),l.wrap.on("touchend.fb",(function(){l.wrap.off("touchmove.fb")}))),o.fn.mousewheel&&t.mouseWheel&&l.wrap.on("mousewheel.fb",(function(e,o,n,i){let a=e.target||null;t.canShrink||0===o||l.canScroll(a)||(e.preventDefault(),l.swipe(-n,-i,0))}))))},trigger:function(e,t){var n,i=t||l.coming||l.current;if(i){if(o.isFunction(i[e])&&(n=i[e].apply(i,Array.prototype.slice.call(arguments,1))),!1===n)return!1;i.helpers&&o.each(i.helpers,(function(t,n){n&&l.helpers[t]&&o.isFunction(l.helpers[t][e])&&l.helpers[t][e](o.extend(!0,{},l.helpers[t].defaults,n),i)}))}r.trigger(e)},isImage:function(e){return h(e)&&e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSVG:function(e){return h(e)&&e.match(/\.(svg)((\?|#).*)?$/i)},_start:function(e){var t,n,i,a,r,s={};if(e=u(e),!(t=l.group[e]||null))return!1;if(a=(s=o.extend(!0,{},l.opts,t)).margin,r=s.padding,"number"===o.type(a)&&(s.margin=[a,a,a,a]),"number"===o.type(r)&&(s.padding=[r,r,r,r]),s.modal&&o.extend(!0,s,{closeBtn:!1,closeClick:!1,nextClick:!1,zoomClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),s.autoSize&&(s.autoWidth=s.autoHeight=!0),"auto"===s.width&&(s.autoWidth=!0),"auto"===s.height&&(s.autoHeight=!0),s.group=l.group,s.index=e,l.coming=s,!1!==l.trigger("beforeLoad")){if(i=s.type,n=s.href,!i)return l.coming=null,!(!l.current||!l.router||"jumpto"===l.router)&&(l.current.index=e,l[l.router](l.direction));if(l.isActive=!0,"image"!==i&&"svg"!==i||(s.autoHeight=s.autoWidth=!1,s.scrolling="visible",s.aspectRatio=!0),"iframe"===i&&p&&(s.scrolling="scroll"),s.wrap=o(s.tpl.wrap).addClass("fancybox-"+(p?"mobile":"desktop")+" fancybox-type-"+i+" fancybox-tmp "+s.wrapCSS).appendTo(s.parent||"body"),o.extend(s,{skin:o(".fancybox-skin",s.wrap),outer:o(".fancybox-outer",s.wrap),inner:o(".fancybox-inner",s.wrap)}),o.each(["Top","Right","Bottom","Left"],(function(e,t){s.skin.css("padding"+t,g(s.padding[e]))})),l.trigger("onReady"),"inline"===i||"html"===i){if(!s.content||!s.content.length)return l._error("content")}else if(!n)return l._error("href");"image"===i?l._loadImage():"ajax"===i?l._loadAjax():"iframe"===i?l._loadIframe():l._afterLoad()}else l.coming=null},_error:function(e){let t=l.coming.txt.error[e]||l.coming.txt.error.content;arguments.length>1&&(t=t+"<br/><br/>"+arguments[1]),o.extend(l.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",content:l.coming.tpl.error.replace(/\{error\}/g,t)}),l._afterLoad()},_loadImage:function(){var e=l.imgPreload=new Image;e.onload=function(){this.onload=this.onerror=null,l.coming.width=this.width/l.opts.pixelRatio,l.coming.height=this.height/l.opts.pixelRatio,l._afterLoad()},e.onerror=function(){this.onload=this.onerror=null,l._error("image")},e.src=l.coming.href,!0!==e.complete&&l.showLoading()},_loadAjax:function(){var e=l.coming;l.showLoading(),l.ajaxLoad=o.ajax(o.extend({},e.ajax,{url:e.href,error:function(e,t){l.coming&&"abort"!==t?l._error("ajax",e):l.hideLoading()},success:function(t,o){"success"===o&&(e.content=t,l._afterLoad())}}))},_loadIframe:function(){var e=l.coming,t=o(e.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr({scrolling:p?"auto":e.iframe.scrolling,src:e.href,webkitallowfullscreen:e.iframe.allowfullscreen,mozallowfullscreen:e.iframe.allowfullscreen,allowfullscreen:e.iframe.allowfullscreen});o(e.wrap).on("onReset",(function(){try{o(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(e){}})),e.iframe.preload&&(l.showLoading(),t.one("load",(function(){o(this).data("ready",1),p||o(this).on("load.fb",l.update),o(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),l._afterLoad()}))),e.content=t.appendTo(e.inner),e.iframe.preload||l._afterLoad()},_preloadImages:function(){var e,t,o=l.group,n=l.current,i=o.length,a=n.preload?Math.min(n.preload,i-1):0;for(t=1;t<=a;t+=1)"image"===(e=o[(n.index+t)%i]).type&&e.href&&((new Image).src=e.href)},_afterLoad:function(){var e,t,n,i,a,r=l.coming,s=l.current,c="fancybox-placeholder";if(l.hideLoading(),r&&!1!==l.isActive){if(!1===l.trigger("afterLoad",r,s))return r.wrap.stop(!0).trigger("onReset").remove(),void(l.coming=null);switch(s&&(l.trigger("beforeChange",s),s.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),l.unbindEvents(),e=r,t=r.content,n=r.type,i=r.scrolling,o.extend(l,{wrap:e.wrap,skin:e.skin,outer:e.outer,inner:e.inner,current:e,previous:s}),a=e.href,n){case"image":t=e.tpl.image.replace(/\{href\}/g,a);break;case"svg":t='<object type="image/svg+xml" width="100%" height="100%" data="'+a+'"></object>';break;case"inline":case"ajax":case"html":e.selector?t=o("<div>").html(t).find(e.selector):d(t)&&(t.data(c)||t.data(c,t.clone().removeAttr("id").addClass(c).insertAfter(t)),t=t.detach(),e.wrap.on("onReset",(function(){o(this).find(t).length&&t.replaceAll(t.data(c)).data(c,!1)})));break}d(t)&&t.parent().is(e.inner)||e.inner.append(t),l.trigger("beforeShow"),e.inner.css("overflow","yes"===i?"scroll":"no"===i?"hidden":i),l._setDimension(),l.reposition(),l.isOpen=!1,l.coming=null,l.bindEvents(),l.isOpened?s.prevMethod&&l.transitions[s.prevMethod]():o(".fancybox-wrap").not(e.wrap).stop(!0).trigger("onReset").remove(),l.transitions[l.isOpened?e.nextMethod:e.openMethod](),l._preloadImages()}},_setDimension:function(){var e,t,n,i,a,r,s,c,p,d,h,m,v,y,x,w,b,k=l.getViewport(),C=0,E=l.wrap,S=l.skin,T=l.inner,W=l.current,O=W.width,_=W.height,P=W.minWidth,H=W.minHeight,L=W.maxWidth,R=W.maxHeight,j=W.scrolling,M=W.scrollOutside?W.scrollbarWidth:0,A=W.margin,z=u(A[1]+A[3]),V=u(A[0]+A[2]);if(E.add(S).add(T).width("auto").height("auto").removeClass("fancybox-tmp"),a=z+(n=u(S.outerWidth(!0)-S.width())),r=V+(i=u(S.outerHeight(!0)-S.height())),s=f(O)?(k.w-a)*u(O)/100:O,c=f(_)?(k.h-r)*u(_)/100:_,"iframe"===W.type){if(w=W.content,W.autoHeight&&w&&1===w.data("ready"))try{w[0].contentWindow.document.location&&(T.width(s).height(9999),b=w.contents().find("body"),M&&b.css("overflow-x","hidden"),c=b.outerHeight(!0))}catch(e){}}else(W.autoWidth||W.autoHeight)&&(T.addClass("fancybox-tmp"),W.autoWidth||T.width(s),W.autoHeight||T.height(c),W.autoWidth&&(s=T.width()),W.autoHeight&&(c=T.height()),T.removeClass("fancybox-tmp"));if(O=u(s),_=u(c),h=s/c,P=u(f(P)?u(P,"w")-a:P),L=u(f(L)?u(L,"w")-a:L),H=u(f(H)?u(H,"h")-r:H),p=L,d=R=u(f(R)?u(R,"h")-r:R),W.fitToView&&(L=Math.min(k.w-a,L),R=Math.min(k.h-r,R)),y=k.w-z,x=k.h-V,W.aspectRatio?(O>L&&(_=u((O=L)/h)),_>R&&(O=u((_=R)*h)),O<P&&(_=u((O=P)/h)),_<H&&(O=u((_=H)*h))):(O=Math.max(P,Math.min(O,L)),W.autoHeight&&"iframe"!==W.type&&(T.width(O),_=T.height()),_=Math.max(H,Math.min(_,R))),W.fitToView)if(T.width(O).height(_),E.width(O+n),m=E.width(),v=E.height(),W.aspectRatio)for(;(m>y||v>x)&&O>P&&_>H&&!(C++>19);)_=Math.max(H,Math.min(R,_-10)),(O=u(_*h))<P&&(_=u((O=P)/h)),O>L&&(_=u((O=L)/h)),T.width(O).height(_),E.width(O+n),m=E.width(),v=E.height();else O=Math.max(P,Math.min(O,O-(m-y))),_=Math.max(H,Math.min(_,_-(v-x)));M&&"auto"===j&&_<c&&O+n+M<y&&(O+=M),T.width(O).height(_),E.width(O+n),m=E.width(),v=E.height(),e=(m>y||v>x)&&O>P&&_>H,t=W.aspectRatio?O<p&&_<d&&O<s&&_<c:(O<p||_<d)&&(O<s||_<c),o.extend(W,{dim:{width:g(m),height:g(v)},origWidth:s,origHeight:c,canShrink:e,canExpand:t,wPadding:n,hPadding:i,wrapSpace:v-S.outerHeight(!0),skinSpace:S.height()-_}),!w&&W.autoHeight&&_>H&&_<R&&!t&&T.height("auto")},_getPosition:function(e){var t=l.current,o=l.getViewport(),n=t.margin,i=l.wrap.width()+n[1]+n[3],a=l.wrap.height()+n[0]+n[2],r={position:"absolute",top:n[0],left:n[3]};return t.autoCenter&&t.fixed&&!e&&a<=o.h&&i<=o.w?r.position="fixed":t.locked||(r.top+=o.y,r.left+=o.x),r.top=g(Math.max(r.top,r.top+(o.h-a)*t.topRatio)),r.left=g(Math.max(r.left,r.left+(o.w-i)*t.leftRatio)),r},_afterZoomIn:function(){var e=l.current;e&&(l.isOpen=l.isOpened=!0,l.wrap.css("overflow","visible").addClass("fancybox-opened").hide().show(0),l.update(),(e.zoomClick||e.closeClick||e.nextClick&&l.group.length>1)&&l.inner.css("cursor",e.zoomClick?e.canExpand?"zoom-in":"zoom-out":"pointer").on("click.fb",(function(t){o(t.target).is("a")||o(t.target).parent().is("a")||(t.preventDefault(),l[e.zoomClick&&(e.canExpand||e.canShrink)?"toggle":e.closeClick?"close":"next"]())})),e.closeBtn&&o(e.tpl.close.replace(/\{close\}/g,e.txt.close)).appendTo(l.skin).on("click.fb",(function(e){e.preventDefault(),l.close()})),e.arrows&&l.group.length>1&&((e.loop||e.index>0)&&o(e.tpl.prev.replace(/\{prev\}/g,e.txt.prev)).appendTo(l.outer).on("click.fb",l.prev),(e.loop||e.index<l.group.length-1)&&o(e.tpl.next.replace(/\{next\}/g,e.txt.next)).appendTo(l.outer).on("click.fb",l.next)),l.trigger("afterShow"),e.loop||e.index!==e.group.length-1?l.opts.autoPlay&&!l.player.isActive&&(l.opts.autoPlay=!1,l.play(!0)):l.play(!1))},_afterZoomOut:function(e){e=e||l.current,o(".fancybox-wrap").trigger("onReset").remove(),o.extend(l,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),l.trigger("afterClose",e)}}),l.transitions={getOrigPosition:function(){var e=l.current,t=e.element,o=e.orig,n={},i=50,a=50,r=e.hPadding,s=e.wPadding,c=l.getViewport();return!o&&e.isDom&&t.is(":visible")&&((o=t.find("img:first")).length||(o=t)),d(o)?(n=o.offset(),o.is("img")&&(i=o.outerWidth(),a=o.outerHeight())):(n.top=c.y+(c.h-a)*e.topRatio,n.left=c.x+(c.w-i)*e.leftRatio),("fixed"===l.wrap.css("position")||e.locked)&&(n.top-=c.y,n.left-=c.x),n={top:g(n.top-r*e.topRatio),left:g(n.left-s*e.leftRatio),width:g(i+s),height:g(a+r)}},step:function(e,t){var o,n,i=t.prop,a=l.current,r=a.wrapSpace,s=a.skinSpace;"width"!==i&&"height"!==i||(o=t.end===t.start?1:(e-t.start)/(t.end-t.start),l.isClosing&&(o=1-o),n=e-("width"===i?a.wPadding:a.hPadding),l.skin[i](u("width"===i?n:n-r*o)),l.inner[i](u("width"===i?n:n-r*o-s*o)))},zoomIn:function(){var e=l.current,t=e.pos,n=e.openEffect,i="elastic"===n,a=o.extend({opacity:1},t);delete a.position,i?(t=this.getOrigPosition(),e.openOpacity&&(t.opacity=.1)):"fade"===n&&(t.opacity=.1),l.wrap.css(t).animate(a,{duration:"none"===n?0:e.openSpeed,easing:e.openEasing,step:i?this.step:null,complete:l._afterZoomIn})},zoomOut:function(){var e=l.current,t=e.closeEffect,o="elastic"===t,n={opacity:.1};o&&(n=this.getOrigPosition(),e.closeOpacity&&(n.opacity=.1)),l.wrap.animate(n,{duration:"none"===t?0:e.closeSpeed,easing:e.closeEasing,step:o?this.step:null,complete:l._afterZoomOut})},changeIn:function(){var e,t=l.current,o=t.nextEffect,n=t.pos,i={opacity:1},a=l.direction,r=200;n.opacity=.1,"elastic"===o&&(e="down"===a||"up"===a?"top":"left","down"===a||"right"===a?(n[e]=g(u(n[e])-r),i[e]="+=200px"):(n[e]=g(u(n[e])+r),i[e]="-=200px")),"none"===o?l._afterZoomIn():l.wrap.css(n).animate(i,{duration:t.nextSpeed,easing:t.nextEasing,complete:l._afterZoomIn})},changeOut:function(){var e=l.previous,t=e.prevEffect,n={opacity:.1},i=l.direction;"elastic"===t&&(n["down"===i||"up"===i?"top":"left"]=("up"===i||"left"===i?"-":"+")+"=200px"),e.wrap.animate(n,{duration:"none"===t?0:e.prevSpeed,easing:e.prevEasing,complete:function(){o(this).trigger("onReset").remove()}})}},l.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!p,fixed:!0},overlay:null,fixed:!1,el:o("html"),create:function(e){var t;e=o.extend({},this.defaults,e),this.overlay&&this.close(),t=l.coming?l.coming.parent:e.parent,this.overlay=o('<div class="fancybox-overlay"></div>').appendTo(t&&t.length?t:"body"),this.fixed=!1,e.fixed&&l.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(e){var t=this;e=o.extend({},this.defaults,e),this.overlay?this.overlay.off(".overlay").width("auto").height("auto"):this.create(e),this.fixed||(a.on("resize.overlay",o.proxy(this.update,this)),this.update()),e.closeClick&&this.overlay.on("click.overlay",(function(e){if(o(e.target).hasClass("fancybox-overlay"))return l.isActive?l.close():t.close(),!1})),this.overlay.css(e.css).show()},close:function(){a.off("resize.overlay"),this.el.hasClass("fancybox-lock")&&(o(".fancybox-margin").removeClass("fancybox-margin"),this.el.removeClass("fancybox-lock"),a.scrollTop(this.scrollV).scrollLeft(this.scrollH)),o(".fancybox-overlay").remove().hide(),o.extend(this,{overlay:null,fixed:!1})},update:function(){var e,o="100%";this.overlay.width(o).height("100%"),s?(e=Math.max(t.documentElement.offsetWidth,t.body.offsetWidth),r.width()>e&&(o=r.width())):r.width()>a.width()&&(o=r.width()),this.overlay.width(o).height(r.height())},onReady:function(e,t){var n=this.overlay;o(".fancybox-overlay").stop(!0,!0),n||this.create(e),e.locked&&this.fixed&&t.fixed&&(t.locked=this.overlay.append(t.wrap),t.fixed=!1),!0===e.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(e,t){t.locked&&!this.el.hasClass("fancybox-lock")&&(!1!==this.fixPosition&&o("*:not(object)").filter((function(){return"fixed"===o(this).css("position")&&!o(this).hasClass("fancybox-overlay")&&!o(this).hasClass("fancybox-wrap")})).addClass("fancybox-margin"),this.el.addClass("fancybox-margin"),this.scrollV=a.scrollTop(),this.scrollH=a.scrollLeft(),this.el.addClass("fancybox-lock"),a.scrollTop(this.scrollV).scrollLeft(this.scrollH)),this.open(e)},onUpdate:function(){this.fixed||this.update()},afterClose:function(e){this.overlay&&!l.coming&&this.overlay.fadeOut(e.speedOut,o.proxy(this.close,this))}},l.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(e){var t,n,i=l.current,a=i.title,r=e.type;if(o.isFunction(a)&&(a=a.call(i.element,i)),h(a)&&""!==o.trim(a)){switch(t=o('<div class="fancybox-title fancybox-title-'+r+'-wrap">'+a+"</div>"),r){case"inside":n=l.skin;break;case"outside":n=l.wrap;break;case"over":n=l.inner;break;default:n=l.skin,t.appendTo("body"),s&&t.width(t.width()),t.wrapInner('<span class="child"></span>'),l.current.margin[2]+=Math.abs(u(t.css("margin-bottom")));break}t["top"===e.position?"prependTo":"appendTo"](n)}}},o.fn.fancybox=function(e){var t,n=o(this),i=this.selector||"",a=function(a){var r,s,c=o(this).blur(),p=t;if(!(a.ctrlKey||a.altKey||a.shiftKey||a.metaKey||c.is(".fancybox-wrap"))){r=e.groupAttr||"data-fancybox-group",(s=c.attr(r))||(r="rel",s=c.get(0)[r]),s&&""!==s&&"nofollow"!==s&&(p=(c=(c=i.length?o(i):n).filter("["+r+'="'+s+'"]')).index(this)),e.index=p;var d=l.getViewport();if(e.minVpWidth&&d.w<e.minVpWidth||e.minVpHeight&&d.h<e.minVpHeight)return;if(!1!==l.open(c,e))return a.preventDefault(),!1}};return t=(e=e||{}).index||0,i&&!1!==e.live?r.undelegate(i,"click.fb-start").delegate(i+":not('.fancybox-item, .fancybox-nav')","click.fb-start",a):n.off("click.fb-start").on("click.fb-start",a),this.filter("[data-fancybox-start=1]").trigger("click"),this},r.ready((function(){var t,a,r,s;o.scrollbarWidth===n&&(o.scrollbarWidth=function(){var e=o('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),t=e.children(),n=t.innerWidth()-t.height(99).innerWidth();return e.remove(),n}),o.support.fixedPosition===n&&(o.support.fixedPosition=(r=o('<div style="position:fixed;top:20px;"></div>').appendTo("body"),s=20===r[0].offsetTop||15===r[0].offsetTop,r.remove(),s)),o.extend(l.defaults,{scrollbarWidth:o.scrollbarWidth(),fixed:o.support.fixedPosition,parent:o("body")}),t=o(e).width(),i.addClass("fancybox-lock-test"),a=o(e).width(),i.removeClass("fancybox-lock-test"),o("<style type='text/css'>.fancybox-margin{margin-right:"+(a-t)+"px;}</style>").appendTo("head")}))}(window,document,jQuery);
1
+ !function(e,t,o,n){"use strict";var i=o("html"),a=o(e),r=o(t),l=o.fancybox=function(){l.open.apply(this,arguments)},s=navigator.userAgent.match(/msie/i),c=null,p="ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,d=function(e){return e&&e.hasOwnProperty&&e instanceof o},h=function(e){return e&&"string"===o.type(e)},f=function(e){return h(e)&&e.indexOf("%")>0},u=function(e,t){var o=parseInt(e,10)||0;return t&&f(e)&&(o=l.getViewport()[t]/100*o),Math.ceil(o)},g=function(e,t){return u(e,t)+"px"};o.extend(l,{version:"2.2.0",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:e.devicePixelRatio||1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!p,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,minVpWidth:320,minVpHeight:320,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,zoomClick:!1,mouseWheel:!0,swipe:p,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",allowfullscreen:!0,preload:!0},svg:{},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" allow="autoplay; encrypted-media;"'+(s?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">{error}</p>',close:'<a title="{close}" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="{next}" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="{prev}" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>',loading:'<div id="fancybox-loading"><div></div></div>'},txt:{error:{content:"The requested content cannot be loaded.<br/>Please try again later.",image:"The requested image cannot be loaded.<br/>Please try again later.",ajax:"An AJAX error occurred.<br/>Please contact the site administrator.",href:"Missing media target URL.<br/>Please contact the site administrator."},close:"Close",next:"Next",prev:"Previous"},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:o.noop,beforeLoad:o.noop,afterLoad:o.noop,beforeShow:o.noop,afterShow:o.noop,beforeChange:o.noop,beforeClose:o.noop,afterClose:o.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(e,t){if(e&&(o.isPlainObject(t)||(t={}),!1!==l.close(!0)))return o.isArray(e)||(e=d(e)?o(e).get():[e]),o.each(e,(function(i,a){var r,s,c,p,f,u,g,m={};"object"===o.type(a)&&(a.nodeType&&(a=o(a)),d(a)?(m={href:a.data("fancybox-href")||a.attr("href"),title:o("<div/>").text(a.data("fancybox-title")||a.attr("title")||"").html(),isDom:!0,element:a},o.metadata&&o.extend(!0,m,a.metadata())):m=a),r=t.href||m.href||(h(a)?a:null),s=t.title!==n?t.title:m.title||"",!(p=(c=t.content||m.content)?"html":t.type||m.type)&&m.isDom&&((p=a.data("fancybox-type"))||(p=(f=a.prop("class").match(/fancybox\.(\w+)/))?f[1]:null)),h(r)&&(p||(l.isImage(r)?p="image":l.isSVG(r)?p="svg":"#"===r.charAt(0)?p="inline":h(a)&&(p="html",c=a)),"ajax"===p&&(u=r.split(/\s+/,2),r=u.shift(),g=u.shift())),c||("inline"===p?r?c=o(h(r)?r.replace(/.*(?=#[^\s]+$)/,""):r):m.isDom&&(c=a):"html"===p?c=r:p||r||!m.isDom||(p="inline",c=a)),o.extend(m,{href:r,type:p,content:c,title:s,selector:g}),e[i]=m})),l.opts=o.extend(!0,{},l.defaults,t),t.keys!==n&&(l.opts.keys=!!t.keys&&o.extend({},l.defaults.keys,t.keys)),l.group=e,l._start(l.opts.index)},cancel:function(){var e=l.coming;e&&!1===l.trigger("onCancel")||(l.hideLoading(),e&&(l.ajaxLoad&&l.ajaxLoad.abort(),l.ajaxLoad=null,l.imgPreload&&(l.imgPreload.onload=l.imgPreload.onerror=null),e.wrap&&e.wrap.stop(!0,!0).trigger("onReset").remove(),l.coming=null,l.current||l._afterZoomOut(e)))},close:function(e){l.cancel(),!1!==l.trigger("beforeClose")&&(l.unbindEvents(),l.isActive&&(l.isOpen&&!0!==e?(l.isOpen=l.isOpened=!1,l.isClosing=!0,o(".fancybox-item, .fancybox-nav").remove(),l.wrap.stop(!0,!0).removeClass("fancybox-opened"),l.transitions[l.current.closeMethod]()):(o(".fancybox-wrap").stop(!0).trigger("onReset").remove(),l._afterZoomOut())))},play:function(e){var t=function(){clearTimeout(l.player.timer)},o=function(){t(),l.current&&l.player.isActive&&(l.player.timer=setTimeout(l.next,l.current.playSpeed))},n=function(){t(),r.off(".player"),l.player.isActive=!1,l.trigger("onPlayEnd")};!0===e||!l.player.isActive&&!1!==e?l.current&&(l.current.loop||l.current.index<l.group.length-1)&&(l.player.isActive=!0,r.on({"onCancel.player beforeClose.player":n,"onUpdate.player":o,"beforeLoad.player":t}),o(),l.trigger("onPlayStart")):n()},swipe:function(e,t,o){e>o||t>o?(l.wrap.off("touchstart.fb touchmove.fb touchend.fb mouseup.fb mousedown.fb mousemove.fb mousewheel.fb"),l.next(t>o?"up":"left")):(e<-o||t<-o)&&(l.wrap.off("touchstart.fb touchmove.fb touchend.fb mouseup.fb mousedown.fb mousemove.fb mousewheel.fb"),l.prev(t<-o?"down":"right"))},next:function(e){var t=l.current;t&&(h(e)||(e=t.direction.next),l.jumpto(t.index+1,e,"next"))},prev:function(e){var t=l.current;t&&(h(e)||(e=t.direction.prev),l.jumpto(t.index-1,e,"prev"))},jumpto:function(e,t,o){var i=l.current;i&&(e=u(e),l.direction=t||i.direction[e>=i.index?"next":"prev"],l.router=o||"jumpto",i.loop&&(e<0&&(e=i.group.length+e%i.group.length),e%=i.group.length),i.group[e]!==n&&(l.cancel(),l.isJumping=!0,l._start(e)))},canScroll:function(e){let t=!1,n=o(e);for(;n.length&&!(t||n.is(".fancybox-skin")||n.is(".fancybox-wrap"));)t=(i=n[0])&&!(i.style.overflow&&"hidden"===i.style.overflow)&&(i.clientWidth&&i.scrollWidth>i.clientWidth||i.clientHeight&&i.scrollHeight>i.clientHeight),n=o(n).parent();var i;return t},reposition:function(e,t){var n,i=l.current,a=i?i.wrap:null;a&&(n=l._getPosition(t),e&&"scroll"===e.type?(delete n.position,a.stop(!0,!0).animate(n,200)):(a.css(n),i.pos=o.extend({},i.dim,n)))},update:function(e){var t=e&&e.originalEvent&&e.originalEvent.type,o=!t||"orientationchange"===t;o&&(clearTimeout(c),c=null),l.isOpen&&!c&&(c=setTimeout((function(){var n=l.current;n&&!l.isClosing&&(l.wrap.removeClass("fancybox-tmp"),(o||"load"===t||"resize"===t&&n.autoResize)&&l._setDimension(),"scroll"===t&&n.canShrink||l.reposition(e),n.zoomClick&&l.inner.css("cursor",n.canExpand?"zoom-in":"zoom-out"),l.trigger("onUpdate"),c=null)}),o&&!p?0:300))},toggle:function(e){l.isOpen&&(l.current.fitToView="boolean"===o.type(e)?e:!l.current.fitToView,p&&(l.wrap.removeAttr("style").addClass("fancybox-tmp"),l.trigger("onUpdate")),l.update())},hideLoading:function(){r.off(".loading"),o("#fancybox-loading").remove()},showLoading:function(){var e,t;l.hideLoading(),e=o(l.opts.tpl.loading).click(l.cancel).appendTo("body"),r.on("keydown.loading",(function(e){if(27===(e.which||e.keyCode))return l.cancel(),e.preventDefault(),!1})),l.defaults.fixed||(t=l.getViewport(),e.css({position:"absolute",top:.5*t.h+t.y,left:.5*t.w+t.x})),l.trigger("onLoading")},getViewport:function(){var t=l.current&&l.current.locked||!1,o={x:a.scrollLeft(),y:a.scrollTop()};return t&&t.length?(o.w=t[0].clientWidth,o.h=t[0].clientHeight):(o.w=p&&e.innerWidth?e.innerWidth:a.width(),o.h=p&&e.innerHeight?e.innerHeight:a.height()),o},unbindEvents:function(){l.wrap&&d(l.wrap)&&l.wrap.off(".fb"),r.off(".fb"),a.off(".fb")},bindEvents:function(){var e,t=l.current;t&&(a.on("orientationchange.fb"+(p?"":" resize.fb")+(t.autoCenter&&!t.locked?" scroll.fb":""),l.update),(e=t.keys)&&r.on("keydown.fb",(function(i){var a=i.which||i.keyCode,r=i.target||i.srcElement;if(27===a&&l.coming)return!1;i.ctrlKey||i.altKey||i.shiftKey||i.metaKey||r&&(r.type||o(r).is("[contenteditable]"))||o.each(e,(function(e,r){return t.group.length>1&&r[a]!==n?(l[e](r[a]),i.preventDefault(),!1):o.inArray(a,r)>-1?(l[e](),i.preventDefault(),!1):void 0}))})),t.group.length>1&&(l.wrap.css("cursor","move"),l.wrap.on("mousedown.fb",(function(e){let t={};e.preventDefault(),t.startX=void 0!==e.clientX?e.clientX:e.originalEvent.clientX,t.startY=void 0!==e.clientY?e.clientY:e.originalEvent.clientY,l.wrap.on("mousemove.fb",(function(e){e.preventDefault(),t.endX=void 0!==e.clientX?e.clientX:e.originalEvent.clientX,t.endY=void 0!==e.clientY?e.clientY:e.originalEvent.clientY})),l.wrap.on("mouseup.fb",(function(){l.wrap.off("mousemove.fb"),l.swipe(t.startX-t.endX,t.startY-t.endY,100)}))})),t.swipe&&(l.wrap.on("touchstart.fb",(function(e){let o=e.target||null,n={},i=void 0!==e.touches?e.touches.length:e.originalEvent.touches.length;t.canShrink||i>1||l.canScroll(o)||(e.preventDefault(),n.startX=void 0!==e.touches?e.touches[0].clientX:e.originalEvent.touches[0].clientX,n.startY=void 0!==e.touches?e.touches[0].clientY:e.originalEvent.touches[0].clientY,l.wrap.on("touchmove.fb",(function(e){if(i=void 0!==e.touches?e.touches.length:e.originalEvent.touches.length,i>1)return;e.preventDefault();let t=void 0!==e.touches?e.touches[0].clientX:e.originalEvent.touches[0].clientX,o=void 0!==e.touches?e.touches[0].clientY:e.originalEvent.touches[0].clientY;l.swipe(n.startX-t,n.startY-o,100)})))})),l.wrap.on("touchend.fb",(function(){l.wrap.off("touchmove.fb")}))),o.fn.mousewheel&&t.mouseWheel&&l.wrap.on("mousewheel.fb",(function(e,o,n,i){let a=e.target||null;t.canShrink||0===o||l.canScroll(a)||(e.preventDefault(),l.swipe(-n,-i,0))}))))},trigger:function(e,t){var n,i=t||l.coming||l.current;if(i){if(o.isFunction(i[e])&&(n=i[e].apply(i,Array.prototype.slice.call(arguments,1))),!1===n)return!1;i.helpers&&o.each(i.helpers,(function(t,n){n&&l.helpers[t]&&o.isFunction(l.helpers[t][e])&&l.helpers[t][e](o.extend(!0,{},l.helpers[t].defaults,n),i)}))}r.trigger(e)},isImage:function(e){return h(e)&&e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSVG:function(e){return h(e)&&e.match(/\.(svg)((\?|#).*)?$/i)},_start:function(e){var t,n,i,a,r,s={};if(e=u(e),!(t=l.group[e]||null))return!1;if(a=(s=o.extend(!0,{},l.opts,t)).margin,r=s.padding,"number"===o.type(a)&&(s.margin=[a,a,a,a]),"number"===o.type(r)&&(s.padding=[r,r,r,r]),s.modal&&o.extend(!0,s,{closeBtn:!1,closeClick:!1,nextClick:!1,zoomClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),s.autoSize&&(s.autoWidth=s.autoHeight=!0),"auto"===s.width&&(s.autoWidth=!0),"auto"===s.height&&(s.autoHeight=!0),s.group=l.group,s.index=e,l.coming=s,!1!==l.trigger("beforeLoad")){if(i=s.type,n=s.href,!i)return l.coming=null,!(!l.current||!l.router||"jumpto"===l.router)&&(l.current.index=e,l[l.router](l.direction));if(l.isActive=!0,"image"!==i&&"svg"!==i||(s.autoHeight=s.autoWidth=!1,s.scrolling="visible",s.aspectRatio=!0),"iframe"===i&&p&&(s.scrolling="scroll"),s.wrap=o(s.tpl.wrap).addClass("fancybox-"+(p?"mobile":"desktop")+" fancybox-type-"+i+" fancybox-tmp "+s.wrapCSS).appendTo(s.parent||"body"),o.extend(s,{skin:o(".fancybox-skin",s.wrap),outer:o(".fancybox-outer",s.wrap),inner:o(".fancybox-inner",s.wrap)}),o.each(["Top","Right","Bottom","Left"],(function(e,t){s.skin.css("padding"+t,g(s.padding[e]))})),l.trigger("onReady"),"inline"===i||"html"===i){if(!s.content||!s.content.length)return l._error("content")}else if(!n)return l._error("href");"image"===i?l._loadImage():"ajax"===i?l._loadAjax():"iframe"===i?l._loadIframe():l._afterLoad()}else l.coming=null},_error:function(e){let t=l.coming.txt.error[e]||l.coming.txt.error.content;arguments.length>1&&(t=t+"<br/><br/>"+arguments[1]),o.extend(l.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",content:l.coming.tpl.error.replace(/\{error\}/g,t)}),l._afterLoad()},_loadImage:function(){var e=l.imgPreload=new Image;e.onload=function(){this.onload=this.onerror=null,l.coming.width=this.width/l.opts.pixelRatio,l.coming.height=this.height/l.opts.pixelRatio,l._afterLoad()},e.onerror=function(){this.onload=this.onerror=null,l._error("image")},e.src=l.coming.href,!0!==e.complete&&l.showLoading()},_loadAjax:function(){var e=l.coming;l.showLoading(),l.ajaxLoad=o.ajax(o.extend({},e.ajax,{url:e.href,error:function(e,t){l.coming&&"abort"!==t?l._error("ajax",e):l.hideLoading()},success:function(t,o){"success"===o&&(e.content=t,l._afterLoad())}}))},_loadIframe:function(){var e=l.coming,t=o(e.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr({scrolling:p?"auto":e.iframe.scrolling,src:e.href,webkitallowfullscreen:e.iframe.allowfullscreen,mozallowfullscreen:e.iframe.allowfullscreen,allowfullscreen:e.iframe.allowfullscreen});o(e.wrap).on("onReset",(function(){try{o(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(e){}})),e.iframe.preload&&(l.showLoading(),t.one("load",(function(){o(this).data("ready",1),p||o(this).on("load.fb",l.update),o(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),l._afterLoad()}))),e.content=t.appendTo(e.inner),e.iframe.preload||l._afterLoad()},_preloadImages:function(){var e,t,o=l.group,n=l.current,i=o.length,a=n.preload?Math.min(n.preload,i-1):0;for(t=1;t<=a;t+=1)"image"===(e=o[(n.index+t)%i]).type&&e.href&&((new Image).src=e.href)},_afterLoad:function(){var e,t,n,i,a,r=l.coming,s=l.current,c="fancybox-placeholder";if(l.hideLoading(),r&&!1!==l.isActive){if(!1===l.trigger("afterLoad",r,s))return r.wrap.stop(!0).trigger("onReset").remove(),void(l.coming=null);switch(s&&(l.trigger("beforeChange",s),s.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),l.unbindEvents(),e=r,t=r.content,n=r.type,i=r.scrolling,o.extend(l,{wrap:e.wrap,skin:e.skin,outer:e.outer,inner:e.inner,current:e,previous:s}),a=e.href,n){case"image":t=e.tpl.image.replace(/\{href\}/g,a);break;case"svg":t='<object type="image/svg+xml" width="100%" height="100%" data="'+a+'"></object>';break;case"inline":case"ajax":case"html":e.selector?t=o("<div>").html(t).find(e.selector):d(t)&&(t.data(c)||t.data(c,t.clone().removeAttr("id").addClass(c).insertAfter(t)),t=t.detach(),e.wrap.on("onReset",(function(){o(this).find(t).length&&t.replaceAll(t.data(c)).data(c,!1)})));break}d(t)&&t.parent().is(e.inner)||e.inner.append(t),l.trigger("beforeShow"),e.inner.css("overflow","yes"===i?"scroll":"no"===i?"hidden":i),l._setDimension(),l.reposition(),l.isOpen=!1,l.coming=null,l.bindEvents(),l.isOpened?s.prevMethod&&l.transitions[s.prevMethod]():o(".fancybox-wrap").not(e.wrap).stop(!0).trigger("onReset").remove(),l.transitions[l.isOpened?e.nextMethod:e.openMethod](),l._preloadImages()}},_setDimension:function(){var e,t,n,i,a,r,s,c,p,d,h,m,v,y,x,w,b,k=l.getViewport(),C=0,E=l.wrap,S=l.skin,T=l.inner,W=l.current,O=W.width,_=W.height,P=W.minWidth,H=W.minHeight,L=W.maxWidth,R=W.maxHeight,j=W.scrolling,M=W.scrollOutside?W.scrollbarWidth:0,A=W.margin,z=u(A[1]+A[3]),V=u(A[0]+A[2]);if(E.add(S).add(T).width("auto").height("auto").removeClass("fancybox-tmp"),a=z+(n=u(S.outerWidth(!0)-S.width())),r=V+(i=u(S.outerHeight(!0)-S.height())),s=f(O)?(k.w-a)*u(O)/100:O,c=f(_)?(k.h-r)*u(_)/100:_,"iframe"===W.type){if(w=W.content,W.autoHeight&&w&&1===w.data("ready"))try{w[0].contentWindow.document.location&&(T.width(s).height(9999),b=w.contents().find("body"),M&&b.css("overflow-x","hidden"),c=b.outerHeight(!0))}catch(e){}}else(W.autoWidth||W.autoHeight)&&(T.addClass("fancybox-tmp"),W.autoWidth||T.width(s),W.autoHeight||T.height(c),W.autoWidth&&(s=T.width()),W.autoHeight&&(c=T.height()),T.removeClass("fancybox-tmp"));if(O=u(s),_=u(c),h=s/c,P=u(f(P)?u(P,"w")-a:P),L=u(f(L)?u(L,"w")-a:L),H=u(f(H)?u(H,"h")-r:H),p=L,d=R=u(f(R)?u(R,"h")-r:R),W.fitToView&&(L=Math.min(k.w-a,L),R=Math.min(k.h-r,R)),y=k.w-z,x=k.h-V,W.aspectRatio?(O>L&&(_=u((O=L)/h)),_>R&&(O=u((_=R)*h)),O<P&&(_=u((O=P)/h)),_<H&&(O=u((_=H)*h))):(O=Math.max(P,Math.min(O,L)),W.autoHeight&&"iframe"!==W.type&&(T.width(O),_=T.height()),_=Math.max(H,Math.min(_,R))),W.fitToView)if(T.width(O).height(_),E.width(O+n),m=E.width(),v=E.height(),W.aspectRatio)for(;(m>y||v>x)&&O>P&&_>H&&!(C++>19);)_=Math.max(H,Math.min(R,_-10)),(O=u(_*h))<P&&(_=u((O=P)/h)),O>L&&(_=u((O=L)/h)),T.width(O).height(_),E.width(O+n),m=E.width(),v=E.height();else O=Math.max(P,Math.min(O,O-(m-y))),_=Math.max(H,Math.min(_,_-(v-x)));M&&"auto"===j&&_<c&&O+n+M<y&&(O+=M),T.width(O).height(_),E.width(O+n),m=E.width(),v=E.height(),e=(m>y||v>x)&&O>P&&_>H,t=W.aspectRatio?O<p&&_<d&&O<s&&_<c:(O<p||_<d)&&(O<s||_<c),o.extend(W,{dim:{width:g(m),height:g(v)},origWidth:s,origHeight:c,canShrink:e,canExpand:t,wPadding:n,hPadding:i,wrapSpace:v-S.outerHeight(!0),skinSpace:S.height()-_}),!w&&W.autoHeight&&_>H&&_<R&&!t&&T.height("auto")},_getPosition:function(e){var t=l.current,o=l.getViewport(),n=t.margin,i=l.wrap.width()+n[1]+n[3],a=l.wrap.height()+n[0]+n[2],r={position:"absolute",top:n[0],left:n[3]};return t.autoCenter&&t.fixed&&!e&&a<=o.h&&i<=o.w?r.position="fixed":t.locked||(r.top+=o.y,r.left+=o.x),r.top=g(Math.max(r.top,r.top+(o.h-a)*t.topRatio)),r.left=g(Math.max(r.left,r.left+(o.w-i)*t.leftRatio)),r},_afterZoomIn:function(){var e=l.current;e&&(l.isOpen=l.isOpened=!0,l.wrap.css("overflow","visible").addClass("fancybox-opened").hide().show(0),l.update(),(e.zoomClick||e.closeClick||e.nextClick&&l.group.length>1)&&l.inner.css("cursor",e.zoomClick?e.canExpand?"zoom-in":"zoom-out":"pointer").on("click.fb",(function(t){o(t.target).is("a")||o(t.target).parent().is("a")||(t.preventDefault(),l[e.zoomClick&&(e.canExpand||e.canShrink)?"toggle":e.closeClick?"close":"next"]())})),e.closeBtn&&o(e.tpl.close.replace(/\{close\}/g,e.txt.close)).appendTo(l.skin).on("click.fb",(function(e){e.preventDefault(),l.close()})),e.arrows&&l.group.length>1&&((e.loop||e.index>0)&&o(e.tpl.prev.replace(/\{prev\}/g,e.txt.prev)).appendTo(l.outer).on("click.fb",l.prev),(e.loop||e.index<l.group.length-1)&&o(e.tpl.next.replace(/\{next\}/g,e.txt.next)).appendTo(l.outer).on("click.fb",l.next)),l.trigger("afterShow"),e.loop||e.index!==e.group.length-1?l.opts.autoPlay&&!l.player.isActive&&(l.opts.autoPlay=!1,l.play(!0)):l.play(!1))},_afterZoomOut:function(e){e=e||l.current,o(".fancybox-wrap").trigger("onReset").remove(),o.extend(l,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),l.trigger("afterClose",e)}}),l.transitions={getOrigPosition:function(){var e=l.current,t=e.element,o=e.orig,n={},i=50,a=50,r=e.hPadding,s=e.wPadding,c=l.getViewport();return!o&&e.isDom&&t.is(":visible")&&((o=t.find("img:first")).length||(o=t)),d(o)?(n=o.offset(),o.is("img")&&(i=o.outerWidth(),a=o.outerHeight())):(n.top=c.y+(c.h-a)*e.topRatio,n.left=c.x+(c.w-i)*e.leftRatio),("fixed"===l.wrap.css("position")||e.locked)&&(n.top-=c.y,n.left-=c.x),n={top:g(n.top-r*e.topRatio),left:g(n.left-s*e.leftRatio),width:g(i+s),height:g(a+r)}},step:function(e,t){var o,n,i=t.prop,a=l.current,r=a.wrapSpace,s=a.skinSpace;"width"!==i&&"height"!==i||(o=t.end===t.start?1:(e-t.start)/(t.end-t.start),l.isClosing&&(o=1-o),n=e-("width"===i?a.wPadding:a.hPadding),l.skin[i](u("width"===i?n:n-r*o)),l.inner[i](u("width"===i?n:n-r*o-s*o)))},zoomIn:function(){var e=l.current,t=e.pos,n=e.openEffect,i="elastic"===n,a=o.extend({opacity:1},t);delete a.position,i?(t=this.getOrigPosition(),e.openOpacity&&(t.opacity=.1)):"fade"===n&&(t.opacity=.1),l.wrap.css(t).animate(a,{duration:"none"===n?0:e.openSpeed,easing:e.openEasing,step:i?this.step:null,complete:l._afterZoomIn})},zoomOut:function(){var e=l.current,t=e.closeEffect,o="elastic"===t,n={opacity:.1};o&&(n=this.getOrigPosition(),e.closeOpacity&&(n.opacity=.1)),l.wrap.animate(n,{duration:"none"===t?0:e.closeSpeed,easing:e.closeEasing,step:o?this.step:null,complete:l._afterZoomOut})},changeIn:function(){var e,t=l.current,o=t.nextEffect,n=t.pos,i={opacity:1},a=l.direction,r=200;n.opacity=.1,"elastic"===o&&(e="down"===a||"up"===a?"top":"left","down"===a||"right"===a?(n[e]=g(u(n[e])-r),i[e]="+=200px"):(n[e]=g(u(n[e])+r),i[e]="-=200px")),"none"===o?l._afterZoomIn():l.wrap.css(n).animate(i,{duration:t.nextSpeed,easing:t.nextEasing,complete:l._afterZoomIn})},changeOut:function(){var e=l.previous,t=e.prevEffect,n={opacity:.1},i=l.direction;"elastic"===t&&(n["down"===i||"up"===i?"top":"left"]=("up"===i||"left"===i?"-":"+")+"=200px"),e.wrap.animate(n,{duration:"none"===t?0:e.prevSpeed,easing:e.prevEasing,complete:function(){o(this).trigger("onReset").remove()}})}},l.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!p,fixed:!0},overlay:null,fixed:!1,el:o("html"),create:function(e){var t;e=o.extend({},this.defaults,e),this.overlay&&this.close(),t=l.coming?l.coming.parent:e.parent,this.overlay=o('<div class="fancybox-overlay"></div>').appendTo(t&&t.length?t:"body"),this.fixed=!1,e.fixed&&l.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(e){var t=this;e=o.extend({},this.defaults,e),this.overlay?this.overlay.off(".overlay").width("auto").height("auto"):this.create(e),this.fixed||(a.on("resize.overlay",o.proxy(this.update,this)),this.update()),e.closeClick&&this.overlay.on("click.overlay",(function(e){if(o(e.target).hasClass("fancybox-overlay"))return l.isActive?l.close():t.close(),!1})),this.overlay.css(e.css).show()},close:function(){a.off("resize.overlay"),this.el.hasClass("fancybox-lock")&&(o(".fancybox-margin").removeClass("fancybox-margin"),this.el.removeClass("fancybox-lock"),a.scrollTop(this.scrollV).scrollLeft(this.scrollH)),o(".fancybox-overlay").remove().hide(),o.extend(this,{overlay:null,fixed:!1})},update:function(){var e,o="100%";this.overlay.width(o).height("100%"),s?(e=Math.max(t.documentElement.offsetWidth,t.body.offsetWidth),r.width()>e&&(o=r.width())):r.width()>a.width()&&(o=r.width()),this.overlay.width(o).height(r.height())},onReady:function(e,t){var n=this.overlay;o(".fancybox-overlay").stop(!0,!0),n||this.create(e),e.locked&&this.fixed&&t.fixed&&(t.locked=this.overlay.append(t.wrap),t.fixed=!1),!0===e.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(e,t){t.locked&&!this.el.hasClass("fancybox-lock")&&(!1!==this.fixPosition&&o("*:not(object)").filter((function(){return"fixed"===o(this).css("position")&&!o(this).hasClass("fancybox-overlay")&&!o(this).hasClass("fancybox-wrap")})).addClass("fancybox-margin"),this.el.addClass("fancybox-margin"),this.scrollV=a.scrollTop(),this.scrollH=a.scrollLeft(),this.el.addClass("fancybox-lock"),a.scrollTop(this.scrollV).scrollLeft(this.scrollH)),this.open(e)},onUpdate:function(){this.fixed||this.update()},afterClose:function(e){this.overlay&&!l.coming&&this.overlay.fadeOut(e.speedOut,o.proxy(this.close,this))}},l.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(e){var t,n,i=l.current,a=i.title,r=e.type;if(o.isFunction(a)&&(a=a.call(i.element,i)),h(a)&&""!==o.trim(a)){switch(t=o('<div class="fancybox-title fancybox-title-'+r+'-wrap">'+a+"</div>"),r){case"inside":n=l.skin;break;case"outside":n=l.wrap;break;case"over":n=l.inner;break;default:n=l.skin,t.appendTo("body"),s&&t.width(t.width()),t.wrapInner('<span class="child"></span>'),l.current.margin[2]+=Math.abs(u(t.css("margin-bottom")));break}t["top"===e.position?"prependTo":"appendTo"](n)}}},o.fn.fancybox=function(e){var t,n=o(this),i=this.selector||"",a=function(a){var r,s,c=o(this).blur(),p=t;if(!(a.ctrlKey||a.altKey||a.shiftKey||a.metaKey||c.is(".fancybox-wrap"))){r=e.groupAttr||"data-fancybox-group",(s=c.attr(r))||(r="rel",s=c.get(0)[r]),s&&""!==s&&"nofollow"!==s&&(p=(c=(c=i.length?o(i):n).filter("["+r+'="'+s+'"]')).index(this)),e.index=p;var d=l.getViewport();if(e.minVpWidth&&d.w<e.minVpWidth||e.minVpHeight&&d.h<e.minVpHeight)return;if(!1!==l.open(c,e))return a.preventDefault(),!1}};return t=(e=e||{}).index||0,i&&!1!==e.live?r.undelegate(i,"click.fb-start").delegate(i+":not('.fancybox-item, .fancybox-nav')","click.fb-start",a):n.off("click.fb-start").on("click.fb-start",a),this.filter("[data-fancybox-start=1]").trigger("click"),this},r.ready((function(){var t,a,r,s;o.scrollbarWidth===n&&(o.scrollbarWidth=function(){var e=o('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),t=e.children(),n=t.innerWidth()-t.height(99).innerWidth();return e.remove(),n}),o.support.fixedPosition===n&&(o.support.fixedPosition=(r=o('<div style="position:fixed;top:20px;"></div>').appendTo("body"),s=20===r[0].offsetTop||15===r[0].offsetTop,r.remove(),s)),o.extend(l.defaults,{scrollbarWidth:o.scrollbarWidth(),fixed:o.support.fixedPosition,parent:o("body")}),t=o(e).width(),i.addClass("fancybox-lock-test"),a=o(e).width(),i.removeClass("fancybox-lock-test"),o("<style type='text/css'>.fancybox-margin{margin-right:"+(a-t)+"px;}</style>").appendTo("head")}))}(window,document,jQuery);
inc/class-easyfancybox-admin.php CHANGED
@@ -67,7 +67,7 @@ class easyFancyBox_Admin {
67
  /*'video' => get_option( 'fancybox_enableVideoPress' ) ||
68
  get_option( 'fancybox_enableYoutube' ) || get_option( 'fancybox_enableVimeo' ) ||
69
  get_option( 'fancybox_enableDailymotion' ) ? esc_html__( 'Video', 'easy-fancybox' ) : false,*/
70
- 'videopress' => get_option( 'fancybox_enableVideoPress' ) ? esc_html__( 'VideoPress', 'easy-fancybox' ) : false,
71
  'youtube' => get_option( 'fancybox_enableYoutube' ) ? esc_html__( 'YouTube', 'easy-fancybox' ) : false,
72
  'vimeo' => get_option( 'fancybox_enableVimeo' ) ? esc_html__( 'Vimeo', 'easy-fancybox' ) : false,
73
  'dailymotion' => get_option( 'fancybox_enableDailymotion' ) ? esc_html__( 'Dailymotion', 'easy-fancybox' ) : false,
@@ -122,7 +122,7 @@ class easyFancyBox_Admin {
122
  register_setting( 'easy_fancybox_general', 'fancybox_enableInline', array( 'default' => '', 'sanitize_callback' => 'boolval' ) );
123
  register_setting( 'easy_fancybox_general', 'fancybox_enablePDF', array( 'default' => '', 'sanitize_callback' => 'boolval' ) );
124
  register_setting( 'easy_fancybox_general', 'fancybox_enableSWF', array( 'default' => '', 'sanitize_callback' => 'boolval' ) );
125
- register_setting( 'easy_fancybox_general', 'fancybox_enableVideoPress', array( 'default' => '', 'sanitize_callback' => 'boolval' ) );
126
  register_setting( 'easy_fancybox_general', 'fancybox_enableYoutube', array( 'default' => '', 'sanitize_callback' => 'boolval' ) );
127
  register_setting( 'easy_fancybox_general', 'fancybox_enableVimeo', array( 'default' => '', 'sanitize_callback' => 'boolval' ) );
128
  register_setting( 'easy_fancybox_general', 'fancybox_enableDailymotion', array( 'default' => '', 'sanitize_callback' => 'boolval' ) );
67
  /*'video' => get_option( 'fancybox_enableVideoPress' ) ||
68
  get_option( 'fancybox_enableYoutube' ) || get_option( 'fancybox_enableVimeo' ) ||
69
  get_option( 'fancybox_enableDailymotion' ) ? esc_html__( 'Video', 'easy-fancybox' ) : false,*/
70
+ //'videopress' => get_option( 'fancybox_enableVideoPress' ) ? esc_html__( 'VideoPress', 'easy-fancybox' ) : false,
71
  'youtube' => get_option( 'fancybox_enableYoutube' ) ? esc_html__( 'YouTube', 'easy-fancybox' ) : false,
72
  'vimeo' => get_option( 'fancybox_enableVimeo' ) ? esc_html__( 'Vimeo', 'easy-fancybox' ) : false,
73
  'dailymotion' => get_option( 'fancybox_enableDailymotion' ) ? esc_html__( 'Dailymotion', 'easy-fancybox' ) : false,
122
  register_setting( 'easy_fancybox_general', 'fancybox_enableInline', array( 'default' => '', 'sanitize_callback' => 'boolval' ) );
123
  register_setting( 'easy_fancybox_general', 'fancybox_enablePDF', array( 'default' => '', 'sanitize_callback' => 'boolval' ) );
124
  register_setting( 'easy_fancybox_general', 'fancybox_enableSWF', array( 'default' => '', 'sanitize_callback' => 'boolval' ) );
125
+ //register_setting( 'easy_fancybox_general', 'fancybox_enableVideoPress', array( 'default' => '', 'sanitize_callback' => 'boolval' ) );
126
  register_setting( 'easy_fancybox_general', 'fancybox_enableYoutube', array( 'default' => '', 'sanitize_callback' => 'boolval' ) );
127
  register_setting( 'easy_fancybox_general', 'fancybox_enableVimeo', array( 'default' => '', 'sanitize_callback' => 'boolval' ) );
128
  register_setting( 'easy_fancybox_general', 'fancybox_enableDailymotion', array( 'default' => '', 'sanitize_callback' => 'boolval' ) );
inc/class-easyfancybox.php CHANGED
@@ -198,7 +198,7 @@ class easyFancyBox {
198
  }
199
 
200
  // Upgrade from before 1.9.
201
- if ( version_compare( $old_version, '0', '>' ) && version_compare( $old_version, '1.9', '<' ) ) {
202
  // Introducing script version.
203
  add_option( 'fancybox_scriptVersion', 'classic' );
204
 
198
  }
199
 
200
  // Upgrade from before 1.9.
201
+ if ( version_compare( $old_version, '0', '>' ) && version_compare( $old_version, '1.9.1', '<' ) ) {
202
  // Introducing script version.
203
  add_option( 'fancybox_scriptVersion', 'classic' );
204
 
inc/fancybox-2-options.php CHANGED
@@ -675,17 +675,12 @@ Default value:
675
  'default' => '1',
676
  'description' => esc_html__('Allow title from thumbnail alt attribute.','easy-fancybox')
677
  ),
678
- 'beforeLoad' => array (
679
  'id' => '',
680
- 'title' => esc_html__('Advanced','easy-fancybox'),
681
- 'hide' => true,
682
- 'input' => 'select',
683
  'status' => 'disabled',
684
- 'options' => array(
685
- '' => esc_html__('Hide/show title on mouse hover action','easy-fancybox')
686
- ),
687
  'default' => '',
688
- 'description' => '<em><a href="'.easyFancyBox::$pro_plugin_url.'">' . esc_html__('Make available &raquo;','easy-fancybox') . '</a></em><br />'
689
  ),
690
  'p3' => array (
691
  'hide' => true,
@@ -737,7 +732,7 @@ Default value:
737
  'title' => esc_html__( 'Change speed', 'easy-fancybox' ),
738
  'label_for' => 'fancybox_changeSpeed',
739
  'input' => 'number',
740
- 'step' => '1',
741
  'min' => '0',
742
  'max' => '6000',
743
  'sanitize_callback' => 'intval',
@@ -756,6 +751,19 @@ Default value:
756
  'input' => 'checkbox',
757
  'default' => '',
758
  'description' => esc_html__( 'Slideshow', 'easy-fancybox' )
 
 
 
 
 
 
 
 
 
 
 
 
 
759
  )
760
  )
761
  ),
@@ -875,7 +883,7 @@ Default value:
875
  'input' => 'checkbox',
876
  'hide' => true,
877
  'default' => '1',
878
- 'selector' => '\'a[href*=".pdf"],area[href*=".pdf"],a[href*=".PDF"],area[href*=".PDF"]\'',
879
  'description' => esc_html__('Autodetect','easy-fancybox')
880
  ),
881
  'tag' => array (
@@ -988,7 +996,7 @@ Default value:
988
  'input' => 'checkbox',
989
  'hide' => true,
990
  'default' => '1',
991
- 'selector' => '\'a[href*=".svg"],area[href*=".svg"],a[href*=".SVG"],area[href*=".SVG"]\'',
992
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
993
  ),
994
  'class' => array (
@@ -1084,7 +1092,7 @@ Default value:
1084
  'input' => 'checkbox',
1085
  'hide' => true,
1086
  'default' => '1',
1087
- 'selector' => '\'a[href*="youtu.be/"],area[href*="youtu.be/"],a[href*="youtube.com/"],area[href*="youtube.com/"]\').filter(function(){return this.href.match(/\/(?:youtu\.be|watch\?|embed\/)/);}',
1088
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1089
  ),
1090
  'tag' => array (
@@ -1182,7 +1190,7 @@ Default value:
1182
  'input' => 'checkbox',
1183
  'hide' => true,
1184
  'default' => '1',
1185
- 'selector' => '\'a[href*="vimeo.com/"],area[href*="vimeo.com/"]\').filter(function(){return this.href.match(/\/(?:[0-9]+|video\/)/);}',
1186
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1187
  ),
1188
  'tag' => array (
@@ -1280,7 +1288,7 @@ Default value:
1280
  'input' => 'checkbox',
1281
  'hide' => true,
1282
  'default' => '1',
1283
- 'selector' => '\'a[href*="dailymotion.com/"],area[href*="dailymotion.com/"]\').filter(function(){return this.href.match(/\/video\//);}',
1284
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1285
  ),
1286
  'tag' => array (
675
  'default' => '1',
676
  'description' => esc_html__('Allow title from thumbnail alt attribute.','easy-fancybox')
677
  ),
678
+ 'onStart' => array (
679
  'id' => '',
680
+ 'input' => 'checkbox',
 
 
681
  'status' => 'disabled',
 
 
 
682
  'default' => '',
683
+ 'description' => esc_html__( 'Hide/show title on mouse hover action', 'easy-fancybox' ) . ' <em><a href="'.easyFancyBox::$pro_plugin_url.'">' . esc_html__('Make available &raquo;','easy-fancybox') . '</a></em><br />'
684
  ),
685
  'p3' => array (
686
  'hide' => true,
732
  'title' => esc_html__( 'Change speed', 'easy-fancybox' ),
733
  'label_for' => 'fancybox_changeSpeed',
734
  'input' => 'number',
735
+ 'step' => '50',
736
  'min' => '0',
737
  'max' => '6000',
738
  'sanitize_callback' => 'intval',
751
  'input' => 'checkbox',
752
  'default' => '',
753
  'description' => esc_html__( 'Slideshow', 'easy-fancybox' )
754
+ ),
755
+ 'playSpeed' => array(
756
+ 'id' => 'fancybox_playSpeed',
757
+ 'title' => esc_html__( 'Play speed', 'easy-fancybox' ),
758
+ 'label_for' => 'fancybox_changeSpeed',
759
+ 'input' => 'number',
760
+ 'step' => '500',
761
+ 'min' => '3000',
762
+ 'max' => '12000',
763
+ 'sanitize_callback' => 'intval',
764
+ 'class' => 'small-text',
765
+ 'default' => '',
766
+ 'description' => '<br />' . esc_html__('Duration in milliseconds. Higher is slower.','easy-fancybox') . ' <em>' . esc_html__('Default:','easy-fancybox') . ' 3000</em><br /><br />'
767
  )
768
  )
769
  ),
883
  'input' => 'checkbox',
884
  'hide' => true,
885
  'default' => '1',
886
+ 'selector' => '\'a[href*=".pdf" i],area[href*=".pdf" i]\'',
887
  'description' => esc_html__('Autodetect','easy-fancybox')
888
  ),
889
  'tag' => array (
996
  'input' => 'checkbox',
997
  'hide' => true,
998
  'default' => '1',
999
+ 'selector' => '\'a[href*=".svg" i],area[href*=".svg" i]\'',
1000
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1001
  ),
1002
  'class' => array (
1092
  'input' => 'checkbox',
1093
  'hide' => true,
1094
  'default' => '1',
1095
+ 'selector' => '\'a[href*="youtu.be/" i],area[href*="youtu.be/" i],a[href*="youtube.com/" i],area[href*="youtube.com/" i]\').filter(function(){return this.href.match(/\/(?:youtu\.be|watch\?|embed\/)/);}',
1096
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1097
  ),
1098
  'tag' => array (
1190
  'input' => 'checkbox',
1191
  'hide' => true,
1192
  'default' => '1',
1193
+ 'selector' => '\'a[href*="vimeo.com/" i],area[href*="vimeo.com/" i]\').filter(function(){return this.href.match(/\/(?:[0-9]+|video\/)/);}',
1194
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1195
  ),
1196
  'tag' => array (
1288
  'input' => 'checkbox',
1289
  'hide' => true,
1290
  'default' => '1',
1291
+ 'selector' => '\'a[href*="dailymotion.com/" i],area[href*="dailymotion.com/" i]\').filter(function(){return this.href.match(/\/video\//);}',
1292
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1293
  ),
1294
  'tag' => array (
inc/fancybox-2.php CHANGED
@@ -117,16 +117,16 @@ jQuery('.$value['options']['autoAttribute']['selector'].').not(\'.nofancybox,li.
117
  $file_types = array_filter( explode( ',', str_replace( ' ', ',', $autoAttribute ) ) );
118
  $more = 0;
119
  $fb_handler .= '
120
- var fb_'.$key.'_select=\'';
121
  foreach ( $file_types as $type ) {
122
  if ($type == "jpg" || $type == "jpeg" || $type == "png" || $type == "webp" || $type == "gif")
123
  $type = '.'.$type;
124
  if ($more>0)
125
  $fb_handler .= ',';
126
- $fb_handler .= 'a['.$value['options']['autoAttribute']['selector'].'"'.$type.'"]:not(.nofancybox,li.nofancybox>a),area['.$value['options']['autoAttribute']['selector'].'"'.$type.'"]:not(.nofancybox)';
127
  $more++;
128
  }
129
- $fb_handler .= '\';';
130
 
131
  $autoselector = class_exists('easyFancyBox_Advanced') ? \get_option($value['options']['autoSelector']['id'],$value['options']['autoSelector']['default']) : $value['options']['autoSelector']['default'];
132
 
@@ -154,7 +154,7 @@ fb_'.$key.'_sections.each(function(){jQuery(this).find(fb_'.$key.'_select).addCl
154
  } else {
155
  // Add class.
156
  $fb_handler .= '
157
- jQuery(fb_'.$key.'_select).addClass(\''.$value['options']['class']['default'].'\')';
158
  // Set rel.
159
  switch( \get_option($value['options']['autoGallery']['id'],$value['options']['autoGallery']['default']) ) {
160
  case '':
@@ -187,11 +187,19 @@ fb_'.$key.'_sections.each(function(){jQuery(this).find(fb_'.$key.'_select).attr(
187
  foreach ( $value['options'] as $_key => $_value ) {
188
  // Treat some known keys differently
189
  $convert_to = array(
190
- 'easingIn' => 'openEasing',
191
- 'easingOut' => 'closeEasing',
 
 
 
192
  );
193
  if ( array_key_exists ( $_key, $convert_to ) ) {
194
- $_key = $convert_to[$_key];
 
 
 
 
 
195
  }
196
 
197
  if ( isset($_value['id']) || isset($_value['default']) )
@@ -352,6 +360,8 @@ function add_media() {
352
  \get_option( 'fancybox_enableDailymotion' ) ||
353
  \get_option( 'fancybox_enableInstagram' ) ||
354
  \get_option( 'fancybox_enableGoogleMaps' );
 
 
355
  }
356
 
357
  return $add;
@@ -371,7 +381,7 @@ function add_buttons() {
371
  static $add;
372
 
373
  if ( null === $add ) {
374
- $add = apply_filters( 'easy_fancybox_add_thumbs', false );;
375
  }
376
 
377
  return $add;
117
  $file_types = array_filter( explode( ',', str_replace( ' ', ',', $autoAttribute ) ) );
118
  $more = 0;
119
  $fb_handler .= '
120
+ var fb_'.$key.'_select=jQuery(\'';
121
  foreach ( $file_types as $type ) {
122
  if ($type == "jpg" || $type == "jpeg" || $type == "png" || $type == "webp" || $type == "gif")
123
  $type = '.'.$type;
124
  if ($more>0)
125
  $fb_handler .= ',';
126
+ $fb_handler .= 'a['.$value['options']['autoAttribute']['selector'].'"'.$type.'" i]:not(.nofancybox,li.nofancybox>a),area['.$value['options']['autoAttribute']['selector'].'"'.$type.'" i]:not(.nofancybox)';
127
  $more++;
128
  }
129
+ $fb_handler .= '\');';
130
 
131
  $autoselector = class_exists('easyFancyBox_Advanced') ? \get_option($value['options']['autoSelector']['id'],$value['options']['autoSelector']['default']) : $value['options']['autoSelector']['default'];
132
 
154
  } else {
155
  // Add class.
156
  $fb_handler .= '
157
+ fb_'.$key.'_select.addClass(\''.$value['options']['class']['default'].'\')';
158
  // Set rel.
159
  switch( \get_option($value['options']['autoGallery']['id'],$value['options']['autoGallery']['default']) ) {
160
  case '':
187
  foreach ( $value['options'] as $_key => $_value ) {
188
  // Treat some known keys differently
189
  $convert_to = array(
190
+ 'easingIn' => 'openEasing',
191
+ 'easingOut' => 'closeEasing',
192
+ 'onStart' => false, // Keep for Pro backward compat.
193
+ 'onComplete' => false, // Keep for Pro backward compat.
194
+ 'onCleanup' => false, // Keep for Pro backward compat.
195
  );
196
  if ( array_key_exists ( $_key, $convert_to ) ) {
197
+ if ( $convert_to[$_key] ) {
198
+ $_key = $convert_to[$_key];
199
+ } else {
200
+ // Skip this one.
201
+ continue;
202
+ }
203
  }
204
 
205
  if ( isset($_value['id']) || isset($_value['default']) )
360
  \get_option( 'fancybox_enableDailymotion' ) ||
361
  \get_option( 'fancybox_enableInstagram' ) ||
362
  \get_option( 'fancybox_enableGoogleMaps' );
363
+
364
+ $add = apply_filters( 'easy_fancybox_add_media', $add );
365
  }
366
 
367
  return $add;
381
  static $add;
382
 
383
  if ( null === $add ) {
384
+ $add = apply_filters( 'easy_fancybox_add_buttons', false );;
385
  }
386
 
387
  return $add;
inc/fancybox-classic-options.php CHANGED
@@ -631,14 +631,11 @@ $efb_options = array (
631
  ),
632
  'onStart' => array (
633
  'id' => '',
634
- 'title' => esc_html__('Advanced','easy-fancybox'),
635
- 'input' => 'select',
636
  'status' => 'disabled',
637
- 'options' => array(
638
- '' => esc_html__('Hide/show title on mouse hover action','easy-fancybox')
639
- ),
640
  'default' => '',
641
- 'description' => '<em><a href="'.easyFancyBox::$pro_plugin_url.'">' . esc_html__('Make available &raquo;','easy-fancybox') . '</a></em><br />'
642
  ),
643
  'p3' => array (
644
  'hide' => true,
@@ -710,16 +707,23 @@ $efb_options = array (
710
  'input' => 'hidden',
711
  'default' => '.gallery,.wp-block-gallery,.tiled-gallery,.wp-block-jetpack-tiled-gallery'
712
  ),
713
- 'onComplete' => array (
714
  'id' => '',
715
- 'title' => esc_html__('Advanced','easy-fancybox'),
716
- 'input' => 'select',
717
  'status' => 'disabled',
718
- 'options' => array(
719
- '' => esc_html__('Slideshow','easy-fancybox')
720
- ),
721
  'default' => '',
722
- 'description' => '<em><a href="'.easyFancyBox::$pro_plugin_url.'">' . esc_html__('Make available &raquo;','easy-fancybox') . '</a></em>'
 
 
 
 
 
 
 
 
 
 
723
  )
724
  )
725
  ),
@@ -847,7 +851,7 @@ $efb_options = array (
847
  'input' => 'checkbox',
848
  'hide' => true,
849
  'default' => '1',
850
- 'selector' => '\'a[href*=".pdf"],area[href*=".pdf"],a[href*=".PDF"],area[href*=".PDF"]\'',
851
  'description' => esc_html__('Autodetect','easy-fancybox')
852
  ),
853
  'tag' => array (
@@ -958,7 +962,7 @@ $efb_options = array (
958
  'input' => 'checkbox',
959
  'hide' => true,
960
  'default' => '1',
961
- 'selector' => '\'a[href*=".svg"],area[href*=".svg"],a[href*=".SVG"],area[href*=".SVG"]\'',
962
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
963
  ),
964
  'tag' => array (
@@ -1057,7 +1061,7 @@ $efb_options = array (
1057
  'input' => 'checkbox',
1058
  'hide' => true,
1059
  'default' => '1',
1060
- 'selector' => '\'a[href*="youtu.be/"],area[href*="youtu.be/"],a[href*="youtube.com/"],area[href*="youtube.com/"]\').filter(function(){return this.href.match(/\/(?:youtu\.be|watch\?|embed\/)/);}',
1061
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1062
  ),
1063
  'tag' => array (
@@ -1169,7 +1173,7 @@ $efb_options = array (
1169
  'input' => 'checkbox',
1170
  'hide' => true,
1171
  'default' => '1',
1172
- 'selector' => '\'a[href*="vimeo.com/"],area[href*="vimeo.com/"]\').filter(function(){return this.href.match(/\/(?:[0-9]+|video\/)/);}',
1173
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1174
  ),
1175
  'tag' => array (
@@ -1272,7 +1276,7 @@ $efb_options = array (
1272
  'input' => 'checkbox',
1273
  'hide' => true,
1274
  'default' => '1',
1275
- 'selector' => '\'a[href*="dailymotion.com/"],area[href*="dailymotion.com/"]\').filter(function(){return this.href.match(/\/video\//);}',
1276
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1277
  ),
1278
  'tag' => array (
@@ -1357,7 +1361,7 @@ $efb_options = array (
1357
  ),
1358
  'onStart' => array (
1359
  'noquotes' => true,
1360
- 'default' => 'function(a,i,o){var splitOn=a[i].href.indexOf("?");var urlParms=(splitOn>-1)?a[i].href.substring(splitOn):"";o.allowfullscreen=(urlParms.indexOf("fullscreen=0")>-1)?false:true;o.href=a[i].href.replace(/^https?:\/\/(?:www\.)?dailymotion.com\/video\/([^\?]+)(.*)/gi,"https://www.dailymotion.com/embed/video/$1?$2&autoPlay=1");}'
1361
  )
1362
  )
1363
  ),
631
  ),
632
  'onStart' => array (
633
  'id' => '',
634
+ 'hide' => true,
635
+ 'input' => 'checkbox',
636
  'status' => 'disabled',
 
 
 
637
  'default' => '',
638
+ 'description' => esc_html__( 'Hide/show title on mouse hover action', 'easy-fancybox' ) . ' <em><a href="'.easyFancyBox::$pro_plugin_url.'">' . esc_html__('Make available &raquo;','easy-fancybox') . '</a></em><br />'
639
  ),
640
  'p3' => array (
641
  'hide' => true,
707
  'input' => 'hidden',
708
  'default' => '.gallery,.wp-block-gallery,.tiled-gallery,.wp-block-jetpack-tiled-gallery'
709
  ),
710
+ 'autoPlay' => array (
711
  'id' => '',
712
+ 'hide' => true,
713
+ 'input' => 'checkbox',
714
  'status' => 'disabled',
 
 
 
715
  'default' => '',
716
+ 'description' => esc_html__( 'Slideshow', 'easy-fancybox' ) . '<em><a href="'.easyFancyBox::$pro_plugin_url.'">' . esc_html__('Make available &raquo;','easy-fancybox') . '</a></em>'
717
+ ),
718
+ 'playSpeed' => array(
719
+ 'id' => '',
720
+ 'hide' => true,
721
+ 'title' => esc_html__( 'Play speed', 'easy-fancybox' ),
722
+ 'input' => 'number',
723
+ 'status' => 'disabled',
724
+ 'class' => 'small-text',
725
+ 'default' => '',
726
+ 'description' => '<br />' . esc_html__('Duration in milliseconds. Higher is slower.','easy-fancybox') . ' <em>' . esc_html__('Default:','easy-fancybox') . ' 3000</em><br /><br />'
727
  )
728
  )
729
  ),
851
  'input' => 'checkbox',
852
  'hide' => true,
853
  'default' => '1',
854
+ 'selector' => '\'a[href*=".pdf" i],area[href*=".pdf" i]\'',
855
  'description' => esc_html__('Autodetect','easy-fancybox')
856
  ),
857
  'tag' => array (
962
  'input' => 'checkbox',
963
  'hide' => true,
964
  'default' => '1',
965
+ 'selector' => '\'a[href*=".svg" i],area[href*=".svg" i]\'',
966
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
967
  ),
968
  'tag' => array (
1061
  'input' => 'checkbox',
1062
  'hide' => true,
1063
  'default' => '1',
1064
+ 'selector' => '\'a[href*="youtu.be/" i],area[href*="youtu.be/" i],a[href*="youtube.com/" i],area[href*="youtube.com/" i]\').filter(function(){return this.href.match(/\/(?:youtu\.be|watch\?|embed\/)/);}',
1065
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1066
  ),
1067
  'tag' => array (
1173
  'input' => 'checkbox',
1174
  'hide' => true,
1175
  'default' => '1',
1176
+ 'selector' => '\'a[href*="vimeo.com/" i],area[href*="vimeo.com/" i]\').filter(function(){return this.href.match(/\/(?:[0-9]+|video\/)/);}',
1177
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1178
  ),
1179
  'tag' => array (
1276
  'input' => 'checkbox',
1277
  'hide' => true,
1278
  'default' => '1',
1279
+ 'selector' => '\'a[href*="dailymotion.com/" i],area[href*="dailymotion.com/" i]\').filter(function(){return this.href.match(/\/video\//);}',
1280
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1281
  ),
1282
  'tag' => array (
1361
  ),
1362
  'onStart' => array (
1363
  'noquotes' => true,
1364
+ 'default' => 'function(a,i,o){var splitOn=a[i].href.indexOf("?");var urlParms=(splitOn>-1)?a[i].href.substring(splitOn):"";o.allowfullscreen=(urlParms.indexOf("fullscreen=0")>-1)?false:true;o.href=a[i].href.replace(/^https?:\/\/(?:www\.)?dailymotion.com\/video\/([^\?]+)(.*)/gi,"https://www.dailymotion.com/embed/video/$1?$2&autoplay=1");}'
1365
  )
1366
  )
1367
  ),
inc/fancybox-classic.php CHANGED
@@ -82,16 +82,16 @@ jQuery('.$value['options']['autoAttribute']['selector'].').not(\'.nofancybox,li.
82
  $file_types = array_filter( explode( ',', str_replace( ' ', ',', $autoAttribute ) ) );
83
  $more = 0;
84
  $script .= '
85
- var fb_'.$key.'_select=\'';
86
  foreach ( $file_types as $type ) {
87
  if ($type == "jpg" || $type == "jpeg" || $type == "png" || $type == "webp" || $type == "gif")
88
  $type = '.'.$type;
89
  if ($more>0)
90
  $script .= ',';
91
- $script .= 'a['.$value['options']['autoAttribute']['selector'].'"'.$type.'"]:not(.nofancybox,li.nofancybox>a),area['.$value['options']['autoAttribute']['selector'].'"'.$type.'"]:not(.nofancybox)';
92
  $more++;
93
  }
94
- $script .= '\';';
95
 
96
  $autoselector = class_exists('easyFancyBox_Advanced') ? \get_option($value['options']['autoSelector']['id'],$value['options']['autoSelector']['default']) : $value['options']['autoSelector']['default'];
97
 
@@ -119,7 +119,7 @@ fb_'.$key.'_sections.each(function(){jQuery(this).find(fb_'.$key.'_select).addCl
119
  } else {
120
  // Add class.
121
  $script .= '
122
- jQuery(fb_'.$key.'_select).addClass(\''.$value['options']['class']['default'].'\')';
123
  // Set rel.
124
  switch( \get_option($value['options']['autoGallery']['id'],$value['options']['autoGallery']['default']) ) {
125
  case '':
@@ -251,6 +251,8 @@ jQuery(\'' . $value['options']['tag']['default'] . '\')';
251
 
252
  empty( $titleColor ) || $styles .= '#fancybox-title,#fancybox-title-float-main{color:'.$titleColor.'}';
253
 
 
 
254
  empty( $styles ) || \easyFancyBox::$inline_style = \wp_strip_all_tags( $styles );
255
  }
256
 
82
  $file_types = array_filter( explode( ',', str_replace( ' ', ',', $autoAttribute ) ) );
83
  $more = 0;
84
  $script .= '
85
+ var fb_'.$key.'_select=jQuery(\'';
86
  foreach ( $file_types as $type ) {
87
  if ($type == "jpg" || $type == "jpeg" || $type == "png" || $type == "webp" || $type == "gif")
88
  $type = '.'.$type;
89
  if ($more>0)
90
  $script .= ',';
91
+ $script .= 'a['.$value['options']['autoAttribute']['selector'].'"'.$type.'" i]:not(.nofancybox,li.nofancybox>a),area['.$value['options']['autoAttribute']['selector'].'"'.$type.'" i]:not(.nofancybox)';
92
  $more++;
93
  }
94
+ $script .= '\');';
95
 
96
  $autoselector = class_exists('easyFancyBox_Advanced') ? \get_option($value['options']['autoSelector']['id'],$value['options']['autoSelector']['default']) : $value['options']['autoSelector']['default'];
97
 
119
  } else {
120
  // Add class.
121
  $script .= '
122
+ fb_'.$key.'_select.addClass(\''.$value['options']['class']['default'].'\')';
123
  // Set rel.
124
  switch( \get_option($value['options']['autoGallery']['id'],$value['options']['autoGallery']['default']) ) {
125
  case '':
251
 
252
  empty( $titleColor ) || $styles .= '#fancybox-title,#fancybox-title-float-main{color:'.$titleColor.'}';
253
 
254
+ $styles = \apply_filters( 'easy_fancybox_inline_style', $styles );
255
+
256
  empty( $styles ) || \easyFancyBox::$inline_style = \wp_strip_all_tags( $styles );
257
  }
258
 
inc/fancybox-legacy-options.php CHANGED
@@ -645,14 +645,10 @@ $efb_options = array (
645
  ),
646
  'onStart' => array (
647
  'id' => '',
648
- 'title' => esc_html__('Advanced','easy-fancybox'),
649
- 'input' => 'select',
650
  'status' => 'disabled',
651
- 'options' => array(
652
- '' => esc_html__('Hide/show title on mouse hover action','easy-fancybox')
653
- ),
654
  'default' => '',
655
- 'description' => '<em><a href="'.easyFancyBox::$pro_plugin_url.'">' . esc_html__('Make available &raquo;','easy-fancybox') . '</a></em><br />'
656
  ),
657
  'p3' => array (
658
  'hide' => true,
@@ -724,16 +720,23 @@ $efb_options = array (
724
  'input' => 'hidden',
725
  'default' => '.gallery,.wp-block-gallery,.tiled-gallery,.wp-block-jetpack-tiled-gallery'
726
  ),
727
- 'onComplete' => array (
728
  'id' => '',
729
- 'title' => esc_html__('Advanced','easy-fancybox'),
730
- 'input' => 'select',
731
  'status' => 'disabled',
732
- 'options' => array(
733
- '' => esc_html__('Slideshow','easy-fancybox')
734
- ),
735
  'default' => '',
736
- 'description' => '<em><a href="'.easyFancyBox::$pro_plugin_url.'">' . esc_html__('Make available &raquo;','easy-fancybox') . '</a></em>'
 
 
 
 
 
 
 
 
 
 
737
  )
738
  )
739
  ),
@@ -861,7 +864,7 @@ $efb_options = array (
861
  'input' => 'checkbox',
862
  'hide' => true,
863
  'default' => '1',
864
- 'selector' => '\'a[href*=".pdf"],area[href*=".pdf"],a[href*=".PDF"],area[href*=".PDF"]\'',
865
  'description' => esc_html__('Autodetect','easy-fancybox')
866
  ),
867
  'tag' => array (
@@ -972,7 +975,7 @@ $efb_options = array (
972
  'input' => 'checkbox',
973
  'hide' => true,
974
  'default' => '1',
975
- 'selector' => '\'a[href*=".swf"],area[href*=".swf"],a[href*=".SWF"],area[href*=".SWF"]\'',
976
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
977
  ),
978
  'tag' => array (
@@ -1067,7 +1070,7 @@ $efb_options = array (
1067
  'input' => 'checkbox',
1068
  'hide' => true,
1069
  'default' => '1',
1070
- 'selector' => '\'a[href*=".svg"],area[href*=".svg"],a[href*=".SVG"],area[href*=".SVG"]\'',
1071
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1072
  ),
1073
  'tag' => array (
@@ -1166,7 +1169,7 @@ $efb_options = array (
1166
  'input' => 'checkbox',
1167
  'hide' => true,
1168
  'default' => '1',
1169
- 'selector' => '\'a[href*="youtu.be/"],area[href*="youtu.be/"],a[href*="youtube.com/"],area[href*="youtube.com/"]\').filter(function(){return this.href.match(/\/(?:youtu\.be|watch\?|embed\/)/);}',
1170
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1171
  ),
1172
  'tag' => array (
@@ -1278,7 +1281,7 @@ $efb_options = array (
1278
  'input' => 'checkbox',
1279
  'hide' => true,
1280
  'default' => '1',
1281
- 'selector' => '\'a[href*="vimeo.com/"],area[href*="vimeo.com/"]\').filter(function(){return this.href.match(/\/(?:[0-9]+|video\/)/);}',
1282
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1283
  ),
1284
  'tag' => array (
@@ -1381,7 +1384,7 @@ $efb_options = array (
1381
  'input' => 'checkbox',
1382
  'hide' => true,
1383
  'default' => '1',
1384
- 'selector' => '\'a[href*="dailymotion.com/"],area[href*="dailymotion.com/"]\').filter(function(){return this.href.match(/\/video\//);}',
1385
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1386
  ),
1387
  'tag' => array (
@@ -1466,7 +1469,7 @@ $efb_options = array (
1466
  ),
1467
  'onStart' => array (
1468
  'noquotes' => true,
1469
- 'default' => 'function(a,i,o){var splitOn=a[i].href.indexOf("?");var urlParms=(splitOn>-1)?a[i].href.substring(splitOn):"";o.allowfullscreen=(urlParms.indexOf("fullscreen=0")>-1)?false:true;o.href=a[i].href.replace(/^https?:\/\/(?:www\.)?dailymotion.com\/video\/([^\?]+)(.*)/gi,"https://www.dailymotion.com/embed/video/$1?$2&autoPlay=1");}'
1470
  )
1471
  )
1472
  ),
645
  ),
646
  'onStart' => array (
647
  'id' => '',
648
+ 'input' => 'checkbox',
 
649
  'status' => 'disabled',
 
 
 
650
  'default' => '',
651
+ 'description' => esc_html__( 'Hide/show title on mouse hover action', 'easy-fancybox' ) . ' <em><a href="'.easyFancyBox::$pro_plugin_url.'">' . esc_html__('Make available &raquo;','easy-fancybox') . '</a></em><br />'
652
  ),
653
  'p3' => array (
654
  'hide' => true,
720
  'input' => 'hidden',
721
  'default' => '.gallery,.wp-block-gallery,.tiled-gallery,.wp-block-jetpack-tiled-gallery'
722
  ),
723
+ 'autoPlay' => array (
724
  'id' => '',
725
+ 'hide' => true,
726
+ 'input' => 'checkbox',
727
  'status' => 'disabled',
 
 
 
728
  'default' => '',
729
+ 'description' => esc_html__( 'Slideshow', 'easy-fancybox' ) . '<em><a href="'.easyFancyBox::$pro_plugin_url.'">' . esc_html__('Make available &raquo;','easy-fancybox') . '</a></em>'
730
+ ),
731
+ 'playSpeed' => array(
732
+ 'id' => '',
733
+ 'hide' => true,
734
+ 'title' => esc_html__( 'Play speed', 'easy-fancybox' ),
735
+ 'input' => 'number',
736
+ 'status' => 'disabled',
737
+ 'class' => 'small-text',
738
+ 'default' => '',
739
+ 'description' => '<br />' . esc_html__('Duration in milliseconds. Higher is slower.','easy-fancybox') . ' <em>' . esc_html__('Default:','easy-fancybox') . ' 3000</em><br /><br />'
740
  )
741
  )
742
  ),
864
  'input' => 'checkbox',
865
  'hide' => true,
866
  'default' => '1',
867
+ 'selector' => '\'a[href*=".pdf" i],area[href*=".pdf" i]\'',
868
  'description' => esc_html__('Autodetect','easy-fancybox')
869
  ),
870
  'tag' => array (
975
  'input' => 'checkbox',
976
  'hide' => true,
977
  'default' => '1',
978
+ 'selector' => '\'a[href*=".swf" i],area[href*=".swf" i]\'',
979
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
980
  ),
981
  'tag' => array (
1070
  'input' => 'checkbox',
1071
  'hide' => true,
1072
  'default' => '1',
1073
+ 'selector' => '\'a[href*=".svg" i],area[href*=".svg" i]\'',
1074
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1075
  ),
1076
  'tag' => array (
1169
  'input' => 'checkbox',
1170
  'hide' => true,
1171
  'default' => '1',
1172
+ 'selector' => '\'a[href*="youtu.be/" i],area[href*="youtu.be/" i],a[href*="youtube.com/" i],area[href*="youtube.com/" i]\').filter(function(){return this.href.match(/\/(?:youtu\.be|watch\?|embed\/)/);}',
1173
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1174
  ),
1175
  'tag' => array (
1281
  'input' => 'checkbox',
1282
  'hide' => true,
1283
  'default' => '1',
1284
+ 'selector' => '\'a[href*="vimeo.com/" i],area[href*="vimeo.com/" i]\').filter(function(){return this.href.match(/\/(?:[0-9]+|video\/)/);}',
1285
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1286
  ),
1287
  'tag' => array (
1384
  'input' => 'checkbox',
1385
  'hide' => true,
1386
  'default' => '1',
1387
+ 'selector' => '\'a[href*="dailymotion.com/" i],area[href*="dailymotion.com/" i]\').filter(function(){return this.href.match(/\/video\//);}',
1388
  'description' => esc_html__('Autodetect','easy-fancybox') . '<br />'
1389
  ),
1390
  'tag' => array (
1469
  ),
1470
  'onStart' => array (
1471
  'noquotes' => true,
1472
+ 'default' => 'function(a,i,o){var splitOn=a[i].href.indexOf("?");var urlParms=(splitOn>-1)?a[i].href.substring(splitOn):"";o.allowfullscreen=(urlParms.indexOf("fullscreen=0")>-1)?false:true;o.href=a[i].href.replace(/^https?:\/\/(?:www\.)?dailymotion.com\/video\/([^\?]+)(.*)/gi,"https://www.dailymotion.com/embed/video/$1?$2&autoplay=1");}'
1473
  )
1474
  )
1475
  ),
inc/fancybox-legacy.php CHANGED
@@ -82,16 +82,16 @@ jQuery('.$value['options']['autoAttribute']['selector'].').not(\'.nofancybox,li.
82
  $file_types = array_filter( explode( ',', str_replace( ' ', ',', $autoAttribute ) ) );
83
  $more = 0;
84
  $script .= '
85
- var fb_'.$key.'_select=\'';
86
  foreach ( $file_types as $type ) {
87
  if ($type == "jpg" || $type == "jpeg" || $type == "png" || $type == "webp" || $type == "gif")
88
  $type = '.'.$type;
89
  if ($more>0)
90
  $script .= ',';
91
- $script .= 'a['.$value['options']['autoAttribute']['selector'].'"'.$type.'"]:not(.nofancybox,li.nofancybox>a),area['.$value['options']['autoAttribute']['selector'].'"'.$type.'"]:not(.nofancybox)';
92
  $more++;
93
  }
94
- $script .= '\';';
95
 
96
  $autoselector = class_exists('easyFancyBox_Advanced') ? \get_option($value['options']['autoSelector']['id'],$value['options']['autoSelector']['default']) : $value['options']['autoSelector']['default'];
97
 
@@ -119,7 +119,7 @@ fb_'.$key.'_sections.each(function(){jQuery(this).find(fb_'.$key.'_select).addCl
119
  } else {
120
  // Add class.
121
  $script .= '
122
- jQuery(fb_'.$key.'_select).addClass(\''.$value['options']['class']['default'].'\')';
123
  // Set rel.
124
  switch( \get_option($value['options']['autoGallery']['id'],$value['options']['autoGallery']['default']) ) {
125
  case '':
@@ -253,6 +253,8 @@ jQuery(\'' . $value['options']['tag']['default'] . '\')';
253
 
254
  $styles .= '.fancybox-hidden{display:none}#fancybox-content .fancybox-hidden,#fancybox-tmp .fancybox-hidden{display:revert}';
255
 
 
 
256
  empty( $styles ) || \easyFancyBox::$inline_style = \wp_strip_all_tags( $styles );
257
 
258
  // Running our IE alphaimageloader relative path styles here.
82
  $file_types = array_filter( explode( ',', str_replace( ' ', ',', $autoAttribute ) ) );
83
  $more = 0;
84
  $script .= '
85
+ var fb_'.$key.'_select=jQuery(\'';
86
  foreach ( $file_types as $type ) {
87
  if ($type == "jpg" || $type == "jpeg" || $type == "png" || $type == "webp" || $type == "gif")
88
  $type = '.'.$type;
89
  if ($more>0)
90
  $script .= ',';
91
+ $script .= 'a['.$value['options']['autoAttribute']['selector'].'"'.$type.'" i]:not(.nofancybox,li.nofancybox>a),area['.$value['options']['autoAttribute']['selector'].'"'.$type.'" i]:not(.nofancybox)';
92
  $more++;
93
  }
94
+ $script .= '\');';
95
 
96
  $autoselector = class_exists('easyFancyBox_Advanced') ? \get_option($value['options']['autoSelector']['id'],$value['options']['autoSelector']['default']) : $value['options']['autoSelector']['default'];
97
 
119
  } else {
120
  // Add class.
121
  $script .= '
122
+ fb_'.$key.'_select.addClass(\''.$value['options']['class']['default'].'\')';
123
  // Set rel.
124
  switch( \get_option($value['options']['autoGallery']['id'],$value['options']['autoGallery']['default']) ) {
125
  case '':
253
 
254
  $styles .= '.fancybox-hidden{display:none}#fancybox-content .fancybox-hidden,#fancybox-tmp .fancybox-hidden{display:revert}';
255
 
256
+ $styles = \apply_filters( 'easy_fancybox_inline_style', $styles );
257
+
258
  empty( $styles ) || \easyFancyBox::$inline_style = \wp_strip_all_tags( $styles );
259
 
260
  // Running our IE alphaimageloader relative path styles here.
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravan
4
  Tags: fancybox, lightbox, gallery, image, photo, video, overlay, youtube, vimeo, dailymotion, pdf, svg, iframe, jquery, webp
5
  Requires at least: 3.3
6
  Tested up to: 6.1-RC1
7
- Stable tag: 1.9
8
 
9
  Easily enable the FancyBox light box on just about all media links. Multi-Site compatible. Supports iframe, inline content and well known video hosts.
10
 
@@ -462,12 +462,17 @@ If you still do not get to see your images in FancyBox, ask on the [Easy FancyBo
462
 
463
  == Upgrade Notice ==
464
 
465
- = 1.9 =
466
 
467
- Swipe support, fixed background and accessibility improvements.
468
 
469
  == Changelog ==
470
 
 
 
 
 
 
471
  = 1.9 =
472
  * NEW: Swipe support
473
  * NEW: Optional fancyBox 2 or Legacy scripts
4
  Tags: fancybox, lightbox, gallery, image, photo, video, overlay, youtube, vimeo, dailymotion, pdf, svg, iframe, jquery, webp
5
  Requires at least: 3.3
6
  Tested up to: 6.1-RC1
7
+ Stable tag: 1.9.1
8
 
9
  Easily enable the FancyBox light box on just about all media links. Multi-Site compatible. Supports iframe, inline content and well known video hosts.
10
 
462
 
463
  == Upgrade Notice ==
464
 
465
+ = 1.9.1 =
466
 
467
+ Bugfix release.
468
 
469
  == Changelog ==
470
 
471
+ = 1.9.1 =
472
+ * FIX: Passing event parameters failing
473
+ * FIX: Case insesitive selectors failing
474
+ * FIX: Admin message display issue
475
+
476
  = 1.9 =
477
  * NEW: Swipe support
478
  * NEW: Optional fancyBox 2 or Legacy scripts
views/admin-notice.php CHANGED
@@ -1,8 +1,14 @@
1
- <div class="update-nag">
2
  <p>
3
- <?php esc_html_e( 'Notice: The current Easy FancyBox plugin version is not fully compatible with your version of the Pro extension. Some advanced options may not be functional.', 'easy-fancybox' ); ?>
 
 
4
  <br />
5
- <?php printf( esc_html__( 'Please <a href="%1$s" target="_blank">download and install the latest Pro version</a>.', 'easy-fancybox' ), 'https://premium.status301.com/account/' ); ?>
6
- <?php printf( esc_html__( 'Or you can ignore and <a href="%1$s">hide this message</a>.', 'easy-fancybox' ), '?easy_fancybox_ignore_notice=1' ); ?>
 
 
 
 
7
  </p>
8
  </div>
1
+ <div class="notice notice-warning">
2
  <p>
3
+ <strong>
4
+ <?php esc_html_e( 'Notice: The current Easy FancyBox plugin version is not fully compatible with your version of the Pro extension. Some advanced options may not be functional.', 'easy-fancybox' ); ?>
5
+ </strong>
6
  <br />
7
+ <?php
8
+ if ( current_user_can( 'install_plugins' ) )
9
+ printf( esc_html__( 'Please download and install the latest %s.', 'easy-fancybox' ), '<a href="https://premium.status301.com/account/" target="_blank">' . esc_html__( 'Pro version', 'easy-fancybox' ) . '</a>' );
10
+ else
11
+ esc_html_e( 'Please contact your web site administrator.', 'easy-fancybox' ); ?>
12
+ <?php printf( __( 'Or you can ignore and <a href="%1$s">hide this message</a>.', 'easy-fancybox' ), '?easy_fancybox_ignore_notice=1' ); ?>
13
  </p>
14
  </div>
views/settings-section-intro.php CHANGED
@@ -36,7 +36,8 @@ if ( ! class_exists('easyFancyBox_Advanced') ) { ?>
36
  <?php }
37
  // Pro extension version compatibility message.
38
  if ( self::$do_compat_warning ) { ?>
39
- <p class="update-nag">';
 
40
  <?php esc_html_e( 'Notice: The current Easy FancyBox plugin version is not fully compatible with your version of the Pro extension. Some advanced options may not be functional.', 'easy-fancybox' ); ?>
41
  <?php
42
  if ( current_user_can( 'install_plugins' ) )
@@ -45,4 +46,5 @@ if ( self::$do_compat_warning ) { ?>
45
  esc_html_e( 'Please contact your web site administrator.', 'easy-fancybox' );
46
  ?>
47
  </p>
 
48
  <?php } ?>
36
  <?php }
37
  // Pro extension version compatibility message.
38
  if ( self::$do_compat_warning ) { ?>
39
+ <div class="notice notice-warning is-dismissible">
40
+ <p>
41
  <?php esc_html_e( 'Notice: The current Easy FancyBox plugin version is not fully compatible with your version of the Pro extension. Some advanced options may not be functional.', 'easy-fancybox' ); ?>
42
  <?php
43
  if ( current_user_can( 'install_plugins' ) )
46
  esc_html_e( 'Please contact your web site administrator.', 'easy-fancybox' );
47
  ?>
48
  </p>
49
+ </div>
50
  <?php } ?>