How to use1. Sit comfortably and relax your shoulders.2. Tap Start Session.3. Follow the prompt inside the circle: • Inhale through your nose for 4 seconds. • Hold for 4 seconds. • Exhale through your mouth for 4 seconds. • Hold for 4 seconds.4. Repeat 4–8 cycles (about 1–2 minutes). Tap again to pause any time.
Inhale
Cycle: 4 – 4 – 4 – 4 seconds
(function(){ const btn = document.getElementById('bbToggle'); const circle = document.getElementById('bbCircle'); const label = document.getElementById('bbLabel'); const phases = ['Inhale','Hold','Exhale','Hold']; let i = 0, timer = null, running = false; function setPhase(idx){ label.textContent = phases[idx]; } function start(){ running = true; circle.classList.add('run'); i = 0; setPhase(i); timer = setInterval(()=>{ i = (i + 1) % 4; setPhase(i); }, 4000); btn.textContent = 'Pause'; } function stop(){ running = false; circle.classList.remove('run'); clearInterval(timer); btn.textContent = 'Start Session'; } btn.addEventListener('click', ()=> running ? stop() : start()); })();