@@ -2,7 +2,7 @@ function qs(s){return document.getElementById(s)};
22function dc ( s ) { return document . createElement ( s ) } ;
33function rand ( min , max ) { return Math . floor ( Math . random ( ) * ( max - min + 1 ) ) + min } ;
44
5- var tableIndex = [ 23 , 30 , 46 , 53 , 58 , 78 , 63 , 79 , 89 , 112 , 149 , 162 , 165 , 250 , 261 , 270 , 253 , 253 ] ;
5+ var tableIndex = [ 23 , 30 , 46 , 53 , 58 , 78 , 63 , 79 , 89 , 112 , 149 , 162 , 165 , 250 , 261 , 270 , 253 , 253 , 252 ] ;
66var lastInfo ;
77var startingYear = 2005 ;
88
@@ -142,7 +142,13 @@ function change(urls)
142142 else
143143 {
144144 link . href = urls . pageUrl ;
145- trans . href = "http://www.microsofttranslator.com/bv.aspx?from=&to=en&a=" + encodeURI ( urls . pageUrl ) ;
145+
146+ // older Bing translation
147+ //trans.href = "http://www.microsofttranslator.com/bv.aspx?from=&to=en&a="+encodeURI(urls.pageUrl);
148+
149+ //current Google translation
150+ trans . href = link . href . replace ( "http://" , "https://" ) . replace ( "famicase.com" , "famicase-com.translate.goog" ) + "?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=fr&_x_tr_pto=wapp" ;
151+
146152 enableLinks ( true )
147153 }
148154
@@ -284,6 +290,16 @@ function refreshList()
284290
285291}
286292
293+
294+ // Key press event
295+ document . body . onkeyup = function ( e ) {
296+ if ( e . key == " " || e . code == "Space" || e . keyCode == 32 || e . key == "r" ) {
297+ randomize ( ) ;
298+ }
299+ }
300+
301+
302+
287303randomize ( ) ;
288304refreshList ( ) ;
289305
@@ -298,10 +314,10 @@ refreshList();
298314 - 2017 : 001 002 003 012 123
299315 - 2018 : 01_sample 02_sample 03_sample 12_sample 123_sample
300316 - 2019 to 2020 : 01_sample 02_sample 03_sample 012_sample 123_sample
301- - 2021 to 2022 : 001 002 003 012 123
317+ - 2021 to 2023 : 001 002 003 012 123
302318
303319 Index of html pages too :
304320 - 2008 to 2016 : 01 02 03 12 123
305- - 2017 to 2022 : 001 002 003 012 123
321+ - 2017 to 2023 : 001 002 003 012 123
306322
307323*/
0 commit comments