summaryrefslogtreecommitdiffstats
path: root/zalmy.es
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2015-09-23 18:59:56 +0200
committerMatěj Cepl <mcepl@cepl.eu>2015-09-23 18:59:56 +0200
commit3546023b7e8d57020685bf3556e41a76e4df7ec1 (patch)
tree3d3958f68ae6b9de7907043bcdd87014afe2d9ea /zalmy.es
parent07351654b6747eba4e9d7800a425d1026d7d8440 (diff)
downloadzalmy-3546023b7e8d57020685bf3556e41a76e4df7ec1.tar.gz
Refactor out some zalmy.display() to ActivePage.display()
Diffstat (limited to 'zalmy.es')
-rw-r--r--zalmy.es8
1 files changed, 1 insertions, 7 deletions
diff --git a/zalmy.es b/zalmy.es
index aa433c1..a40a0c2 100644
--- a/zalmy.es
+++ b/zalmy.es
@@ -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.