function postDate(t){t=t||"dd.mm.yyyy";var e,a=864e5,n=new Date;e=["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"];for(var r=0;r<90;r++){var o="date-"+r,d=document.getElementsByClassName(o),i=new Date(n.getTime()-r*a),m=0,u=y(d);u=l(u);for(var s=0;s<d.length;s++){(c=window.navigator.userAgent.indexOf("MSIE")>0?{format:d[s].getAttribute("data-format")}:d[s].dataset).format?d[s].innerHTML=g(i,c.format):d[s].innerHTML=g(i,t),/\btime\b/.test(d[s].className)&&(d[s].innerHTML+=" "+u[m],m++)}}for(r=0;r<90;r++)for(o="date"+r,d=document.getElementsByClassName(o),i=new Date(n.getTime()+r*a),m=0,s=0;s<d.length;s++){var c;(c=d[s].dataset).format?d[s].innerHTML=g(i,c.format):d[s].innerHTML=g(i)}function y(t,e){for(var a=[],n=!1,r=0;r<t.length;r++)t[r].className.match(/\btime\b/)&&(t[r].className.match(/\bdate-0\b/)&&(n=!0),a.push(f(n)));return e?a.sort((function(t,e){return e-t})):a.sort((function(t,e){return t-e})),a}function f(t){if(t){var e=new Date,a=60*e.getHours()+e.getMinutes();return Math.round(0+Math.random()*a)}return Math.round(0+1440*Math.random())}function l(t){for(var e=[],a=0;a<t.length;a++){var n=Math.floor(t[a]/60),r=t[a]%60,o=n<10?"0"+n:n,d=r<10?"0"+r:r;e.push(o+":"+d)}return e}function g(t,a){var n="",r=t.getDate(),o=t.getFullYear(),d=t.getMonth()+1;switch(a||!0){case"mm.dd.yyyy":return n+=d<10?"0"+d:d,n+=".",n+=r<10?"0"+r:r,n+="."+o;case"dd month yyyy":return n+=r<10?"0"+r:r,n+=" ",n+=e[d-1],n+=" "+o;case"dd month":return n+=r<10?"0"+r:r,n+=" ",n+=e[d-1];case"day dd, month yyyy":return n+=["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"][new Date(o,d-1,r).getDay()],n+=" ",n+=r<10?"0"+r:r,n+=" ",n+=e[d-1],n+=" "+o;case"dd/mm/yyyy":return n+=r<10?"0"+r:r,n+="/",n+=d<10?"0"+d:d,n+="/"+o;case"dd-mm-yyyy":return n+=r<10?"0"+r:r,n+="-",n+=d<10?"0"+d:d,n+="-"+o;default:return n+=r<10?"0"+r:r,n+=".",n+=d<10?"0"+d:d,n+="."+o}}}$(document).ready((function(){var t=!0;!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&$(window).width()>1023&&($(window).mouseout((function(e){e.pageY-$(window).scrollTop()<1&&1==t&&($(".modal").fadeIn(300),t=!1)})),$(".modal-flex").on("click",(function(t){($(t.target).is($(".modal-flex"))||$(t.target).is(".modal-close"))&&$(".modal").fadeOut(300)})))})),$(document).ready((function(){postDate()}));