Calculator Tools Calculator Tools

Interval Pulse - 150s Cycle Timer

Oct 21, 2026

About this app

A professional interval timer that alerts you every 150 seconds. Track your cycles, estimate total time, and stay on schedule with audible alerts.

Interval Pulse - Pro Productivity & Workout Timer Interval Pulse Smart Cycle Tracking 2:30 Status 0 / 20 Time Remaining 50m 00s Finish Expected At --:--:-- Start Session Pause Configuration Cycle Seconds Repeat Count Alert Sound Digital Pulse High Pitch Beep Soft Bell Retro Rise Voice Only Auto-start next cycle Recent Completions Clear Designed for focused execution. Keep your browser open to ensure alerts trigger accurately.

Put this on your site

Source

                    <html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">

<title>Interval Pulse - Pro Productivity & Workout Timer</title>
<meta name="description" content="Customizable interval timer with finish time estimation, history logging, and specialized audio alerts for maximum productivity.">
<meta name="keywords" content="timer, interval timer, productivity tool, workout timer, finish time calculator, cycle alarm, custom sounds">

<!-- Libraries -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" crossorigin="anonymous">

<script type="text/javascript">
// App State
let timerInterval = null;
let intervalDuration = 150;
let timeLeft = 150;
let totalRepeats = 20;
let repeatsCompleted = 0;
let isRunning = false;
let isAlarmPlaying = false;
let selectedSound = 'pulse';
let autoStartNext = true;
let history = [];

// Audio Logic
let audioCtx = null;
function getAudioContext() {
if (!audioCtx) {
audioCtx = new (window.AudioContext || window.webkitAudioContext)();
}
return audioCtx;
}

function playBeep(duration = 200, frequency = 440, type = 'sine', volume = 0.1) {
const ctx = getAudioContext();
const oscillator = ctx.createOscillator();
const gainNode = ctx.createGain();

oscillator.type = type;
oscillator.frequency.setValueAtTime(frequency, ctx.currentTime);
oscillator.connect(gainNode);
gainNode.connect(ctx.destination);

gainNode.gain.setValueAtTime(volume, ctx.currentTime);
gainNode.gain.exponentialRampToValueAtTime(0.01, ctx.currentTime + duration/1000);

oscillator.start();
oscillator.stop(ctx.currentTime + duration/1000);
}

const sounds = {
pulse: () => {
playBeep(400, 440, 'square', 0.15);
setTimeout(() => playBeep(400, 554.37, 'square', 0.15), 500);
setTimeout(() => playBeep(600, 659.25, 'square', 0.15), 1000);
},
high: () => {
playBeep(200, 1000, 'sine', 0.2);
setTimeout(() => playBeep(200, 1000, 'sine', 0.2), 300);
setTimeout(() => playBeep(200, 1000, 'sine', 0.2), 600);
},
bell: () => {
playBeep(800, 880, 'sine', 0.2);
setTimeout(() => playBeep(1200, 659, 'sine', 0.15), 400);
},
retro: () => {
playBeep(100, 150, 'sawtooth', 0.1);
setTimeout(() => playBeep(100, 300, 'sawtooth', 0.1), 100);
setTimeout(() => playBeep(100, 600, 'sawtooth', 0.1), 200);
setTimeout(() => playBeep(100, 1200, 'sawtooth', 0.1), 300);
},
voice: () => {
speak("Interval complete.");
}
};

function speak(text) {
if ('speechSynthesis' in window) {
window.speechSynthesis.cancel();
const utterance = new SpeechSynthesisUtterance(text);
utterance.rate = 1.0;
utterance.pitch = 1.0;
window.speechSynthesis.speak(utterance);
}
}

function playCurrentSound() {
if (sounds[selectedSound]) {
sounds[selectedSound]();
}
}

// Persistence
function saveLocal() {
const data = {
totalRepeats,
intervalDuration,
selectedSound,
autoStartNext,
history
};
localStorage.setItem('intervalPulseDataV2', JSON.stringify(data));
}

