<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
    <channel>
        <title>  Пермакультура   - Розпорядок</title>
        <link>http://gs-permakultura-v-ukran.mozello.com/rozporjadok/</link>
        <description>  Пермакультура   - Розпорядок</description>
                    <item>
                <title>р2</title>
                <link>http://gs-permakultura-v-ukran.mozello.com/rozporjadok/params/post/5010373/r2</link>
                <pubDate>Tue, 03 Jun 2025 15:13:00 +0000</pubDate>
                <description>кккккккккккккк1&lt;hr class=&quot;moze-more-divider&quot;&gt;&lt;p&gt;2&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://site-1014688.mozfiles.com/files/1014688/tp.jpg&quot; alt=&quot;tp.jpg&quot;&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;



  &lt;meta charset=&quot;UTF-8&quot;&gt;
  &lt;title&gt;Pomodoro Розпорядок і Таймер&lt;/title&gt;
  &lt;style&gt;
    body {
      font-family: sans-serif;
      padding: 20px;
      background: #f0f0f0;
      max-width: 800px;
      margin: auto;
    }
    textarea {
      width: 100%;
      height: 100px;
      margin-bottom: 10px;
      padding: 10px;
      font-size: 16px;
    }
    button {
      padding: 10px 20px;
      font-size: 16px;
      cursor: pointer;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 5px;
      margin: 5px 5px 5px 0;
    }
    button:hover {
      background-color: #45a049;
    }
    .schedule, .status {
      margin-top: 20px;
      background: #fff;
      padding: 15px;
      border-radius: 8px;
    }
    .block {
      margin-bottom: 10px;
      font-weight: bold;
    }
    .timer {
      font-size: 48px;
      margin: 10px 0;
    }
  &lt;/style&gt;



  &lt;h1&gt;📋 Мій розпорядок дня (Pomodoro)&lt;/h1&gt;
  &lt;p&gt;Введи список справ (по одному на рядок):&lt;/p&gt;
  &lt;textarea id=&quot;tasks&quot;&gt;&lt;/textarea&gt;
  &lt;br&gt;
  &lt;button onclick=&quot;generateSchedule()&quot; fdprocessedid=&quot;0nu5ov&quot;&gt;Створити розпорядок&lt;/button&gt;

  &lt;div class=&quot;schedule&quot; id=&quot;schedule&quot;&gt;&lt;/div&gt;

  &lt;hr&gt;

  &lt;h2&gt;⏱ Ручний Pomodoro Таймер&lt;/h2&gt;
  &lt;div&gt;
    &lt;button onclick=&quot;setManualTimer(25 * 60, &#039;Робота&#039;)&quot; fdprocessedid=&quot;pof5nr&quot;&gt;Робота (25 хв)&lt;/button&gt;
    &lt;button onclick=&quot;setManualTimer(5 * 60, &#039;Коротка перерва&#039;)&quot; fdprocessedid=&quot;0apue&quot;&gt;Коротка перерва (5 хв)&lt;/button&gt;
    &lt;button onclick=&quot;setManualTimer(15 * 60, &#039;Довга перерва&#039;)&quot; fdprocessedid=&quot;o9mnk&quot;&gt;Довга перерва (15 хв)&lt;/button&gt;
  &lt;/div&gt;

  &lt;div class=&quot;status&quot; id=&quot;manualStatus&quot;&gt;Режим: -&lt;/div&gt;
  &lt;div class=&quot;timer&quot; id=&quot;manualTimer&quot;&gt;00:00&lt;/div&gt;
  &lt;button onclick=&quot;toggleManualTimer()&quot; fdprocessedid=&quot;gnunac&quot;&gt;▶️ Старт / ⏸ Пауза&lt;/button&gt;
  &lt;button onclick=&quot;toggleSound()&quot; id=&quot;soundButton&quot; fdprocessedid=&quot;su4kb8&quot;&gt;🔊 Звук увімкнено&lt;/button&gt;

  &lt;!-- Звуковий сигнал --&gt;
  &lt;audio id=&quot;beepSound&quot;&gt;
    &lt;source src=&quot;https://actions.google.com/sounds/v1/alarms/beep_short.ogg&quot; type=&quot;audio/ogg&quot;&gt;
    Ваш браузер не підтримує аудіо.
  &lt;/audio&gt;

  &lt;script&gt;
    // 🟢 Автоматичне створення розпорядку
    function generateSchedule() {
      const input = document.getElementById(&#039;tasks&#039;).value;
      const tasks = input.split(&#039;\n&#039;).filter(t =&gt; t.trim() !== &#039;&#039;);
      const scheduleDiv = document.getElementById(&#039;schedule&#039;);
      scheduleDiv.innerHTML = &#039;&#039;;

      let time = new Date();
      time.setSeconds(0);
      time.setMilliseconds(0);

      tasks.forEach((task, index) =&gt; {
        const timeLabel = time.toTimeString().slice(0, 5);
        const block = document.createElement(&#039;div&#039;);
        block.className = &#039;block&#039;;
        block.textContent = `${timeLabel} — ${task} (25 хв)`;
        scheduleDiv.appendChild(block);

        time.setMinutes(time.getMinutes() + 25);

        if (index &lt; tasks.length - 1) {
          const breakLabel = time.toTimeString().slice(0, 5);
          const breakBlock = document.createElement(&#039;div&#039;);
          breakBlock.className = &#039;block&#039;;
          breakBlock.textContent = `${breakLabel} — перерва (5 хв)`;
          scheduleDiv.appendChild(breakBlock);

          time.setMinutes(time.getMinutes() + 5);
        }
      });
    }

    // 🔔 Ручний таймер із сигналом
    let manualTimeLeft = 0;
    let manualInterval;
    let manualRunning = false;
    let manualLabel = &#039;&#039;;
    let soundEnabled = true;
    const beep = document.getElementById(&#039;beepSound&#039;);

    function setManualTimer(seconds, label) {
      clearInterval(manualInterval);
      manualTimeLeft = seconds;
      manualLabel = label;
      manualRunning = false;
      updateManualDisplay();
      document.getElementById(&#039;manualStatus&#039;).textContent = `Режим: ${label}`;
    }

    function toggleManualTimer() {
      if (manualRunning) {
        clearInterval(manualInterval);
        manualRunning = false;
      } else {
        manualRunning = true;
        manualInterval = setInterval(() =&gt; {
          manualTimeLeft--;
          updateManualDisplay();
          if (manualTimeLeft &lt;= 0) {
            clearInterval(manualInterval);
            manualRunning = false;
            document.getElementById(&#039;manualStatus&#039;).textContent = `⏰ ${manualLabel} завершено!`;
            if (soundEnabled) beep.play();
          }
        }, 1000);
      }
    }

    function updateManualDisplay() {
      const minutes = Math.floor(manualTimeLeft / 60).toString().padStart(2, &#039;0&#039;);
      const seconds = (manualTimeLeft % 60).toString().padStart(2, &#039;0&#039;);
      document.getElementById(&#039;manualTimer&#039;).textContent = `${minutes}:${seconds}`;
    }

    function toggleSound() {
      soundEnabled = !soundEnabled;
      document.getElementById(&#039;soundButton&#039;).textContent = soundEnabled ? &#039;🔊 Звук увімкнено&#039; : &#039;🔇 Звук вимкнено&#039;;
    }
  &lt;/script&gt;</description>
            </item>
                    <item>
                <title>Розпорядок дня  Помодоро</title>
                <link>http://gs-permakultura-v-ukran.mozello.com/rozporjadok/params/post/5010358/rozporjadok-dnja-pomodoro</link>
                <pubDate>Tue, 03 Jun 2025 15:03:00 +0000</pubDate>
                <description>ееееееееееееееее&lt;hr class=&quot;moze-more-divider&quot;&gt;&lt;p&gt;1&lt;/p&gt;


  &lt;meta charset=&quot;UTF-8&quot;&gt;
  &lt;title&gt;Pomodoro Розпорядок&lt;/title&gt;
  &lt;style&gt;
    body {
      font-family: sans-serif;
      padding: 20px;
      background: #f7f7f7;
    }
    textarea {
      width: 100%;
      height: 100px;
      margin-bottom: 10px;
      padding: 10px;
      font-size: 16px;
    }
    button {
      padding: 10px 20px;
      font-size: 16px;
      cursor: pointer;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 5px;
    }
    button:hover {
      background-color: #45a049;
    }
    .schedule {
      margin-top: 20px;
      background: #fff;
      padding: 15px;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    .block {
      margin-bottom: 10px;
      font-weight: bold;
    }
  &lt;/style&gt;



  &lt;h1&gt;Мій розпорядок дня (Pomodoro)&lt;/h1&gt;
  &lt;p&gt;Введи список справ (по одному на рядок):&lt;/p&gt;
  &lt;textarea id=&quot;tasks&quot;&gt;&lt;/textarea&gt;
  &lt;br&gt;
  &lt;button onclick=&quot;generateSchedule()&quot;&gt;Створити розпорядок&lt;/button&gt;

  &lt;div class=&quot;schedule&quot; id=&quot;schedule&quot;&gt;&lt;/div&gt;

  &lt;script&gt;
    function generateSchedule() {
      const input = document.getElementById(&#039;tasks&#039;).value;
      const tasks = input.split(&#039;\n&#039;).filter(t =&gt; t.trim() !== &#039;&#039;);
      const scheduleDiv = document.getElementById(&#039;schedule&#039;);
      scheduleDiv.innerHTML = &#039;&#039;;

      const now = new Date();
      let time = now.getHours() * 60 + now.getMinutes(); // Поточний час у хвилинах

      const startTimeLabel = `${now.getHours().toString().padStart(2, &#039;0&#039;)}:${now.getMinutes().toString().padStart(2, &#039;0&#039;)}`;
      const pomodoroCount = document.createElement(&#039;div&#039;);
      pomodoroCount.className = &#039;block&#039;;
      pomodoroCount.textContent = `Початок: ${startTimeLabel}`;
      scheduleDiv.appendChild(pomodoroCount);

      tasks.forEach((task, index) =&gt; {
        // Завдання
        const hours = Math.floor(time / 60).toString().padStart(2, &#039;0&#039;);
        const minutes = (time % 60).toString().padStart(2, &#039;0&#039;);
        const timeLabel = `${hours}:${minutes}`;

        const block = document.createElement(&#039;div&#039;);
        block.className = &#039;block&#039;;
        block.textContent = `${timeLabel} — ${task} (25 хв)`;
        scheduleDiv.appendChild(block);

        time += 25;

        // Перерва
        if (index &lt; tasks.length - 1) {
          const breakLength = (index + 1) % 4 === 0 ? 15 : 5;
          const breakHours = Math.floor(time / 60).toString().padStart(2, &#039;0&#039;);
          const breakMinutes = (time % 60).toString().padStart(2, &#039;0&#039;);
          const breakLabel = `${breakHours}:${breakMinutes}`;

          const breakBlock = document.createElement(&#039;div&#039;);
          breakBlock.className = &#039;block&#039;;
          breakBlock.textContent = `${breakLabel} — перерва (${breakLength} хв)`;
          scheduleDiv.appendChild(breakBlock);

          time += breakLength;
        }
      });

      // Завершення
      const endHour = Math.floor(time / 60).toString().padStart(2, &#039;0&#039;);
      const endMin = (time % 60).toString().padStart(2, &#039;0&#039;);

      const summary = document.createElement(&#039;div&#039;);
      summary.className = &#039;block&#039;;
      summary.innerHTML = `&lt;hr&gt;Завершення о: &lt;strong&gt;${endHour}:${endMin}&lt;/strong&gt;`;
      scheduleDiv.appendChild(summary);
    }
  &lt;/script&gt;</description>
            </item>
                    <item>
                <title>Перша новина</title>
                <link>http://gs-permakultura-v-ukran.mozello.com/rozporjadok/params/post/4966566/persha-novina</link>
                <pubDate>Tue, 06 May 2025 07:49:00 +0000</pubDate>
                <description>&lt;p&gt;Це демо-текст, щоб продемонструвати як буде виглядати повідомлення в блозі. Видаліть цей пост і додайте свої власні повідомлення.&lt;/p&gt;&lt;hr class=&quot;moze-more-divider&quot;&gt;&lt;p&gt;ллллллллллллллллллл&lt;/p&gt;&lt;p&gt;&lt;/p&gt;


  &lt;meta charset=&quot;UTF-8&quot;&gt;
  &lt;title&gt;Pomodoro Розпорядок&lt;/title&gt;
  &lt;style&gt;
    body { font-family: sans-serif; padding: 20px; background: #f7f7f7; }
    textarea { width: 100%; height: 100px; margin-bottom: 10px; }
    button { padding: 10px 20px; font-size: 16px; cursor: pointer; }
    .schedule { margin-top: 20px; background: #fff; padding: 15px; border-radius: 8px; }
    .block { margin-bottom: 10px; font-weight: bold; }
  &lt;/style&gt;


  &lt;h1&gt;Мій розпорядок дня (Pomodoro)&lt;/h1&gt;
  &lt;p&gt;Введи список справ (по одному на рядок):&lt;/p&gt;
  &lt;textarea id=&quot;tasks&quot;&gt;&lt;/textarea&gt;
  &lt;br&gt;
  &lt;button onclick=&quot;generateSchedule()&quot; fdprocessedid=&quot;j5tif4&quot;&gt;Створити розпорядок&lt;/button&gt;
  &lt;div class=&quot;schedule&quot; id=&quot;schedule&quot;&gt;&lt;/div&gt;

  &lt;script&gt;
    function generateSchedule() {
      const input = document.getElementById(&#039;tasks&#039;).value;
      const tasks = input.split(&#039;\n&#039;).filter(t =&gt; t.trim() !== &#039;&#039;);
      const scheduleDiv = document.getElementById(&#039;schedule&#039;);
      scheduleDiv.innerHTML = &#039;&#039;;

      let time = 9 * 60; // Початок з 9:00 ранку

      tasks.forEach((task, index) =&gt; {
        const hours = Math.floor(time / 60).toString().padStart(2, &#039;0&#039;);
        const minutes = (time % 60).toString().padStart(2, &#039;0&#039;);
        const timeLabel = `${hours}:${minutes}`;

        const block = document.createElement(&#039;div&#039;);
        block.className = &#039;block&#039;;
        block.textContent = `${timeLabel} — ${task} (25 хв)`;
        scheduleDiv.appendChild(block);

        time += 25;

        // Додаємо перерву після кожного завдання, крім останнього
        if (index &lt; tasks.length - 1) {
          const breakHours = Math.floor(time / 60).toString().padStart(2, &#039;0&#039;);
          const breakMinutes = (time % 60).toString().padStart(2, &#039;0&#039;);
          const breakLabel = `${breakHours}:${breakMinutes}`;

          const breakBlock = document.createElement(&#039;div&#039;);
          breakBlock.className = &#039;block&#039;;
          breakBlock.textContent = `${breakLabel} — перерва (5 хв)`;
          scheduleDiv.appendChild(breakBlock);

          time += 5;
        }
      });
    }
  &lt;/script&gt;</description>
            </item>
            </channel>
</rss>