diff options
author | Joris | 2020-02-16 22:45:07 +0100 |
---|---|---|
committer | Joris | 2020-02-17 09:15:11 +0100 |
commit | 25afb0bde9b8a2c064135a534231c232a461b341 (patch) | |
tree | 5ab25640024238a2f6f2d176e5870178f18b5345 /src/main.ml | |
parent | 0366f8cd49d2db40ea5efc639f6a475ecd97675e (diff) |
Set up a first version of tabata timer
Diffstat (limited to 'src/main.ml')
-rw-r--r-- | src/main.ml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main.ml b/src/main.ml new file mode 100644 index 0000000..e399e3b --- /dev/null +++ b/src/main.ml @@ -0,0 +1,18 @@ +let onTimerStart () = + Animation.start + ~onHidden:(fun () -> + let () = Config.hide () in + let () = Timer.init () in + Timer.show ()) + ~onEnded:Timer.start + +let onTimerStop () = + Animation.start + ~onHidden:(fun () -> + let () = Timer.hide () in + Config.show ()) + ~onEnded:(fun () -> ()) + +let () = + let () = Config.setup onTimerStart in + Timer.setup onTimerStop |