API & Embedding
Access schedule data or embed the countdown on your own site.
Accessing Schedule Data
While there isn't a traditional backend API, you can access the raw schedule data directly from the JavaScript file. This is useful for building your own tools or integrations.
Endpoint URL:
/js/data/schedules.js
Example Usage (JavaScript):
fetch('/js/data/schedules.js')
.then(response => response.text()) // The file is a JS file, not JSON
.then(text => {
// This is a bit of a hack to get the object from the file
const schedules = new Function(`${text}; return schedules;`)();
console.log(schedules.A_DAY);
});
Embed Countdown
Embed a simple, clean version of the countdown timer on your website using an iframe. It will automatically adapt to light and dark themes based on the user's system preference.
Embed Preview:
HTML Embed Code:
<iframe
src="https://your-website-url.com/embed.html"
width="100%"
height="200"
frameborder="0"
scrolling="no"
></iframe>