We do our best to give you all information you need. Use the Search menu to search for the page you are looking for. The most used pages are on the side menu or in the Popular Pages page.

Do you miss important stuff or do you have suggestions? Let us know via Discord or in-game. Thank you for using our Wiki!

Difference between revisions of "User:Jplayer"

From GrinderScape Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<html>
 
<html>
 
<input id="item_database_input" type="text" placeholder="Search item...">
 
<input id="item_database_input" type="text" placeholder="Search item...">
<button id="item_database_button" onclick="alert('hey');">Go</button>
+
<button id="item_database_button" onclick="hey();">Go</button>
  
 
<div id="result"></div>
 
<div id="result"></div>
  
 
<div id='item_database' hidden><div item='abyssal vine whip'>Abyssal vine whip;12000;10000000000;12000000000;No;Yes;No;No;Yes;PP, PKP, OP;Wield for combat.;;1;2;3;4;5;6;7;8;9;10;11;12</div><div item='torva platebody'>Torva platebody;12000;10000000000;12000000000;No;Yes;No;No;Yes;PP, PKP, OP;Worn for protection.;;15;95;15;15;0;10;10;10;10;10;10;10</div></div>
 
<div id='item_database' hidden><div item='abyssal vine whip'>Abyssal vine whip;12000;10000000000;12000000000;No;Yes;No;No;Yes;PP, PKP, OP;Wield for combat.;;1;2;3;4;5;6;7;8;9;10;11;12</div><div item='torva platebody'>Torva platebody;12000;10000000000;12000000000;No;Yes;No;No;Yes;PP, PKP, OP;Worn for protection.;;15;95;15;15;0;10;10;10;10;10;10;10</div></div>
 
<script>
 
 
alert( "hello" );
 
$( "#item_database_button" ).click( function() {
 
 
var input = $( "input#item_database_input" ).val().toLowerCase();
 
 
if ( $( "div#item_database > div[item='" + input + "']" ).length > 0 ) {
 
 
var data = $( "div#item_database > div[item='" + input + "']" ).html().split( ";" );
 
 
var name = data[0];
 
var id = data[1];
 
 
var min_price = data[2];
 
var max_price = data[3];
 
 
var donator = data[4];
 
var tradeable = data[5];
 
var noteable = data[6];
 
var stackable = data[7];
 
var equipable = data[8];
 
 
var sources = data[9];
 
var uses = data[10];
 
var notes = data[11];
 
 
var ab_stab = data[12];
 
var ab_slash = data[13];
 
var ab_crush = data[14];
 
var ab_magic = data[15];
 
var ab_range = data[16];
 
 
var db_stab = data[17];
 
var db_slash = data[18];
 
var db_crush = data[19];
 
var db_magic = data[20];
 
var db_range = data[21];
 
 
var ob_strenght = data[22];
 
var ob_prayer = data[23];
 
 
$( "div#result" ).html( "<b>name: </b>" + name + "<br><b>id: </b>" + id + "<br><b>min_price: </b>" + min_price + "<br><b>max_price: </b>" + max_price + "<br><b>donator: </b>" + donator + "<br><b>tradeable: </b>" + tradeable + "<br><b>noteable: </b>" + noteable + "<br><b>stackable: </b>" + stackable + "<br><b>equipable: </b>" + equipable + "<br><b>sources: </b>" + sources + "<br><b>uses: </b>" + uses + "<br><b>notes: </b>" + notes );
 
 
} else {
 
 
$( "div#result" ).html( "Item not found." );
 
 
};
 
});
 
 
</script>
 
 
</html>
 
</html>

Revision as of 22:09, 22 April 2016