Countdown widget for your site
Make a small countdown box to paste into your website or blog. It updates every day on its own. You also get a Markdown link and an image for places that do not allow code.
Your image is made on your device. Nothing you enter is uploaded.
Worked example
If you make a widget for Winter today, the code shows 16 days until Monday, December 21, 2026. A reader who opens your page tomorrow sees 15, because the small script counts the days again in their own time zone each time the page loads. When scripts are blocked, the number written into the code is shown instead.
Writers use the widget for product launches, event pages, fundraising deadlines and wedding websites. Notion and GitHub users paste the Markdown link, which opens the live countdown on this site.
Good to know: the box uses inline styles, so your site's theme will not change its look, and it adapts to the width of the column it sits in. Because the number is worked out on the reader's device, the page itself can be cached by your host without the countdown going stale. If your platform strips scripts, such as some page builders or email newsletters, the box still shows the number written into the code on the day you copied it. In that case, copy a fresh version now and then, or link to the live countdown page instead.
What the code looks like
The box is plain HTML with its styles inline, plus a tiny script that recalculates the days in each visitor's own time zone. It loads nothing from other sites.
<div style="…"><b data-dl-cd="2026-12-25">20</b> days until Christmas…</div> <script>/* 6 lines: updates the number each day */</script>
How it works
The HTML version works anywhere you can paste code: WordPress (in a Custom HTML block), Blogger, Squarespace, Wix (in an embed box), Ghost and plain HTML pages. It shows the number of days when the page loads and needs no account. The number is also written into the code, so it still shows if scripts are blocked.
Notion, GitHub READMEs and most forums do not run scripts. For those, use the Markdown link, which opens the live countdown, or download the image badge. An image cannot change, so it shows the days left on the day you make it.
The box includes a small credit link to the countdown on this site. You can remove it if you prefer; the widget keeps working.
Questions people ask
Does the widget slow down my site?
No. It is a few hundred bytes of HTML and a six-line script, with no external files, cookies or tracking.
Can I use it in Notion?
Notion does not run custom scripts, so use the Markdown link or the image. The link opens a countdown that is always up to date.
What happens after the date passes?
The number stops at 0. Replace the code with a new date when you need another countdown.
Can I change the colours?
Yes. Pick one of the colour sets before copying, or edit the colour codes in the style attribute yourself.