PageSourceSearch

https://static.posta.com.tr/scripts/ramazan/ramazancountdown.app.min.js?v=20260922.3

js posta.com.tr collected 2026-09-24 09:38:09 UTC 10,101 bytes, 1 lines download raw bytes

1(()=>{var t={9321:()=>{function t(t,n){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,n){if(t){if("string"==typeof t)return e(t,n);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?e(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){o&&(t=o);var a=0,r=function(){};return{s:r,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return s=t.done,t},e:function(t){c=!0,i=t},f:function(){try{s||null==o["return"]||o["return"]()}finally{if(c)throw i}}}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}document.addEventListener("DOMContentLoaded",(function(){var e;!function(){var t=document.getElementById("ramazanCountDown");if(t){var e=t.querySelector(".custom-select"),n=t.querySelector(".ramazan-count-down__right-sponsor-link"),o=document.getElementById("remainingTime"),a=o.getAttribute("data-sponsor-url"),r=o.getAttribute("data-sponsor-mobile-url"),i=navigator.userAgent.match(/Tablet|iPad|iPod/i)&&window.innerWidth<=1280&&window.innerHeight<=800,s=/iPhone|iPod|Windows Phone|Opera Mini|BlackBerry|webOS|Android/i.test(navigator.userAgent),c=s&&!i?r:a;n&&(n.setAttribute("href",c),n.addEventListener("click",(function(t){t.stopPropagation(),t.preventDefault(),window.open(c,"_blank")}))),t.addEventListener("click",(function(t){t.preventDefault();var o=t.composedPath();n&&o.includes(n)||e&&o.includes(e)||("/"===window.location.pathname&&s?window.location.href="https://www.posta.com.tr/ramazan/":window.open("https://www.posta.com.tr/ramazan/","_blank"))}))}}();var n=document.getElementById("remainingTime"),o=document.getElementsByClassName("ramazan-count-down__item--time-info")[0],a=document.querySelector("#ramazanCountDown");if(a&&(a="true"==a.dataset.cookieActive),a&&document.cookie&&document.cookie.match("RamadanCity")){var r=document.cookie.match("RamadanCity=(.*?)(;|$)");if(9541!==(r=0==(r=r?parseInt(r[1]):null)?9541:r)){var i=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""),s="".concat(i,"/api/ramadan/getramadancitytodaytomorrowhours/").concat(r),c=document.getElementsByClassName("ramazan-count-down__item--city")[0];if(window.fetch!==undefined){var u=function(t){return fetch(t).then((function(t){return t.ok?Promise.resolve(t):Promise.reject(new Error("Failed to load: ".concat(t.status)))})).then((function(t){return t.json()}))["catch"]((function(t){}))};u(s).then((function(t){n.setAttribute("data-ramadan-today-iftar",t.TodayIftarTime),n.setAttribute("data-ramadan-today-imsak",t.TodayImsakTime),n.setAttribute("data-ramadan-tomorrow-imsak",t.TomorrowImsakTime),document.querySelector(".custom-select__trigger span")&&(document.querySelector(".custom-select__trigger span").textContent=t.CityName,d(r,t.CityName)),l()}))["catch"]((function(t){document.getElementById("ramazanCountDown").style.display="none"}))}else{!function(t,e){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="JSON",n.onload=function(){if(200==this.status)var t=JSON.parse(n.responseText);e(t)},n.send({})}(s,(function(t){n.setAttribute("data-ramadan-today-iftar",t.TodayIftarTime),n.setAttribute("data-ramadan-today-imsak",t.TodayImsakTime),n.setAttribute("data-ramadan-tomorrow-imsak",t.TomorrowImsakTime),c.textContent=t.CityName,l()}))}}else document.querySelector(".custom-select__trigger span")&&(document.querySelector(".custom-select__trigger span").textContent="İstanbul",d(9541,"İstanbul")),l()}else document.querySelector(".custom-select__trigger span")&&(document.querySelector(".custom-select__trigger span").textContent="İstanbul",d(9541,"İstanbul")),l();function l(){var t=n.getAttribute("data-sponsor-url"),a=n.getAttribute("data-sponsor-mobile-url"),r=navigator.userAgent.match(/Tablet|iPad|iPod/i)&&window.innerWidth<=1280&&window.innerHeight<=800,i=/iPhone|iPod|Windows Phone|Opera Mini|BlackBerry|webOS|Android/i.test(navigator.userAgent)&&!r?a:t;document.getElementById("ramadanInfoLink")&&(document.getElementById("ramadanInfoLink").href=i),document.getElementById("ramazanCountDown").style.display="flex";var s=n.getAttribute("data-ramadan-today-iftar"),c=n.getAttribute("data-ramadan-today-imsak"),u=n.getAttribute("data-ramadan-tomorrow-imsak"),d=new Date,m=(d=p(s),new Date),f=(m=p(c),new Date);(f=p(u)).setDate(f.getDate()+1);var y=new Date;function p(t){var e=new Date,n=t.split(":")[0],o=t.split(":")[1],a=t.split(":")[2];return e.setHours(n),e.setMinutes(o),e.setSeconds(a),e}function w(t){return t<10&&t>=0?"0"+t:t}function v(t,a){function r(){var r=new Date,i=t-r,s=i,c=Math.floor(s/1e3/60/60);s-=1e3*c*60*60;var u=Math.floor(s/1e3/60);s-=1e3*u*60;var d=Math.floor(s/1e3);s-=1e3*d,i<=0?(clearInterval(e),l()):(n.innerHTML="<span>".concat(w(c),"</span><em>:</em><span>
1").concat(w(u),"</span><em>:</em><span>").concat(w(d),"</span>"),o.innerHTML=a)}r(),e=setInterval(r,1e3)}y<m?v(m,"İçin Sahur Vaktine Kalan Süre"):y>m&&y<d?v(d,"İçin İftar Vaktine Kalan Süre"):v(f,"İçin Sahur Vaktine Kalan Süre")}function d(e,n){document.querySelector(".custom-select__trigger").addEventListener("click",(function(t){t.stopPropagation();var e=this.closest(".custom-select");if(e.classList.toggle("open"),e.classList.contains("open")){var n=e.querySelector(".custom-select__search-input");n&&setTimeout((function(){n.focus()}),100)}else a()}));var o=document.querySelector(".custom-select__search-input");function a(){if(o){o.value="",document.querySelectorAll(".custom-option").forEach((function(t){t.style.display="flex"}));var t=document.querySelector(".custom-select__no-result");t&&(t.style.display="none")}}o&&(o.addEventListener("input",(function(t){var e=t.target.value.toLocaleLowerCase("tr"),n=document.querySelectorAll(".custom-option"),o=0;n.forEach((function(t){t.textContent.toLocaleLowerCase("tr").includes(e)?(t.style.display="flex",o++):t.style.display="none"}));var a=document.querySelector(".custom-select__no-result");a||((a=document.createElement("div")).className="custom-select__no-result",a.textContent="Sonuç bulunamadı",document.querySelector(".custom-options").appendChild(a)),a.style.display=0===o?"block":"none"})),o.addEventListener("click",(function(t){t.stopPropagation()})),o.addEventListener("keydown",(function(t){"Enter"===t.key&&t.preventDefault()})));var r,i=!0,s=t(document.querySelectorAll(".custom-option"));try{for(s.s();!(r=s.n()).done;){var c=r.value;e.toString()===c.getAttribute("data-value")&&(i=!1)}}catch(v){s.e(v)}finally{s.f()}if(i){var u=document.querySelector(".custom-options"),l=document.createElement("span");l.setAttribute("class","custom-option"),l.setAttribute("data-value",e),l.textContent=n;var d=u.querySelector(".custom-select__search");d?d.after(l):u.insertBefore(l,u.childNodes[0])}var y,p=t(document.querySelectorAll(".custom-option"));try{for(p.s();!(y=p.n()).done;){var w=y.value;e.toString()===w.getAttribute("data-value")&&(w.classList.add("selected"),i=!1),w.addEventListener("click",(function(t){t.stopPropagation(),this.classList.contains("selected")||(this.parentNode.querySelector(".custom-option.selected").classList.remove("selected"),this.classList.add("selected"),this.closest(".custom-select").querySelector(".custom-select__trigger span").textContent=this.textContent,m(this.getAttribute("data-value")),f(this.getAttribute("data-value"))),this.closest(".custom-select").classList.remove("open"),a()}))}}catch(v){p.e(v)}finally{p.f()}document.addEventListener("click",(function(t){var e=document.querySelector(".custom-select");e&&!e.contains(t.target)&&(e.classList.remove("open"),a())})),document.querySelector(".ramazan-count-down__custom-combo").style.display="block",document.querySelector(".custom-select-wrapper").style.display="block"}function m(t){var e=new Date;!function(t,e,n,o,a,r){e=escape(e);var i=t+"="+e+(n?"; expires="+n.toGMTString():"")+(o?"; path="+o:"")+(a?"; domain="+a:"")+(r?"; secure":"");document.cookie=i}("RamadanCity",t,new Date(e.getTime()+5184e6),"/",".milliyet.com.tr")}function f(t){t=0==t?9541:t;var o=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""),a="".concat(o,"/api/ramadan/getramadancitytodaytomorrowhours/").concat(t),r=document.getElementsByClassName("ramazan-count-down__item--city")[0];if(window.fetch!==undefined){var i=function(t){return fetch(t).then((function(t){return t.ok?Promise.resolve(t):Promise.reject(new Error("Failed to load: ".concat(t.status)))})).then((function(t){return t.json()}))["catch"]((function(t){}))};i(a).then((function(t){n.setAttribute("data-ramadan-today-iftar",t.TodayIftarTime),n.setAttribute("data-ramadan-today-imsak",t.TodayImsakTime),n.setAttribute("data-ramadan-tomorrow-imsak",t.TomorrowImsakTime),clearInterval(e),l()}))["catch"]((function(t){document.getElementById("ramazanCountDown").style.display="none"}))}else{!function(t,e){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="JSON",n.onload=function(){if(200==this.status)var t=JSON.parse(n.responseText);e(t)},n.send({})}(a,(function(t){n.setAttribute("data-ramadan-today-iftar",t.TodayIftarTime),n.setAttribute("data-ramadan-today-imsak",t.TodayImsakTime),n.setAttribute("data-ramadan-tomorrow-imsak",t.TomorrowImsakTime),r.textContent=t.CityName,clearInterval(e),l()}))}}}))}},e={};function n(o){var a=e[o];if(a!==undefined)return a.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t["default"]:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";n(9321)})()})();

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.