aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2016-01-26 15:43:55 +0100
committerMatěj Cepl <mcepl@cepl.eu>2016-01-26 15:43:55 +0100
commitb299eb02f8ca03c7f0bce5053e6fae5407c76929 (patch)
treeeddc43e71aaf0fe57724c6d846a1ec795e4a393b
parenta4dfab6d0ff3a4a9bf8d837fd195cd59f765f5e5 (diff)
downloadhesla-b299eb02f8ca03c7f0bce5053e6fae5407c76929.tar.gz
Scroll to the top after showing new watchword not before.
-rw-r--r--hesla.es2
-rw-r--r--sworker.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/hesla.es b/hesla.es
index 8f94bbf..6545537 100644
--- a/hesla.es
+++ b/hesla.es
@@ -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() {
diff --git a/sworker.js b/sworker.js
index c0a4d54..c282e3d 100644
--- a/sworker.js
+++ b/sworker.js
@@ -1,4 +1,4 @@
-var version = 'v34 - 2016-01-20';
+var version = 'v35 - 2016-01-26';
var toCache = [
'/',
'index.html',