-
Notifications
You must be signed in to change notification settings - Fork 0
/
jsdice.html
90 lines (66 loc) · 2.74 KB
/
jsdice.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
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<html>
<head>
<title>A quick little site for when i'm bored!</title>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id="header">
<h1>javascript experiments</h1>
<p>this website is for me to showcase some small javascript things i've been trying in my spare time.</p>
</div>
<div class="topbar">
<h2>js: dice roller.</h2>
<div class="navbar">
<a href="index.html">introduction</a>
<a href="about.html">about</a>
<a href="directory.html">directory</a>
</div>
</div>
<hr />
<div class = "page-content">
<div class = "dicerow">
<div class = "dicebox">
<h2>D4</h2>
<button type="button" onclick="rollD4()">Roll</button>
<div class = "result" id="txtD4"></div>
</div>
<div class = "dicebox">
<h2>D6</h2>
<button type="button" onclick="rollD6()">Roll</button>
<div class = "result" id="txtD6"></div>
</div>
<div class = "dicebox">
<h2>D8</h2>
<button type="button" onclick="rollD8()">Roll</button>
<div class = "result" id="txtD8"></div>
</div>
<div class = "dicebox">
<h2>D10</h2>
<button type="button" onclick="rollD10()">Roll</button>
<div class = "result" id="txtD10"></div>
</div>
<div class = "dicebox">
<h2>D12</h2>
<button type="button" onclick="rollD12()">Roll</button>
<div class = "result" id="txtD12"></div>
</div>
<div class = "dicebox">
<h2>D20</h2>
<button type="button" onclick="rollD20()">Roll</button>
<div class = "result" id="txtD20"></div>
</div>
</div>
<h2>Custom Dice</h2>
<input type = "text" id = "cdicenum"><br />
<button type="button" onclick="rollCustom()">Roll</button>
<div class = "result" id="txtCustom"></div>
</div>
<hr />
<div id="footer">
<a href="about.html">summer anderson-cheung</a>
<a href="https://www.ncl.ac.uk/computing/">newcastle university</a>
<script src="rolldice.js"></script>
</div>
</body>
</html>
<!-- Ctrl + Alt + I to Intent! -->