File tree Expand file tree Collapse file tree 2 files changed +23
-207
lines changed Expand file tree Collapse file tree 2 files changed +23
-207
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,10 @@ var vpos = 'bottom:' + (Math.floor(Math.random() * 80) + 10) + '%;';
24
24
var img = document . createElement ( "img" ) ;
25
25
26
26
current_path = document . location ;
27
+ console . log ( document . location . origin == "null" ) ;
27
28
if ( document . location . origin == "null" ) { //local file
28
29
29
- console . loc ( 'local' ) ;
30
+ console . log ( 'local' ) ;
30
31
if ( ( document . location . pathname . split ( '/' ) ) . includes ( "rst" ) ) {
31
32
img . src = "../_images/plankton-only.svg" ;
32
33
}
@@ -35,7 +36,7 @@ if (document.location.origin == "null") { //local file
35
36
}
36
37
}
37
38
else {
38
- console . loc ( 'remote' ) ;
39
+ console . log ( 'remote' ) ;
39
40
img . src = document . location . href . split ( '/' ) . slice ( 0 , 5 ) . join ( "/" ) + "_images/plankton-only.svg" ;
40
41
console . log ( img . src )
41
42
// if ((document.location.pathname.split('/')).includes("rst")) {
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments