diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2016-01-26 15:43:55 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2016-01-26 15:43:55 +0100 |
commit | b299eb02f8ca03c7f0bce5053e6fae5407c76929 (patch) | |
tree | eddc43e71aaf0fe57724c6d846a1ec795e4a393b | |
parent | a4dfab6d0ff3a4a9bf8d837fd195cd59f765f5e5 (diff) | |
download | hesla-b299eb02f8ca03c7f0bce5053e6fae5407c76929.tar.gz |
Scroll to the top after showing new watchword not before.
-rw-r--r-- | hesla.es | 2 | ||||
-rw-r--r-- | sworker.js | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -102,6 +102,8 @@ export class Hesla extends ActivePage { console.log("cur_watchword = " + this.cur_watchword); document.getElementById(this.cur_watchword.toISODateString()). classList.add("visible"); + + window.scroll(0, 0); } today() { @@ -1,4 +1,4 @@ -var version = 'v34 - 2016-01-20'; +var version = 'v35 - 2016-01-26'; var toCache = [ '/', 'index.html', |