Introduction
Ever wonder how long the game is going to go? Now you can know.
Do you like to watch baseball, but have other stuff to do? Now you can.
All you have to do is open index.html (in the baseball game info folder) in the browser of your choice. Then, when the game starts, push Now in the top part of the window. Some info will then come up in the bottom part of the window; the start time, the innings played, the number of outs, and the estimated time of the end of the game.
When the info first comes up, obviously, where won't be any outs. For this reason, the estimated time of the end of the game will say "NaN", which means "Not a Number" in JavaScript. This is what is put into a variable in JavaScript when you try to divide by zero. Since there is no time put in for the first out, the time lapsed for the game played is 0.
Future updates
- Graphical timeline of start and end of game.
- Information that can be entered into text fields, in case you start this program in the middle of the game.
- "End of Game" message when the end of the game is reached.
Known bugs, errors, etc.
- If game goes past 12am (a rarity, I know, but it happens), program calculations are screwed up.
- In Firefox (on Linux), "start of game" time goes to zero.
If you find any other errors, or have comments, just
e-mail me.
Thanks for checking out my program.
Cat Fud