Failed to embed rtt.html in Trees.md
Closed this issue · 4 comments
ArtPoon commented
Apparently mouse pointer isn't being captured:
d3.v3.min.js:1 Uncaught TypeError: Cannot read property 'sourceEvent' of null
at k (VM15 d3.v3.min.js:1)
at Object.oa.mouse (VM15 d3.v3.min.js:3)
at SVGRectElement.<anonymous> (rtt.js:132)
at SVGRectElement.__onmousemove (VM15 d3.v3.min.js:1)
ArtPoon commented
Deleting this chunk:
<!--{% include njtree.html %} -->
## Likelihood
## Maximum likelihood trees
## Software
## Further readings
eliminates the error, but since I've commented out the include
call, I can't understand why..
ArtPoon commented
Yes, it's definitely njtree.html
interfering with the rtt animation.
TIL Jekyll ignores comments when parsing include
tags..
ArtPoon commented
Between rtt.html
and njtree.html
:
- d3 is being loaded twice
- jQuery is being loaded twice
- need to be cautious of duplicate global variables
ArtPoon commented
Loading d3 and jQuery once only fixes this issue