aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html47
1 files changed, 0 insertions, 47 deletions
diff --git a/index.html b/index.html
deleted file mode 100644
index f5f825e..0000000
--- a/index.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<!doctype HTML>
-
-<html>
-
- <head>
- <title>Timer</title>
- <meta charset="utf-8">
- <link rel="stylesheet" href="design/reset.css">
- <link rel="stylesheet" href="design/design.css">
- <link rel="stylesheet" href="design/font-awesome/css/font-awesome.min.css">
- <link rel="icon" type="image/png" href="images/icon.png">
- <script src="elm.js"></script>
- </head>
-
- <body>
- </body>
-
- <script>
- var timer = Elm.fullscreen(Elm.Main, {
- initialTime: new Date().getTime(),
- keyPress: 0
- });
-
- const sound = new Audio('alarm.wav');
- sound.addEventListener('ended', function() {
- this.currentTime = 0;
- this.play();
- }, false);
-
- timer.ports.ringingTimers.subscribe(function(isRinging) {
- if(isRinging) {
- document.title = "~\\ Timer /~";
- sound.play();
- } else {
- document.title = "Timer";
- sound.pause();
- sound.currentTime = 0;
- }
- });
-
- document.onkeypress = function(event) {
- timer.ports.keyPress.send(event.which);
- };
-
- </script>
-
-</html>