diff options
-rw-r--r-- | hesla.ts | 19 | ||||
-rw-r--r-- | sworker.js | 2 |
2 files changed, 4 insertions, 17 deletions
@@ -99,22 +99,9 @@ export class Hesla extends ActivePage { super.display(); console.log("cur_watchword = " + toISODateString(this.cur_watchword)); - var disp_watchword = document.getElementById(toISODateString(this.cur_watchword)); - disp_watchword.classList.add("visible"); - - // Complete mobile device identification /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/ - if (/Android/i.test(navigator.userAgent)) { - // true for mobile device - var href_attr = ""; - Array.prototype.forEach.call(disp_watchword.getElementsByTagName("a"), a_elem => { - href_attr = a_elem.getAttribute("href"); - console.log("before replacement: href_attr = " + href_attr); - href_attr = href_attr.replace(/http:\/\/www\.crosswire\.org\/study\/passagestudy\.jsp\?key=([^&]+)&mod=([a-zA-Z]+)/, - "https://read.andbible.org/$1?v11n=$2"); - console.log("after replacement: href_attr = " + href_attr); - a_elem.setAttribute("href", href_attr); - }); - } + document.getElementById(toISODateString(this.cur_watchword)). + classList.add("visible"); + window.scroll(0, 0); } @@ -1,4 +1,4 @@ -var VERSION = 'v63 - 2024-01-07'; +var VERSION = 'v64 - 2024-04-15'; var toCache = [ '/', 'activePage.js', |