<einar-timer> optional attributes

Add this line to your HTML document to use <einar-timer>:


attribute value options
color color, black default
background background, transparent default
fontfamily fontfamily
fontsize fontsize
timerupdate show (default) | hide
timermessage message to show while timing (if timerupdate == "hide"), "Timing" default
decimals Number of decimals to show while timing. [0, 3], 2 (default)
startkey keycode of start key, 32 default (spacebar)
stopkey keycode of stop key, 32 default (spacebar)
stopfunc function to trigger when timer stops, gets two arguments (ms, formatedTime)