-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdice.htm
More file actions
62 lines (61 loc) · 1.5 KB
/
dice.htm
File metadata and controls
62 lines (61 loc) · 1.5 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="dice.js"></script>
<title></title>
<style type="text/css">
#cont{width:100%;}
#container
{
positon:absolute;
margin:0 auto;
}
</style>
</head>
<body>
<script src="dice.js"></script>
<div id="container">
<div id="content">
<h1>John's Dice Roller</h1>
<table>
<tr>
<th></th>
<th>Enter Values</th>
<th>Ignore Comparison</th>
</tr>
<tr>
<td><p>Amount of Rolls</p></td>
<td><input type="text" id = "rolls" name="rolls" value="40" /></td>
</tr>
<tr>
<td><p>Comparison 1</p></td>
<td><input type="text" id="comp1" name="comp1" value="3" /></td>
</tr>
<tr>
<td><p>Comparison 2</p></td>
<td><input type="text" id="comp2" name="comp2" value="4" /></td>
<td><input type="checkbox" id="ignore2" name="Ignore2" value=""></td></td>
</tr>
<tr>
<td><p>Comparison 3</p></td>
<td><input type="text" id="comp3" name="comp3" value="3" /></td>
<td><input type="checkbox" id="ignore3" name="Ignore3" value=""></td></td>
</tr>
</table>
<button type="button" onclick="diceroller();">Click me to Calculate</button>
<h2>Special Functions</h2>
<table>
<tr>
<td>Special Function<input type="checkbox" id="special1" name="Something" value="special"></td>
</tr>
</table>
<h3>Output:</h3>
<table>
<tr>
<td><input type="text" id="output" name="output" value=0 disabled/></td>
</tr>
</table>
</div>
</div>
</body>
</html>