ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

Coding Snack Request: Javascript countdown timer with multiple weekly targets

(1/1)

mouser:
I had an idea for my favorite web comic, Head in the Clouds, created by dc members Tim and Nick (and now done by Tim).

The idea was a javascript/php countdown that shows how long until the next comic will be posted.

There are lots of countdown timers available; but i've not found one that let the author easily set multiple weekly target times.

So i was thinking some javascript that could be invoked using something like this:

in html file:
Next comic will be posted in
<script>
EmbedCountdownTimer("monday 18:00 cst; wednesday 18:00 cst");
</script>

That would produce a live timer that said something like "Next comic will be posted in 2 days, 6 hours, 10 minutes"

note: maybe it would be better to use cron format to specify the target times?

Navigation

[0] Message Index

Go to full version