-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
91 lines (89 loc) · 4.98 KB
/
index.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
91
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Diceroller</title>
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.bundle.min.js" integrity="sha384-xrRywqdh3PHs8keKZN+8zzc5TX0GRTLCcmivcbNJWm2rs5C8PRhcEn3czEjhAO9o" crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-12 col-lg-6">
<form onsubmit="return false;">
<h2 class="row">Dice pool information</h2>
<div class="form-group row">
<label for="dice-pool" class="col-sm-2 col-form-label">Pool</label>
<div class="col-sm-10">
<input id="dice-pool" class="form-control" type="number" min="0" value="5" pattern="\d*"/>
</div>
</div>
<div class="form-group row">
<label for="difficulty" class="col-sm-2 col-form-label">Difficulty</label>
<div class="col-sm-10">
<input id="difficulty" class="form-control" type="number" min="2" max="10" value="6" pattern="\d*"/>
</div>
</div>
<div class="form-group row">
<div class="col-sm-2">Specialty</div>
<div class="col-sm-10">
<div class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-secondary">
<input class="form-check-input" type="radio" name="specialty" id="specialty1" value="yes" autocomplete="off"/> Yes
</label>
<label class="btn btn-secondary active">
<input class="form-check-input" type="radio" checked="checked" name="specialty" id="specialty2" value="no" autocomplete="off"/>No
</label>
</div>
</div>
</div>
<div class="form-group row">
<div class="col-sm-2">Willpower</div>
<div class="col-sm-10">
<div class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-secondary">
<input class="form-check-input" type="radio" name="willpower" id="willpower1" value="yes" autocomplete="off"/> Yes
</label>
<label class="btn btn-secondary active">
<input class="form-check-input" type="radio" checked="checked" name="willpower" id="willpower2" value="no" autocomplete="off"/> No
</label>
</div>
</div>
</div>
<div class="form-group row">
<div class="col">
<button class="btn btn-primary" id="roll-button">Roll</button>
</div>
</div>
</form>
</div>
<div class="col-12 col-lg-6">
<h2 class="row">Results</h2>
<div class="row" id="successes-row">
<div class="col">Successes:</div>
<div class="col" id="result-successes"></div>
</div>
<div class="row" id="botch-row" style="display:none">
<div class="col text-center" style="font-weight: bold">Botch!!</div>
</div>
<div class="row">
<div class="col">Specialty:</div>
<div class="col" id="result-specialty"></div>
</div>
<div class="row">
<div class="col">Willpower:</div>
<div class="col" id="result-willpower"></div>
</div>
<div class="row">
<div class="col">Rolls:</div>
<div class="col" id="result-rolls"></div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="./bundle.js"></script>
</body>
</html>