-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
233 lines (210 loc) · 9.27 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Lato|Roboto:700" rel="stylesheet">
<link rel="stylesheet" href="css/app.css" type="text/css" />
<!-- favicons -->
<link rel="apple-touch-icon" sizes="180x180" href="/Images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/Images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/Images/favicon-16x16.png">
<link rel="manifest" href="/Images/site.webmanifest">
<link rel="mask-icon" href="/Images/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/Images/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="/Images/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<title>What's His Name?</title>
</head>
<body ng-cloak ng-app="chadrickApp" ng-controller="mainCtrl" class="container-fluid">
<div id="divLoading" ng-show="loading">Loading...</div>
<div id="currentName" class="jumbotron jumbotron-fluid">
<h1>{{ CurrentName }}</h1>
<p class="lead">The current name of our most favorite employee.</p>
</div>
<div class="col mb-3">
<div class="timer timer-one">
<div class="card">
<div class="card-body">
<p class="card-title">Demotion Timer</p>
<span ng-class="[{lowCountDown: LowDemotionCountDown}]">{{ momentDemotionTimer }}</span>
</div>
</div>
</div>
<div class="timer">
<div class="card">
<div class="card-body">
<p class="card-title">Reset Timer</p>
<span ng-class="[{lowCountDown: LowResetCountDown}]">{{ momentResetTimer }}</span>
</div>
</div>
</div>
<div class="nameKey">
<div class="card panel-group">
<div class="card-body panel">
<div class="panel-heading">
<p class="card-title panel-title" data-toggle="collapse" data-target="#collapsibleKey">Name Key <i class="keydrop fa fa-angle-down"></i></p>
</div>
<div id="collapsibleKey" class="panel-collapse collapse">
<table class="table" >
<thead>
<tr>
<th scope="col">Normal</th>
<th scope="col">Epic</th>
</tr>
</thead>
<tbody>
<tr>
<td ng-class="[{currentName: IsJason}]">"Jason"</td>
<td ng-class="[{currentName: CurrentName==='Torvald Takahashi'}]">Torvald Takahashi</td>
</tr>
<tr>
<td ng-class="[{currentName: CurrentName==='Chad'}]">Chad</td>
<td ng-class="[{currentName: CurrentName==='Seamus'}]">Seamus</td>
</tr>
<tr>
<td ng-class="[{currentName: CurrentName==='Chadrick'}]">Chadrick</td>
<td ng-class="[{currentName: CurrentName==='Seabiscuit'}]">Seabiscuit</td>
</tr>
<tr>
<td ng-class="[{currentName: CurrentName==='Ryan'}]">Ryan</td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div id="postBurn">
<div class="card panel-group">
<div class="card-body panel">
<div class="divPostBurn mb-3" ng-form="postBurnForm">
<div class="panel-heading">
<p class="card-title panel-title" data-toggle="collapse" data-target="#collapsibleForm">Post a Burn <i class="burndrop fa fa-angle-down"></i></p>
</div>
<div id="collapsibleForm" class="panel-collapse collapse">
<div class="row">
<div class="col">
<div class="form-group">
<label for="ddlBurnee">Burn Victim</label>
<select class="form-control" id="ddlBurnee" ng-model="addBurnData.Burnee" ng-model-options="{ updateOn: 'blur' }" required>
<option>Alison</option>
<option>Clayton</option>
<option>Connor</option>
<option>DJ</option>
<option>Greg</option>
<option>Harry</option>
<option>Jason</option>
<option>Jeremy</option>
<option>John</option>
<option>Josh</option>
<option>Matt</option>
<option>Richard</option>
</select>
<small>He/She which was burned.</small>
</div>
</div>
<div class="col burn-col">
<div class="form-group">
<label for="ddlBurnType">Burn Type</label>
<select class="form-control" id="ddlBurnType" ng-model="addBurnData.BurnType" ng-model-options="{ updateOn: 'blur' }" required>
<option>Normal</option>
<option>Epic</option>
</select>
<small>How severe is said burn?</small>
</div>
</div>
</div>
<div class="row">
<div class="col burn-desc-col">
<div class="form-group">
<label for="txtBurn">Burn Description</label>
<textarea rows="4" class="form-control" id="txtBurn" required maxLength="5000" ng-model="addBurnData.Description" ng-model-options="{ updateOn: 'blur' }"></textarea>
<small>Describe the burn.</small>
</div>
</div>
</div>
<div class="d-flex justify-content-center mt-3">
<button class="btn btn-primary float-right" ng-click="postBurn($event)" ng-disabled="loading">Submit</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col mb-3">
<div class="divBurnFeed">
<div class="burnFeedTitle">Burn Feed</div>
<ul class="list-group">
<li ng-repeat="burn in BurnFeed" class="list-group-item">
<p class="mb-1"><span class="flame-gif"><img src="Images/flame.gif" width="25" alt="flame" /></span><strong>Victim: {{ burn.Burnee }}</strong> | Burn Type: {{ burn.BurnType }}</p>
<p class="mb-1">{{ burn.Description }} </p>
<small>{{ burn.CreatedDate }}</small>
</li>
</ul>
<div class="d-flex justify-content-center mt-3">
<button class="btn btn btn-secondary" ng-click="loadBurns()">Load More...</button>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.21.0/moment.min.js" integrity="sha256-9YAuB2VnFZNJ+lKfpaQ3dKQT9/C0j3VUla76hHbiVF8=" crossorigin="anonymous"></script>
<script defer src="https://use.fontawesome.com/releases/v5.0.8/js/all.js" integrity="sha384-SlE991lGASHoBfWbelyBPLsUlwY1GwNDJo3jSJO04KZ33K2bwfV9YBauFfnzvynJ" crossorigin="anonymous"></script>
<script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('p[data-toggle="collapse"]').click(function(e){
if ($(window).width() >= 770) {
// Should prevent the collapsible and default anchor linking
// behavior for screen sizes equal or larger than 768px.
e.preventDefault();
e.stopPropagation();
}
});
var $win;
// Function toggles bootstrap collapse based on window width.
function toggleCollapse($win) {
// Small screens
if ($win.width() < 770) {
$('.panel-collapse').collapse('hide');
}
if ($win.width() >= 770) {
$('.panel-collapse').collapse('show');
}
}
// Set collapsible appearance on window load;
toggleCollapse($(window));
// Toggle collapsibles on resize. Optional if you want
// to be able to show/hide on window resize.
//$(window).on('resize', function() {
// var $win = $(this);
// toggleCollapse($win);
//});
//toggle icons when collapsing and expanding panels
$('#collapsibleKey').on('shown.bs.collapse', function() {
$(".keydrop").addClass('fa-angle-up').removeClass('fa-angle-down');
});
$('#collapsibleKey').on('hidden.bs.collapse', function() {
$(".keydrop").addClass('fa-angle-down').removeClass('fa-angle-up');
});
$('#collapsibleForm').on('shown.bs.collapse', function() {
$(".burndrop").addClass('fa-angle-up').removeClass('fa-angle-down');
});
$('#collapsibleForm').on('hidden.bs.collapse', function() {
$(".burndrop").addClass('fa-angle-down').removeClass('fa-angle-up');
});
});
</script>
</body>
</html>