Final Results

by UTree

HTML

<html>
<body>

    <form action="http://10.10.97.23:3000/submitScore">
        Enter Your Name:<br>
        <input type="text" name="name" placeholder="John Doe">
        <br>
        <p id="kills" value="Your Kills Are: ">
        
        </p>
        <p id="shots" value="You Used This Much Ammo: ">
        
        </p>
        <p id="accuracy" value="Your Accuracy Was: ">
        
        </p>
        <p id="score" value="Your Score Was: ">
        
        </p>
         <br>
          <br>
          <br>
        <input type="hidden" id="topscore" value="Submit">
    </form>

   

</body>
</html>

JavaScript

var kills =document.getElementById("kills");//Use to get Species Cleared, Accuracy
var shots =document.getElementById("shots");//get times fired
var accuracy=document.getElementById("accuracy");
var score=document.getElementById("score");
kills.value += getKills();
shots.value += getShots();
accuracy.value += kills/(shots+kills);
score.value += getScore();
var truefalse=document.getElementById("topscore");
truefalse.value = "button";