Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Jaded Burnout
Jul 10, 2004


SpaceAceJase posted:

Humble Request
Problem: Sobriety clock in Javascript
Description and requirements:
I'd like to quit a few bad habits, and a simple javascript-driven clock counting upwards with the number of days/hours/minutes/seconds it's been would be a helpful reminder and motivator. I use a web application daily that I can include the script on so it's always near my line of sight.

Nice to have features:
Data returned in JSON as an option? (simple API). Motivational quotes from a source? Open to ideas. I like a minimalist neat UI.

Some slightly confusing requirements here. The basics (the clock) are easy, but this is presumably a stateful application, i.e. you would want to go away and come back and have it still counting up from the same place, be able to reset it etc. So that means some data storage somewhere, usually a database? At which point you're getting a bit further from simple JS or a script you can embed in something else.

Likewise when you're talking about an API do you mean a method you can call when the script is loaded to get the time in JSON or are you talking about an HTTP endpoint? If the latter then again we're in Slightly Bigger App territory so at the least we'd need to know more details on your plans for hosting this and what frameworks you'd prefer it written in.

Adbot
ADBOT LOVES YOU

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply