Welcome to the RuneGlory Wiki, where we do our best to make your life easier!
You can use the search menu on the right side of the wiki (or at the bottom if you are on mobile) to search for the page you are looking for. The most popular pages can be found on the right side of the wiki aswell (or again at the bottom if you are on mobile).
Difference between revisions of "Dannyx Test2"
From RuneGlory
Line 1: | Line 1: | ||
− | |||
<html> | <html> | ||
<head> | <head> | ||
Line 25: | Line 24: | ||
<th>Your Prayer XP</td> | <th>Your Prayer XP</td> | ||
<td> <img id="prayer" src="https://i.imgur.com/Vq65Tdh.png"> | <td> <img id="prayer" src="https://i.imgur.com/Vq65Tdh.png"> | ||
− | <input type="text" id="curxp" name="skill-xp | + | <input type="text" id="curxp" name="skill-xp" maxlength="9" placeholder="Your XP"> |
</td> | </td> | ||
<tr> | <tr> | ||
Line 31: | Line 30: | ||
<td> <img id="prayer" src="https://i.imgur.com/Vq65Tdh.png"> | <td> <img id="prayer" src="https://i.imgur.com/Vq65Tdh.png"> | ||
<input type="text" id="tarxp" name="skill-xp" maxlength="9" value="13034431"> | <input type="text" id="tarxp" name="skill-xp" maxlength="9" value="13034431"> | ||
+ | </td> | ||
+ | |||
<tr> | <tr> | ||
− | <th> | + | <th>Bonuses</td> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<td> | <td> | ||
− | + | <div id="No Brawlers"> | |
− | <input type=" | + | <input type="checkbox" name="No Brawlers" value="0" /> Donator Totem <br /> |
− | + | <div id="Prayerbrawlers"> | |
+ | <input type="checkbox" name="Prayerbrawlers" value="2" id="prayer-brawlers"/> Prayer Brawlers<br /> | ||
+ | </div> | ||
+ | </div> | ||
+ | <button onclick="calculate();"> calculate </button> | ||
</table> | </table> | ||
Line 66: | Line 51: | ||
document.getElementById("curxp").value = "Invalid Amount!"; | document.getElementById("curxp").value = "Invalid Amount!"; | ||
} | } | ||
+ | |||
} | } | ||
Line 78: | Line 64: | ||
} | } | ||
+ | |||
+ | function calculate() { | ||
// ***** Getting current XP & Target Xp ***** | // ***** Getting current XP & Target Xp ***** | ||
Line 84: | Line 72: | ||
// ***** Fixed variables for XP ets ***** | // ***** Fixed variables for XP ets ***** | ||
− | + | ||
− | + | var zogreBoneXp = 60000; | |
− | + | ||
− | + | if(document.getElementById("prayer-brawlers").checked == true) { | |
− | + | zogreBoneXp *= 2; | |
− | + | } | |
− | + | ||
− | + | console.log(zogreBoneXp); | |
− | + | ||
+ | myFunction(zogreBoneXp) | ||
+ | |||
+ | |||
+ | } | ||
+ | |||
+ | |||
// ***** Start of function to calculate everything ***** | // ***** Start of function to calculate everything ***** | ||
− | function myFunction() { | + | |
+ | function myFunction(zogreBoneXp) { | ||
var x = document.getElementById("curxp").value; | var x = document.getElementById("curxp").value; | ||
Line 103: | Line 98: | ||
// ***** Calculate XP ***** | // ***** Calculate XP ***** | ||
− | |||
document.getElementById("zogrer").innerHTML = Math.ceil((y - x)/zogreBoneXp); | document.getElementById("zogrer").innerHTML = Math.ceil((y - x)/zogreBoneXp); | ||
− | + | document.getElementById("ourgr").innerHTML = Math.ceil((y - x)/ourgBoneXp); | |
− | + | ||
− | |||
− | document.getElementById(" | ||
− | |||
− | |||
− | |||
− | |||
− | |||
// ***** Calculate XP required ***** | // ***** Calculate XP required ***** | ||
document.getElementById("xpneeded").innerHTML = (y - x); | document.getElementById("xpneeded").innerHTML = (y - x); | ||
+ | |||
+ | |||
+ | } | ||
− | |||
</script> | </script> | ||
<table width="75%"> | <table width="75%"> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<tr> | <tr> | ||
<td> | <td> | ||
Line 169: | Line 118: | ||
<td id="zogrer"> </td> | <td id="zogrer"> </td> | ||
</tr> | </tr> | ||
− | + | <td> | |
− | |||
<img id="next" src="https://i.imgur.com/HXjMCVh.png"> Ourg Bones </td> | <img id="next" src="https://i.imgur.com/HXjMCVh.png"> Ourg Bones </td> | ||
<td id="ourgr"> </td> | <td id="ourgr"> </td> |
Revision as of 07:22, 7 July 2018
Prayer Table:
Your Prayer XP | |
---|---|
Target XP | |
Bonuses |
Donator Totem
Prayer Brawlers
|
Zogre Bones | Ourg Bones |