diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2015-09-23 18:59:56 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2015-09-23 18:59:56 +0200 |
commit | 3546023b7e8d57020685bf3556e41a76e4df7ec1 (patch) | |
tree | 3d3958f68ae6b9de7907043bcdd87014afe2d9ea /zalmy.es | |
parent | 07351654b6747eba4e9d7800a425d1026d7d8440 (diff) | |
download | zalmy-3546023b7e8d57020685bf3556e41a76e4df7ec1.tar.gz |
Refactor out some zalmy.display() to ActivePage.display()
Diffstat (limited to 'zalmy.es')
-rw-r--r-- | zalmy.es | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -55,15 +55,9 @@ export class Psalm extends ActivePage * Displays the particular Psalm */ display() { - // first scroll then switch to avoid blinking of the page - window.scroll(0, 0); + super.display(); - var visibleElems = document.getElementsByClassName("visible"); - Array.prototype.forEach.call(visibleElems, function(e) { - e.classList.remove("visible"); - }); console.log("cur_psalm = " + this.cur_psalm); - let psalm_id = `Ps.${this.cur_psalm}`; console.log(`psalm_id = ${psalm_id}`); document.getElementById(psalm_id).parentElement. |