diff options
author | Joris Guyonvarch | 2015-03-22 13:52:06 +0100 |
---|---|---|
committer | Joris Guyonvarch | 2015-03-22 13:52:06 +0100 |
commit | 7037f04e3118346e9b7510e90e1ef98bbcab0f3f (patch) | |
tree | b1e37786a12613d53a1bbf19b2c3302dc90d77e5 /index.html | |
parent | a2b550b87a5f5bafa0d004606267838b135bcdb9 (diff) |
Remove click away that quit edition
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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; |