summaryrefslogtreecommitdiffstats
path: root/zalmy.es
diff options
context:
space:
mode:
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.