PageSourceSearch

https://restaurace.dritec.cz/inc/fancybox/jquery.fancybox-1.3.1.pack.js

js dritec.cz collected 2026-10-02 20:00:26 UTC 13,857 bytes, 1 lines download raw bytes

1!function(t){var e,n,i,a,o,c,d,l,s,h,r,f,p=0,g={},u=[],y=0,b={},x=[],m=null,$=new Image,w=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,v=/[^\.]\.(swf)\s*$/i,_=1,C=!1,k=t.extend(t("<div/>")[0],{prop:0}),O=0,S=!t.support.opacity&&!window.XMLHttpRequest,j=function(){n.hide(),$.onerror=$.onload=null,m&&m.abort(),e.empty()},T=function(){t.fancybox('<p id="fancybox_error">The requested content cannot be loaded.<br />Please try again later.</p>',{scrolling:"no",padding:20,transitionIn:"none",transitionOut:"none"})},F=function(){return[t(window).width(),t(window).height(),t(document).scrollLeft(),t(document).scrollTop()]},D=function(){var t=F(),e={},n=b.margin,i=b.autoScale,a=(20+n)*2,o=(20+n)*2,c=2*b.padding;return b.width.toString().indexOf("%")>-1?(e.width=t[0]*parseFloat(b.width)/100-40,i=!1):e.width=b.width+c,b.height.toString().indexOf("%")>-1?(e.height=t[1]*parseFloat(b.height)/100-40,i=!1):e.height=b.height+c,i&&(e.width>t[0]-a||e.height>t[1]-o)&&("image"==g.type||"swf"==g.type?(a+=c,o+=c,i=Math.min(Math.min(t[0]-a,b.width)/b.width,Math.min(t[1]-o,b.height)/b.height),e.width=Math.round(i*(e.width-c))+c,e.height=Math.round(i*(e.height-c))+c):(e.width=Math.min(e.width,t[0]-a),e.height=Math.min(e.height,t[1]-o))),e.top=t[3]+(t[1]-(e.height+40))*.5,e.left=t[2]+(t[0]-(e.width+40))*.5,!1===b.autoScale&&(e.top=Math.max(t[3]+n,e.top),e.left=Math.max(t[2]+n,e.left)),e},I=function(t){if(t&&t.length)switch(b.titlePosition){case"inside":return t;case"over":return'<span id="fancybox-title-over">'+t+"</span>";default:return'<span id="fancybox-title-wrap"><span id="fancybox-title-left"></span><span id="fancybox-title-main">'+t+'</span><span id="fancybox-title-right"></span></span>'}return!1},E=function(){var e=b.title,n=f.width-2*b.padding,i="fancybox-title-"+b.titlePosition;if(t("#fancybox-title").remove(),O=0,!1!==b.titleShow&&!(!(e=t.isFunction(b.titleFormat)?b.titleFormat(e,x,y,b):I(e))||""===e)){switch(t('<div id="fancybox-title" class="'+i+'" />').css({width:n,paddingLeft:b.padding,paddingRight:b.padding}).html(e).appendTo("body"),b.titlePosition){case"inside":O=t("#fancybox-title").outerHeight(!0)-b.padding,f.height+=O;break;case"over":t("#fancybox-title").css("bottom",b.padding);break;default:t("#fancybox-title").css("bottom",-1*t("#fancybox-title").outerHeight(!0))}t("#fancybox-title").appendTo(o).hide()}},A=function(){t(document).unbind("keydown.fb").bind("keydown.fb",function(e){27==e.keyCode&&b.enableEscapeButton?(e.preventDefault(),t.fancybox.close()):37==e.keyCode?(e.preventDefault(),t.fancybox.prev()):39==e.keyCode&&(e.preventDefault(),t.fancybox.next())}),t.fn.mousewheel&&(a.unbind("mousewheel.fb"),x.length>1&&a.bind("mousewheel.fb",function(e,n){e.preventDefault(),C||0===n||(n>0?t.fancybox.prev():t.fancybox.next())})),b.showNavArrows&&((b.cyclic&&x.length>1||0!==y)&&l.show(),(b.cyclic&&x.length>1||y!=x.length-1)&&s.show())},H=function(){var t,e;x.length-1>y&&void 0!==(t=x[y+1].href)&&t.match(w)&&((e=new Image).src=t),y>0&&void 0!==(t=x[y-1].href)&&t.match(w)&&((e=new Image).src=t)},B=function(){c.css("overflow","auto"==b.scrolling?"image"==b.type||"iframe"==b.type||"swf"==b.type?"hidden":"auto":"yes"==b.scrolling?"auto":"visible"),t.support.opacity||(c.get(0).style.removeAttribute("filter"),a.get(0).style.removeAttribute("filter")),t("#fancybox-title").show(),b.hideOnContentClick&&c.one("click",t.fancybox.close),b.hideOnOverlayClick&&i.one("click",t.fancybox.close),b.showCloseButton&&d.show(),A(),t(window).bind("resize.fb",t.fancybox.center),b.centerOnScroll?t(window).bind("scroll.fb",t.fancybox.center):t(window).unbind("scroll.fb"),t.isFunction(b.onComplete)&&b.onComplete(x,y,b),C=!1,H()},L=function(t){var e=Math.round(r.width+(f.width-r.width)*t),n=Math.round(r.height+(f.height-r.height)*t),i=Math.round(r.top+(f.top-r.top)*t),o=Math.round(r.left+(f.left-r.left)*t);a.css({width:e+"px",height:n+"px",top:i+"px",left:o+"px"}),e=Math.max(e-2*b.padding,0),n=Math.max(n-(2*b.padding+O*t),0),c.css({width:e+"px",height:n+"px"}),void 0!==f.opacity&&a.css("opacity",t<.5?.5:t)},P=function(t){var e=t.offset();return e.top+=parseFloat(t.css("paddingTop"))||0,e.left+=parseFloat(t.css("paddingLeft"))||0,e.top+=parseFloat(t.css("border-top-width"))||0,e.left+=parseFloat(t.css("border-left-width"))||0,e.width=t.width(),e.height=t.height(),e},N=function(){var e=!!g.orig&&t(g.orig),n={};return e&&e.length?{width:(e=P(e)).width+2*b.padding,height:e.height+2*b.padding,top:e.top-b.padding-20,left
1:e.left-b.padding-20}:{width:1,height:1,top:(e=F())[3]+.5*e[1],left:e[2]+.5*e[0]}},W=function(){if(n.hide(),a.is(":visible")&&t.isFunction(b.onCleanup)&&!1===b.onCleanup(x,y,b)){t.event.trigger("fancybox-cancel"),C=!1;return}if(x=u,y=p,b=g,c.get(0).scrollTop=0,c.get(0).scrollLeft=0,b.overlayShow&&(S&&t("select:not(#fancybox-tmp select)").filter(function(){return"hidden"!==this.style.visibility}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"}),i.css({"background-color":b.overlayColor,opacity:b.overlayOpacity}).unbind().show()),f=D(),E(),a.is(":visible")){t(d.add(l).add(s)).hide();var o,h=a.position();o=(r={top:h.top,left:h.left,width:a.width(),height:a.height()}).width==f.width&&r.height==f.height,c.fadeOut(b.changeFade,function(){var n=function(){c.html(e.contents()).fadeIn(b.changeFade,B)};t.event.trigger("fancybox-change"),c.empty().css("overflow","hidden"),o?(c.css({top:b.padding,left:b.padding,width:Math.max(f.width-2*b.padding,1),height:Math.max(f.height-2*b.padding-O,1)}),n()):(c.css({top:b.padding,left:b.padding,width:Math.max(r.width-2*b.padding,1),height:Math.max(r.height-2*b.padding,1)}),k.prop=0,t(k).animate({prop:1},{duration:b.changeSpeed,easing:b.easingChange,step:L,complete:n}))})}else a.css("opacity",1),"elastic"==b.transitionIn?(r=N(),c.css({top:b.padding,left:b.padding,width:Math.max(r.width-2*b.padding,1),height:Math.max(r.height-2*b.padding,1)}).html(e.contents()),a.css(r).show(),b.opacity&&(f.opacity=0),k.prop=0,t(k).animate({prop:1},{duration:b.speedIn,easing:b.easingIn,step:L,complete:B})):(c.css({top:b.padding,left:b.padding,width:Math.max(f.width-2*b.padding,1),height:Math.max(f.height-2*b.padding-O,1)}).html(e.contents()),a.css(f).fadeIn("none"==b.transitionIn?0:b.speedIn,B))},z=function(){e.width(g.width),e.height(g.height),"auto"==g.width&&(g.width=e.width()),"auto"==g.height&&(g.height=e.height()),W()},q=function(){C=!0,g.width=$.width,g.height=$.height,t("<img />").attr({id:"fancybox-img",src:$.src,alt:g.title}).appendTo(e),W()},M=function(){j();var n,i,a,o,d,l=u[p];if(g=t.extend({},t.fn.fancybox.defaults,void 0===t(l).data("fancybox")?g:t(l).data("fancybox")),a=l.title||t(l).title||g.title||"",l.nodeName&&!g.orig&&(g.orig=t(l).children("img:first").length?t(l).children("img:first"):t(l)),""===a&&g.orig&&(a=g.orig.attr("alt")),n=l.nodeName&&/^(?:javascript|#)/i.test(l.href)?g.href||null:g.href||l.href||null,g.type?(i=g.type,n||(n=g.content)):i=g.content?"html":n?n.match(w)?"image":n.match(v)?"swf":t(l).hasClass("iframe")?"iframe":n.match(/#/)&&t(l=n.substr(n.indexOf("#"))).length>0?"inline":"ajax":"inline",g.type=i,g.href=n,g.title=a,g.autoDimensions&&"iframe"!==g.type&&"swf"!==g.type&&(g.width="auto",g.height="auto"),g.modal&&(g.overlayShow=!0,g.hideOnOverlayClick=!1,g.hideOnContentClick=!1,g.enableEscapeButton=!1,g.showCloseButton=!1),t.isFunction(g.onStart)&&!1===g.onStart(u,p,g)){C=!1;return}switch(e.css("padding",20+g.padding+g.margin),t(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){t(this).replaceWith(c.children())}),i){case"html":e.html(g.content),z();break;case"inline":t('<div class="fancybox-inline-tmp" />').hide().insertBefore(t(l)).bind("fancybox-cleanup",function(){t(this).replaceWith(c.children())}).bind("fancybox-cancel",function(){t(this).replaceWith(e.children())}),t(l).appendTo(e),z();break;case"image":C=!1,t.fancybox.showActivity(),($=new Image).onerror=function(){T()},$.onload=function(){$.onerror=null,$.onload=null,q()},$.src=n;break;case"swf":o='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+g.width+'" height="'+g.height+'"><param name="movie" value="'+n+'"></param>',d="",t.each(g.swf,function(t,e){o+='<param name="'+t+'" value="'+e+'"></param>',d+=" "+t+'="'+e+'"'}),o+='<embed src="'+n+'" type="application/x-shockwave-flash" width="'+g.width+'" height="'+g.height+'"'+d+"></embed></object>",e.html(o),z();break;case"ajax":l=n.split("#",2),i=g.ajax.data||{},l.length>1&&(n=l[0],"string"==typeof i?i+="&selector="+l[1]:i.selector=l[1]),C=!1,t.fancybox.showActivity(),m=t.ajax(t.extend(g.ajax,{url:n,data:i,error:T,success:function(t){200==m.status&&(e.html(t),z())}}));break;case"iframe":t('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" scrolling="'+g.scrolling+'" src="'+g.href+'"></iframe>').appendTo(e),W()}}
1,R=function(){n.is(":visible")?(t("div",n).css("top",-40*_+"px"),_=(_+1)%12):clearInterval(h)},X=function(){!t("#fancybox-wrap").length&&(t("body").append(e=t('<div id="fancybox-tmp"></div>'),n=t('<div id="fancybox-loading"><div></div></div>'),i=t('<div id="fancybox-overlay"></div>'),a=t('<div id="fancybox-wrap"></div>')),t.support.opacity||(a.addClass("fancybox-ie"),n.addClass("fancybox-ie")),(o=t('<div id="fancybox-outer"></div>').append('<div class="fancy-bg" id="fancy-bg-n"></div><div class="fancy-bg" id="fancy-bg-ne"></div><div class="fancy-bg" id="fancy-bg-e"></div><div class="fancy-bg" id="fancy-bg-se"></div><div class="fancy-bg" id="fancy-bg-s"></div><div class="fancy-bg" id="fancy-bg-sw"></div><div class="fancy-bg" id="fancy-bg-w"></div><div class="fancy-bg" id="fancy-bg-nw"></div>').appendTo(a)).append(c=t('<div id="fancybox-inner"></div>'),d=t('<a id="fancybox-close"></a>'),l=t('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),s=t('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')),d.click(t.fancybox.close),n.click(t.fancybox.cancel),l.click(function(e){e.preventDefault(),t.fancybox.prev()}),s.click(function(e){e.preventDefault(),t.fancybox.next()}),S&&(i.get(0).style.setExpression("height","document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'"),n.get(0).style.setExpression("top","(-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px'"),o.prepend('<iframe id="fancybox-hide-sel-frame" src="javascript:\'\';" scrolling="no" frameborder="0" ></iframe>')))};t.fn.fancybox=function(e){return t(this).data("fancybox",t.extend({},e,t.metadata?t(this).metadata():{})).unbind("click.fb").bind("click.fb",function(e){if(e.preventDefault(),!C)return C=!0,t(this).blur(),u=[],p=0,(e=t(this).attr("rel")||"")&&""!=e&&"nofollow"!==e?p=(u=t("a[rel="+e+"], area[rel="+e+"]")).index(this):u.push(this),M(),!1}),this},t.fancybox=function(e,n){if(!C){if(C=!0,u=[],p=(n=void 0!==n?n:{}).index||0,t.isArray(e)){for(var i=0,a=e.length;i<a;i++)"object"==typeof e[i]?t(e[i]).data("fancybox",t.extend({},n,e[i])):e[i]=t({}).data("fancybox",t.extend({content:e[i]},n));u=jQuery.merge(u,e)}else"object"==typeof e?t(e).data("fancybox",t.extend({},n,e)):e=t({}).data("fancybox",t.extend({content:e},n)),u.push(e);(p>u.length||p<0)&&(p=0),M()}},t.fancybox.showActivity=function(){clearInterval(h),n.show(),h=setInterval(R,66)},t.fancybox.hideActivity=function(){n.hide()},t.fancybox.next=function(){return t.fancybox.pos(y+1)},t.fancybox.prev=function(){return t.fancybox.pos(y-1)},t.fancybox.pos=function(t){!C&&((t=parseInt(t,10))>-1&&x.length>t&&(p=t,M()),b.cyclic&&x.length>1&&t<0&&(p=x.length-1,M()),b.cyclic&&x.length>1&&t>=x.length&&(p=0,M()))},t.fancybox.cancel=function(){C||(C=!0,t.event.trigger("fancybox-cancel"),j(),g&&t.isFunction(g.onCancel)&&g.onCancel(u,p,g),C=!1)},t.fancybox.close=function(){function e(){i.fadeOut("fast"),a.hide(),t.event.trigger("fancybox-cleanup"),c.empty(),t.isFunction(b.onClosed)&&b.onClosed(x,y,b),x=g=[],y=p=0,b=g={},C=!1}if(!(C||a.is(":hidden"))){if(C=!0,b&&t.isFunction(b.onCleanup)&&!1===b.onCleanup(x,y,b)){C=!1;return}if(j(),t(d.add(l).add(s)).hide(),t("#fancybox-title").remove(),a.add(c).add(i).unbind(),t(window).unbind("resize.fb scroll.fb"),t(document).unbind("keydown.fb"),c.css("overflow","hidden"),"elastic"==b.transitionOut){r=N();var n=a.position();f={top:n.top,left:n.left,width:a.width(),height:a.height()},b.opacity&&(f.opacity=1),k.prop=1,t(k).animate({prop:0},{duration:b.speedOut,easing:b.easingOut,step:L,complete:e})}else a.fadeOut("none"==b.transitionOut?0:b.speedOut,e)}},t.fancybox.resize=function(){var e,n;C||a.is(":hidden")||(C=!0,n=(e=c.wrapInner("<div style='overflow:auto'></div>").children()).height(),a.css({height:n+2*b.padding+O}),c.css({height:n}),e.replaceWith(e.children()),t.fancybox.center())},t.fancybox.center=function(){C=!0;var t=F(),e=b.margin,n={};n.top=t[3]+(t[1]-(a.height()-O+40))*.5,n.left=t[2]+(t[0]-(a.width()+40))*.5,n.top=Math.max(t[3]+e,n.top),n.left=Math.max(t[2]+e,n.left),a.css(n),C=!1},t.fn.fancybox.defaults={padding:10,margin:20,opacity:!1,modal:!1,cyclic:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!1,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:.3,overlayColor:"#666",titleShow:!0,titlePosition:"outside",titleFormat:null,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,onStart:null,onCancel:null,onComplete:null,onCleanup:null,onClosed:null},t(document).ready(function(){X()})}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.