Easy FancyBox - Version 1.9.4

Version Description

Bugfix release.

=

Download this release

Release Info

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

Code changes from version 1.9.3 to 1.9.4

Files changed (41) hide show
  1. easy-fancybox.php +4 -4
  2. fancybox/1.3.27/jquery.fancybox.min.css +0 -1
  3. fancybox/{1.3.27 → 1.3.28}/blank.gif +0 -0
  4. fancybox/{1.3.27 → 1.3.28}/fancy_close.png +0 -0
  5. fancybox/{1.3.27 → 1.3.28}/fancy_loading.png +0 -0
  6. fancybox/{1.3.27 → 1.3.28}/fancy_nav_left.png +0 -0
  7. fancybox/{1.3.27 → 1.3.28}/fancy_nav_right.png +0 -0
  8. fancybox/{1.3.27 → 1.3.28}/fancy_shadow_e.png +0 -0
  9. fancybox/{1.3.27 → 1.3.28}/fancy_shadow_n.png +0 -0
  10. fancybox/{1.3.27 → 1.3.28}/fancy_shadow_ne.png +0 -0
  11. fancybox/{1.3.27 → 1.3.28}/fancy_shadow_nw.png +0 -0
  12. fancybox/{1.3.27 → 1.3.28}/fancy_shadow_s.png +0 -0
  13. fancybox/{1.3.27 → 1.3.28}/fancy_shadow_se.png +0 -0
  14. fancybox/{1.3.27 → 1.3.28}/fancy_shadow_sw.png +0 -0
  15. fancybox/{1.3.27 → 1.3.28}/fancy_shadow_w.png +0 -0
  16. fancybox/{1.3.27 → 1.3.28}/fancy_title_left.png +0 -0
  17. fancybox/{1.3.27 → 1.3.28}/fancy_title_main.png +0 -0
  18. fancybox/{1.3.27 → 1.3.28}/fancy_title_over.png +0 -0
  19. fancybox/{1.3.27 → 1.3.28}/fancy_title_right.png +0 -0
  20. fancybox/{1.3.27 → 1.3.28}/fancybox-x.png +0 -0
  21. fancybox/{1.3.27 → 1.3.28}/fancybox-y.png +0 -0
  22. fancybox/{1.3.27 → 1.3.28}/fancybox.png +0 -0
  23. fancybox/{1.3.27 → 1.3.28}/jquery.fancybox-ie.css +0 -0
  24. fancybox/{1.3.27 → 1.3.28}/jquery.fancybox-ie.min.css +0 -0
  25. fancybox/{1.3.27 → 1.3.28}/jquery.fancybox.css +5 -11
  26. fancybox/{1.3.27 → 1.3.28}/jquery.fancybox.js +6 -7
  27. fancybox/1.3.28/jquery.fancybox.min.css +1 -0
  28. fancybox/{1.3.27 → 1.3.28}/jquery.fancybox.min.js +1 -1
  29. fancybox/1.5.2/jquery.fancybox.min.css +0 -1
  30. fancybox/1.5.2/jquery.fancybox.min.js +0 -1
  31. fancybox/{1.5.2 → 1.5.3}/jquery.fancybox.css +19 -7
  32. fancybox/{1.5.2 → 1.5.3}/jquery.fancybox.js +22 -15
  33. fancybox/1.5.3/jquery.fancybox.min.css +1 -0
  34. fancybox/1.5.3/jquery.fancybox.min.js +1 -0
  35. inc/class-easyfancybox-admin.php +72 -7
  36. inc/fancybox-classic-options.php +0 -12
  37. inc/fancybox-legacy-options.php +8 -1
  38. readme.txt +7 -3
  39. uninstall.php +1 -1
  40. views/settings-field-media.php +1 -77
  41. views/settings-field-version.php +3 -4
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.3
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.3' );
35
  define( 'FANCYBOX_VERSIONS', array(
36
- 'legacy' => '1.3.27',
37
- 'classic' => '1.5.2',
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.4
9
  Author: RavanH
10
  Author URI: http://status301.net/
11
  */
31
  * CONSTANTS
32
  **************/
33
 
34
+ define( 'EASY_FANCYBOX_VERSION', '1.9.4' );
35
  define( 'FANCYBOX_VERSIONS', array(
36
+ 'legacy' => '1.3.28',
37
+ 'classic' => '1.5.3',
38
  'fancyBox2' => '2.2.0',
39
  //'fancyBox3' => '3.5.7'
40
  ) );
fancybox/1.3.27/jquery.fancybox.min.css DELETED
@@ -1 +0,0 @@
1
- #fancybox-loading,#fancybox-loading div,#fancybox-overlay,#fancybox-wrap,.fancybox-bg,#fancybox-outer,#fancybox-content,#fancybox-content>div,#fancybox-content>div>div,#fancybox-frame,#fancybox-close,#fancybox-title,#fancybox-title div,#fancybox-left,#fancybox-right,.fancy-ico{box-sizing:content-box;-moz-box-sizing:content-box;}#fancybox-loading{position:fixed;top:50%;left:50%;width:40px;height:40px;margin-top:-20px;margin-left:-20px;cursor:pointer;overflow:hidden;z-index:111104;display:none;}#fancybox-loading div{position:absolute;top:0;left:0;width:40px;height:480px;background-image:url('fancybox.png');}#fancybox-overlay{position:absolute;top:0;left:0;width:100%;z-index:111100;display:none;}#fancybox-tmp{padding:0;margin:0;border:0;overflow:auto;display:none;}#fancybox-wrap{position:absolute;top:0;left:0;padding:20px;z-index:111101;display:none;}#fancybox-outer{position:relative;width:100%;height:100%;background:#fff;box-shadow:0 0 20px #111;-moz-box-shadow:0 0 20px #111;-webkit-box-shadow:0 0 20px #111;}#fancybox-content{width:0;height:0;padding:0;position:relative;-webkit-overflow-scrolling:touch;overflow-y:auto;z-index:111102;border:0 solid #fff;background:#fff;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box}#fancybox-content>div{max-width:100%;max-height:100%;}#fancybox-hide-sel-frame{position:absolute;top:0;left:0;width:100%;height:100%;background:transparent;z-index:111101;}#fancybox-close{position:absolute;top:-15px;right:-15px;width:30px;height:30px;background:transparent url('fancybox.png') -40px 0;cursor:pointer;z-index:111103;display:none;}#fancybox-error{color:#444;padding:14px;margin:0;}#fancybox-frame,#fancybox-img{width:100%;height:100%;border:none;}#fancybox-img{padding:0;margin:0;line-height:0;vertical-align:top;max-width:none!important;max-height:none!important}#fancybox-frame{display:block;width:100%;height:100%;z-index:0}#fancybox-left,#fancybox-right{position:absolute;bottom:0;height:100%;width:35%;cursor:pointer;background:initial;z-index:111102;display:none;}#fancybox-left{left:0;}.rtl #fancybox-left{left:auto;right:0}#fancybox-right{right:0;}.rtl #fancybox-right{left:0;right:auto}#fancybox-left-ico,#fancybox-right-ico{position:absolute;top:50%;left:-9999px;width:30px;height:30px;margin-top:-15px;cursor:pointer;z-index:111102;display:block;}#fancybox-left-ico{background-image:url('fancybox.png');background-position:-40px -30px;}.rtl #fancybox-left-ico{background-position:-40px -60px;right:-9999px}#fancybox-right-ico{background-image:url('fancybox.png');background-position:-40px -60px;}.rtl #fancybox-right-ico{background-position:-40px -30px;right:-9999px}#fancybox-left:focus,#fancybox-right:focus{outline:none;background:initial;}#fancybox-left:hover span{left:20px;}.rtl #fancybox-left:hover span{right:20px}#fancybox-right:hover span{left:auto;right:20px;}.rtl #fancybox-right:hover span{right:auto;left:20px}#fancybox-title{z-index:111102;}.fancybox-title-inside{padding-bottom:10px;text-align:center;color:#333;position:relative;}.fancybox-title-outside{padding-top:10px;color:#fff;font-weight:600;}.fancybox-title-over{position:absolute;bottom:0;left:0;color:#FFF;text-align:left;}.rtl .fancybox-title-over{text-align:right}#fancybox-title-over{padding:10px;background:rgba(0,0,0,.64);display:block;}.fancybox-title-float{position:absolute;left:0;bottom:-20px;height:32px;}#fancybox-title-float-wrap{border:none;border-collapse:collapse;width:auto;}#fancybox-title-float-wrap tr,#fancybox-title-float-wrap td{border:none;white-space:nowrap;}#fancybox-title-float-left{padding:0 0 0 15px;background:url('fancybox.png') -40px -90px no-repeat;}#fancybox-title-float-main{color:#fff;line-height:29px;font-weight:600;font-size:14px;padding:0 0 3px 0;background:url('fancybox-x.png') 0px -40px;}#fancybox-title-float-right{padding:0 0 0 15px;background:url('fancybox.png') -55px -90px no-repeat;}
 
fancybox/{1.3.27 → 1.3.28}/blank.gif RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/fancy_close.png RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/fancy_loading.png RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/fancy_nav_left.png RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/fancy_nav_right.png RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/fancy_shadow_e.png RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/fancy_shadow_n.png RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/fancy_shadow_ne.png RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/fancy_shadow_nw.png RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/fancy_shadow_s.png RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/fancy_shadow_se.png RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/fancy_shadow_sw.png RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/fancy_shadow_w.png RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/fancy_title_left.png RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/fancy_title_main.png RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/fancy_title_over.png RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/fancy_title_right.png RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/fancybox-x.png RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/fancybox-y.png RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/fancybox.png RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/jquery.fancybox-ie.css RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/jquery.fancybox-ie.min.css RENAMED
File without changes
fancybox/{1.3.27 → 1.3.28}/jquery.fancybox.css 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.27 (2018/10/01)
11
  *
12
  * Dual licensed under the MIT and GPL licenses:
13
  * http://www.opensource.org/licenses/mit-license.php
@@ -93,9 +93,7 @@
93
  height: 0;
94
  padding: 0;
95
  position: relative;
96
- /*overflow: hidden;*/
97
- -webkit-overflow-scrolling: touch;
98
- overflow-y: auto;
99
  z-index: 111102;
100
  border: 0px solid #fff;
101
  background: #fff;
@@ -104,11 +102,6 @@
104
  background-clip: padding-box; /* IE9+, Firefox 4+, Opera, Chrome */
105
  }
106
 
107
- #fancybox-content > div {
108
- max-width: 100%;
109
- max-height: 100%;
110
- }
111
-
112
  #fancybox-hide-sel-frame {
