Skip to content

Commit 8c04a0f

Browse files
psst... doc bugfix
1 parent ee1d3ed commit 8c04a0f

File tree

2 files changed

+92
-16
lines changed

2 files changed

+92
-16
lines changed

docs/source/_static/pop-plankton.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ var hpos = 'right:-' + (50 + Math.floor(Math.random() * 10)) + 'px;';
2222
var vpos = 'bottom:' + (Math.floor(Math.random() * 80) + 10) + '%;';
2323

2424
var img = document.createElement("img");
25-
img.src = document.location.pathname.split('/').slice(0,8).join("/")+"/_images/plankton-only.svg";//"../_images/plankton-only.svg";
25+
// var img_path = $.get("_images/plankton-only.svg)
26+
img.src = "_images/plankton-only.svg";//"../_images/plankton-only.svg";
27+
if (document.location.pathname.split('/')[8]=='rst'){
28+
img.src = "../_images/plankton-only.svg";
29+
}
30+
2631
img.id = "pop-plankton";
2732
img.onmouseenter = escape_mouse;
2833
img.width = 100;

0 commit comments

Comments
 (0)