function loadLocal() {
const data = localStorage.getItem('intervalPulseDataV2');
if (data) {
const parsed = JSON.parse(data);
totalRepeats = parsed.totalRepeats || 20;
intervalDuration = parsed.intervalDuration || 150;
selectedSound = parsed.selectedSound || 'pulse';
autoStartNext = parsed.autoStartNext !== undefined ? parsed.autoStartNext : true;
history = parsed.history || [];

$('#repeats-input').val(totalRepeats);
$('#duration-input').val(intervalDuration);
$('#sound-select').val(selectedSound);
$('#auto-start-toggle').prop('checked', autoStartNext);

timeLeft = intervalDuration;
renderHistory();
}
}

// UI Updates
function formatTime(seconds) {
const mins = Math.floor(seconds / 60);
const secs = seconds % 60;
return `${mins}:${secs.toString().padStart(2, '0')}`;
}

function formatDuration(seconds) {
const hrs = Math.floor(seconds / 3600);
const mins = Math.floor((seconds % 3600) / 60);
const secs = seconds % 60;
if (hrs > 0) return `${hrs}h ${mins}m ${secs}s`;
return `${mins}m ${secs}s`;
}

function formatClockTime(date) {
return date.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', second: '2-digit' });
}

function updateDisplay() {
$('#timer-display').text(formatTime(timeLeft));
$('#repeats-count').text(`${repeatsCompleted} / ${totalRepeats}`);

const repeatsLeft = totalRepeats - repeatsCompleted;
const totalRemainingSeconds = Math.max(0, (repeatsLeft - 1) * intervalDuration + timeLeft);

$('#total-time-estimate').text(formatDuration(totalRemainingSeconds));

const now = new Date();
const finishTime = new Date(now.getTime() + totalRemainingSeconds * 1000);
$('#finish-at').text(formatClockTime(finishTime));

const circumference = 565; // 2 * PI * 90
const offset = (timeLeft / intervalDuration) * circumference;
$('.progress-ring__circle--over').css('stroke-dashoffset', circumference - offset);

if (repeatsCompleted >= totalRepeats) {
$('#finish-at').text('--:--:--');
$('#total-time-estimate').text('Finished');
}
}

function renderHistory() {
const $list = $('#history-list');
$list.empty();
if (history.length === 0) {
$list.append('<div class="history-item text-center text-muted py-2">No history yet</div>');
return;
}
[...history].reverse().slice(0, 10).forEach((entry, idx) => {
$list.append(`
<div class="history-item">
<span>Cycle ${entry.cycle}</span>
<span class="text-muted small">${entry.timestamp}</span>
</div>
`);
});
}

function addHistory() {
const now = new Date();
history.push({
cycle: repeatsCompleted + 1,
timestamp: formatClockTime(now)
});
if (history.length > 50) history.shift();
saveLocal();
renderHistory();
}

function triggerAlarm() {
isAlarmPlaying = true;
$('#main-container').addClass('alarm-active');
playCurrentSound();
addHistory();

setTimeout(() => {
$('#main-container').removeClass('alarm-active');
isAlarmPlaying = false;

repeatsCompleted++;
if (repeatsCompleted < totalRepeats) {
timeLeft = intervalDuration;
if (!autoStartNext) {
stopTimer();
speak("Interval finished. Press start for next cycle.");
}
updateDisplay();
} else {
stopTimer();
speak("Session finished. Congratulations.");
alert("Session complete!");
}
}, 3000);
}

function startTimer() {
if (isRunning) return;
getAudioContext().resume();

if (repeatsCompleted >= totalRepeats) {
repeatsCompleted = 0;
timeLeft = intervalDuration;
}

isRunning = true;
$('#start-btn').addClass('d-none');
$('#stop-btn').removeClass('d-none');
$('.timer-settings input, .timer-settings select').prop('disabled', true);

timerInterval = setInterval(() => {
if (isAlarmPlaying) return;

if (timeLeft > 0) {
timeLeft--;
updateDisplay();
} else {
triggerAlarm();
}
}, 1000);
}

function stopTimer() {
isRunning = false;
clearInterval(timerInterval);
$('#start-btn').removeClass('d-none');
$('#stop-btn').addClass('d-none');
$('.timer-settings input, .timer-settings select').prop('disabled', false);
}

function resetTimer() {
stopTimer();
totalRepeats = parseInt($('#repeats-input').val()) || 20;
intervalDuration = parseInt($('#duration-input').val()) || 150;
repeatsCompleted = 0;
timeLeft = intervalDuration;
history = [];
updateDisplay();
renderHistory();
saveLocal();
}

