Skip to content

Instantly share code, notes, and snippets.

@sarimarton
Last active August 31, 2021 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sarimarton/08b2bf9c0881be6cabe7466020ec244e to your computer and use it in GitHub Desktop.
Save sarimarton/08b2bf9c0881be6cabe7466020ec244e to your computer and use it in GitHub Desktop.
Time Part Field
Time Part Field
focused -> Init
Init*
typed non-finishing digit -> Init
typed finishing digit -> Finished
Finished
let max = 12
let context = 0
function render(model){
let current_state_name = model.active_states[0].name;
return <pre tabIndex={0} onKeyDown={() => {}}>{String(context).padStart(2, '0')}</pre>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment