From b299eb02f8ca03c7f0bce5053e6fae5407c76929 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 26 Jan 2016 15:43:55 +0100 Subject: Scroll to the top after showing new watchword not before. --- hesla.es | 2 ++ sworker.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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', -- cgit