File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 263263 < p id ="sa_text "> </ p >
264264 </ div >
265265 < div id ="in_div ">
266+ < p id ="in_text "> noob-Common</ p >
266267 < button id ="0 " style ="width:100px; height:100px; "> < img src ="" id ="i0 " width ="100 " height ="100 "> </ button >
267268 < button id ="1 " style ="width:100px; height:100px; "> < img src ="" id ="i1 " width ="100 " height ="100 "> </ button >
268269 < button id ="2 " style ="width:100px; height:100px; "> < img src ="" id ="i2 " width ="100 " height ="100 "> </ button >
289290 < button id ="ma_zoomin "> Zoom in</ button >
290291 < button id ="ma_zoomout "> Zoom out</ button >
291292 </ div >
292- < p > < br /> v175 </ p >
293+ < p > < br /> v176 </ p >
293294 < script >
294295 //////////////////////////////////////////////////////////////////////////////////////////////INIT VARS
295296 var mouseX = 0 ;
846847 g_ahash = "0" + g_ahash ;
847848 }
848849 if ( ( m_hash == m_ahash ) && ( g_hash == g_ahash ) ) {
849- document . getElementById ( "sa_text" ) . innerHTML = "Success"
850+ document . getElementById ( "sa_text" ) . innerHTML = "Success" ;
850851 m = parseInt ( m_save ) ;
851852 g = parseInt ( g_save ) ;
852853 char_rarity = parseInt ( code . charAt ( 18 ) ) ;
853854 char_num = parseInt ( code . charAt ( 19 ) ) ;
854855 } else {
855- document . getElementById ( "sa_text" ) . innerHTML = "Invalid save code. Make sure all numbers are correct"
856+ document . getElementById ( "sa_text" ) . innerHTML = "Invalid save code. Make sure all numbers are correct" ;
856857 }
857858 } ;
859+ //////////////////////////////////////////////////////////////////////////////////////////////INVENTORY-EQUIP
860+ for ( var iter = 0 ; iter < 15 ; iter ++ ) {
861+ document . getElementById ( iter ) . onclick = function ( ) {
862+ char_rarity = Math . floor ( this . id / 5 ) ;
863+ char_num = this . id % 5 ;
864+ document . getElementById ( "in_text" ) . innerHTML = char_name [ char_rarity ] [ char_num ] + "-" + ranks [ char_rarity ] + ": #" + this . id ;
865+ } ;
866+ } ;
858867 </ script >
859868 </ body >
860869</ html >
You can’t perform that action at this time.
0 commit comments