JSFiddle - React, Tailwind, and code Playground
by wisegorilla
JavaScript
// ==================================================
// fancyBox v3.5.7
//
// Licensed GPLv3 for open source use
// or fancyBox Commercial License for commercial use
//
// http://fancyapps.com/fancybox/
// Copyright 2019 fancyApps
//
// ==================================================
! function(t, e, n, o) {
"use strict";
function i(t, e) {
var o, i, a, s = [],
r = 0;
t && t.isDefaultPrevented() || (t.preventDefault(), e = e || {}, t && t.data && (e = h(t.data.options, e)), o = e.$target || n(t.currentTarget).trigger("blur"), (a = n.fancybox.getInstance()) && a.$trigger && a.$trigger.is(o) || (e.selector ? s = n(e.selector) : (i = o.attr("data-fancybox") || "", i ? (s = t.data ? t.data.items : [], s = s.length ? s.filter('[data-fancybox="' + i + '"]') : n('[data-fancybox="' + i + '"]')) : s = [o]), r = n(s).index(o), r < 0 && (r = 0), a = n.fancybox.open(s, e, r), a.$trigger = o))
}
if (t.console = t.console || {
info: function(t) {}
}, n) {
if (n.fn.fancybox) return void console.info("fancyBox already initialized");
var a = {
closeExisting: !1,
loop: !1,
gutter: 50,
keyboard: !0,
preventCaptionOverlap: !0,
arrows: !0,
infobar: !0,
smallBtn: "auto",
toolbar: "auto",
buttons: ["zoom", "slideShow", "thumbs", "close"],
idleTime: 3,
protect: !1,
modal: !1,
image: {
preload: !1
},
ajax: {
settings: {
data: {
fancybox: !0
}
}
},
iframe: {
tpl: '<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',
preload: !0,
css: {},
attr: {
scrolling: "auto"
}
},
video: {
tpl: '<video class="fancybox-video" controls...