113
  position: absolute;
114
  top: 0;
@@ -245,6 +238,7 @@
245
 
246
  #fancybox-title {
247
  z-index: 111102;
 
248
  }
249
 
250
  .fancybox-title-inside {
@@ -289,6 +283,7 @@
289
  border: none;
290
  border-collapse: collapse;
291
  width: auto;
 
292
  }
293
 
294
  #fancybox-title-float-wrap tr,#fancybox-title-float-wrap td {
@@ -303,9 +298,8 @@
303
 
304
  #fancybox-title-float-main {
305
  color: #fff;
306
- line-height: 29px;
307
  font-weight: 600;
308
- font-size: 14px;
309
  padding: 0 0 3px 0;
310
  background: url('fancybox-x.png') 0px -40px;
311
  }
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.28 (2018/10/01)
11
  *
12
  * Dual licensed under the MIT and GPL licenses:
13
  * http://www.opensource.org/licenses/mit-license.php
93
  height: 0;
94
  padding: 0;
95
  position: relative;
96
+ overflow: hidden;
 
 
97
  z-index: 111102;
98
  border: 0px solid #fff;
99
  background: #fff;
102
  background-clip: padding-box; /* IE9+, Firefox 4+, Opera, Chrome */
103
  }
104
 
 
 
 
 
 
105
  #fancybox-hide-sel-frame {
106
  position: absolute;
107
  top: 0;
238
 
239
  #fancybox-title {
240
  z-index: 111102;
241
+ font-size: 14px;
242
  }
243
 
244
  .fancybox-title-inside {
283
  border: none;
284
  border-collapse: collapse;
285
  width: auto;
286
+ min-width: 0;
287
  }
288
 
289
  #fancybox-title-float-wrap tr,#fancybox-title-float-wrap td {
298
 
299
  #fancybox-title-float-main {
300
  color: #fff;
301
+ line-height: 28px;
302
  font-weight: 600;
 
303
  padding: 0 0 3px 0;
304
  background: url('fancybox-x.png') 0px -40px;
305
  }
fancybox/{1.3.27 → 1.3.28}/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.27 (2019/04/07)
11
  * Requires: jQuery v1.7+
12
  *
13
  * Dual licensed under the MIT and GPL licenses:
@@ -336,22 +336,20 @@
336
 
337
  if (w.toString().indexOf('%') > -1) {
338
  w = parseInt( (ww - (selectedOpts.margin * 2)) * parseFloat(w) / 100, 10) + 'px';
339
-
340
  } else {
341
  w = w == 'auto' ? 'auto' : w + 'px';
342
  }
343
 
344
  if (h.toString().indexOf('%') > -1) {
345
  h = parseInt( (wh - (selectedOpts.margin * 2)) * parseFloat(h) / 100, 10) + 'px';
346
-
347
  } else {
348
  h = h == 'auto' ? 'auto' : h + 'px';
349
  }
350
 
351
  tmp.wrapInner('<div style="width:' + w + ';height:' + h + ';overflow:' + (selectedOpts.scrolling == 'auto' ? 'auto' : (selectedOpts.scrolling == 'yes' ? 'scroll' : 'hidden')) + ';position:relative;"></div>');
352
 
353
- selectedOpts.width = tmp.width();
354
- selectedOpts.height = tmp.height();
355
 
356
  _show();
357
  },
@@ -560,7 +558,8 @@
560
  'width' : final_pos.width - (currentOpts.padding * 2),
561
  'marginLeft' : currentOpts.padding,
562
  'marginRight' : currentOpts.padding
563
- }).appendTo( outer );
 
564
 
565
  titleHeight = title.outerHeight(true);
566
 
@@ -580,7 +579,7 @@
580
  case 'float':
581
  title
582
  .css('left', parseInt( ( title.width() - final_pos.width ) / 2, 10 ) * -1 )
583
- .appendTo( outer );
584
  break;
585
 
586
  default:
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.28 (2019/04/07)
11
  * Requires: jQuery v1.7+
12
  *
13
  * Dual licensed under the MIT and GPL licenses:
336
 
337
  if (w.toString().indexOf('%') > -1) {
338
  w = parseInt( (ww - (selectedOpts.margin * 2)) * parseFloat(w) / 100, 10) + 'px';
 
339
  } else {
340
  w = w == 'auto' ? 'auto' : w + 'px';
341
  }
342
 
343
  if (h.toString().indexOf('%') > -1) {
344
  h = parseInt( (wh - (selectedOpts.margin * 2)) * parseFloat(h) / 100, 10) + 'px';
 
345
  } else {
346
  h = h == 'auto' ? 'auto' : h + 'px';
347
  }
348
 
349
  tmp.wrapInner('<div style="width:' + w + ';height:' + h + ';overflow:' + (selectedOpts.scrolling == 'auto' ? 'auto' : (selectedOpts.scrolling == 'yes' ? 'scroll' : 'hidden')) + ';position:relative;"></div>');
350
 
351
+ selectedOpts.width = Math.ceil( tmp.width() );
352
+ selectedOpts.height = Math.ceil( tmp.height() );
353
 
354
  _show();
355
  },
558
  'width' : final_pos.width - (currentOpts.padding * 2),
559
  'marginLeft' : currentOpts.padding,
560
  'marginRight' : currentOpts.padding
561
+ })
562
+ .appendTo( outer );
563
 
564
  titleHeight = title.outerHeight(true);
565
 
579
  case 'float':
580
  title
581
  .css('left', parseInt( ( title.width() - final_pos.width ) / 2, 10 ) * -1 )
582
+ .appendTo( wrap );
583
  break;
584
 
585
  default:
fancybox/1.3.28/jquery.fancybox.min.css ADDED
@@ -0,0 +1 @@
 
