aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-03-22 13:52:06 +0100
committerJoris Guyonvarch2015-03-22 13:52:06 +0100
commit7037f04e3118346e9b7510e90e1ef98bbcab0f3f (patch)
treeb1e37786a12613d53a1bbf19b2c3302dc90d77e5 /index.html
parenta2b550b87a5f5bafa0d004606267838b135bcdb9 (diff)
Remove click away that quit edition
Diffstat (limited to 'index.html')
-rw-r--r--index.html8
1 files changed, 0 insertions, 8 deletions
diff --git a/index.html b/index.html
index 795bf0b..f5f825e 100644
--- a/index.html
+++ b/index.html
@@ -18,17 +18,9 @@
<script>
var timer = Elm.fullscreen(Elm.Main, {
initialTime: new Date().getTime(),
- clickAway: [],
keyPress: 0
});
- timer.ports.clickPosition.subscribe(function(pos) {
- const element = document.elementFromPoint(pos.x, pos.y);
- if(element.nodeName != 'BUTTON') {
- timer.ports.clickAway.send([]);
- }
- });
-
const sound = new Audio('alarm.wav');
sound.addEventListener('ended', function() {
this.currentTime = 0;