diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2015-09-22 11:00:29 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2015-09-22 11:00:29 +0200 |
commit | 0f710f142448b591032ee711571dfbf2bcfde5cf (patch) | |
tree | 30b6ac1e9084b07e047d35e87bb69e303c8099d5 /hesla.es | |
parent | f37d936d0f83b97857d0a8a1384328f768ed9699 (diff) | |
download | hesla-0f710f142448b591032ee711571dfbf2bcfde5cf.tar.gz |
Scroll to the top of the new psalm always.
Diffstat (limited to 'hesla.es')
-rw-r--r-- | hesla.es | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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"); |