001e019a2368237cf28c4a304b240e4c31c6af20
shtclck
A shotclock app for pool players according to the Mosconi Cup rules:
Each player has up to 30 seconds to complete each shot. The clock will start when the last moving ball on the table comes to rest. Failure to play a shot in the allocated time will result in loss of visit and cue ball in hand to the incoming player. After the break shot, a player can take a maximum of 60 seconds to appraise the table. The clock will start after the completion of the first shot in open play. Each Player (singles) or team (doubles) is allowed one 30-second extension per rack. This can be called at any time within the initial 30 seconds. (https://matchroompool.com/programmes/MosconiCup2020.pdf)
Get started at https://shtclck.org
authors notes
- fully intended to be used on mobile devices
- it works on my machine ;)
- yep, it's a
tablelayout. don't blame me, i'm a backend dev :D
how it works
- just give it a try. :)
- most elements are clickable and some more actions are triggered on a "long press" event.
- it's intended for the device to be fullscreen and landscape oriented.
issues / suggestions / ...
- feel free to create an issue on this project!
credits to:
- Krafti Lab for "Seven Segment" font (https://www.cdnfonts.com/seven-segment.font)
- unknown for "Profession" font family (https://www.cdnfonts.com/profession.font)
- Font Awesome for the icons (https://fontawesome.com/)
- Delapouite for template of the 12-ball-logo (https://commons.wikimedia.org/wiki/File:136_Bilardo.svg)
- Stack Overflow for
- https://stackoverflow.com/questions/5047346/converting-strings-like-document-cookie-to-objects
- https://stackoverflow.com/questions/6139225/how-to-detect-a-long-touch-pressure-with-javascript-for-android-and-iphone
- https://stackoverflow.com/questions/879152/how-do-i-make-javascript-beep
- and many more open tabs :)
- RealFaviconGenerator for (you guessed it!) favicons (https://realfavicongenerator.net/)
Languages
JavaScript
57.6%
HTML
31.3%
CSS
11.1%