$(document).ready(function() {
loadLocal();
updateDisplay();

$('#start-btn').on('click', startTimer);
$('#stop-btn').on('click', stopTimer);
$('#reset-btn').on('click', resetTimer);

$('#repeats-input').on('change', function() {
totalRepeats = parseInt($(this).val()) || 20;
updateDisplay();
saveLocal();
});

$('#duration-input').on('change', function() {
intervalDuration = parseInt($(this).val()) || 150;
timeLeft = intervalDuration;
updateDisplay();
saveLocal();
});

$('#auto-start-toggle').on('change', function() {
autoStartNext = $(this).is(':checked');
saveLocal();
});

$('#sound-select').on('change', function() {
selectedSound = $(this).val();
saveLocal();
});

$('#test-sound-btn').on('click', function() {
getAudioContext().resume();
playCurrentSound();
});

$('#clear-history-btn').on('click', function() {
history = [];
renderHistory();
saveLocal();
});
});
</script>

<style>
:root {
--primary: #818cf8;
--secondary: #f472b6;
--bg: #0f172a;
--panel: rgba(255, 255, 255, 0.07);
--accent-red: #ef4444;
}

html, body {
margin: 0;
padding: 0;
background-color: var(--bg);
color: #f8fafc;
font-family: 'Inter', -apple-system, sans-serif;
min-height: 100vh;
}

#main-container {
display: flex;
flex-direction: column;
align-items: center;
padding: 1.5rem;
min-height: 100vh;
background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
transition: background 0.4s ease;
}

#main-container.alarm-active {
background: #450a0a;
animation: flash 1s infinite alternate;
}

