-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrolling_dice.html
32 lines (32 loc) · 897 Bytes
/
rolling_dice.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Rolling Dice</title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
article, aside, figure, footer, header, hgroup,
menu, nav, section { display: block; }
label {
display: inline-block;
width: 150px;
margin-right: 10px;
vertical-align: top;
text-align: right;
}
</style>
</head>
<body>
<form id="form">
<label>Type of dice 1:</label> <input type="text" id="type" /><br />
<span id="addDice"></span>
<label>Number of roll, dice 1:</label> <input type="text" id="number" /><br />
<span id="addRoll"></span>
<input type="button" id="jet" value="I can haz mah dice roll'd ?" onclick="rollDice()" />
<input type="button" id="add" value="add a dice" onclick="addDice()" />
</form>
<p id="result"></p>
</body>
</html>