1
+ #fancybox-loading,#fancybox-loading div,#fancybox-overlay,#fancybox-wrap,.fancybox-bg,#fancybox-outer,#fancybox-content,#fancybox-content>div,#fancybox-content>div>div,#fancybox-frame,#fancybox-close,#fancybox-title,#fancybox-title div,#fancybox-left,#fancybox-right,.fancy-ico{box-sizing:content-box;-moz-box-sizing:content-box;}#fancybox-loading{position:fixed;top:50%;left:50%;width:40px;height:40px;margin-top:-20px;margin-left:-20px;cursor:pointer;overflow:hidden;z-index:111104;display:none;}#fancybox-loading div{position:absolute;top:0;left:0;width:40px;height:480px;background-image:url('fancybox.png');}#fancybox-overlay{position:absolute;top:0;left:0;width:100%;z-index:111100;display:none;}#fancybox-tmp{padding:0;margin:0;border:0;overflow:auto;display:none;}#fancybox-wrap{position:absolute;top:0;left:0;padding:20px;z-index:111101;display:none;}#fancybox-outer{position:relative;width:100%;height:100%;background:#fff;box-shadow:0 0 20px #111;-moz-box-shadow:0 0 20px #111;-webkit-box-shadow:0 0 20px #111;}#fancybox-content{width:0;height:0;padding:0;position:relative;overflow:hidden;z-index:111102;border:0 solid #fff;background:#fff;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box}#fancybox-hide-sel-frame{position:absolute;top:0;left:0;width:100%;height:100%;background:transparent;z-index:111101;}#fancybox-close{position:absolute;top:-15px;right:-15px;width:30px;height:30px;background:transparent url('fancybox.png') -40px 0;cursor:pointer;z-index:111103;display:none;}#fancybox-error{color:#444;padding:14px;margin:0;}#fancybox-frame,#fancybox-img{width:100%;height:100%;border:none;}#fancybox-img{padding:0;margin:0;line-height:0;vertical-align:top;max-width:none!important;max-height:none!important}#fancybox-frame{display:block;width:100%;height:100%;z-index:0}#fancybox-left,#fancybox-right{position:absolute;bottom:0;height:100%;width:35%;cursor:pointer;background:initial;z-index:111102;display:none;}#fancybox-left{left:0;}.rtl #fancybox-left{left:auto;right:0}#fancybox-right{right:0;}.rtl #fancybox-right{left:0;right:auto}#fancybox-left-ico,#fancybox-right-ico{position:absolute;top:50%;left:-9999px;width:30px;height:30px;margin-top:-15px;cursor:pointer;z-index:111102;display:block;}#fancybox-left-ico{background-image:url('fancybox.png');background-position:-40px -30px;}.rtl #fancybox-left-ico{background-position:-40px -60px;right:-9999px}#fancybox-right-ico{background-image:url('fancybox.png');background-position:-40px -60px;}.rtl #fancybox-right-ico{background-position:-40px -30px;right:-9999px}#fancybox-left:focus,#fancybox-right:focus{outline:none;background:initial;}#fancybox-left:hover span{left:20px;}.rtl #fancybox-left:hover span{right:20px}#fancybox-right:hover span{left:auto;right:20px;}.rtl #fancybox-right:hover span{right:auto;left:20px}#fancybox-title{z-index:111102;font-size:14px;}.fancybox-title-inside{padding-bottom:10px;text-align:center;color:#333;position:relative;}.fancybox-title-outside{padding-top:10px;color:#fff;font-weight:600;}.fancybox-title-over{position:absolute;bottom:0;left:0;color:#FFF;text-align:left;}.rtl .fancybox-title-over{text-align:right}#fancybox-title-over{padding:10px;background:rgba(0,0,0,.64);display:block;}.fancybox-title-float{position:absolute;left:0;bottom:-20px;height:32px;}#fancybox-title-float-wrap{border:none;border-collapse:collapse;width:auto;min-width:0;}#fancybox-title-float-wrap tr,#fancybox-title-float-wrap td{border:none;white-space:nowrap;}#fancybox-title-float-left{padding:0 0 0 15px;background:url('fancybox.png') -40px -90px no-repeat;}#fancybox-title-float-main{color:#fff;line-height:28px;font-weight:600;padding:0 0 3px 0;background:url('fancybox-x.png') 0px -40px;}#fancybox-title-float-right{padding:0 0 0 15px;background:url('fancybox.png') -55px -90px no-repeat;}
fancybox/{1.3.27 → 1.3.28}/jquery.fancybox.min.js RENAMED
@@ -1 +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);
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(o);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.2/jquery.fancybox.min.css DELETED
@@ -1 +0,0 @@
1
- html.fancybox-active,html.fancybox-active body{touch-action:none;overscroll-behavior:none;-webkit-overflow-scrolling:auto;overflow:hidden;}html.fancybox-active body{margin-right:var(--vertical-scrollbar);margin-bottom:var(--horizontal-scrollbar);}html.fancybox-active body.rtl{margin-right:0;margin-left:var(--vertical-scrollbar);}#fancybox-loading,#fancybox-loading div,#fancybox-overlay,#fancybox-wrap *,#fancybox-wrap *::before,#fancybox-wrap *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}#fancybox-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.7);z-index:111100;display:none;}#fancybox-tmp{padding:0;margin:0;border:0;overflow:auto;display:none;}#fancybox-wrap{position:absolute;top:0;left:0;z-index:111101;display:none;outline:none!important;}#fancybox-outer{position:relative;width:100%;height:100%;box-shadow:0 0 20px #111;-moz-box-shadow:0 0 20px #111;-webkit-box-shadow:0 0 20px #111;}#fancybox-content{position:relative;width:100%;height:100%;-webkit-overflow-scrolling:touch;overflow-y:auto;z-index:111102;border:0 solid #fff;background:#fff;background-clip:padding-box;}#fancybox-content>div{max-width:100%;max-height:100%;}#fancybox-error{color:#444;padding:14px;margin:0;}#fancybox-frame,#fancybox-img{width:100%;height:100%;border:none;}#fancybox-img{padding:0;margin:0;line-height:0;vertical-align:top;max-width:none!important;max-height:none!important}#fancybox-frame{display:block;z-index:0}.fancy-ico{position:absolute;width:48px;height:48px;border-radius:50%;}.fancy-ico span{display:block;position:relative;left:12px;top:12px;width:24px;height:24px;border-radius:50%;background:#000;border:2px solid white;box-shadow:0 0 4px #000;transition:transform .25s ease-in-out;}#fancybox-close:hover span,#fancybox-next:hover span,body.rtl #fancybox-prev:hover span{transform:rotate(360deg);}#fancybox-prev:hover span,body.rtl #fancybox-next:hover span{transform:rotate(-360deg);}#fancybox-close{top:-24px;right:-24px;cursor:pointer;z-index:111105;display:none;}#fancybox-close span::after,#fancybox-close span::before{content:'';position:absolute;top:9px;left:4px;width:12px;height:2px;background-color:#fff;}#fancybox-close span::before{transform:rotate(45deg);}#fancybox-close span::after{transform:rotate(-45deg);}#fancybox-prev,#fancybox-next{top:50%;margin-top:-24px;cursor:pointer;z-index:111102;display:none;}#fancybox-next,body.rtl #fancybox-prev{left:auto;right:-24px;}#fancybox-prev,body.rtl #fancybox-next{left:-24px;right:auto;}#fancybox-prev span::after,#fancybox-next span::after{content:'';position:absolute;top:6px;width:8px;height:8px;border-top:2px solid #fff;border-right:2px solid #fff;}#fancybox-prev span::after,body.rtl #fancybox-next span::after{transform:rotate(-135deg);left:7px;}#fancybox-next span::after,body.rtl #fancybox-prev span::after{transform:rotate(45deg);left:initial;right:7px;}#fancybox-title-wrap{z-index:111104;}.fancybox-title-inside{padding-bottom:10px;text-align:center;color:#333;background-color:#fff;position:relative;}.fancybox-title-outside{padding-top:10px;color:#fff;font-weight:600;}.fancybox-title-over{position:absolute;width:100%;bottom:0;left:0;color:#fff;text-align:left;}body.rtl .fancybox-title-over{text-align:right}.fancybox-title-over #fancybox-title{padding:10px;background:rgba(0,0,0,.6);display:block;}.fancybox-title-float{text-align:center;}.fancybox-title-float #fancybox-title{display:table;margin:-12px auto;height:24px;padding:0 15px;line-height:20px;font-size:16px;color:#fff;background:#000;border:2px solid #fff;border-radius:12px;box-shadow:0 0 4px #000;position:relative;z-index:111104;}#fancybox-loading{position:fixed;top:50%;left:50%;width:40px;height:40px;margin-top:-20px;margin-left:-20px;background-color:rgba(0,0,0,.9);border-radius:5px;cursor:pointer;overflow:hidden;z-index:111104;display:none;}#fancybox-loading div{transform-origin:20px 20px;animation:fancybox-loading 1.2s linear infinite;}#fancybox-loading div::after{content:'';display:block;position:absolute;top:7px;left:19px;width:2px;height:7px;border-radius:20%;background:#fff;}#fancybox-loading div:nth-child(1){transform:rotate(0deg);animation-delay:-1.1s;}#fancybox-loading div:nth-child(2){transform:rotate(30deg);animation-delay:-1s;}#fancybox-loading div:nth-child(3){transform:rotate(60deg);animation-delay:-.9s;}#fancybox-loading div:nth-child(4){transform:rotate(90deg);animation-delay:-.8s;}#fancybox-loading div:nth-child(5){transform:rotate(120deg);animation-delay:-.7s;}#fancybox-loading div:nth-child(6){transform:rotate(150deg);animation-delay:-.6s;}#fancybox-loading div:nth-child(7){transform:rotate(180deg);animation-delay:-.5s;}#fancybox-loading div:nth-child(8){transform:rotate(210deg);animation-delay:-.4s;}#fancybox-loading div:nth-child(9){transform:rotate(240deg);animation-delay:-.3s;}#fancybox-loading div:nth-child(10){transform:rotate(270deg);animation-delay:-.2s;}#fancybox-loading div:nth-child(11){transform:rotate(300deg);animation-delay:-.1s;}#fancybox-loading div:nth-child(12){transform:rotate(330deg);animation-delay:0s;}@keyframes fancybox-loading{0%{opacity:1}100%{opacity:0}}.fancybox-hidden{display:none;}#fancybox-content .fancybox-hidden,#fancybox-tmp .fancybox-hidden{display:revert;}
 
