Okay, so I’ve been hyped for the Star Rail 2.4 update, and like many others, I wanted a countdown timer. I didn’t want to keep checking websites, so I thought, “Why not make my own?” It seemed like a fun little project.

First, I brainstormed a bit. What did I want? Something simple, clean, and easy to read. No fancy graphics, just the essentials: days, hours, minutes, and seconds ticking down.
Then, I decided to use basic HTML and JavaScript. I’m no coding expert, but I know enough to get by. I opened up a text editor and started with a basic HTML structure:
- A
<div>
to hold the countdown. - Separate
<span>
elements for days, hours, minutes, and seconds. Gave them IDs so I could target them with JavaScript. - Basic styling inline. Just changing color and font size.
Next up, the JavaScript. This was the tricky part, but it was mostly just figuring out the date calculations. I grabbed the supposed release date and time (based on usual update patterns, of course – nothing official!). Then, I set up a setInterval
function to update the timer every second.
Inside the interval function, I did the following:
- Calculated the difference between the release date and the current date/time.
- Converted that difference into days, hours, minutes, and seconds. Lots of to get whole numbers.
- Updated the
<span>
elements with the new values. Simple.textContent
stuff.
I kept testing and tweaking. There were a few hiccups with the time calculations, especially around daylight saving time. I even had to change a couple of digits with trial and error. But eventually, I got it working! It’s not perfect, and it relies on an estimated release time, but it’s my countdown timer, and it does the job.

It’s pretty basic, but it served its purpose. Now, instead of constantly refreshing websites, I can just glance at my little countdown and get back to my day. Mission accomplished!