File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change 1616<!-- Google analytics -->
1717< script src ="js/analytics.js "> </ script >
1818
19- <!-- Meow woof -->
20- < script >
21- window . onload = function ( ) {
22-
23- $ . getJSON ( 'https://pypi.org/pypi/astropy/json' , function ( data ) {
24- document . getElementById ( 'core-package-version' ) . innerHTML = 'Current Version: ' + data . info . version ;
25- } ) ;
26-
27-
28- var today = new Date ( ) ;
29- var month = today . getMonth ( ) + 1 ;
30- var date = today . getDate ( ) ;
31-
32- if ( month == 4 && date == 1 ) {
33- $ ( '#hero img' ) . attr ( 'src' , 'images/astropy_meow.png' ) ;
34- $ ( '#hero img' ) . attr ( 'onerror' , 'this.src=\x27images/astropy_meow.png\x27; this.onerror=null;' ) ;
35-
36- var dogeContainer = document . getElementById ( "prenew" ) ;
37- var dogeImg = document . createElement ( "img" ) ;
38- dogeImg . onload = function ( ) {
39- dogeContainer . appendChild ( dogeImg ) ;
40- }
41- dogeImg . src = 'images/astropy_doge.png' ;
42- dogeImg . alt = 'wow so open very python' ;
43- }
44-
45- } ;
46- </ script >
47-
4819</ head >
4920
5021< body >
You can’t perform that action at this time.
0 commit comments