').appendTo('body');diap.attr('id','studio_reservation');$(document).on('click','#studio_reservation .close',function(){$('#studio_reservation').animate({opacity:0},200,function(){$('#studio_reservation').html('');$('#studio_reservation').css({'display':'none'});$('body').css({'overflow':'visible'});});history.pushState('/pl/calendar.node.html','Studio Fotograficzne - Studio Stawki - Kalendarz dostępności studia','/pl/calendar.node.html');});$(document).on('keydown',function(e){if(e.keyCode===27){$('#studio_reservation').animate({opacity:0},200,function(){$('#studio_reservation').html('');$('#studio_reservation').css({'display':'none'});$('body').css({'overflow':'visible'});});history.pushState('/pl/calendar.node.html','Studio Fotograficzne - Studio Stawki - Kalendarz dostępności studia','/pl/calendar.node.html');}});$('h2').parent().addClass('header-iframe');$('h2').parent().parent().addClass('parent-header-iframe');$('.header-iframe').prepend('
Studio Stawki
');}},100);});$(window).on('load',function(){if(window!==window.parent){$('.breadcrumb,.page-border,.film-strip').css('display','none');}else{$('.page-border>.top-border,.page-border>.right-border,.page-border>.bottom-border,.page-border>.left-border').css({'display':'block'});$('#calendar').addClass('big-top-h');}});FullCalendar.globalLocales.push(function(){'use strict';var pl={code:'pl',week:{dow:1,doy:4,},buttonText:{prev:'Poprzedni',next:'Następny',today:'Dziś',month:'Miesiąc',week:'Tydzień',day:'Dzień',list:'Plan dnia',},weekText:'Tydz',allDayText:'Dzień',moreLinkText:'więcej',noEventsText:'Brak wydarzeń do wyświetlenia',};return pl;}());$(window).on('load',function(){var calendarEl=document.getElementById('calendar'),calendar=new FullCalendar.Calendar(calendarEl,{headerToolbar:{left:'title',center:'prev today next dayGridMonth timeGridWeek listWeek',right:''},locale:'pl',dateClick:function(info){window.parent.$('#studio_reservation').html('');window.parent.$('#studio_reservation').css({'display':'block'});window.parent.$('body').css({'overflow':'hidden'});window.parent.$('#studio_reservation').animate({opacity:1},300);history.pushState('/pl/booking.node.html','Studio Fotograficzne - Studio Stawki - Rezerwacje','/pl/booking.node.html');},firstDay:1,contentHeight:650,displayEventEnd:true,nowIndicator:true,editable:false,navLinks:true,dayMaxEvents:false,events:{url:'../ajax.node.html'},loading:function(bool){if(bool){$('#loading').css({'display':'block'}).animate({opacity:1},50);$('#loading_background').css({'display':'block'}).animate({opacity:.65},50);}else{$('#loading,#loading_background').animate({opacity:0},500,function(){$('#loading,#loading_background').css({'display':'none'});});}},eventClick:function(info){var start_m=info.event.start.getMinutes(),end_m=info.event.start.getMinutes();if(start_m<10){start_m='0'+start_m;}if(end_m<10){end_m='0'+end_m;}$('#calendar_popup').css({'top':($(info.el).offset().top+2)+'px','left':(($(info.el).offset().left-(($(window).width()-950)/2))+2)+'px'});$('.info_title').html(info.event.title);$('.info_hours').html(info.event.start.getHours()+':'+start_m+' - '+info.event.end.getHours()+':'+end_m);$('.google-uri').attr({'href':'https://www.google.com/calendar/render?action=TEMPLATE&text='+info.event.title+'+Studio+Stawki&dates='+info.event.start.toISOString().replace(/[-:.]/g,'')+'/'+info.event.end.toISOString().replace(/[-:.]/g,'')+'&details=Szczegóły:+https://studiostawki.com&location=Studio+Stawki,+ul.+Inflancka11,+Warszawa,+00-189&sf=true&output=xml'});$('.ics-uri').attr({'href':'../app/ics/?title='+info.event.title+'+Studio+Stawki&start='+info.event.start.toISOString().replace(/[-:.]/g,'')+'&end='+info.event.end.toISOString().replace(/[-:.]/g,'')});$('.ics-uri-apple').attr({'href':'webcal://studiostawki.com/app/ics/?title='+info.event.title+'+Studio+Stawki&start='+info.event.start.toISOString().replace(/[-:.]/g,'')+'&end='+info.event.end.toISOString().replace(/[-:.]/g,'')});$('#calendar_popup').show();$('#calendar_popup').animate({opacity:1},200);},});calendar.render();$('#loading,#loading_background').animate({opacity:0},500,function(){$('#loading,#loading_background').css({'display':'none'});});});