@keyframes flash {
from { background-color: #450a0a; }
to { background-color: #991b1b; }
}

.app-wrapper {
width: 100%;
max-width: 480px;
}

.card-glass {
background: var(--panel);
backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 1.5rem;
padding: 2rem;
margin-bottom: 1.5rem;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.visualizer {
position: relative;
width: 220px;
height: 220px;
margin: 0 auto 1.5rem;
}

.progress-ring {
transform: rotate(-90deg);
}

.progress-ring__circle {
stroke-dasharray: 565;
transition: stroke-dashoffset 0.1s linear;
stroke-linecap: round;
}

.timer-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 3.5rem;
font-weight: 800;
letter-spacing: -2px;
font-variant-numeric: tabular-nums;
}

.stats-row {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
}

.stat-card {
flex: 1;
background: rgba(0, 0, 0, 0.3);
border-radius: 1rem;
padding: 1rem;
text-align: center;
}

.stat-card .label {
font-size: 0.7rem;
text-transform: uppercase;
color: #94a3b8;
margin-bottom: 0.25rem;
}

.stat-card .value {
font-weight: 700;
font-size: 1.1rem;
}

.action-btn {
height: 60px;
font-size: 1.1rem;
font-weight: 700;
border-radius: 1rem;
border: none;
transition: transform 0.2s, opacity 0.2s;
}

.action-btn:active { transform: scale(0.98); }

.btn-start { background: linear-gradient(to right, var(--primary), #6366f1); color: white; }
.btn-stop { background: var(--accent-red); color: white; }
.btn-reset { background: #334155; color: white; }

.settings-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
margin-top: 1.5rem;
}

.input-label {
font-size: 0.75rem;
color: #94a3b8;
margin-bottom: 0.3rem;
display: block;
}

.form-control-custom {
background: rgba(0, 0, 0, 0.4);
border: 1px solid rgba(255,255,255,0.1);
color: white;
border-radius: 0.75rem;
padding: 0.6rem;
width: 100%;
font-size: 0.9rem;
}

.form-control-custom:focus {
outline: 2px solid var(--primary);
border-color: transparent;
}

.history-section {
background: var(--panel);
border-radius: 1.5rem;
padding: 1.5rem;
}

.history-item {
display: flex;
justify-content: space-between;
padding: 0.75rem 0.25rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-item:last-child { border-bottom: none; }

.toggle-switch {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.85rem;
color: #cbd5e1;
}

.form-check-input:checked {
background-color: var(--primary);
border-color: var(--primary);
}

@media (max-width: 480px) {
.timer-text { font-size: 2.8rem; }
.visualizer { width: 180px; height: 180px; }
.progress-ring { width: 180px; height: 180px; }
.progress-ring circle { r: 75; cx: 90; cy: 90; stroke-dasharray: 471; }
.timer-text { font-size: 2.5rem; }
}
</style>
</head>
<body>
<div id="main-container">
<div class="app-wrapper">
<!-- Header -->
<div class="d-flex justify-content-between align-items-center mb-4 px-2">
<div>
<h2 class="mb-0 fw-bold" style="background: linear-gradient(to right, #818cf8, #f472b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">
Interval Pulse
</h2>
<span class="text-secondary small">Smart Cycle Tracking</span>
</div>
<button class="btn btn-reset" id="reset-btn" title="Reset everything">
<i class="fas fa-sync-alt"></i>
</button>
</div>

<!-- Primary Card -->
<div class="card-glass text-center">
<div class="visualizer">
<svg class="progress-ring" width="220" height="220">
<circle class="progress-ring__circle" stroke="rgba(255,255,255,0.05)" stroke-width="12" fill="transparent" r="90" cx="110" cy="110" />
<circle class="progress-ring__circle progress-ring__circle--over" stroke="#818cf8" stroke-width="12" stroke-dasharray="565" stroke-dashoffset="0" fill="transparent" r="90" cx="110" cy="110" />
</svg>
<div class="timer-text" id="timer-display">2:30</div>
</div>

<div class="stats-row">
<div class="stat-card">
<div class="label">Status</div>
<div class="value" id="repeats-count">0 / 20</div>
</div>
<div class="stat-card">
<div class="label">Time Remaining</div>
<div class="value" id="total-time-estimate">50m 00s</div>
</div>
</div>

<div class="stat-card w-100 mb-3" style="background: rgba(129, 140, 248, 0.1);">
<div class="label" style="color: var(--primary);">Finish Expected At</div>
<div class="value" id="finish-at" style="font-size: 1.5rem;">--:--:--</div>
</div>

<div class="d-grid gap-3">
<button id="start-btn" class="action-btn btn-start">
<i class="fas fa-play me-2"></i> Start Session
</button>
<button id="stop-btn" class="action-btn btn-stop d-none">
<i class="fas fa-pause me-2"></i> Pause
</button>
</div>
</div>

<!-- Settings -->
<div class="card-glass">
<h6 class="text-muted mb-3 text-uppercase small fw-bold">Configuration</h6>
<div class="settings-grid timer-settings">
<div>
<label class="input-label">Cycle Seconds</label>
<input type="number" id="duration-input" class="form-control-custom" value="150" min="10">
</div>
<div>
<label class="input-label">Repeat Count</label>
<input type="number" id="repeats-input" class="form-control-custom" value="20" min="1">
</div>
<div class="col-span-2" style="grid-column: span 2;">
<label class="input-label">Alert Sound</label>
<div class="input-group">
<select id="sound-select" class="form-control-custom">
<option value="pulse">Digital Pulse</option>
<option value="high">High Pitch Beep</option>
<option value="bell">Soft Bell</option>
<option value="retro">Retro Rise</option>
<option value="voice">Voice Only</option>
</select>
<button class="btn btn-outline-secondary px-3" id="test-sound-btn" style="border-radius: 0 0.75rem 0.75rem 0; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.2); color: white;">
<i class="fas fa-volume-up"></i>
</button>
</div>
</div>
<div class="col-span-2 pt-2" style="grid-column: span 2;">
<div class="form-check form-switch toggle-switch">
<input class="form-check-input" type="checkbox" id="auto-start-toggle" checked>
<label class="form-check-label" for="auto-start-toggle">Auto-start next cycle</label>
</div>
</div>
</div>
</div>

<!-- History -->
<div class="history-section">
<div class="d-flex justify-content-between align-items-center mb-3">
<h6 class="text-muted text-uppercase small fw-bold m-0">Recent Completions</h6>
<button class="btn btn-sm btn-link text-muted text-decoration-none p-0" id="clear-history-btn">Clear</button>
</div>
<div id="history-list">
<!-- History items populated here -->
</div>
</div>

<footer class="mt-5 text-center text-muted small pb-4">
<p>Designed for focused execution. Keep your browser open to ensure alerts trigger accurately.</p>
</footer>
</div>
</div>
</body>
</html>