Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
/ spar Public archive

A browser-based, Javascript, multi-round countdown timer.

License

Notifications You must be signed in to change notification settings

skrobinson/spar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spar

Spar is an in-browser, Javascript-based, multi-round countdown timer. Its main purpose is to support Scottsdale Community College GLG101IN mineral quizzes. But it is flexible enough that others may find it useful.

Use

The single, large button on the countdown screen can be clicked to start, pause, and resume the countdown. The space bar will operate the button without a mouse.

Customization

For a custom timer, the following options can be passed in the URL search parameters:

  • interval: milliseconds per round (default: 60000)
  • nrRounds: number of countdowns to show (default: 25)
  • pause: hidden delay between rounds, in milliseconds (default: 2000)
  • sound: play sounds ending each round (default: true)

The default values reflect a 25 round quiz with 1 minute per round. At the end of each round, students change to the next mineral sample for the next round. A two second delay between rounds gives a little time to make the change without taking up too much quiz time. Three tones sound at the end of each round to cue students to change samples.

The following sample creates a countdown timer with 3 rounds of 10 seconds each, 1.5 seconds between rounds, and sounds played at the end of each round.

spar.html?interval=10000&nrRounds=3&pause=1500&sound=true`

The appearance (e.g. colors) of Spar can be changed by editing timerOpts object values and resources/spar.css.

License

Copyright 2018,2019 Scottsdale Community College

Spar is published under the GPL v3+ license.

Acknowledgements

Spar and its tests use:

jQuery UI, licensed under the MIT license

jQuery JavaScript Library, licensed under the MIT license

RoundDown, licensed under the MIT license

WadJS by Raphael Serota, licensed under the MIT license

A custom version of Blanket.js, original by Alex-Seville, licensed under the MIT license

jQuery Simulate, licensed under the MIT license

QUnit, licensed under the MIT license

About

A browser-based, Javascript, multi-round countdown timer.

Resources

License

Stars

Watchers

Forks

Packages

No packages published