Elmo sacroficial game



Welcome to Elmo Sacroficial Game. u can either sacrofice him or spare him from death and misery. goodluck soldier

Code

<html>
<body>
<center>
<div style="background-color: red; display: inline-block;">

<button onclick="document.getElementById('ThisPic').src='Elmo.gif'">Spare</button>

<img id="ThisPic" src="live.gif" style="width:200px">

<button onclick="document.getElementById('ThisPic').src='sacrofice.gif'">Sacrofice</button>

<br><br>

<button type="button" onclick="myFunction()">Reveal Identity</button>

<p id="d1"></p>
<p id="d2"></p>
<p id="d02"></p>
<p id="d3"></p>
</center>
<script>
function myFunction() {
  document.getElementById("d1").innerHTML = "Subject: Elmo";
  document.getElementById("d2").innerHTML = "Age:";
  document.getElementById("d02").innerHTML = Math.floor(Math.random() * 1000);
  document.getElementById("d3").innerHTML = "Description: He is khoolWhip";
  }
</script>
</div>
</body>
</html>