fancybox/1.5.2/jquery.fancybox.min.js DELETED
@@ -1 +0,0 @@
1
- !function(e){var t,n,i,o,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,O=0,S="",T=!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(T=!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,i,o,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)),o=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)),""===o&&m.orig&&(o=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?(i=m.type,n||(n=m.content)):m.content?i="html":e(c).hasClass("iframe")?i="iframe":n&&(i=n.match(k)||e(c).hasClass("image")?"image":n.match(I)?"svg":n.match(N)?"pdf":0===n.indexOf("#")?"inline":"ajax"),i)switch(e(c).hasClass("modal")&&(m.modal=!0),"inline"==i&&(c=n.substr(n.indexOf("#")),i=e(c).length>0?"inline":"ajax"),m.type=i,m.href=n,m.title=o,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})),i){case"html":t.html(m.content),m.enableSwipeNav=!1,_process_inline();break;case"inline":if(!0===e(c).parent().is("#fancybox-content"))return void(T=!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,T=!1,(C=new Image).onerror=function(){_error(m.txt.error.image)},C.onload=function(){T=!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,T=!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(i,o,r){if(200==("object"==typeof r?r:_).status){if("function"==typeof m.ajax.win){if(!1===(a=m.ajax.win(n,i,o,r)))return void e.fancybox.hideActivity();"string"!=typeof a&&"object"!=typeof a||(i=a)}i.indexOf("<!DOCTYPE")>-1||i.indexOf("<html")>-1||i.indexOf("<body")>-1?_error(m.txt.error.unexpected):(t.html(i),_process_inline())}}}));break;case"iframe":m.enableSwipeNav=!1,e.fancybox.showActivity(),_show();break}else _error(m.txt.error.type);else T=!1},_process_inline=function(){var n=m.width,i=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",i=i.toString().indexOf("%")>-1?parseInt((window.innerHeight-2*m.margin)*parseFloat(i)/100,10)+"px":"auto"==i?"auto":i+"px",t.wrapInner('<div style="width:'+n+";height:"+i+';overflow:hidden;position:relative;"></div>'),m.width=t.width(),m.height=t.height(),_show()},_show=function(){if(T=!0,e(r.add(i)).off(),e(window).off("resize.fb"),h=w.type,x=v,y=g,(w=m).overlayShow?(i.css({"background-color":w.overlayColor,opacity:w.overlayOpacity,cursor:w.hideOnOverlayClick?"pointer":"auto"}),i.is(":visible")||i.fadeIn("fast")):i.hide(),_process_title(),u=_get_zoom_to(),o.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),o.animate(u,{duration:w.changeSpeed,easing:w.easingChange,complete:_finish})):r.fadeTo(w.changeFade,.3,(function(){r.css("border-width",w.padding),o.animate(u,{duration:w.changeSpeed,easing:w.easingChange,complete:function(){r.html(t.contents()).fadeTo(w.changeFade,1,_finish)}})})));o.removeAttr("style"),r.css("border-width",w.padding),r.html(t.contents()),"elastic"==w.transitionIn?(o.css(_get_orig_pos()).show(),u.opacity=1,o.attr("aria-hidden","false").animate(u,{duration:w.speedIn,easing:w.easingIn,complete:_finish})):o.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(S=w.title||"",O=0,d.empty().removeAttr("style").removeClass(),!1!==w.titleShow)if((S=e.isFunction(w.titleFormat)?w.titleFormat(S,x,y,w):_format_title(S))&&""!==S){switch(d.addClass("fancybox-title-"+w.titlePosition).html(S).appendTo("body").show(),w.titlePosition){case"outside":case"inside":O=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(o)}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&&(o.css("cursor","move"),o.on("mousedown.fb",(function(e){e.preventDefault(),p=b=void 0!==e.clientX?e.clientX:e.originalEvent.clientX,o.on("mousemove.fb",(function(e){b=void 0!==e.clientX?e.clientX:e.originalEvent.clientX}))})),o.on("mouseup.fb",(function(){o.off("mousemove.fb"),_swipe()})),A&&(o.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,o.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,o.off("touchmove.fb"))}))})),o.on("touchend.fb",(function(){o.off("touchmove.fb"),j&&(j=!1,_swipe())})))),e.fn.mousewheel&&o.on("mousewheel.fb",(function(t,n){T?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(){S&&S.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&&i.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"),o.show().focus(),T=!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,o.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,o.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-O,e(document).scrollLeft()+w.margin,e(document).scrollTop()+w.margin],n={},i=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/i,10)),w.autoScale&&n.height>t[1]&&(n.height=t[1]-2*w.padding,n.width=parseInt(n.height*i,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(){i.fadeOut("fast"),e(document).trigger("fancybox-closed",[x,y,w]),w.onClosed(x,y,w),_cleanup()},_cleanup=function(){i.hide(),d.empty().hide(),o.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"),T=!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(),T)return!1;T=!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(!T){if(T=!0,n=void 0!==arguments[1]?arguments[1]:{},v=[],g=parseInt(n.index,10)||0,e.isArray(t)){for(var i=0,o=t.length;i<o;i++)"object"==typeof t[i]?e(t[i]).data("fancybox",e.extend({},n,t[i])):t[i]=e({}).data("fancybox",e.extend({content:t[i]},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){T||(t=parseInt(t),x.length>1&&t!=y&&t>-1&&t<x.length&&(e(document).trigger("fancybox-change"),v=x,g=t,o.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(){T=!0,_abort(),e(document).trigger("fancybox-cancel",[v,g,m]),m&&!1===m.onCancel(v,g,m)?T=!1:(e(v[g]).focus(),e(c.add(s).add(l)).hide(),e(r.add(i)).off(),e(window).off("resize.fb"),e(o).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"),o.stop(),_cleanup())},e.fancybox.close=function(){T||o.is(":hidden")||(T=!0,_abort(),e(document).trigger("fancybox-cleanup",[x,y,w]),w&&!1===w.onCleanup(x,y,w)?T=!1:(e(x[y]).focus(),e(c.add(s).add(l)).hide(),e(r.add(i)).off(),e(window).off("resize.fb"),e(o).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(),o.stop(),"elastic"==w.transitionOut?(d.empty().hide(),o.animate(_get_orig_pos(),{duration:w.speedOut,easing:w.easingOut,complete:_closed})):o.fadeOut("none"==w.transitionOut?0:w.speedOut,_closed)))},e.fancybox.resize=function(){clearTimeout(f),f=setTimeout((function(){var e=[];T=!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(),o.animate(u,{duration:w.changeSpeed,easing:w.easingChange,complete:function(){S&&S.length&&d.fadeIn(),e.forEach((function(e){e.show()})),T=!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>'),i=e('<div id="fancybox-overlay"></div>'),o=e('<div id="fancybox-wrap" role="dialog" aria-hidden="true" aria-labelledby="fancybox-title" tabindex="-1"></div>')),o.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:"#000",overlayOpacity:.6,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.2 → 1.5.3}/jquery.fancybox.css RENAMED
@@ -8,24 +8,26 @@
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.2 (2020/11/09)
12
  *
13
  * Dual licensed under the MIT and GPL licenses:
14
  * http://www.opensource.org/licenses/mit-license.php
15
  * http://www.gnu.org/licenses/gpl.html
16
  */
17
 
18
- html.fancybox-active, html.fancybox-active body {
19
  touch-action: none;
20
  overscroll-behavior: none;
21
  -webkit-overflow-scrolling: auto;
22
  overflow: hidden;
23
  }
24
- html.fancybox-active body {
 
25
  margin-right: var(--vertical-scrollbar);
26
  margin-bottom: var(--horizontal-scrollbar);
27
  }
28
- html.fancybox-active body.rtl {
 
29
  margin-right: 0;
30
  margin-left: var(--vertical-scrollbar);
31
  }
@@ -76,23 +78,24 @@ html.fancybox-active body.rtl {
76
  box-shadow:0 0 20px #111;
77
  -moz-box-shadow:0 0 20px #111;
78
  -webkit-box-shadow:0 0 20px #111;
 
79
  }
80
 
81
  #fancybox-content {
82
  position: relative;
83
  width: 100%;
84
  height: 100%;
85
- -webkit-overflow-scrolling: touch;
86
- overflow-y: auto;
87
  z-index: 111102;
88
  border: 0px solid #fff;
89
  background: #fff;
90
  background-clip: padding-box;
91
  }
92
 
93
- #fancybox-content > div {
94
  max-width: 100%;
95
  max-height: 100%;
 
96
  }
97
 
98
  #fancybox-error {
@@ -108,6 +111,7 @@ html.fancybox-active body.rtl {
108
  }
109
 
110
  #fancybox-img {
 
111
  padding: 0;
112
  margin: 0;
113
  line-height: 0;
@@ -120,7 +124,9 @@ html.fancybox-active body.rtl {
120
  display: block;
121
  z-index: 0; /* z-index bug with -webkit-overflow-scrolling */
122
  }
 
123
  /* buttons */
 
124
  .fancy-ico {
125
  position: absolute;
126
  width: 48px;
@@ -146,7 +152,9 @@ html.fancybox-active body.rtl {
146
  #fancybox-prev:hover span, body.rtl #fancybox-next:hover span {
147
  transform: rotate(-360deg);
148
  }
 
149
  /* close button */
 
150
  #fancybox-close {
151
  top: -24px;
152
  right: -24px;
@@ -171,6 +179,7 @@ html.fancybox-active body.rtl {
171
  }
172
 
173
  /* navigation elements */
 
174
  #fancybox-prev, #fancybox-next {
175
  top: 50%;
176
  margin-top: -24px;
@@ -269,6 +278,7 @@ body.rtl .fancybox-title-over {
269
  }
270
 
271
  /* loader animation */
 
272
  #fancybox-loading {
273
  position: fixed;
274
  top: 50%;
@@ -357,9 +367,11 @@ body.rtl .fancybox-title-over {
357
  }
358
 
359
  /* other */
 
360
  .fancybox-hidden {
361
  display: none;
362
  }
 
363
  #fancybox-content .fancybox-hidden,
364
  #fancybox-tmp .fancybox-hidden {
365
  display: revert;
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.3 (2020/11/09)
12
  *
13
  * Dual licensed under the MIT and GPL licenses:
14
  * http://www.opensource.org/licenses/mit-license.php
15
  * http://www.gnu.org/licenses/gpl.html
16
  */
17
 
18
+ html.fancybox-active:not(.fancybox-allowscroll), html.fancybox-active:not(.fancybox-allowscroll) body {
19
  touch-action: none;
20
  overscroll-behavior: none;
21
  -webkit-overflow-scrolling: auto;
22
  overflow: hidden;
23
  }
24
+
25
+ html.fancybox-active:not(.fancybox-allowscroll) body {
26
  margin-right: var(--vertical-scrollbar);
27
  margin-bottom: var(--horizontal-scrollbar);
28
  }
29
+
30
+ html.fancybox-active:not(.fancybox-allowscroll) body.rtl {
31
  margin-right: 0;
32
  margin-left: var(--vertical-scrollbar);
33
  }
78
  box-shadow:0 0 20px #111;
79
  -moz-box-shadow:0 0 20px #111;
80
  -webkit-box-shadow:0 0 20px #111;
81
+ background: #fff;
82
  }
83
 
84
  #fancybox-content {
85
  position: relative;
86
  width: 100%;
87
  height: 100%;
88
+ overflow: hidden;
 
89
  z-index: 111102;
90
  border: 0px solid #fff;
91
  background: #fff;
92
  background-clip: padding-box;
93
  }
94
 
95
+ #fancybox-content > * {
96
  max-width: 100%;
97
  max-height: 100%;
98
+ -webkit-overflow-scrolling: touch;
99
  }
100
 
101
  #fancybox-error {
111
  }
112
 
113
  #fancybox-img {
114
+ position: absolute;
115
  padding: 0;
116
  margin: 0;
117
  line-height: 0;
124
  display: block;
125
  z-index: 0; /* z-index bug with -webkit-overflow-scrolling */
126
  }
127
+
128
  /* buttons */
129
+
130
  .fancy-ico {
131
  position: absolute;
132
  width: 48px;
152
  #fancybox-prev:hover span, body.rtl #fancybox-next:hover span {
153
  transform: rotate(-360deg);
154
  }
155
+
156
  /* close button */
157
+
158
  #fancybox-close {
159
  top: -24px;
160
  right: -24px;
179
  }
180
 
181
  /* navigation elements */
182
+
183
  #fancybox-prev, #fancybox-next {
184
  top: 50%;
185
  margin-top: -24px;
278
  }
279
 
280
  /* loader animation */
281
+
282
  #fancybox-loading {
283
  position: fixed;
284
  top: 50%;
367
  }
368
 
369
  /* other */
370
+
371
  .fancybox-hidden {
372
  display: none;
373
  }
374
+
375
  #fancybox-content .fancybox-hidden,
376
  #fancybox-tmp .fancybox-hidden {
377
  display: revert;
fancybox/{1.5.2 → 1.5.3}/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.2 (2020/11/09)
12
  * Requires: jQuery v1.7+
13
  *
14
  * Dual licensed under the MIT and GPL licenses:
@@ -395,7 +395,7 @@
395
  complete : _finish
396
  });
397
  } else {
398
- content.fadeTo(currentOpts.changeFade, 0.3, function() {
399
 
400
  content.css('border-width', currentOpts.padding);
401
 
@@ -403,7 +403,7 @@
403
  duration : currentOpts.changeSpeed,
404
  easing : currentOpts.easingChange,
405
  complete : function() {
406
- content.html( tmp.contents() ).fadeTo(currentOpts.changeFade, 1, _finish);
407
  }
408
  });
409
  });
@@ -730,13 +730,21 @@
730
  }
731
 
732
  // scale down to fit viewport, recalculate by ratio based on width and height without border and title
733
- if (currentOpts.autoScale && to.width > view[0]) {
734
- to.width = view[0] - (currentOpts.padding * 2);
735
- to.height = parseInt(to.width / ratio, 10);
 
 
 
 
736
  }
737
  if (currentOpts.autoScale && to.height > view[1]) {
738
- to.height = view[1] - (currentOpts.padding * 2);
739
- to.width = parseInt(to.height * ratio, 10);
 
 
 
 
740
  }
741
 
742
  // calculate position
@@ -790,7 +798,7 @@
790
  currentOpts = selectedOpts = {};
791
 
792
  $('html').css( { '--vertical-scrollbar' : '', '--horizontal-scrollbar' : '' } );
793
- $('html').removeClass('fancybox-active');
794
 
795
  $(document).off('fancybox-cancel fancybox-change fancybox-cleanup fancybox-closed');
796
 
@@ -1083,10 +1091,10 @@
1083
  }
1084
 
1085
  $('body').append(
1086
- tmp = $('<div id="fancybox-tmp"></div>'),
1087
  loading = $('<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>'),
1088
  overlay = $('<div id="fancybox-overlay"></div>'),
1089
- wrap = $('<div id="fancybox-wrap" role="dialog" aria-hidden="true" aria-labelledby="fancybox-title" tabindex="-1"></div>')
1090
  );
1091
 
1092
  wrap.append(
@@ -1094,11 +1102,11 @@
1094
  );
1095
 
1096
  outer.append(
1097
- content = $('<div id="fancybox-content"></div>'),
1098
- close = $('<a id="fancybox-close" href="javascript:;" title="Close" class="fancy-ico" tabindex="1"><span></span></a>'),
1099
  nav_next = $('<a id="fancybox-next" href="javascript:;" title="Next" class="fancy-ico" tabindex="2"><span></span></a>'),
1100
  nav_prev = $('<a id="fancybox-prev" href="javascript:;" title="Previous" class="fancy-ico" tabindex="3"><span></span></a>'),
1101
- title = $('<div id="fancybox-title-wrap"></div>')
1102
  );
1103
 
1104
  close.click($.fancybox.close);
@@ -1156,7 +1164,6 @@
1156
  speedOut : 400,
1157
 
1158
  changeSpeed : 200,
1159
- changeFade : 200,
1160
 
1161
  easingIn : 'swing',
1162
  easingOut : 'swing',
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.3 (2020/11/09)
12
  * Requires: jQuery v1.7+
13
  *
14
  * Dual licensed under the MIT and GPL licenses:
395
  complete : _finish
396
  });
397
  } else {
398
+ content.fadeTo(currentOpts.changeSpeed, 0.3, function() {
399
 
400
  content.css('border-width', currentOpts.padding);
401
 
403
  duration : currentOpts.changeSpeed,
404
  easing : currentOpts.easingChange,
405
  complete : function() {
406
+ content.html( tmp.contents() ).fadeTo(currentOpts.changeSpeed, 1, _finish);
407
  }
408
  });
409
  });
730
  }
731
 
732
  // scale down to fit viewport, recalculate by ratio based on width and height without border and title
733
+ if (to.width > view[0]) {
734
+ if (currentOpts.autoScale) {
735
+ to.width = view[0] - (currentOpts.padding * 2);
736
+ to.height = parseInt(to.width / ratio, 10);
737
+ } else {
738
+ $('html').addClass('fancybox-allowscroll');
739
+ }
740
  }
741
  if (currentOpts.autoScale && to.height > view[1]) {
742
+ if (currentOpts.autoScale) {
743
+ to.height = view[1] - (currentOpts.padding * 2);
744
+ to.width = parseInt(to.height * ratio, 10);
745
+ } else {
746
+ $('html').addClass('fancybox-allowscroll');
747
+ }
748
  }
749
 
750
  // calculate position
798
  currentOpts = selectedOpts = {};
799
 
800
  $('html').css( { '--vertical-scrollbar' : '', '--horizontal-scrollbar' : '' } );
801
+ $('html').removeClass('fancybox-active fancybox-allowscroll');
802
 
803
  $(document).off('fancybox-cancel fancybox-change fancybox-cleanup fancybox-closed');
804
 
1091
  }
1092
 
1093
  $('body').append(
1094
+ tmp = $('<div id="fancybox-tmp"></div>'),
1095
  loading = $('<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>'),
1096
  overlay = $('<div id="fancybox-overlay"></div>'),
1097
+ wrap = $('<div id="fancybox-wrap" role="dialog" aria-hidden="true" aria-labelledby="fancybox-title" tabindex="-1"></div>')
1098
  );
1099
 
1100
  wrap.append(
1102
  );
1103
 
1104
  outer.append(
1105
+ content = $('<div id="fancybox-content"></div>'),
1106
+ close = $('<a id="fancybox-close" href="javascript:;" title="Close" class="fancy-ico" tabindex="1"><span></span></a>'),
1107
  nav_next = $('<a id="fancybox-next" href="javascript:;" title="Next" class="fancy-ico" tabindex="2"><span></span></a>'),
1108
  nav_prev = $('<a id="fancybox-prev" href="javascript:;" title="Previous" class="fancy-ico" tabindex="3"><span></span></a>'),
1109
+ title = $('<div id="fancybox-title-wrap"></div>')
1110
  );
1111
 
1112
  close.click($.fancybox.close);
1164
  speedOut : 400,
1165
 
1166
  changeSpeed : 200,
 
1167
 
1168
  easingIn : 'swing',
1169
  easingOut : 'swing',
fancybox/1.5.3/jquery.fancybox.min.css ADDED
@@ -0,0 +1 @@
 
