Skip to content

Commit 1f08253

Browse files
authored
Update index.html
1 parent ecd1eeb commit 1f08253

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

index.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@
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>
@@ -289,7 +290,7 @@
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;
@@ -846,15 +847,23 @@
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>

0 commit comments

Comments
 (0)