|
1 | 1 | // ================================================== |
2 | | -// fancyBox v3.5.2 |
| 2 | +// fancyBox v3.5.3 |
3 | 3 | // |
4 | 4 | // Licensed GPLv3 for open source use |
5 | 5 | // or fancyBox Commercial License for commercial use |
|
111 | 111 | iframe: { |
112 | 112 | // Iframe template |
113 | 113 | tpl: |
114 | | - '<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen allow="autoplay; fullscreen" src=""></iframe>', |
| 114 | + '<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>', |
115 | 115 |
|
116 | 116 | // Preload iframe before displaying it |
117 | 117 | // This allows to calculate iframe content width and height |
|
394 | 394 | ZOOM: "Zoom" |
395 | 395 | }, |
396 | 396 | de: { |
397 | | - CLOSE: "Schliessen", |
| 397 | + CLOSE: "Schließen", |
398 | 398 | NEXT: "Weiter", |
399 | | - PREV: "Zurück", |
400 | | - ERROR: "Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.", |
| 399 | + PREV: "Zurück", |
| 400 | + ERROR: "Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.", |
401 | 401 | PLAY_START: "Diaschau starten", |
402 | 402 | PLAY_STOP: "Diaschau beenden", |
403 | 403 | FULL_SCREEN: "Vollbild", |
404 | 404 | THUMBS: "Vorschaubilder", |
405 | 405 | DOWNLOAD: "Herunterladen", |
406 | 406 | SHARE: "Teilen", |
407 | | - ZOOM: "Maßstab" |
| 407 | + ZOOM: "Vergrößern" |
408 | 408 | } |
409 | 409 | } |
410 | 410 | }; |
|
645 | 645 | var arr = obj.opts.i18n[obj.opts.lang] || obj.opts.i18n.en; |
646 | 646 |
|
647 | 647 | return str.replace(/\{\{(\w+)\}\}/g, function(match, n) { |
648 | | - var value = arr[n]; |
649 | | - |
650 | | - if (value === undefined) { |
651 | | - return match; |
652 | | - } |
653 | | - |
654 | | - return value; |
| 648 | + return arr[n] === undefined ? match : arr[n]; |
655 | 649 | }); |
656 | 650 | }, |
657 | 651 |
|
|
922 | 916 | self.$refs.stage.hide(); |
923 | 917 | } |
924 | 918 |
|
925 | | - setTimeout(function() { |
926 | | - self.$refs.stage.show(); |
| 919 | + setTimeout( |
| 920 | + function() { |
| 921 | + self.$refs.stage.show(); |
927 | 922 |
|
928 | | - self.update(e); |
929 | | - }, $.fancybox.isMobile ? 600 : 250); |
| 923 | + self.update(e); |
| 924 | + }, |
| 925 | + $.fancybox.isMobile ? 600 : 250 |
| 926 | + ); |
930 | 927 | } |
931 | 928 | }); |
932 | 929 |
|
|
949 | 946 | // Enable keyboard navigation |
950 | 947 | // ========================== |
951 | 948 |
|
952 | | - if (!current.opts.keyboard || e.ctrlKey || e.altKey || e.shiftKey || $(e.target).is("input") || $(e.target).is("textarea")) { |
| 949 | + if (!current.opts.keyboard || e.ctrlKey || e.altKey || e.shiftKey || $(e.target).is("input,textarea,video,audio")) { |
953 | 950 | return; |
954 | 951 | } |
955 | 952 |
|
|
1325 | 1322 | scaleX: scaleX, |
1326 | 1323 | scaleY: scaleY |
1327 | 1324 | }, |
1328 | | - duration || 330, |
| 1325 | + duration || 366, |
1329 | 1326 | function() { |
1330 | 1327 | self.isAnimating = false; |
1331 | 1328 | } |
|
1366 | 1363 | scaleX: end.width / $content.width(), |
1367 | 1364 | scaleY: end.height / $content.height() |
1368 | 1365 | }, |
1369 | | - duration || 330, |
| 1366 | + duration || 366, |
1370 | 1367 | function() { |
1371 | 1368 | self.isAnimating = false; |
1372 | 1369 | } |
|
1986 | 1983 | $slide = slide.$slide, |
1987 | 1984 | $iframe; |
1988 | 1985 |
|
1989 | | - // Fix responsive iframes on iOS (along with `position:absolute;` for iframe element) |
1990 | | - if ($.fancybox.isMobile) { |
1991 | | - opts.css.overflow = "scroll"; |
1992 | | - } |
1993 | | - |
1994 | 1986 | slide.$content = $('<div class="fancybox-content' + (opts.preload ? " fancybox-is-hidden" : "") + '"></div>') |
1995 | 1987 | .css(opts.css) |
1996 | 1988 | .appendTo($slide); |
|
2034 | 2026 | $body = $contents.find("body"); |
2035 | 2027 | } catch (ignore) {} |
2036 | 2028 |
|
2037 | | - // Calculate contnet dimensions if it is accessible |
| 2029 | + // Calculate content dimensions, if it is accessible |
2038 | 2030 | if ($body && $body.length && $body.children().length) { |
2039 | 2031 | // Avoid scrolling to top (if multiple instances) |
2040 | 2032 | $slide.css("overflow", "visible"); |
|
2312 | 2304 | current = slide || self.current, |
2313 | 2305 | caption = current.opts.caption, |
2314 | 2306 | $caption = self.$refs.caption, |
2315 | | - captionH = false; |
| 2307 | + captionH = false, |
| 2308 | + preventOverlap = current.opts.preventCaptionOverlap; |
| 2309 | + |
| 2310 | + $caption.toggleClass("fancybox-caption--separate", preventOverlap); |
2316 | 2311 |
|
2317 | | - if (current.opts.preventCaptionOverlap && caption && caption.length) { |
| 2312 | + if (preventOverlap && caption && caption.length) { |
2318 | 2313 | if (current.pos !== self.currPos) { |
2319 | 2314 | $caption = $caption |
2320 | 2315 | .clone() |
|
2649 | 2644 | "iframe", |
2650 | 2645 | "object", |
2651 | 2646 | "embed", |
| 2647 | + "video", |
| 2648 | + "audio", |
2652 | 2649 | "[contenteditable]", |
2653 | 2650 | '[tabindex]:not([tabindex^="-"])' |
2654 | 2651 | ].join(","), |
|
3041 | 3038 | }); |
3042 | 3039 |
|
3043 | 3040 | $.fancybox = { |
3044 | | - version: "3.5.2", |
| 3041 | + version: "3.5.3", |
3045 | 3042 | defaults: defaults, |
3046 | 3043 |
|
3047 | 3044 | // Get current instance and execute a command. |
|
3445 | 3442 | }, |
3446 | 3443 | paramPlace: 8, |
3447 | 3444 | type: "iframe", |
3448 | | - url: "//www.youtube-nocookie.com/embed/$4", |
3449 | | - thumb: "//img.youtube.com/vi/$4/hqdefault.jpg" |
| 3445 | + url: "https://www.youtube-nocookie.com/embed/$4", |
| 3446 | + thumb: "https://img.youtube.com/vi/$4/hqdefault.jpg" |
3450 | 3447 | }, |
3451 | 3448 |
|
3452 | 3449 | vimeo: { |
|
4450 | 4447 | newPos.width = self.contentStartPos.width; |
4451 | 4448 | newPos.height = self.contentStartPos.height; |
4452 | 4449 |
|
4453 | | - $.fancybox.animate(self.$content, newPos, 330); |
| 4450 | + $.fancybox.animate(self.$content, newPos, 366); |
4454 | 4451 | }; |
4455 | 4452 |
|
4456 | 4453 | Guestures.prototype.endZooming = function() { |
|
4944 | 4941 | if (instance) { |
4945 | 4942 | // If image is zooming, then force to stop and reposition properly |
4946 | 4943 | if (instance.current && instance.current.type === "image" && instance.isAnimating) { |
4947 | | - instance.current.$content.css("transition", "none"); |
4948 | | - |
4949 | 4944 | instance.isAnimating = false; |
4950 | 4945 |
|
4951 | 4946 | instance.update(true, true, 0); |
| 4947 | + |
| 4948 | + if (!instance.isComplete) { |
| 4949 | + instance.complete(); |
| 4950 | + } |
4952 | 4951 | } |
4953 | 4952 |
|
4954 | 4953 | instance.trigger("onFullscreenChange", isFullscreen); |
|
0 commit comments