Skip to content

Instantly share code, notes, and snippets.

@pmutua
Created February 24, 2017 13:16
Show Gist options
  • Save pmutua/d8c4ce7265cee4ce27cfa09156b71984 to your computer and use it in GitHub Desktop.
Save pmutua/d8c4ce7265cee4ce27cfa09156b71984 to your computer and use it in GitHub Desktop.
pingpong
<div class="col-md-10">
<div class="content">
<!-- add a form-->
<form id="pingPongForm">
<h1>Let's play!</h1>
<h2>Rules!</h2>
<p>PingPong will count your number with the following exceptions</p>
<ol>
<li>Numbers divisible by 3 becomes "ping"</li>
<li>Numbers divisible by 5 becomes "pong"</li>
<li>Numbers divisible by 15 becomes "pingpong"</li>
</ol>
<div class="form-group">
<label for="number">Enter your number please:</label>
<input id="number" class="formcontrol" required=" " type="text "></input>
<button class="btn">Ping-Pong!</button>
</div>
<div id="userOutput"></div>
</form>
</div>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment