aboutsummaryrefslogtreecommitdiffstats
path: root/hesla.es
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2015-09-22 11:00:29 +0200
committerMatěj Cepl <mcepl@cepl.eu>2015-09-22 11:00:29 +0200
commit0f710f142448b591032ee711571dfbf2bcfde5cf (patch)
tree30b6ac1e9084b07e047d35e87bb69e303c8099d5 /hesla.es
parentf37d936d0f83b97857d0a8a1384328f768ed9699 (diff)
downloadhesla-0f710f142448b591032ee711571dfbf2bcfde5cf.tar.gz
Scroll to the top of the new psalm always.
Diffstat (limited to 'hesla.es')
-rw-r--r--hesla.es3
1 files changed, 3 insertions, 0 deletions
diff --git a/hesla.es b/hesla.es
index ba53e2f..4952662 100644
--- a/hesla.es
+++ b/hesla.es
@@ -88,6 +88,9 @@ export class Hesla extends ActivePage {
* Displays the Losungen for the given date (or today if not defined)
*/
display() {
+ // first scroll then switch to avoid blinking of the page
+ window.scroll(0, 0);
+
var visibleElems = document.getElementsByClassName("visible");
Array.prototype.forEach.call(visibleElems, function(e) {
e.classList.remove("visible");