Embed Widget
Add a live budget counter to your website
Standard Widget
Full counter showing debt interest accumulation.
Preview
Copy Code
<!-- Pakistan Budget Clock Widget -->
<div id="pak-budget-widget" style="font-family: system-ui, sans-serif; background: #0a0a0b; border-radius: 8px; padding: 16px; max-width: 320px;">
<div style="text-align: center; margin-bottom: 12px;">
<span style="color: #6b7280; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;">Debt Interest Since July 1</span>
</div>
<div id="pak-debt-counter" style="font-size: 28px; font-weight: bold; color: #ef4444; text-align: center; font-variant-numeric: tabular-nums;"></div>
<div style="text-align: center; margin-top: 8px;">
<span style="color: #9ca3af; font-size: 12px;">Rs 260,241 per second</span>
</div>
<div style="text-align: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1);">
<a href="https://pakbudgetclock.com" target="_blank" style="color: #6b7280; font-size: 10px; text-decoration: none;">
Pakistan Budget Clock
</a>
</div>
</div>
<script>
(function() {
const FISCAL_YEAR_START = new Date('2025-07-01T00:00:00+05:00');
const DEBT_PER_SECOND = 260241;
function updateCounter() {
const now = new Date();
const elapsed = (now - FISCAL_YEAR_START) / 1000;
const value = Math.max(0, Math.floor(elapsed * DEBT_PER_SECOND));
const el = document.getElementById('pak-debt-counter');
if (el) el.textContent = 'Rs ' + value.toLocaleString('en-PK');
}
updateCounter();
setInterval(updateCounter, 100);
})();
</script> Mini Widget
Inline button that can be placed anywhere.
Preview
Copy Code
<!-- Pakistan Budget Clock - Mini Widget -->
<a href="https://pakbudgetclock.com" target="_blank" style="display: inline-flex; align-items: center; gap: 8px; background: #0a0a0b; border-radius: 6px; padding: 8px 12px; text-decoration: none; font-family: system-ui, sans-serif;">
<span style="color: #ef4444; font-weight: bold;" id="pak-mini-counter"></span>
<span style="color: #6b7280; font-size: 11px;">debt/sec</span>
</a>
<script>
(function() {
const FISCAL_YEAR_START = new Date('2025-07-01T00:00:00+05:00');
const DEBT_PER_SECOND = 260241;
function update() {
const elapsed = (new Date() - FISCAL_YEAR_START) / 1000;
const el = document.getElementById('pak-mini-counter');
if (el) el.textContent = 'Rs ' + Math.floor(elapsed * DEBT_PER_SECOND).toLocaleString('en-PK');
}
update();
setInterval(update, 100);
})();
</script> Usage Guidelines
- ✓ Use in news articles, blogs, and editorials
- ✓ Use for educational purposes
- ✓ Share on social media
- ✗ Do not modify code to spread misinformation