-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
92 lines (84 loc) · 3.81 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
92
<!DOCTYPE html>
<html>
<head>
<title>Running Dinner</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Custom CSS -->
<link rel="stylesheet" type="text/css" href="styles/main.css">
<!-- JQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- Cutstom Scripts -->
<script src="scripts/htmlManipulation.js"></script>
<script src="scripts/main.js"></script>
<script src="scripts/randomizer.js"></script>
<script src="scripts/utils.js"></script>
</head>
<body>
<div class="mainBody">
<h1 class="header">Running dinner 😎</h1>
<div id="main">
<div class="row">
<div class="col-xs-offset-1 col-xs-5">
<div class="panel panel-default">
<div class="panel-heading">
<h4>Add Group</h4>
</div>
<div class="panel-body">
<div class="form-group">
<input id="group-name" type="text" class="form-control">
</div>
<div class="checkbox">
<input id="group-vegetarian" type="checkbox">Vegetarians<br>
</div>
<button type="button" class="btn btn-primary" onclick="addGroup()">Add</button>
</div>
</div>
</div>
<div class="col-xs-5">
<div class="panel panel-default">
<div class="panel-heading">
<h4>Groups</h4>
</div>
<div class="panel-body">
<div id="added-groups"></div>
<button type="button" class="btn btn-primary" onclick="cleanGroups()">Clean</button>
</div>
</div>
</div>
</div>
<div id="results-button">
<button type="button" class="btn btn-primary" onclick="generateResults()">Generate Results</button>
</div>
<div id="results">
<div class="row">
<div class="col-xs-offset-2 col-xs-8">
<div class="panel panel-default">
<div class="panel-body">
<table class="table table-hover ">
<thead class="thead-inverse">
<tr>
<th>
<p class="text-center">Starter</p>
</th>
<th>
<p class="text-center">Main</p>
</th>
<th>
<p class="text-center">Dessert</p>
</th>
</tr>
</thead>
<tbody id="group-list">
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>