File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -44,15 +44,6 @@ window.addEventListener("DOMContentLoaded", () => {
44
44
tabs [ tabFocus ] . focus ( ) ;
45
45
}
46
46
} ) ;
47
- ///////////////////////////////////////
48
- // rotate images in images-rotate directory:
49
- var ind = getRandomInt ( images_rotate . length ) ;
50
- var im = images_rotate [ ind ] . image ;
51
- st = '<img class="imrot-img" src="_static/images-rotate/' + im + '" />'
52
- var cap = images_rotate [ ind ] . caption ;
53
- var link = "https://matplotlib.org/stable/" + images_rotate [ ind ] . link ;
54
- st2 = '<div class="imrot-cap">' + cap + '</div>'
55
- document . getElementById ( 'image_rotator' ) . innerHTML = '<a href="' + link + '"> ' + st + st2 + '</a>' ;
56
47
} ) ;
57
48
58
49
function changeTabs ( e ) {
@@ -82,3 +73,12 @@ function changeTabs(e) {
82
73
. removeAttribute ( "hidden" ) ;
83
74
}
84
75
76
+ ///////////////////////////////////////
77
+ // rotate images in images-rotate directory:
78
+ var ind = getRandomInt ( images_rotate . length ) ;
79
+ var im = images_rotate [ ind ] . image ;
80
+ st = '<img class="imrot-img" src="_static/images-rotate/' + im + '" />'
81
+ var cap = images_rotate [ ind ] . caption ;
82
+ var link = "https://matplotlib.org/stable/" + images_rotate [ ind ] . link ;
83
+ st2 = '<div class="imrot-cap">' + cap + '</div>'
84
+ document . getElementById ( 'image_rotator' ) . innerHTML = '<a href="' + link + '"> ' + st + st2 + '</a>' ;
You can’t perform that action at this time.
0 commit comments