Fossil

Check-in [6b139de0]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix the javascript used to activate hyperlinks.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 6b139de03f349cc49a7d517ae0a7f3291d81df639d2f88677079160a0f8515f2
User & Date: drh 2019-05-14 11:22:46.222
Context
2019-05-14
11:41
Ensure that the wiki and markdown rule text has been materialized prior to rendering it. ... (check-in: e95c5514 user: drh tags: trunk)
11:22
Fix the javascript used to activate hyperlinks. ... (check-in: 6b139de0 user: drh tags: trunk)
11:17
Fix the anti-robot logic so that auto-hyperlink-mouseover actually works and so that the "mouseover" setting sent down to javascript is determined only by the setting on the Access page. ... (check-in: 37f23f37 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/href.js.
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
function antiRobotDefense(){
  var x = document.getElementById("href-data");
  var jx = x.textContent || x.innerText;
  var g = JSON.parse(jx);
  var isOperaMini =
       Object.prototype.toString.call(window.operamini)==="[object OperaMini]";
  if(g.mouseover && !isOperaMini){
    document.getElementByTagName("body")[0].onmousemove=function(){
      setTimeout(setAllHrefs, g.delay);
    }
  }else{
    setTimeout(setAllHrefs, g.delay);
  }
}
antiRobotDefense()







|







32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
function antiRobotDefense(){
  var x = document.getElementById("href-data");
  var jx = x.textContent || x.innerText;
  var g = JSON.parse(jx);
  var isOperaMini =
       Object.prototype.toString.call(window.operamini)==="[object OperaMini]";
  if(g.mouseover && !isOperaMini){
    document.getElementsByTagName("body")[0].onmousemove=function(){
      setTimeout(setAllHrefs, g.delay);
    }
  }else{
    setTimeout(setAllHrefs, g.delay);
  }
}
antiRobotDefense()