Mr.Combet Webshell
Your IP :
216.73.216.136
Server IP :
103.233.58.157
Server :
Windows NT WIN-4PGF72KEHKB 10.0 build 17763 (Windows Server 2016) AMD64
Server Software :
Microsoft-IIS/10.0
PHP Version :
7.3.25
Add File :
Submit
Add Directory :
Submit
Dir :
C:
/
inetpub
/
wwwroot
/
HRDC
/
HRDC
/
Content
/
js
/
Edit File Name :
_jquery.fancybox.min.js
!function (e, t, i, n) { "use strict"; var o = i("html"), a = i(e), r = i(t), s = i.fancybox = function () { s.open.apply(this, arguments) }, l = navigator.userAgent.match(/msie/i), c = null, d = void 0 !== t.createTouch, p = function (e) { return e && e.hasOwnProperty && e instanceof i }, h = function (e) { return e && "string" === i.type(e) }, f = function (e) { return h(e) && e.indexOf("%") > 0 }, u = function (e) { return e && !(e.style.overflow && "hidden" === e.style.overflow) && (e.clientWidth && e.scrollWidth > e.clientWidth || e.clientHeight && e.scrollHeight > e.clientHeight) }, g = function (e, t) { var i = parseInt(e, 10) || 0; return t && f(e) && (i = s.getViewport()[t] / 100 * i), Math.ceil(i) }, m = function (e, t) { return g(e, t) + "px" }; i.extend(s, { version: "2.1.7", defaults: { padding: 15, margin: 20, width: 800, height: 600, minWidth: 100, minHeight: 100, maxWidth: 9999, maxHeight: 9999, pixelRatio: 1, autoSize: !0, autoHeight: !1, autoWidth: !1, autoResize: !0, autoCenter: !d, fitToView: !0, aspectRatio: !1, topRatio: .5, leftRatio: .5, scrolling: "auto", wrapCSS: "", arrows: !0, closeBtn: !0, closeClick: !1, nextClick: !1, mouseWheel: !0, autoPlay: !1, playSpeed: 3e3, preload: 3, modal: !1, loop: !0, ajax: { dataType: "html", headers: { "X-fancyBox": !0 } }, iframe: { scrolling: "auto", preload: !0 }, swf: { wmode: "transparent", allowfullscreen: "true", allowscriptaccess: "always" }, keys: { next: { 13: "left", 34: "up", 39: "left", 40: "up" }, prev: { 8: "right", 33: "down", 37: "right", 38: "down" }, close: [27], play: [32], toggle: [70] }, direction: { next: "left", prev: "right" }, scrollOutside: !0, index: 0, type: null, href: null, content: null, title: null, tpl: { wrap: '<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>', image: '<img class="fancybox-image" src="{href}" alt="" />', iframe: '<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen' + (l ? ' allowtransparency="true"' : "") + "></iframe>", error: '<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>', closeBtn: '<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>', next: '<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>', prev: '<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>', loading: '<div id="fancybox-loading"><div></div></div>' }, openEffect: "fade", openSpeed: 250, openEasing: "swing", openOpacity: !0, openMethod: "zoomIn", closeEffect: "fade", closeSpeed: 250, closeEasing: "swing", closeOpacity: !0, closeMethod: "zoomOut", nextEffect: "elastic", nextSpeed: 250, nextEasing: "swing", nextMethod: "changeIn", prevEffect: "elastic", prevSpeed: 250, prevEasing: "swing", prevMethod: "changeOut", helpers: { overlay: !0, title: !0 }, onCancel: i.noop, beforeLoad: i.noop, afterLoad: i.noop, beforeShow: i.noop, afterShow: i.noop, beforeChange: i.noop, beforeClose: i.noop, afterClose: i.noop }, group: {}, opts: {}, previous: null, coming: null, current: null, isActive: !1, isOpen: !1, isOpened: !1, wrap: null, skin: null, outer: null, inner: null, player: { timer: null, isActive: !1 }, ajaxLoad: null, imgPreload: null, transitions: {}, helpers: {}, open: function (e, t) { if (e && (i.isPlainObject(t) || (t = {}), !1 !== s.close(!0))) return i.isArray(e) || (e = p(e) ? i(e).get() : [e]), i.each(e, function (n, o) { var a, r, l, c, d, f, u, g = {}; "object" === i.type(o) && (o.nodeType && (o = i(o)), p(o) ? (g = { href: o.data("fancybox-href") || o.attr("href"), title: i("<div/>").text(o.data("fancybox-title") || o.attr("title") || "").html(), isDom: !0, element: o }, i.metadata && i.extend(!0, g, o.metadata())) : g = o), a = t.href || g.href || (h(o) ? o : null), r = void 0 !== t.title ? t.title : g.title || "", !(c = (l = t.content || g.content) ? "html" : t.type || g.type) && g.isDom && ((c = o.data("fancybox-type")) || (c = (d = o.prop("class").match(/fancybox\.(\w+)/)) ? d[1] : null)), h(a) && (c || (s.isImage(a) ? c = "image" : s.isSWF(a) ? c = "swf" : "#" === a.charAt(0) ? c = "inline" : h(o) && (c = "html", l = o)), "ajax" === c && (a = (f = a.split(/\s+/, 2)).shift(), u = f.shift())), l || ("inline" === c ? a ? l = i(h(a) ? a.replace(/.*(?=#[^\s]+$)/, "") : a) : g.isDom && (l = o) : "html" === c ? l = a : c || a || !g.isDom || (c = "inline", l = o)), i.extend(g, { href: a, type: c, content: l, title: r, selector: u }), e[n] = g }), s.opts = i.extend(!0, {}, s.defaults, t), void 0 !== t.keys && (s.opts.keys = !!t.keys && i.extend({}, s.defaults.keys, t.keys)), s.group = e, s._start(s.opts.index) }, cancel: function () { var e = s.coming; e && !1 === s.trigger("onCancel") || (s.hideLoading(), e && (s.ajaxLoad && s.ajaxLoad.abort(), s.ajaxLoad = null, s.imgPreload && (s.imgPreload.onload = s.imgPreload.onerror = null), e.wrap && e.wrap.stop(!0, !0).trigger("onReset").remove(), s.coming = null, s.current || s._afterZoomOut(e))) }, close: function (e) { s.cancel(), !1 !== s.trigger("beforeClose") && (s.unbindEvents(), s.isActive && (s.isOpen && !0 !== e ? (s.isOpen = s.isOpened = !1, s.isClosing = !0, i(".fancybox-item, .fancybox-nav").remove(), s.wrap.stop(!0, !0).removeClass("fancybox-opened"), s.transitions[s.current.closeMethod]()) : (i(".fancybox-wrap").stop(!0).trigger("onReset").remove(), s._afterZoomOut()))) }, play: function (e) { var t = function () { clearTimeout(s.player.timer) }, i = function () { t(), s.current && s.player.isActive && (s.player.timer = setTimeout(s.next, s.current.playSpeed)) }, n = function () { t(), r.unbind(".player"), s.player.isActive = !1, s.trigger("onPlayEnd") }; !0 === e || !s.player.isActive && !1 !== e ? s.current && (s.current.loop || s.current.index < s.group.length - 1) && (s.player.isActive = !0, r.bind({ "onCancel.player beforeClose.player": n, "onUpdate.player": i, "beforeLoad.player": t }), i(), s.trigger("onPlayStart")) : n() }, next: function (e) { var t = s.current; t && (h(e) || (e = t.direction.next), s.jumpto(t.index + 1, e, "next")) }, prev: function (e) { var t = s.current; t && (h(e) || (e = t.direction.prev), s.jumpto(t.index - 1, e, "prev")) }, jumpto: function (e, t, i) { var n = s.current; n && (e = g(e), s.direction = t || n.direction[e >= n.index ? "next" : "prev"], s.router = i || "jumpto", n.loop && (e < 0 && (e = n.group.length + e % n.group.length), e %= n.group.length), void 0 !== n.group[e] && (s.cancel(), s._start(e))) }, reposition: function (e, t) { var n, o = s.current, a = o ? o.wrap : null; a && (n = s._getPosition(t), e && "scroll" === e.type ? (delete n.position, a.stop(!0, !0).animate(n, 200)) : (a.css(n), o.pos = i.extend({}, o.dim, n))) }, update: function (e) { var t = e && e.originalEvent && e.originalEvent.type, i = !t || "orientationchange" === t; i && (clearTimeout(c), c = null), s.isOpen && !c && (c = setTimeout(function () { var n = s.current; n && !s.isClosing && (s.wrap.removeClass("fancybox-tmp"), (i || "load" === t || "resize" === t && n.autoResize) && s._setDimension(), "scroll" === t && n.canShrink || s.reposition(e), s.trigger("onUpdate"), c = null) }, i && !d ? 0 : 300)) }, toggle: function (e) { s.isOpen && (s.current.fitToView = "boolean" === i.type(e) ? e : !s.current.fitToView, d && (s.wrap.removeAttr("style").addClass("fancybox-tmp"), s.trigger("onUpdate")), s.update()) }, hideLoading: function () { r.unbind(".loading"), i("#fancybox-loading").remove() }, showLoading: function () { var e, t; s.hideLoading(), e = i(s.opts.tpl.loading).click(s.cancel).appendTo("body"), r.bind("keydown.loading", function (e) { 27 === (e.which || e.keyCode) && (e.preventDefault(), s.cancel()) }), s.defaults.fixed || (t = s.getViewport(), e.css({ position: "absolute", top: .5 * t.h + t.y, left: .5 * t.w + t.x })), s.trigger("onLoading") }, getViewport: function () { var t = s.current && s.current.locked || !1, i = { x: a.scrollLeft(), y: a.scrollTop() }; return t && t.length ? (i.w = t[0].clientWidth, i.h = t[0].clientHeight) : (i.w = d && e.innerWidth ? e.innerWidth : a.width(), i.h = d && e.innerHeight ? e.innerHeight : a.height()), i }, unbindEvents: function () { s.wrap && p(s.wrap) && s.wrap.unbind(".fb"), r.unbind(".fb"), a.unbind(".fb") }, bindEvents: function () { var e, t = s.current; t && (a.bind("orientationchange.fb" + (d ? "" : " resize.fb") + (t.autoCenter && !t.locked ? " scroll.fb" : ""), s.update), (e = t.keys) && r.bind("keydown.fb", function (n) { var o = n.which || n.keyCode, a = n.target || n.srcElement; if (27 === o && s.coming) return !1; n.ctrlKey || n.altKey || n.shiftKey || n.metaKey || a && (a.type || i(a).is("[contenteditable]")) || i.each(e, function (e, a) { return t.group.length > 1 && void 0 !== a[o] ? (s[e](a[o]), n.preventDefault(), !1) : i.inArray(o, a) > -1 ? (s[e](), n.preventDefault(), !1) : void 0 }) }), i.fn.mousewheel && t.mouseWheel && s.wrap.bind("mousewheel.fb", function (e, n, o, a) { for (var r = e.target || null, l = i(r), c = !1; l.length && !(c || l.is(".fancybox-skin") || l.is(".fancybox-wrap"));)c = u(l[0]), l = i(l).parent(); 0 === n || c || s.group.length > 1 && !t.canShrink && (a > 0 || o > 0 ? s.prev(a > 0 ? "down" : "left") : (a < 0 || o < 0) && s.next(a < 0 ? "up" : "right"), e.preventDefault()) })) }, trigger: function (e, t) { var n, o = t || s.coming || s.current; if (o) { if (i.isFunction(o[e]) && (n = o[e].apply(o, Array.prototype.slice.call(arguments, 1))), !1 === n) return !1; o.helpers && i.each(o.helpers, function (t, n) { n && s.helpers[t] && i.isFunction(s.helpers[t][e]) && s.helpers[t][e](i.extend(!0, {}, s.helpers[t].defaults, n), o) }) } r.trigger(e) }, isImage: function (e) { return h(e) && e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i) }, isSWF: function (e) { return h(e) && e.match(/\.(swf)((\?|#).*)?$/i) }, _start: function (e) { var t, n, o, a, r, l = {}; if (e = g(e), !(t = s.group[e] || null)) return !1; if (l = i.extend(!0, {}, s.opts, t), a = l.margin, r = l.padding, "number" === i.type(a) && (l.margin = [a, a, a, a]), "number" === i.type(r) && (l.padding = [r, r, r, r]), l.modal && i.extend(!0, l, { closeBtn: !1, closeClick: !1, nextClick: !1, arrows: !1, mouseWheel: !1, keys: null, helpers: { overlay: { closeClick: !1 } } }), l.autoSize && (l.autoWidth = l.autoHeight = !0), "auto" === l.width && (l.autoWidth = !0), "auto" === l.height && (l.autoHeight = !0), l.group = s.group, l.index = e, s.coming = l, !1 !== s.trigger("beforeLoad")) { if (o = l.type, n = l.href, !o) return s.coming = null, !(!s.current || !s.router || "jumpto" === s.router) && (s.current.index = e, s[s.router](s.direction)); if (s.isActive = !0, "image" !== o && "swf" !== o || (l.autoHeight = l.autoWidth = !1, l.scrolling = "visible"), "image" === o && (l.aspectRatio = !0), "iframe" === o && d && (l.scrolling = "scroll"), l.wrap = i(l.tpl.wrap).addClass("fancybox-" + (d ? "mobile" : "desktop") + " fancybox-type-" + o + " fancybox-tmp " + l.wrapCSS).appendTo(l.parent || "body"), i.extend(l, { skin: i(".fancybox-skin", l.wrap), outer: i(".fancybox-outer", l.wrap), inner: i(".fancybox-inner", l.wrap) }), i.each(["Top", "Right", "Bottom", "Left"], function (e, t) { l.skin.css("padding" + t, m(l.padding[e])) }), s.trigger("onReady"), "inline" === o || "html" === o) { if (!l.content || !l.content.length) return s._error("content") } else if (!n) return s._error("href"); "image" === o ? s._loadImage() : "ajax" === o ? s._loadAjax() : "iframe" === o ? s._loadIframe() : s._afterLoad() } else s.coming = null }, _error: function (e) { i.extend(s.coming, { type: "html", autoWidth: !0, autoHeight: !0, minWidth: 0, minHeight: 0, scrolling: "no", hasError: e, content: s.coming.tpl.error }), s._afterLoad() }, _loadImage: function () { var e = s.imgPreload = new Image; e.onload = function () { this.onload = this.onerror = null, s.coming.width = this.width / s.opts.pixelRatio, s.coming.height = this.height / s.opts.pixelRatio, s._afterLoad() }, e.onerror = function () { this.onload = this.onerror = null, s._error("image") }, e.src = s.coming.href, !0 !== e.complete && s.showLoading() }, _loadAjax: function () { var e = s.coming; s.showLoading(), s.ajaxLoad = i.ajax(i.extend({}, e.ajax, { url: e.href, error: function (e, t) { s.coming && "abort" !== t ? s._error("ajax", e) : s.hideLoading() }, success: function (t, i) { "success" === i && (e.content = t, s._afterLoad()) } })) }, _loadIframe: function () { var e = s.coming, t = i(e.tpl.iframe.replace(/\{rnd\}/g, (new Date).getTime())).attr("scrolling", d ? "auto" : e.iframe.scrolling).attr("src", e.href); i(e.wrap).bind("onReset", function () { try { i(this).find("iframe").hide().attr("src", "//about:blank").end().empty() } catch (e) { } }), e.iframe.preload && (s.showLoading(), t.one("load", function () { i(this).data("ready", 1), d || i(this).bind("load.fb", s.update), i(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(), s._afterLoad() })), e.content = t.appendTo(e.inner), e.iframe.preload || s._afterLoad() }, _preloadImages: function () { var e, t, i = s.group, n = s.current, o = i.length, a = n.preload ? Math.min(n.preload, o - 1) : 0; for (t = 1; t <= a; t += 1)"image" === (e = i[(n.index + t) % o]).type && e.href && ((new Image).src = e.href) }, _afterLoad: function () { var e, t, n, o, a, r, l = s.coming, c = s.current, d = "fancybox-placeholder"; if (s.hideLoading(), l && !1 !== s.isActive) { if (!1 === s.trigger("afterLoad", l, c)) return l.wrap.stop(!0).trigger("onReset").remove(), void (s.coming = null); switch (c && (s.trigger("beforeChange", c), c.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()), s.unbindEvents(), e = l, t = l.content, n = l.type, o = l.scrolling, i.extend(s, { wrap: e.wrap, skin: e.skin, outer: e.outer, inner: e.inner, current: e, previous: c }), a = e.href, n) { case "inline": case "ajax": case "html": e.selector ? t = i("<div>").html(t).find(e.selector) : p(t) && (t.data(d) || t.data(d, i('<div class="' + d + '"></div>').insertAfter(t).hide()), t = t.show().detach(), e.wrap.bind("onReset", function () { i(this).find(t).length && t.hide().replaceAll(t.data(d)).data(d, !1) })); break; case "image": t = e.tpl.image.replace(/\{href\}/g, a); break; case "swf": t = '<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="' + a + '"></param>', r = "", i.each(e.swf, function (e, i) { t += '<param name="' + e + '" value="' + i + '"></param>', r += " " + e + '="' + i + '"' }), t += '<embed src="' + a + '" type="application/x-shockwave-flash" width="100%" height="100%"' + r + "></embed></object>" }p(t) && t.parent().is(e.inner) || e.inner.append(t), s.trigger("beforeShow"), e.inner.css("overflow", "yes" === o ? "scroll" : "no" === o ? "hidden" : o), s._setDimension(), s.reposition(), s.isOpen = !1, s.coming = null, s.bindEvents(), s.isOpened ? c.prevMethod && s.transitions[c.prevMethod]() : i(".fancybox-wrap").not(e.wrap).stop(!0).trigger("onReset").remove(), s.transitions[s.isOpened ? e.nextMethod : e.openMethod](), s._preloadImages() } }, _setDimension: function () { var e, t, n, o, a, r, l, c, d, p, h, u, y, x, v, w = s.getViewport(), b = 0, k = !1, C = !1, O = s.wrap, W = s.skin, _ = s.inner, S = s.current, T = S.width, E = S.height, L = S.minWidth, H = S.minHeight, j = S.maxWidth, P = S.maxHeight, R = S.scrolling, M = S.scrollOutside ? S.scrollbarWidth : 0, A = S.margin, I = g(A[1] + A[3]), D = g(A[0] + A[2]); if (O.add(W).add(_).width("auto").height("auto").removeClass("fancybox-tmp"), e = g(W.outerWidth(!0) - W.width()), t = g(W.outerHeight(!0) - W.height()), n = I + e, o = D + t, a = f(T) ? (w.w - n) * g(T) / 100 : T, r = f(E) ? (w.h - o) * g(E) / 100 : E, "iframe" === S.type) { if (x = S.content, S.autoHeight && x && 1 === x.data("ready")) try { x[0].contentWindow.document.location && (_.width(a).height(9999), v = x.contents().find("body"), M && v.css("overflow-x", "hidden"), r = v.outerHeight(!0)) } catch (e) { } } else (S.autoWidth || S.autoHeight) && (_.addClass("fancybox-tmp"), S.autoWidth || _.width(a), S.autoHeight || _.height(r), S.autoWidth && (a = _.width()), S.autoHeight && (r = _.height()), _.removeClass("fancybox-tmp")); if (T = g(a), E = g(r), d = a / r, L = g(f(L) ? g(L, "w") - n : L), j = g(f(j) ? g(j, "w") - n : j), H = g(f(H) ? g(H, "h") - o : H), P = g(f(P) ? g(P, "h") - o : P), l = j, c = P, S.fitToView && (j = Math.min(w.w - n, j), P = Math.min(w.h - o, P)), u = w.w - I, y = w.h - D, S.aspectRatio ? (T > j && (E = g((T = j) / d)), E > P && (T = g((E = P) * d)), T < L && (E = g((T = L) / d)), E < H && (T = g((E = H) * d))) : (T = Math.max(L, Math.min(T, j)), S.autoHeight && "iframe" !== S.type && (_.width(T), E = _.height()), E = Math.max(H, Math.min(E, P))), S.fitToView) if (_.width(T).height(E), O.width(T + e), p = O.width(), h = O.height(), S.aspectRatio) for (; (p > u || h > y) && T > L && E > H && !(b++ > 19);)E = Math.max(H, Math.min(P, E - 10)), (T = g(E * d)) < L && (E = g((T = L) / d)), T > j && (E = g((T = j) / d)), _.width(T).height(E), O.width(T + e), p = O.width(), h = O.height(); else T = Math.max(L, Math.min(T, T - (p - u))), E = Math.max(H, Math.min(E, E - (h - y))); M && "auto" === R && E < r && T + e + M < u && (T += M), _.width(T).height(E), O.width(T + e), p = O.width(), h = O.height(), k = (p > u || h > y) && T > L && E > H, C = S.aspectRatio ? T < l && E < c && T < a && E < r : (T < l || E < c) && (T < a || E < r), i.extend(S, { dim: { width: m(p), height: m(h) }, origWidth: a, origHeight: r, canShrink: k, canExpand: C, wPadding: e, hPadding: t, wrapSpace: h - W.outerHeight(!0), skinSpace: W.height() - E }), !x && S.autoHeight && E > H && E < P && !C && _.height("auto") }, _getPosition: function (e) { var t = s.current, i = s.getViewport(), n = t.margin, o = s.wrap.width() + n[1] + n[3], a = s.wrap.height() + n[0] + n[2], r = { position: "absolute", top: n[0], left: n[3] }; return t.autoCenter && t.fixed && !e && a <= i.h && o <= i.w ? r.position = "fixed" : t.locked || (r.top += i.y, r.left += i.x), r.top = m(Math.max(r.top, r.top + (i.h - a) * t.topRatio)), r.left = m(Math.max(r.left, r.left + (i.w - o) * t.leftRatio)), r }, _afterZoomIn: function () { var e = s.current; e && (s.isOpen = s.isOpened = !0, s.wrap.css("overflow", "visible").addClass("fancybox-opened").hide().show(0), s.update(), (e.closeClick || e.nextClick && s.group.length > 1) && s.inner.css("cursor", "pointer").bind("click.fb", function (t) { i(t.target).is("a") || i(t.target).parent().is("a") || (t.preventDefault(), s[e.closeClick ? "close" : "next"]()) }), e.closeBtn && i(e.tpl.closeBtn).appendTo(s.skin).bind("click.fb", function (e) { e.preventDefault(), s.close() }), e.arrows && s.group.length > 1 && ((e.loop || e.index > 0) && i(e.tpl.prev).appendTo(s.outer).bind("click.fb", s.prev), (e.loop || e.index < s.group.length - 1) && i(e.tpl.next).appendTo(s.outer).bind("click.fb", s.next)), s.trigger("afterShow"), e.loop || e.index !== e.group.length - 1 ? s.opts.autoPlay && !s.player.isActive && (s.opts.autoPlay = !1, s.play(!0)) : s.play(!1)) }, _afterZoomOut: function (e) { e = e || s.current, i(".fancybox-wrap").trigger("onReset").remove(), i.extend(s, { group: {}, opts: {}, router: !1, current: null, isActive: !1, isOpened: !1, isOpen: !1, isClosing: !1, wrap: null, skin: null, outer: null, inner: null }), s.trigger("afterClose", e) } }), s.transitions = { getOrigPosition: function () { var e = s.current, t = e.element, i = e.orig, n = {}, o = 50, a = 50, r = e.hPadding, l = e.wPadding, c = s.getViewport(); return !i && e.isDom && t.is(":visible") && ((i = t.find("img:first")).length || (i = t)), p(i) ? (n = i.offset(), i.is("img") && (o = i.outerWidth(), a = i.outerHeight())) : (n.top = c.y + (c.h - a) * e.topRatio, n.left = c.x + (c.w - o) * e.leftRatio), ("fixed" === s.wrap.css("position") || e.locked) && (n.top -= c.y, n.left -= c.x), n = { top: m(n.top - r * e.topRatio), left: m(n.left - l * e.leftRatio), width: m(o + l), height: m(a + r) } }, step: function (e, t) { var i, n, o = t.prop, a = s.current, r = a.wrapSpace, l = a.skinSpace; "width" !== o && "height" !== o || (i = t.end === t.start ? 1 : (e - t.start) / (t.end - t.start), s.isClosing && (i = 1 - i), n = e - ("width" === o ? a.wPadding : a.hPadding), s.skin[o](g("width" === o ? n : n - r * i)), s.inner[o](g("width" === o ? n : n - r * i - l * i))) }, zoomIn: function () { var e = s.current, t = e.pos, n = e.openEffect, o = "elastic" === n, a = i.extend({ opacity: 1 }, t); delete a.position, o ? (t = this.getOrigPosition(), e.openOpacity && (t.opacity = .1)) : "fade" === n && (t.opacity = .1), s.wrap.css(t).animate(a, { duration: "none" === n ? 0 : e.openSpeed, easing: e.openEasing, step: o ? this.step : null, complete: s._afterZoomIn }) }, zoomOut: function () { var e = s.current, t = e.closeEffect, i = "elastic" === t, n = { opacity: .1 }; i && (n = this.getOrigPosition(), e.closeOpacity && (n.opacity = .1)), s.wrap.animate(n, { duration: "none" === t ? 0 : e.closeSpeed, easing: e.closeEasing, step: i ? this.step : null, complete: s._afterZoomOut }) }, changeIn: function () { var e, t = s.current, i = t.nextEffect, n = t.pos, o = { opacity: 1 }, a = s.direction; n.opacity = .1, "elastic" === i && (e = "down" === a || "up" === a ? "top" : "left", "down" === a || "right" === a ? (n[e] = m(g(n[e]) - 200), o[e] = "+=200px") : (n[e] = m(g(n[e]) + 200), o[e] = "-=200px")), "none" === i ? s._afterZoomIn() : s.wrap.css(n).animate(o, { duration: t.nextSpeed, easing: t.nextEasing, complete: s._afterZoomIn }) }, changeOut: function () { var e = s.previous, t = e.prevEffect, n = { opacity: .1 }, o = s.direction; "elastic" === t && (n["down" === o || "up" === o ? "top" : "left"] = ("up" === o || "left" === o ? "-" : "+") + "=200px"), e.wrap.animate(n, { duration: "none" === t ? 0 : e.prevSpeed, easing: e.prevEasing, complete: function () { i(this).trigger("onReset").remove() } }) } }, s.helpers.overlay = { defaults: { closeClick: !0, speedOut: 200, showEarly: !0, css: {}, locked: !d, fixed: !0 }, overlay: null, fixed: !1, el: i("html"), create: function (e) { var t; e = i.extend({}, this.defaults, e), this.overlay && this.close(), t = s.coming ? s.coming.parent : e.parent, this.overlay = i('<div class="fancybox-overlay"></div>').appendTo(t && t.length ? t : "body"), this.fixed = !1, e.fixed && s.defaults.fixed && (this.overlay.addClass("fancybox-overlay-fixed"), this.fixed = !0) }, open: function (e) { var t = this; e = i.extend({}, this.defaults, e), this.overlay ? this.overlay.unbind(".overlay").width("auto").height("auto") : this.create(e), this.fixed || (a.bind("resize.overlay", i.proxy(this.update, this)), this.update()), e.closeClick && this.overlay.bind("click.overlay", function (e) { if (i(e.target).hasClass("fancybox-overlay")) return s.isActive ? s.close() : t.close(), !1 }), this.overlay.css(e.css).show() }, close: function () { a.unbind("resize.overlay"), this.el.hasClass("fancybox-lock") && (i(".fancybox-margin").removeClass("fancybox-margin"), this.el.removeClass("fancybox-lock"), a.scrollTop(this.scrollV).scrollLeft(this.scrollH)), i(".fancybox-overlay").remove().hide(), i.extend(this, { overlay: null, fixed: !1 }) }, update: function () { var e, i = "100%"; this.overlay.width(i).height("100%"), l ? (e = Math.max(t.documentElement.offsetWidth, t.body.offsetWidth), r.width() > e && (i = r.width())) : r.width() > a.width() && (i = r.width()), this.overlay.width(i).height(r.height()) }, onReady: function (e, t) { var n = this.overlay; i(".fancybox-overlay").stop(!0, !0), n || this.create(e), e.locked && this.fixed && t.fixed && (t.locked = this.overlay.append(t.wrap), t.fixed = !1), !0 === e.showEarly && this.beforeShow.apply(this, arguments) }, beforeShow: function (e, t) { t.locked && !this.el.hasClass("fancybox-lock") && (!1 !== this.fixPosition && i("*:not(object)").filter(function () { return "fixed" === i(this).css("position") && !i(this).hasClass("fancybox-overlay") && !i(this).hasClass("fancybox-wrap") }).addClass("fancybox-margin"), this.el.addClass("fancybox-margin"), this.scrollV = a.scrollTop(), this.scrollH = a.scrollLeft(), this.el.addClass("fancybox-lock"), a.scrollTop(this.scrollV).scrollLeft(this.scrollH)), this.open(e) }, onUpdate: function () { this.fixed || this.update() }, afterClose: function (e) { this.overlay && !s.coming && this.overlay.fadeOut(e.speedOut, i.proxy(this.close, this)) } }, s.helpers.title = { defaults: { type: "float", position: "bottom" }, beforeShow: function (e) { var t, n, o = s.current, a = o.title, r = e.type; if (i.isFunction(a) && (a = a.call(o.element, o)), h(a) && "" !== i.trim(a)) { switch (t = i('<div class="fancybox-title fancybox-title-' + r + '-wrap">' + a +"  Copyright © 2017 HRDC Nepal, All right reserved.</div>"),r){case"inside":n=s.skin;break;case"outside":n=s.wrap;break;case"over":n=s.inner;break;default:n=s.skin,t.appendTo("body"),l&&t.width(t.width()),t.wrapInner('<span class="child"></span>'),s.current.margin[2]+=Math.abs(g(t.css("margin-bottom")))}t["top"===e.position?"prependTo":"appendTo"](n)}}},i.fn.fancybox=function(e){var t,n=i(this),o=this.selector||"",a=function(a){var r,l,c=i(this).blur(),d=t;a.ctrlKey||a.altKey||a.shiftKey||a.metaKey||c.is(".fancybox-wrap")||(r=e.groupAttr||"data-fancybox-group",(l=c.attr(r))||(r="rel",l=c.get(0)[r]),l&&""!==l&&"nofollow"!==l&&(d=(c=(c=o.length?i(o):n).filter("["+r+'="'+l+'"]')).index(this)),e.index=d,!1!==s.open(c,e)&&a.preventDefault())};return e=e||{},t=e.index||0,o&&!1!==e.live?r.undelegate(o,"click.fb-start").delegate(o+":not('.fancybox-item, .fancybox-nav')","click.fb-start",a):n.unbind("click.fb-start").bind("click.fb-start",a),this.filter("[data-fancybox-start=1]").trigger("click"),this},r.ready(function(){var t,n;void 0===i.scrollbarWidth&&(i.scrollbarWidth=function(){var e=i('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),t=e.children(),n=t.innerWidth()-t.height(99).innerWidth();return e.remove(),n}),void 0===i.support.fixedPosition&&(i.support.fixedPosition=function(){var e=i('<div style="position:fixed;top:20px;"></div>').appendTo("body"),t=20===e[0].offsetTop||15===e[0].offsetTop;return e.remove(),t}()),i.extend(s.defaults,{scrollbarWidth:i.scrollbarWidth(),fixed:i.support.fixedPosition,parent:i("body")}),t=i(e).width(),o.addClass("fancybox-lock-test"),n=i(e).width(),o.removeClass("fancybox-lock-test"),i("<style type='text/css'>.fancybox-margin{margin-right:"+(n-t)+"px;}</style>").appendTo("head")})}(window,document,jQuery);
Save