1
+ html.fancybox-active:not(.fancybox-allowscroll),html.fancybox-active:not(.fancybox-allowscroll) body{touch-action:none;overscroll-behavior:none;-webkit-overflow-scrolling:auto;overflow:hidden;}html.fancybox-active:not(.fancybox-allowscroll) body{margin-right:var(--vertical-scrollbar);margin-bottom:var(--horizontal-scrollbar);}html.fancybox-active:not(.fancybox-allowscroll) body.rtl{margin-right:0;margin-left:var(--vertical-scrollbar);}#fancybox-loading,#fancybox-loading div,#fancybox-overlay,#fancybox-wrap *,#fancybox-wrap *::before,#fancybox-wrap *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}#fancybox-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.7);z-index:111100;display:none;}#fancybox-tmp{padding:0;margin:0;border:0;overflow:auto;display:none;}#fancybox-wrap{position:absolute;top:0;left:0;z-index:111101;display:none;outline:none!important;}#fancybox-outer{position:relative;width:100%;height:100%;box-shadow:0 0 20px #111;-moz-box-shadow:0 0 20px #111;-webkit-box-shadow:0 0 20px #111;background:#fff;}#fancybox-content{position:relative;width:100%;height:100%;overflow:hidden;z-index:111102;border:0 solid #fff;background:#fff;background-clip:padding-box;}#fancybox-content>*{max-width:100%;max-height:100%;-webkit-overflow-scrolling:touch;}#fancybox-error{color:#444;padding:14px;margin:0;}#fancybox-frame,#fancybox-img{width:100%;height:100%;border:none;}#fancybox-img{padding:0;margin:0;line-height:0;vertical-align:top;max-width:none!important;max-height:none!important}#fancybox-frame{display:block;z-index:0}.fancy-ico{position:absolute;width:48px;height:48px;border-radius:50%;}.fancy-ico span{display:block;position:relative;left:12px;top:12px;width:24px;height:24px;border-radius:50%;background:#000;border:2px solid white;box-shadow:0 0 4px #000;transition:transform .25s ease-in-out;}#fancybox-close:hover span,#fancybox-next:hover span,body.rtl #fancybox-prev:hover span{transform:rotate(360deg);}#fancybox-prev:hover span,body.rtl #fancybox-next:hover span{transform:rotate(-360deg);}#fancybox-close{top:-24px;right:-24px;cursor:pointer;z-index:111105;display:none;}#fancybox-close span::after,#fancybox-close span::before{content:'';position:absolute;top:9px;left:4px;width:12px;height:2px;background-color:#fff;}#fancybox-close span::before{transform:rotate(45deg);}#fancybox-close span::after{transform:rotate(-45deg);}#fancybox-prev,#fancybox-next{top:50%;margin-top:-24px;cursor:pointer;z-index:111102;display:none;}#fancybox-next,body.rtl #fancybox-prev{left:auto;right:-24px;}#fancybox-prev,body.rtl #fancybox-next{left:-24px;right:auto;}#fancybox-prev span::after,#fancybox-next span::after{content:'';position:absolute;top:6px;width:8px;height:8px;border-top:2px solid #fff;border-right:2px solid #fff;}#fancybox-prev span::after,body.rtl #fancybox-next span::after{transform:rotate(-135deg);left:7px;}#fancybox-next span::after,body.rtl #fancybox-prev span::after{transform:rotate(45deg);left:initial;right:7px;}#fancybox-title-wrap{z-index:111104;}.fancybox-title-inside{padding-bottom:10px;text-align:center;color:#333;background-color:#fff;position:relative;}.fancybox-title-outside{padding-top:10px;color:#fff;font-weight:600;}.fancybox-title-over{position:absolute;width:100%;bottom:0;left:0;color:#fff;text-align:left;}body.rtl .fancybox-title-over{text-align:right}.fancybox-title-over #fancybox-title{padding:10px;background:rgba(0,0,0,.6);display:block;}.fancybox-title-float{text-align:center;}.fancybox-title-float #fancybox-title{display:table;margin:-12px auto;height:24px;padding:0 15px;line-height:20px;font-size:14px;color:#fff;background:#000;border:2px solid #fff;border-radius:12px;box-shadow:0 0 4px #000;position:relative;z-index:111104;}#fancybox-loading{position:fixed;top:50%;left:50%;width:40px;height:40px;margin-top:-20px;margin-left:-20px;background-color:rgba(0,0,0,.9);border-radius:5px;cursor:pointer;overflow:hidden;z-index:111104;display:none;}#fancybox-loading div{transform-origin:20px 20px;animation:fancybox-loading 1.2s linear infinite;}#fancybox-loading div::after{content:'';display:block;position:absolute;top:7px;left:19px;width:2px;height:7px;border-radius:20%;background:#fff;}#fancybox-loading div:nth-child(1){transform:rotate(0deg);animation-delay:-1.1s;}#fancybox-loading div:nth-child(2){transform:rotate(30deg);animation-delay:-1s;}#fancybox-loading div:nth-child(3){transform:rotate(60deg);animation-delay:-.9s;}#fancybox-loading div:nth-child(4){transform:rotate(90deg);animation-delay:-.8s;}#fancybox-loading div:nth-child(5){transform:rotate(120deg);animation-delay:-.7s;}#fancybox-loading div:nth-child(6){transform:rotate(150deg);animation-delay:-.6s;}#fancybox-loading div:nth-child(7){transform:rotate(180deg);animation-delay:-.5s;}#fancybox-loading div:nth-child(8){transform:rotate(210deg);animation-delay:-.4s;}#fancybox-loading div:nth-child(9){transform:rotate(240deg);animation-delay:-.3s;}#fancybox-loading div:nth-child(10){transform:rotate(270deg);animation-delay:-.2s;}#fancybox-loading div:nth-child(11){transform:rotate(300deg);animation-delay:-.1s;}#fancybox-loading div:nth-child(12){transform:rotate(330deg);animation-delay:0s;}@keyframes fancybox-loading{0%{opacity:1}100%{opacity:0}}.fancybox-hidden{display:none;}#fancybox-content .fancybox-hidden,#fancybox-tmp .fancybox-hidden{display:revert;}
fancybox/1.5.3/jquery.fancybox.min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e){var t,n,o,i,a,r,c,d,l,s,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,O="",T=!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(T=!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(T=!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,T=!1,(C=new Image).onerror=function(){_error(m.txt.error.image)},C.onload=function(){T=!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,T=!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 T=!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(T=!0,e(r.add(o)).off(),e(window).off("resize.fb"),h=w.type,x=v,y=g,(w=m).overlayShow?(o.css({"background-color":w.overlayColor,opacity:w.overlayOpacity,cursor:w.hideOnOverlayClick?"pointer":"auto"}),o.is(":visible")||o.fadeIn("fast")):o.hide(),_process_title(),u=_get_zoom_to(),i.is(":visible"))return e(c.add(l).add(s)).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(O=w.title||"",S=0,d.empty().removeAttr("style").removeClass(),!1!==w.titleShow)if((O=e.isFunction(w.titleFormat)?w.titleFormat(O,x,y,w):_format_title(O))&&""!==O){switch(d.addClass("fancybox-title-"+w.titlePosition).html(O).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){T?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)&&l.attr("title",w.txt.prev).show(),(w.cyclic||y!=x.length-1)&&s.attr("title",w.txt.next).show()))},_finish=function(){O&&O.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(),T=!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 s.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 l.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,n.width>t[0]&&(w.autoScale?(n.width=t[0]-2*w.padding,n.height=parseInt(n.width/o,10)):e("html").addClass("fancybox-allowscroll")),w.autoScale&&n.height>t[1]&&(w.autoScale?(n.height=t[1]-2*w.padding,n.width=parseInt(n.height*o,10)):e("html").addClass("fancybox-allowscroll")),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 fancybox-allowscroll"),e(document).off("fancybox-cancel fancybox-change fancybox-cleanup fancybox-closed"),T=!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(),T)return!1;T=!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(!T){if(T=!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){T||(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(){T=!0,_abort(),e(document).trigger("fancybox-cancel",[v,g,m]),m&&!1===m.onCancel(v,g,m)?T=!1:(e(v[g]).focus(),e(c.add(l).add(s)).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(){T||i.is(":hidden")||(T=!0,_abort(),e(document).trigger("fancybox-cleanup",[x,y,w]),w&&!1===w.onCleanup(x,y,w)?T=!1:(e(x[y]).focus(),e(c.add(l).add(s)).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=[];T=!0,_process_title(),u=_get_zoom_to(),c.is(":visible")&&e.push(c)&&c.hide(),l.is(":visible")&&e.push(l)&&l.hide(),s.is(":visible")&&e.push(s)&&s.hide(),i.animate(u,{duration:w.changeSpeed,easing:w.easingChange,complete:function(){O&&O.length&&d.fadeIn(),e.forEach((function(e){e.show()})),T=!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>'),s=e('<a id="fancybox-next" href="javascript:;" title="Next" class="fancy-ico" tabindex="2"><span></span></a>'),l=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),l.click((function(t){t.preventDefault(),e.fancybox.prev()})),s.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:"#000",overlayOpacity:.6,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);
inc/class-easyfancybox-admin.php CHANGED
@@ -4,11 +4,6 @@
4
  */
5
  class easyFancyBox_Admin {
6
 
7
- /**
8
- * Holds the values to be used in the fields callbacks
9
- */
10
- private static $screen_id;
11
-
12
  private static $compat_pro_min = '1.8';
13
 
14
  private static $do_compat_warning = false;
@@ -16,9 +11,10 @@ class easyFancyBox_Admin {
16
  /**
17
  * ADMIN METHODS
18
  */
19
-
20
  public static function add_media_settings_section()
21
  {
 
 
22
  add_settings_section( 'fancybox_section', '<a name="fancybox"></a>'.__( 'FancyBox', 'easy-fancybox' ), function() { include EASY_FANCYBOX_DIR . '/views/settings-section-intro.php'; }, 'media' );
23
  }
24
 
@@ -42,6 +38,75 @@ class easyFancyBox_Admin {
42
  'load-'.$screen_id,
43
  array( __CLASS__, 'help_tab' )
44
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  }
46
 
47
  public static function help_tab()
@@ -273,7 +338,7 @@ class easyFancyBox_Admin {
273
  } else {
274
  $output[] = $args['title'];
275
  }
276
- $output[] = '<input type="number" step="'.$args['step'].'" min="'.$args['min'].'" max="'.$args['max'].'" name="'.$args['id'].'" id="'.$args['id'].'" value="'.esc_attr( get_option($args['id'], $args['default']) ).'" class="'.$args['class'].'"'. disabled( isset( $args['status']) && 'disabled' == $args['status'], true, false ) .' /> ';
277
  if ( empty( $args['label_for'] ) ) {
278
  $output[] = '<label for="'.$args['id'].'">'.$args['description'].'</label> ';
279
  } else {
4
  */
5
  class easyFancyBox_Admin {
6
 
 
 
 
 
 
7
  private static $compat_pro_min = '1.8';
8
 
9
  private static $do_compat_warning = false;
11
  /**
12
  * ADMIN METHODS
13
  */
 
14
  public static function add_media_settings_section()
15
  {
16
+ add_filter( 'easy_fancybox_enable', function() { return easyFancyBox::$options['Global']['options']['Enable']['options']; } );
17
+
18
  add_settings_section( 'fancybox_section', '<a name="fancybox"></a>'.__( 'FancyBox', 'easy-fancybox' ), function() { include EASY_FANCYBOX_DIR . '/views/settings-section-intro.php'; }, 'media' );
19
  }
20
 
38
  'load-'.$screen_id,
39
  array( __CLASS__, 'help_tab' )
40
  );
41
+
42
+ add_filter( 'easy_fancybox_enable', function() {
43
+ return array (
44
+ 'IMG' => array (
45
+ 'id' => 'fancybox_enableImg',
46
+ 'default' => ( function_exists( 'is_plugin_active_for_network' ) && is_plugin_active_for_network( EASY_FANCYBOX_BASENAME ) ) ? '' : '1',
47
+ 'description' => '<strong>' . esc_html__( 'Images', 'easy-fancybox' ) . '</strong>' . ( get_option('fancybox_enableImg') ? ' &mdash; <a href="?page=easy_fancybox&tab=images">' . translate( 'Settings' ) . '</a>' : '' )
48
+ ),
49
+ 'Inline' => array (
50
+ 'id' => 'fancybox_enableInline',
51
+ 'default' => '',
52
+ 'description' => '<strong>' . esc_html__( 'Inline content', 'easy-fancybox' ) . '</strong>' . '</strong>' . ( get_option('fancybox_enableInline') ? ' &mdash; <a href="?page=easy_fancybox&tab=inline">' . translate( 'Settings' ) . '</a>' : '' )
53
+ ),
54
+ 'PDF' => array (
55
+ 'id' => 'fancybox_enablePDF',
56
+ 'default' => '',
57
+ 'description' => '<strong>' . esc_html__( 'PDF', 'easy-fancybox' ) . '</strong>' . '</strong>' . ( get_option('fancybox_enablePDF') ? ' &mdash; <a href="?page=easy_fancybox&tab=pdf">' . translate( 'Settings' ) . '</a>' : '' )
58
+ ),
59
+ 'SWF' => array (
60
+ 'id' => 'fancybox_enableSWF',
61
+ 'default' => '',
62
+ 'description' => '<strong>' . esc_html__( 'SWF', 'easy-fancybox' ) . '</strong>' . '</strong>' . ( get_option('fancybox_enableSWF') ? ' &mdash; <a href="?page=easy_fancybox&tab=swf">' . translate( 'Settings' ) . '</a>' : '' )
63
+ ),
64
+ 'SVG' => array (
65
+ 'id' => 'fancybox_enableSVG',
66
+ 'default' => '',
67
+ 'description' => '<strong>' . esc_html__( 'SVG', 'easy-fancybox' ) . '</strong>' . '</strong>' . ( get_option('fancybox_enableSVG') ? ' &mdash; <a href="?page=easy_fancybox&tab=svg">' . translate( 'Settings' ) . '</a>' : '' )
68
+ ),
69
+ 'VideoPress' => array (
70
+ 'id' => 'fancybox_enableVideoPress',
71
+ 'default' => '',
72
+ 'status' => 'disabled',
73
+ 'description' => '<strong>' . esc_html__( 'VideoPress', 'easy-fancybox' ) . '</strong>' . ' ' . '<em><a href="'.easyFancyBox::$pro_plugin_url.'">' . esc_html__('Make available &raquo;','easy-fancybox') . '</a></em>'
74
+ ),
75
+ 'YouTube' => array (
76
+ 'id' => 'fancybox_enableYoutube',
77
+ 'default' => '',
78
+ 'description' => '<strong>' . esc_html__( 'YouTube', 'easy-fancybox' ) . '</strong>' . '</strong>' . ( get_option('fancybox_enableYouTube') ? ' &mdash; <a href="?page=easy_fancybox&tab=youtube">' . translate( 'Settings' ) . '</a>' : '' )
79
+ ),
80
+ 'Vimeo' => array (
81
+ 'id' => 'fancybox_enableVimeo',
82
+ 'default' => '',
83
+ 'description' => '<strong>' . esc_html__( 'Vimeo', 'easy-fancybox' ) . '</strong>' . '</strong>' . ( get_option('fancybox_enableVimeo') ? ' &mdash; <a href="?page=easy_fancybox&tab=vimeo">' . translate( 'Settings' ) . '</a>' : '' )
84
+ ),
85
+ 'Dailymotion' => array (
86
+ 'id' => 'fancybox_enableDailymotion',
87
+ 'default' => '',
88
+ 'description' => '<strong>' . esc_html__( 'Dailymotion', 'easy-fancybox' ) . '</strong>' . '</strong>' . ( get_option('fancybox_enableDailymotion') ? ' &mdash; <a href="?page=easy_fancybox&tab=dailymotion">' . translate( 'Settings' ) . '</a>' : '' )
89
+ ),
90
+ 'Instagram' => array (
91
+ 'id' => 'fancybox_enableInstagram',
92
+ 'status' => 'disabled',
93
+ 'default' => '',
94
+ 'description' => '<strong>' . esc_html__( 'Instagram', 'easy-fancybox' ) . '</strong>' . ' ' . '<em><a href="'.easyFancyBox::$pro_plugin_url.'">' . esc_html__('Make available &raquo;','easy-fancybox') . '</a></em>'
95
+ ),
96
+ 'GoogleMaps' => array (
97
+ 'id' => 'fancybox_enableGoogleMaps',
98
+ 'status' => 'disabled',
99
+ 'default' => '',
100
+ 'description' => '<strong>' . esc_html__( 'Google Maps', 'easy-fancybox' ) . '</strong>' . ' ' . '<em><a href="'.easyFancyBox::$pro_plugin_url.'">' . esc_html__('Make available &raquo;','easy-fancybox') . '</a></em>'
101
+ ),
102
+ 'iFrame' => array (
103
+ 'id' => 'fancybox_enableiFrame',
104
+ 'default' => '',
105
+ 'description' => '<strong>' . esc_html__('iFrames','easy-fancybox') . '</strong>' . '</strong>' . ( get_option('fancybox_enableiFrame') ? ' &mdash; <a href="?page=easy_fancybox&tab=iframe">' . translate( 'Settings' ) . '</a>' : '' )
106
+ )
107
+ );
108
+ } );
109
+
110
  }
111
 
112
  public static function help_tab()
338
  } else {
339
  $output[] = $args['title'];
340
  }
341
+ $output[] = '<input type="number" step="' . ( isset( $args['step'] ) ? $args['step'] : '' ) . '" min="' . ( isset( $args['min'] ) ? $args['min'] : '' ) . '" max="' . ( isset( $args['max'] ) ? $args['max'] : '' ) . '" name="'.$args['id'].'" id="'.$args['id'].'" value="'.esc_attr( get_option($args['id'], $args['default']) ).'" class="'.$args['class'].'"'. disabled( isset( $args['status']) && 'disabled' == $args['status'], true, false ) .' /> ';
342
  if ( empty( $args['label_for'] ) ) {
343
  $output[] = '<label for="'.$args['id'].'">'.$args['description'].'</label> ';
344
  } else {
inc/fancybox-classic-options.php CHANGED
@@ -687,18 +687,6 @@ $efb_options = array (
687
  'sanitize_callback' => 'intval',
688
  'class' => 'small-text',
689
  'default' => '',
690
- ),
691
- 'changeFade' => array (
692
- 'id' => 'fancybox_changeFade',
693
- 'title' => esc_html__('Fade speed','easy-fancybox'),
694
- 'label_for' => 'fancybox_changeFade',
695
- 'input' => 'number',
696
- 'step' => '1',
697
- 'min' => '0',
698
- 'max' => '6000',
699
- 'sanitize_callback' => 'intval',
700
- 'class' => 'small-text',
701
- 'default' => '',
702
  'description' => '<br />' . esc_html__('Duration in milliseconds. Higher is slower.','easy-fancybox') . ' <em>' . esc_html__('Default:','easy-fancybox') . ' 300</em><br /><br />'
703
  ),
704
  'autoSelector' => array (
687
  'sanitize_callback' => 'intval',
688
  'class' => 'small-text',
689
  'default' => '',
 
 
 
 
 
 
 
 
 
 
 
 
690
  'description' => '<br />' . esc_html__('Duration in milliseconds. Higher is slower.','easy-fancybox') . ' <em>' . esc_html__('Default:','easy-fancybox') . ' 300</em><br /><br />'
691
  ),
692
  'autoSelector' => array (
inc/fancybox-legacy-options.php CHANGED
@@ -268,7 +268,7 @@ $efb_options = array (
268
  'max' => '80',
269
  'sanitize_callback' => 'intval',
270
  'class' => 'small-text',
271
- 'default' => '20',
272
  'description' => '<em>' . esc_html__('Default:','easy-fancybox') . ' 40</em><br />'
273
  ),
274
 
@@ -276,6 +276,13 @@ $efb_options = array (
276
  'hide' => true,
277
  'description' => '<br /><strong>' . esc_html__('Behavior','easy-fancybox') . '</strong><br />'
278
  ),
 
 
 
 
 
 
 
279
  'enableEscapeButton' => array (
280
  'id' => 'fancybox_enableEscapeButton',
281
  'input' => 'checkbox',
268
  'max' => '80',
269
  'sanitize_callback' => 'intval',
270
  'class' => 'small-text',
271
+ 'default' => '40',
272
  'description' => '<em>' . esc_html__('Default:','easy-fancybox') . ' 40</em><br />'
273
  ),
274
 
276
  'hide' => true,
277
  'description' => '<br /><strong>' . esc_html__('Behavior','easy-fancybox') . '</strong><br />'
278
  ),
279
+ 'centerOnScroll' => array (
280
+ 'id' => 'fancybox_centerOnScroll',
281
+ 'input' => 'checkbox',
282
+ 'noquotes' => true,
283
+ 'default' => '',
284
+ 'description' => __('Center while scrolling (always disabled on touch devices and when content, including the title, might be larger than the viewport)','easy-fancybox')
285
+ ),
286
  'enableEscapeButton' => array (
287
  'id' => 'fancybox_enableEscapeButton',
288
  'input' => 'checkbox',
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.3
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
 
@@ -158,13 +158,17 @@ See the advanced [Easy FancyBox FAQ's](https://premium.status301.com/knowledge-b
158
 
159
  == Upgrade Notice ==
160
 
161
- = 1.9.3 =
162
 
163
  Bugfix release.
164
 
165
  == Changelog ==
166
 
167
- = 1.9.3 =
 
 
 
 
168
  * FIX: upgrade notice
169
  * FIX: overlay opacity ignored (classic)
170
  * FIX: onStart not a function (legacy)
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.4
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
 
158
 
159
  == Upgrade Notice ==
160
 
161
+ = 1.9.4 =
162
 
163
  Bugfix release.
164
 
165
  == Changelog ==
166
 
167
+ = 1.9.4 =
168
+ * FIX: Classic large content scroll
169
+ * FIX: Classic gallery change fade
170
+ * FIX: Classic gallery overflow flicker
171
+ * FIX: Legacy float title position
172
  * FIX: upgrade notice
173
  * FIX: overlay opacity ignored (classic)
174
  * FIX: onStart not a function (legacy)
uninstall.php CHANGED
@@ -87,7 +87,7 @@ class easyFancyBox_Uninstall {
87
  delete_option( 'fancybox_height' );
88
  delete_option( 'fancybox_padding' );
89
  delete_option( 'fancybox_margin' );
90
- delete_option( 'fancybox_centerOnScroll' );
91
  delete_option( 'fancybox_enableEscapeButton' );
92
  delete_option( 'fancybox_autoScale' );
93
  delete_option( 'fancybox_speedIn' );
87
  delete_option( 'fancybox_height' );
88
  delete_option( 'fancybox_padding' );
89
  delete_option( 'fancybox_margin' );
90
+ delete_option( 'fancybox_centerOnScroll' ); // fb1
91
  delete_option( 'fancybox_enableEscapeButton' );
92
  delete_option( 'fancybox_autoScale' );
93
  delete_option( 'fancybox_speedIn' );
views/settings-field-media.php CHANGED
@@ -1,80 +1,4 @@
1
- <?php
2
-
3
- if ( property_exists( 'easyFancyBox', '$options' ) && is_array( easyFancyBox::$options ) && ! empty( $args['Global']['backwardcompatible'] ) && isset( $args['Global']['options']['Enable']['options'] ) ) {
4
- $options = $args['Global']['options']['Enable']['options'];
5
- } else {
6
- $options = apply_filters(
7
- 'easy_fancybox_enable',
8
- array (
9
- 'IMG' => array (
10
- 'id' => 'fancybox_enableImg',
11
- 'default' => ( function_exists( 'is_plugin_active_for_network' ) && is_plugin_active_for_network( EASY_FANCYBOX_BASENAME ) ) ? '' : '1',
12
- 'description' => '<strong>' . esc_html__( 'Images', 'easy-fancybox' ) . '</strong>' . ( get_option('fancybox_enableImg') ? ' &mdash; <a href="?page=easy_fancybox&tab=images">' . translate( 'Settings' ) . '</a>' : '' )
13
- ),
14
- 'Inline' => array (
15
- 'id' => 'fancybox_enableInline',
16
- 'default' => '',
17
- 'description' => '<strong>' . esc_html__( 'Inline content', 'easy-fancybox' ) . '</strong>' . '</strong>' . ( get_option('fancybox_enableInline') ? ' &mdash; <a href="?page=easy_fancybox&tab=inline">' . translate( 'Settings' ) . '</a>' : '' )
18
- ),
19
- 'PDF' => array (
20
- 'id' => 'fancybox_enablePDF',
21
- 'default' => '',
22
- 'description' => '<strong>' . esc_html__( 'PDF', 'easy-fancybox' ) . '</strong>' . '</strong>' . ( get_option('fancybox_enablePDF') ? ' &mdash; <a href="?page=easy_fancybox&tab=pdf">' . translate( 'Settings' ) . '</a>' : '' )
23
- ),
24
- 'SWF' => array (
25
- 'id' => 'fancybox_enableSWF',
26
- 'default' => '',
27
- 'description' => '<strong>' . esc_html__( 'SWF', 'easy-fancybox' ) . '</strong>' . '</strong>' . ( get_option('fancybox_enableSWF') ? ' &mdash; <a href="?page=easy_fancybox&tab=swf">' . translate( 'Settings' ) . '</a>' : '' )
28
- ),
29
- 'SVG' => array (
30
- 'id' => 'fancybox_enableSVG',
31
- 'default' => '',
32
- 'description' => '<strong>' . esc_html__( 'SVG', 'easy-fancybox' ) . '</strong>' . '</strong>' . ( get_option('fancybox_enableSVG') ? ' &mdash; <a href="?page=easy_fancybox&tab=svg">' . translate( 'Settings' ) . '</a>' : '' )
33
- ),
34
- 'VideoPress' => array (
35
- 'id' => 'fancybox_enableVideoPress',
36
- 'default' => '',
37
- 'status' => 'disabled',
38
- 'description' => '<strong>' . esc_html__( 'VideoPress', 'easy-fancybox' ) . '</strong>' . ' ' . '<em><a href="'.easyFancyBox::$pro_plugin_url.'">' . esc_html__('Make available &raquo;','easy-fancybox') . '</a></em>'
39
- ),
40
- 'YouTube' => array (
41
- 'id' => 'fancybox_enableYoutube',
42
- 'default' => '',
43
- 'description' => '<strong>' . esc_html__( 'YouTube', 'easy-fancybox' ) . '</strong>' . '</strong>' . ( get_option('fancybox_enableYouTube') ? ' &mdash; <a href="?page=easy_fancybox&tab=youtube">' . translate( 'Settings' ) . '</a>' : '' )
44
- ),
45
- 'Vimeo' => array (
46
- 'id' => 'fancybox_enableVimeo',
47
- 'default' => '',
48
- 'description' => '<strong>' . esc_html__( 'Vimeo', 'easy-fancybox' ) . '</strong>' . '</strong>' . ( get_option('fancybox_enableVimeo') ? ' &mdash; <a href="?page=easy_fancybox&tab=vimeo">' . translate( 'Settings' ) . '</a>' : '' )
49
- ),
50
- 'Dailymotion' => array (
51
- 'id' => 'fancybox_enableDailymotion',
52
- 'default' => '',
53
- 'description' => '<strong>' . esc_html__( 'Dailymotion', 'easy-fancybox' ) . '</strong>' . '</strong>' . ( get_option('fancybox_enableDailymotion') ? ' &mdash; <a href="?page=easy_fancybox&tab=dailymotion">' . translate( 'Settings' ) . '</a>' : '' )
54
- ),
55
- 'Instagram' => array (
56
- 'id' => 'fancybox_enableInstagram',
57
- 'status' => 'disabled',
58
- 'default' => '',
59
- 'description' => '<strong>' . esc_html__( 'Instagram', 'easy-fancybox' ) . '</strong>' . ' ' . '<em><a href="'.easyFancyBox::$pro_plugin_url.'">' . esc_html__('Make available &raquo;','easy-fancybox') . '</a></em>'
60
- ),
61
- 'GoogleMaps' => array (
62
- 'id' => 'fancybox_enableGoogleMaps',
63
- 'status' => 'disabled',
64
- 'default' => '',
65
- 'description' => '<strong>' . esc_html__( 'Google Maps', 'easy-fancybox' ) . '</strong>' . ' ' . '<em><a href="'.easyFancyBox::$pro_plugin_url.'">' . esc_html__('Make available &raquo;','easy-fancybox') . '</a></em>'
66
- ),
67
- 'iFrame' => array (
68
- 'id' => 'fancybox_enableiFrame',
69
- 'default' => '',
70
- 'description' => '<strong>' . esc_html__('iFrames','easy-fancybox') . '</strong>' . '</strong>' . ( get_option('fancybox_enableiFrame') ? ' &mdash; <a href="?page=easy_fancybox&tab=iframe">' . translate( 'Settings' ) . '</a>' : '' )
71
- )
72
- )
73
- );
74
- };
75
- ?>
76
-
77
- <?php foreach( $options as $key => $value ) : if ( empty( $value['id'] ) ) continue; ?>
78
  <p>
79
  <label>
80
  <input type="checkbox" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="1"<?php checked( get_option( $value['id'], $value['default'] ) ); disabled( ! empty( $value['status'] ) ) ?>>
1
+ <?php foreach( apply_filters( 'easy_fancybox_enable', array() ) as $key => $value ) : if ( empty( $value['id'] ) ) continue; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  <p>
3
  <label>
4
  <input type="checkbox" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="1"<?php checked( get_option( $value['id'], $value['default'] ) ); disabled( ! empty( $value['status'] ) ) ?>>
views/settings-field-version.php CHANGED
@@ -16,10 +16,9 @@ if ( ! array_key_exists( $selected, FANCYBOX_VERSIONS ) ) {
16
  <?php } ?>
17
  </select>
18
  <p class="description">
19
- <?php printf( /* translators: %s: FancyBox Classic Reloaded */ esc_html__( 'Choose %s for the classic FancyBox with added swipe support for touch devices and accessibility improvements.', 'easy-fancybox' ), '<strong>' . esc_html__( 'Classic Reloaded', 'easy-fancybox' ) . '</strong>' ); ?>
20
- <?php printf( /* translators: %s: FancyBox Legacy */ esc_html__( 'Choose %s if you wish to keep backward support for SWF and/or Internet Explorer versions 8 and below.', 'easy-fancybox' ), '<strong>' . esc_html__( 'Legacy', 'easy-fancybox' ) . '</strong>' ); ?>
21
- <br>
22
  <em>
23
- <?php printf( /* translators: %1$s: fancyBox 2, %2$s: Support Forum (linked) */ esc_html__( 'The integration of %1$s is currently in beta. You can try it out but some features may not work as expected. Please let us know on the %2$s.', 'easy-fancybox' ), '<strong>' . esc_html__( 'fancyBox 2', 'easy-fancybox' ) . '</strong>', '<a href="https://wordpress.org/support/plugin/easy-fancybox/" target="_blank">'.esc_html__( 'Support Forum', 'easy-fancybox' ).'</a>' ); ?>
24
  </em>
25
  </p>
16
  <?php } ?>
17
  </select>
18
  <p class="description">
19
+ <?php printf( /* translators: %s: Legacy */ esc_html__( 'Choose %s if you wish to keep backward support for SWF and/or Internet Explorer versions 8 and below.', 'easy-fancybox' ), '<strong>' . esc_html__( 'Legacy', 'easy-fancybox' ) . '</strong>' ); ?>
20
+ <?php printf( /* translators: %s: Classic Reloaded */ esc_html__( 'Choose %s for the classic FancyBox with added swipe support for touch devices and accessibility improvements.', 'easy-fancybox' ), '<strong>' . esc_html__( 'Classic Reloaded', 'easy-fancybox' ) . '</strong>' ); ?>
 
21
  <em>
22
+ <?php printf( /* translators: %1$s: fancyBox 2, %2$s: Support Forum (https://wordpress.org/support/plugin/easy-fancybox/) */ esc_html__( 'The integration of %1$s is currently in beta. You can try it out but some features may not work as expected. Please let us know on the %2$s.', 'easy-fancybox' ), '<strong>' . esc_html__( 'fancyBox 2', 'easy-fancybox' ) . '</strong>', '<a href="https://wordpress.org/support/plugin/easy-fancybox/" target="_blank">'.esc_html__( 'Support Forum', 'easy-fancybox' ).'</a>' ); ?>
23
  </em>
24
  </p>