{"id":1398,"date":"2026-08-24T11:29:06","date_gmt":"2026-08-24T11:29:06","guid":{"rendered":"https:\/\/sundeli.cz\/?p=1398"},"modified":"2026-10-13T14:41:48","modified_gmt":"2026-10-13T14:41:48","slug":"nastavte-si-svuj-pust-%f0%9f%8c%bf","status":"publish","type":"post","link":"https:\/\/sundeli.cz\/en\/blog\/nastavte-si-svuj-pust-%f0%9f%8c%bf\/","title":{"rendered":"SET YOUR FAST \ud83c\udf3f"},"content":{"rendered":"\n<h4 class=\"wp-block-heading has-text-align-center\" id=\"zvolte-pocet-jidel-a-cas-prvniho-a-posledniho-jidla-kalkulacka-vam-ukaze-jak-dlouhe-bude-vase-pustove-okno\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-theme-palette-11-color\"><strong>Zvolte po\u010det j\u00eddel a \u010das prvn\u00edho a posledn\u00edho j\u00eddla. Kalkula\u010dka v\u00e1m uk\u00e1\u017ee, jak dlouh\u00e9 bude va\u0161e p\u016fstov\u00e9 okno.<\/strong><\/mark><\/h4>\n\n\n\n<style data-wp-block-html=\"css\">\n#sundeli-fasting-calculator {\n  --accent: #9b4f7d;\n  --accent-soft: #f3e4ed;\n  --text: #302832;\n  --muted: #756d74;\n  --line: #e7dfe4;\n  --panel: #fffafc;\n\n  background: #fffafc;\n  color: var(--text);\n\n  padding: 28px 20px;\n  border-radius: 0;\n  max-width: 900px;\n  margin: 0 auto;\n\n  font-family: inherit;\n}\n\n#sundeli-fasting-calculator * {\n  box-sizing: border-box;\n}\n\n#sundeli-fasting-calculator .wrap {\n  max-width: 820px;\n  margin: auto;\n}\n\n#sundeli-fasting-calculator .sf-intro {\n  text-align: center;\n  margin-bottom: 26px;\n}\n\n#sundeli-fasting-calculator .sf-intro h2 {\n  font-size: 28px;\n  margin: 0 0 7px;\n  font-weight: 750;\n  letter-spacing: -0.02em;\n}\n\n#sundeli-fasting-calculator .sf-intro p {\n  margin: 0;\n  color: var(--muted);\n  font-size: 15px;\n}\n\n#sundeli-fasting-calculator .sf-grid {\n  display: grid;\n  grid-template-columns: 330px 1fr;\n  gap: 30px;\n  align-items: center;\n}\n\n#sundeli-fasting-calculator .sf-circle {\n  position: relative;\n  width: 310px;\n  height: 310px;\n  margin: auto;\n  touch-action: none;\n  cursor: grab;\n  user-select: none;\n}\n\n#sundeli-fasting-calculator .sf-circle.is-dragging {\n  cursor: grabbing;\n}\n\n#sundeli-fasting-calculator .sf-circle svg {\n  width: 100%;\n  height: 100%;\n  display: block;\n}\n\n#sundeli-fasting-calculator .sf-center {\n  position: absolute;\n  inset: 0;\n\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n\n  text-align: center;\n  pointer-events: none;\n}\n\n#sundeli-fasting-calculator .sf-center .num {\n  font-size: 34px;\n  font-weight: 800;\n  line-height: 1;\n}\n\n#sundeli-fasting-calculator .sf-center .label {\n  font-size: 13px;\n  color: var(--muted);\n  margin-top: 7px;\n}\n\n#sundeli-fasting-calculator .sf-legend {\n  display: flex;\n  justify-content: center;\n  gap: 18px;\n  margin-top: 8px;\n\n  font-size: 12px;\n  color: var(--muted);\n}\n\n#sundeli-fasting-calculator .sf-dot {\n  display: inline-block;\n  width: 9px;\n  height: 9px;\n  border-radius: 50%;\n  margin-right: 5px;\n}\n\n#sundeli-fasting-calculator .sf-controls {\n  background: white;\n  border: 1px solid var(--line);\n  border-radius: 20px;\n  padding: 22px;\n}\n\n#sundeli-fasting-calculator .sf-label {\n  display: block;\n  font-size: 13px;\n  font-weight: 700;\n  margin: 0 0 9px;\n}\n\n#sundeli-fasting-calculator .sf-meals {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  gap: 9px;\n  margin-bottom: 20px;\n}\n\n#sundeli-fasting-calculator .sf-btn {\n  height: 48px;\n\n  border: 1px solid var(--line);\n  border-radius: 12px;\n\n  background: var(--panel);\n  color: var(--text);\n\n  font: inherit;\n  font-weight: 700;\n  cursor: pointer;\n}\n\n#sundeli-fasting-calculator .sf-btn[aria-pressed=\"true\"] {\n  background: var(--accent-soft);\n  border-color: var(--accent);\n  color: #71365a;\n}\n\n#sundeli-fasting-calculator .sf-row {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  gap: 12px;\n}\n\n#sundeli-fasting-calculator .sf-input {\n  width: 100%;\n  height: 48px;\n\n  border: 1px solid var(--line);\n  border-radius: 12px;\n\n  background: #fff;\n  color: var(--text);\n\n  padding: 8px 11px;\n\n  font: inherit;\n  font-size: 16px;\n}\n\n#sundeli-fasting-calculator .sf-summary {\n  margin-top: 18px;\n  padding: 16px;\n\n  border-radius: 15px;\n\n  background: var(--panel);\n  border: 1px solid #f0e6eb;\n}\n\n#sundeli-fasting-calculator .sf-summary strong {\n  font-size: 18px;\n}\n\n#sundeli-fasting-calculator .sf-times {\n  display: grid;\n  gap: 8px;\n  margin-top: 12px;\n}\n\n#sundeli-fasting-calculator .sf-time {\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n\n  padding: 10px 12px;\n\n  border-radius: 10px;\n\n  background: white;\n  border: 1px solid var(--line);\n\n  font-size: 13px;\n}\n\n#sundeli-fasting-calculator .sf-time b {\n  font-size: 15px;\n}\n\n#sundeli-fasting-calculator .sf-note {\n  font-size: 12px;\n  line-height: 1.45;\n  color: var(--muted);\n  margin-top: 14px;\n}\n\n#sundeli-fasting-calculator .sf-reset {\n  margin-top: 15px;\n  width: 100%;\n  height: 42px;\n\n  border: 0;\n  background: transparent;\n\n  color: var(--muted);\n\n  font: inherit;\n  font-size: 13px;\n\n  cursor: pointer;\n}\n\n@media (max-width: 700px) {\n\n  #sundeli-fasting-calculator {\n    padding: 22px 14px;\n  }\n\n  #sundeli-fasting-calculator .sf-grid {\n    grid-template-columns: 1fr;\n    gap: 18px;\n  }\n\n  #sundeli-fasting-calculator .sf-circle {\n    width: 285px;\n    height: 285px;\n  }\n\n  #sundeli-fasting-calculator .sf-controls {\n    padding: 18px;\n  }\n\n  #sundeli-fasting-calculator .sf-intro h2 {\n    font-size: 24px;\n  }\n\n}\n<\/style>\n\n<script data-wp-block-html=\"js\">\n(function(){\n  function init(){\n    var r=document.getElementById('sundeli-fasting-calculator');\n    if(!r || r.dataset.initialized==='1') return false;\n    r.dataset.initialized='1';\n\n    var meals=3;\n    var start=r.querySelector('#sf-start');\n    var last=r.querySelector('#sf-last');\n    var big=r.querySelector('#sf-big');\n    var fastText=r.querySelector('#sf-fast-text');\n    var times=r.querySelector('#sf-times');\n    var note=r.querySelector('#sf-note');\n    var foodArc=r.querySelector('#sf-food-arc');\n    var fastArc=r.querySelector('#sf-fast-arc');\n    var tickGroup=r.querySelector('#sf-ticks');\n    var buttons=[].slice.call(r.querySelectorAll('.sf-meal-btn'));\n    var reset=r.querySelector('#sf-reset');\n\n    var NS='http:\/\/www.w3.org\/2000\/svg';\n    var cx=155,cy=155,rad=119;\n\n    function toMin(v){\n      var p=String(v||'').split(':').map(Number);\n      return p.length===2 && isFinite(p[0]) && isFinite(p[1])\n        ? p[0]*60+p[1]\n        : NaN;\n    }\n\n    function fmt(n){\n      n=((n%1440)+1440)%1440;\n      return String(Math.floor(n\/60)).padStart(2,'0')+':'+String(n%60).padStart(2,'0');\n    }\n\n    function point(min){\n      var a=(min\/1440)*Math.PI*2-Math.PI\/2;\n      return [cx+rad*Math.cos(a),cy+rad*Math.sin(a)];\n    }\n\n    function arc(a,b){\n      var span=(b-a+1440)%1440;\n      if(span===0) span=1440;\n      var p1=point(a),p2=point(b);\n      return 'M '+p1[0]+' '+p1[1]+' A '+rad+' '+rad+' 0 '+(span>720?1:0)+' 1 '+p2[0]+' '+p2[1];\n    }\n\n    function setMeals(v){\n      meals=Number(v)===2?2:3;\n\n      buttons.forEach(function(btn){\n        btn.setAttribute(\n          'aria-pressed',\n          Number(btn.dataset.meals)===meals?'true':'false'\n        );\n      });\n\n      update();\n    }\n\n    function update(){\n      var a=toMin(start.value),b=toMin(last.value);\n      if(!isFinite(a)||!isFinite(b)) return;\n\n      var eating=(b-a+1440)%1440;\n      if(eating===0) eating=1440;\n\n      var fasting=1440-eating;\n      var fh=Math.floor(fasting\/60),fm=fasting%60;\n\n      big.textContent=fh+(fm?' h '+fm:' h');\n      fastText.textContent=fh+(fm?' hodin '+fm+' min p\u016fstu':' hodin p\u016fstu');\n\n      foodArc.setAttribute('d',arc(a,b));\n      fastArc.setAttribute('d',arc(b,a));\n\n      times.innerHTML='';\n\n      for(var i=0;i<meals;i++){\n        var position=meals===2?(i===0?0:1):(i\/(meals-1));\n        var t=a+Math.round(eating*position);\n        var label=i===0?'Prvn\u00ed j\u00eddlo':(i===meals-1?'Posledn\u00ed j\u00eddlo':'2. j\u00eddlo');\n\n        var item=document.createElement('div');\n        item.className='sf-time';\n        item.innerHTML='<span>'+label+'<\/span><b>'+fmt(t)+'<\/b>';\n\n        times.appendChild(item);\n      }\n\n      note.textContent=\n        fasting>=960\n          ?'M\u00e1te nastaven\u00e9 del\u0161\u00ed p\u016fstov\u00e9 okno. D\u00e9lku p\u0159izp\u016fsobte tomu, co v\u00e1m dlouhodob\u011b vyhovuje.'\n          :fasting>=840\n            ?'M\u00e1te nastaven\u00e9 14 a v\u00edce hodin bez kalorick\u00e9ho p\u0159\u00edjmu.'\n            :'I krat\u0161\u00ed pravideln\u00e1 pauza mezi j\u00eddly m\u016f\u017ee b\u00fdt dobr\u00fdm za\u010d\u00e1tkem.';\n    }\n\n    if(tickGroup && tickGroup.childNodes.length===0){\n      for(var h=0;h<24;h+=3){\n        var ang=(h\/24)*Math.PI*2-Math.PI\/2;\n        var t=document.createElementNS(NS,'text');\n\n        t.setAttribute('x',cx+145*Math.cos(ang));\n        t.setAttribute('y',cy+145*Math.sin(ang)+4);\n        t.setAttribute('text-anchor','middle');\n        t.setAttribute('font-size','11');\n        t.setAttribute('fill','#8a8188');\n\n        t.textContent=h;\n        tickGroup.appendChild(t);\n      }\n    }\n\n    buttons.forEach(function(btn){\n      btn.addEventListener('click',function(ev){\n        ev.preventDefault();\n        setMeals(btn.getAttribute('data-meals'));\n      });\n    });\n\n    start.addEventListener('input',update);\n    last.addEventListener('input',update);\n\n    if(reset){\n      reset.addEventListener('click',function(ev){\n        ev.preventDefault();\n\n        start.value='08:00';\n        last.value='18:00';\n\n        setMeals(3);\n      });\n    }\n\n    setMeals(3);\n\n    return true;\n  }\n\n  function boot(){\n    if(init()) return;\n\n    var attempts=0;\n\n    var timer=setInterval(function(){\n      attempts++;\n\n      if(init() || attempts>20){\n        clearInterval(timer);\n      }\n    },250);\n  }\n\n  if(document.readyState==='loading'){\n    document.addEventListener('DOMContentLoaded',boot,{once:true});\n  }else{\n    boot();\n  }\n})();\n<\/script>\n\n<div id=\"sundeli-fasting-calculator\">\n  <div class=\"wrap\">\n\n    <div class=\"sf-intro\">\n      <h2>Nastavte si sv\u016fj p\u016fst<\/h2>\n      <p>Zvolte po\u010det j\u00eddel a \u010das prvn\u00edho a posledn\u00edho j\u00eddla.<\/p>\n    <\/div>\n\n    <div class=\"sf-grid\">\n\n      <div>\n        <div class=\"sf-circle\">\n          <svg viewBox=\"0 0 310 310\" aria-label=\"24hodinov\u00fd p\u0159ehled j\u00eddeln\u00edho a p\u016fstov\u00e9ho okna\">\n            <circle cx=\"155\" cy=\"155\" r=\"119\" fill=\"none\" stroke=\"#eee8eb\" stroke-width=\"27\"><\/circle>\n\n            <path id=\"sf-fast-arc\" fill=\"none\" stroke=\"#c9a5b9\" stroke-width=\"27\" stroke-linecap=\"butt\"><\/path>\n\n            <path id=\"sf-food-arc\" fill=\"none\" stroke=\"#9b4f7d\" stroke-width=\"27\" stroke-linecap=\"butt\"><\/path>\n\n            <g id=\"sf-ticks\"><\/g>\n          <\/svg>\n\n          <div class=\"sf-center\">\n            <div class=\"num\" id=\"sf-big\">14 h<\/div>\n            <div class=\"label\">p\u016fstov\u00e9 okno<\/div>\n          <\/div>\n        <\/div>\n\n        <div class=\"sf-legend\">\n          <span>\n            <i class=\"sf-dot\" style=\"background:#9b4f7d\"><\/i>\n            j\u00eddeln\u00ed okno\n          <\/span>\n\n          <span>\n            <i class=\"sf-dot\" style=\"background:#c9a5b9\"><\/i>\n            p\u016fst\n          <\/span>\n        <\/div>\n      <\/div>\n\n      <div class=\"sf-controls\">\n\n        <label class=\"sf-label\">Kolik j\u00eddel denn\u011b?<\/label>\n\n        <div class=\"sf-meals\">\n\n          <button type=\"button\" class=\"sf-btn sf-meal-btn\" data-meals=\"2\" aria-pressed=\"false\">\n            2 j\u00eddla\n          <\/button>\n\n          <button type=\"button\" class=\"sf-btn sf-meal-btn\" data-meals=\"3\" aria-pressed=\"true\">\n            3 j\u00eddla\n          <\/button>\n\n        <\/div>\n\n        <div class=\"sf-row\">\n\n          <div>\n            <label class=\"sf-label\" for=\"sf-start\">\n              Prvn\u00ed j\u00eddlo\n            <\/label>\n\n            <input class=\"sf-input\" id=\"sf-start\" type=\"time\" value=\"08:00\">\n          <\/div>\n\n          <div>\n            <label class=\"sf-label\" for=\"sf-last\">\n              Posledn\u00ed j\u00eddlo\n            <\/label>\n\n            <input class=\"sf-input\" id=\"sf-last\" type=\"time\" value=\"18:00\">\n          <\/div>\n\n        <\/div>\n\n        <div class=\"sf-summary\" aria-live=\"polite\">\n\n          <div style=\"color:var(--muted);font-size:13px\">\n            Va\u0161e nastaven\u00ed\n          <\/div>\n\n          <div style=\"margin-top:4px\">\n            <strong id=\"sf-fast-text\">\n              14 hodin p\u016fstu\n            <\/strong>\n          <\/div>\n\n          <div class=\"sf-times\" id=\"sf-times\"><\/div>\n\n          <div class=\"sf-note\" id=\"sf-note\"><\/div>\n\n        <\/div>\n\n        <button type=\"button\" class=\"sf-reset\" id=\"sf-reset\">\n          Nastavit znovu\n        <\/button>\n\n      <\/div>\n    <\/div>\n  <\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Choose the number of meals and the time of your first and last meal. The calculator will show you how long your fasting window will be. Set your\u2026<\/p>","protected":false},"author":1,"featured_media":1407,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_gspb_post_css":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[13],"tags":[],"class_list":["post-1398","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"spectra_blocks_featured_image_url":{"thumbnail":{"url":"https:\/\/sundeli.cz\/wp-content\/uploads\/2026\/08\/ChatGPT-Image-24.-8.-2026-14_57_18-150x150.png","width":150,"height":150},"medium":{"url":"https:\/\/sundeli.cz\/wp-content\/uploads\/2026\/08\/ChatGPT-Image-24.-8.-2026-14_57_18-300x200.png","width":300,"height":200},"medium_large":{"url":"https:\/\/sundeli.cz\/wp-content\/uploads\/2026\/08\/ChatGPT-Image-24.-8.-2026-14_57_18-768x512.png","width":768,"height":512},"large":{"url":"https:\/\/sundeli.cz\/wp-content\/uploads\/2026\/08\/ChatGPT-Image-24.-8.-2026-14_57_18-1024x683.png","width":1024,"height":683},"full":{"url":"https:\/\/sundeli.cz\/wp-content\/uploads\/2026\/08\/ChatGPT-Image-24.-8.-2026-14_57_18.png","width":1536,"height":1024}},"spectra_blocks_author_info":{"display_name":"admin","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/342afc2114e2b30bc37197f5e91ba6c5fe45fafda59cf815ad3ec897853b0f48?s=96&d=mm&r=g","author_link":"https:\/\/sundeli.cz\/en\/author\/admin\/","description":""},"_links":{"self":[{"href":"https:\/\/sundeli.cz\/en\/wp-json\/wp\/v2\/posts\/1398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sundeli.cz\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sundeli.cz\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sundeli.cz\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sundeli.cz\/en\/wp-json\/wp\/v2\/comments?post=1398"}],"version-history":[{"count":0,"href":"https:\/\/sundeli.cz\/en\/wp-json\/wp\/v2\/posts\/1398\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sundeli.cz\/en\/wp-json\/wp\/v2\/media\/1407"}],"wp:attachment":[{"href":"https:\/\/sundeli.cz\/en\/wp-json\/wp\/v2\/media?parent=1398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sundeli.cz\/en\/wp-json\/wp\/v2\/categories?post=1398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sundeli.cz\/en\/wp-json\/wp\/v2\/tags?post=1398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}