-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-2x4x.html
428 lines (368 loc) · 18.7 KB
/
index-2x4x.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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
<!DOCTYPE html>
<html lang="en">
<head>
<title>Predict the NFL Playoffs</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/reset.css" />
<link href="css/predictor.css" rel="stylesheet" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700' rel='stylesheet' type='text/css'>
<script src="js/jquery-1.8.3.min.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<script src="js/jquery.ui.touch-punch.js"></script>
<script src="js/teamdata.js"></script>
<script src="js/calculate.js"></script>
</head>
<body>
<h1>Predict the NFL Playoffs</h1>
<h3>Can you predict which teams will win each of the NFL conference title games? Choose stats on the left and rank them in the way you think will impact the games.</h3>
<div id="statsCon">
<div id="statsAll" class="connectedSortable">
<p class="statsHead">Instructions</p>
<p class="instruct">1. Check the statistics you would like to include in the calculation</p>
<p class="instruct">2. Drag the slots up and down to give different weights to the statistics</p>
<div class="imp">MORE IMPORTANT</div>
<div id="sortableStats">
<div id="a9" class="dragger"><input type="checkbox" id="a9" class="statsCheck" onchange="cbChanged(this, 9);" checked="checked"><p>Home / Away</p></div>
<div id="a7" class="dragger"><input type="checkbox" id="a7" class="statsCheck" onchange="cbChanged(this, 7);" checked="checked"><p>Seed</p></div>
<div id="a8" class="dragger"><input type="checkbox" id="a8" class="statsCheck" onchange="cbChanged(this, 8);" checked="checked"><p>Wins</p></div>
<div id="a5" class="dragger"><input type="checkbox" id="a5" class="statsCheck" onchange="cbChanged(this, 5);" checked="checked"><p>Points For</p></div>
<div id="a6" class="dragger"><input type="checkbox" id="a6" class="statsCheck" onchange="cbChanged(this, 6);" checked="checked"><p>Points Against</p></div>
<div id="a0" class="dragger"><input type="checkbox" id="a0" class="statsCheck" onchange="cbChanged(this, 0);"><p>Pass Offense</p></div>
<div id="a1" class="dragger"><input type="checkbox" id="a1" class="statsCheck" onchange="cbChanged(this, 1);"><p>Pass Defense</p></div>
<div id="a2" class="dragger"><input type="checkbox" id="a2" class="statsCheck" onchange="cbChanged(this, 2);"><p>Rush Offense</p></div>
<div id="a3" class="dragger"><input type="checkbox" id="a3" class="statsCheck" onchange="cbChanged(this, 3);"><p>Rush Defense</p></div>
<div id="a4" class="dragger"><input type="checkbox" id="a4" class="statsCheck" onchange="cbChanged(this, 4);"><p>Turnover Margin</p></div>
</div>
<div class="imp">LESS IMPORTANT</div>
<div id="shorts">
<p><a href="#" id="selectAll">Select all</a></p>
<p><a href="#" id="clearAll">Clear all</a></p>
<p><a href="#" id="reset">Start over</a></p>
</div>
</div>
</div>
<div id="matchups">
<div id="mod0" class="module">
<div class="main">
<div id="exp0" class="expertCon">
<div class="expertText">
<p class="expertText"></p>
</div>
</div>
<div class="team1 teamModule spacing">
<div class="teamInfo">
<img class="teamLogo" src="images/templogo.gif" />
<div class="teamInfoText">
<div class="cityName"></div>
<div class="teamName"></div>
<div class="teamData"></div>
</div>
</div>
<div class="teamStatsCon">
<div class="teamStat"><div class="teamStatTxt">Pass offense</div> <div class="passo teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Pass defense</div> <div class="passd teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">Rush offense</div> <div class="rusho teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Rush defense</div> <div class="rushd teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">TO margin</div> <div class="tomargin teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Points for</div> <div class="ptsfor teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">Points against</div> <div class="ptsagainst teamStatNum"></div></div>
</div>
<div class="calcCon">
<div class="numBox"></div>
<div class="numBoxLabel">win probability</div>
</div>
</div>
<div class="team2 teamModule">
<div class="teamInfo">
<img class="teamLogo" src="images/templogo.gif" />
<div class="teamInfoText">
<div class="cityName"></div>
<div class="teamName"></div>
<div class="teamData"></div>
</div>
</div>
<div class="teamStatsCon">
<div class="teamStat"><div class="teamStatTxt">Pass offense</div> <div class="passo teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Pass defense</div> <div class="passd teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">Rush offense</div> <div class="rusho teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Rush defense</div> <div class="rushd teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">TO margin</div> <div class="tomargin teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Points for</div> <div class="ptsfor teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">Points against</div> <div class="ptsagainst teamStatNum"></div></div>
</div>
<div class="calcCon">
<div class="numBox"></div>
<div class="numBoxLabel">win probability</div>
</div>
</div>
</div>
<div class="side">
<div class="sideContentTop">
<div class="datetime sideItem"></div>
<div class="line sideItem"></div>
<div class="sideItem"><a href="#" onmouseover="onExpertOver(0)" onmouseout="onExpertOut(0)">Expert analysis and pick</a></div>
</div>
<div class="sideContentBottom">
<div class="sideItem"><span class="sideHeader">User Poll</span><br />Who do you think will win?</div>
<div id="">
<form id="form1" action="">
<input type="radio" name="" value="" onclick="" class="poll1" /> Team 1<br />
<input type="radio" name="" value="" onclick="" class="poll2" /> Team 2
<input type="submit" value="Submit" id="mysubmitbtn">
</form>
</div>
</div>
</div>
</div> <!--END MODULE-->
<div id="mod1" class="module">
<div class="main">
<div id="exp1" class="expertCon">
<div class="expertText">
<p class="expertText"></p>
</div>
</div>
<div class="team1 teamModule spacing">
<div class="teamInfo">
<img class="teamLogo" src="images/templogo.gif" />
<div class="teamInfoText">
<div class="cityName"></div>
<div class="teamName"></div>
<div class="teamData"></div>
</div>
</div>
<div class="teamStatsCon">
<div class="teamStat"><div class="teamStatTxt">Pass offense</div> <div class="passo teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Pass defense</div> <div class="passd teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">Rush offense</div> <div class="rusho teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Rush defense</div> <div class="rushd teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">TO margin</div> <div class="tomargin teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Points for</div> <div class="ptsfor teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">Points against</div> <div class="ptsagainst teamStatNum"></div></div>
</div>
<div class="calcCon">
<div class="numBox"></div>
<div class="numBoxLabel">win probability</div>
</div>
</div>
<div class="team2 teamModule">
<div class="teamInfo">
<img class="teamLogo" src="images/templogo.gif" />
<div class="teamInfoText">
<div class="cityName"></div>
<div class="teamName"></div>
<div class="teamData"></div>
</div>
</div>
<div class="teamStatsCon">
<div class="teamStat"><div class="teamStatTxt">Pass offense</div> <div class="passo teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Pass defense</div> <div class="passd teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">Rush offense</div> <div class="rusho teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Rush defense</div> <div class="rushd teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">TO margin</div> <div class="tomargin teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Points for</div> <div class="ptsfor teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">Points against</div> <div class="ptsagainst teamStatNum"></div></div>
</div>
<div class="calcCon">
<div class="numBox"></div>
<div class="numBoxLabel">win probability</div>
</div>
</div>
</div>
<div class="side">
<div class="sideContentTop">
<div class="datetime sideItem"></div>
<div class="line sideItem"></div>
<div class="sideItem"><a href="#" onmouseover="onExpertOver(1)" onmouseout="onExpertOut(1)">Expert analysis and pick</a></div>
</div>
<div class="sideContentBottom">
<div class="sideItem"><span class="sideHeader">User Poll</span><br />Who do you think will win?</div>
<div id="">
<form action="">
<input type="radio" name="" value="" onclick="" class="poll1" /> Team 1<br />
<input type="radio" name="" value="" onclick="" class="poll2" /> Team 2
<input type="submit" value="Submit" id="mysubmitbtn">
</form>
</div>
</div>
</div>
</div> <!--END MODULE-->
<!--div id="mod2" class="module">
<div class="main">
<div id="exp2" class="expertCon">
<div class="expertText">
<p class="expertText"></p>
</div>
</div>
<div class="team1 teamModule spacing">
<div class="teamInfo">
<img class="teamLogo" src="images/templogo.gif" />
<div class="teamInfoText">
<div class="cityName"></div>
<div class="teamName"></div>
<div class="teamData"></div>
</div>
</div>
<div class="teamStatsCon">
<div class="teamStat"><div class="teamStatTxt">Pass offense</div> <div class="passo teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Pass defense</div> <div class="passd teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">Rush offense</div> <div class="rusho teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Rush defense</div> <div class="rushd teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">TO margin</div> <div class="tomargin teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Points for</div> <div class="ptsfor teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">Points against</div> <div class="ptsagainst teamStatNum"></div></div>
</div>
<div class="calcCon">
<div class="numBox"></div>
<div class="numBoxLabel">win probability</div>
</div>
</div>
<div class="team2 teamModule">
<div class="teamInfo">
<img class="teamLogo" src="images/templogo.gif" />
<div class="teamInfoText">
<div class="cityName"></div>
<div class="teamName"></div>
<div class="teamData"></div>
</div>
</div>
<div class="teamStatsCon">
<div class="teamStat"><div class="teamStatTxt">Pass offense</div> <div class="passo teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Pass defense</div> <div class="passd teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">Rush offense</div> <div class="rusho teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Rush defense</div> <div class="rushd teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">TO margin</div> <div class="tomargin teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Points for</div> <div class="ptsfor teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">Points against</div> <div class="ptsagainst teamStatNum"></div></div>
</div>
<div class="calcCon">
<div class="numBox"></div>
<div class="numBoxLabel">win probability</div>
</div>
</div>
</div>
<div class="side">
<div class="sideContentTop">
<div class="datetime sideItem"></div>
<div class="line sideItem"></div>
<div class="sideItem"><a href="#" onmouseover="onExpertOver(2)" onmouseout="onExpertOut(2)">Expert analysis and pick</a></div>
</div>
<div class="sideContentBottom">
<div class="sideItem"><span class="sideHeader">User Poll</span><br />Who do you think will win?</div>
<div id="">
<form action="">
<input type="radio" name="" value="" onclick="" class="poll1" /> Team 1<br />
<input type="radio" name="" value="" onclick="" class="poll2" /> Team 2
<input type="submit" value="Submit" id="mysubmitbtn">
</form>
</div>
</div>
</div>
</div--> <!--END MODULE-->
<!--div id="mod3" class="module">
<div class="main">
<div id="exp3" class="expertCon">
<div class="expertText">
<p class="expertText"></p>
</div>
</div>
<div class="team1 teamModule spacing">
<div class="teamInfo">
<img class="teamLogo" src="images/templogo.gif" />
<div class="teamInfoText">
<div class="cityName"></div>
<div class="teamName"></div>
<div class="teamData"></div>
</div>
</div>
<div class="teamStatsCon">
<div class="teamStat"><div class="teamStatTxt">Pass offense</div> <div class="passo teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Pass defense</div> <div class="passd teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">Rush offense</div> <div class="rusho teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Rush defense</div> <div class="rushd teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">TO margin</div> <div class="tomargin teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Points for</div> <div class="ptsfor teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">Points against</div> <div class="ptsagainst teamStatNum"></div></div>
</div>
<div class="calcCon">
<div class="numBox"></div>
<div class="numBoxLabel">win probability</div>
</div>
</div>
<div class="team2 teamModule">
<div class="teamInfo">
<img class="teamLogo" src="images/templogo.gif" />
<div class="teamInfoText">
<div class="cityName"></div>
<div class="teamName"></div>
<div class="teamData"></div>
</div>
</div>
<div class="teamStatsCon">
<div class="teamStat"><div class="teamStatTxt">Pass offense</div> <div class="passo teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Pass defense</div> <div class="passd teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">Rush offense</div> <div class="rusho teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Rush defense</div> <div class="rushd teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">TO margin</div> <div class="tomargin teamStatNum"></div></div>
<div class="teamStat alt"><div class="teamStatTxt">Points for</div> <div class="ptsfor teamStatNum"></div></div>
<div class="teamStat"><div class="teamStatTxt">Points against</div> <div class="ptsagainst teamStatNum"></div></div>
</div>
<div class="calcCon">
<div class="numBox"></div>
<div class="numBoxLabel">win probability</div>
</div>
</div>
</div>
<div class="side">
<div class="sideContentTop">
<div class="datetime sideItem"></div>
<div class="line sideItem"></div>
<div class="sideItem"><a href="#" onmouseover="onExpertOver(3)" onmouseout="onExpertOut(3)">Expert analysis and pick</a></div>
</div>
<div class="sideContentBottom">
<div class="sideItem"><span class="sideHeader">User Poll</span><br />Who do you think will win?</div>
<div>
<form action="">
<input type="radio" name="" value="" class="poll1" /> Team 1<br />
<input type="radio" name="" value="" class="poll2" /> Team 2
<input type="submit" value="Submit" id="mysubmitbtn">
</form>
</div>
</div>
</div>
</div--> <!--END MODULE-->
</div> <!--END MATCHUPS-->
<div style="clear:both"></div>
<div style="margin-left: 140px">
<p class="desc">How it works: The predictor pairs each of this year's playoff teams with similar teams in each category. Based on which statistics are selected and how they are ranked, the predictor dynamically calculates a percentage chance of each team winning.</p>
<p class="desc">Based on the way the predictor operates, a team that fared better in one category than another will not necessarily be more likely to win. (For example, Team A may have passed for fewer yards than Team B, but teams that finished with a similar passing offense to Team A won more often.)</p>
<p class="desc">Data is pulled from conference title matchups dating back to the 1971 postseason.</p>
</div>
<div id="sourceCreds">
Credits: Peggy Bustamante, Nelson Hsu, Matt Walks / DFM
</div>
<script type="text/javascript">
$('#exp0').hide();
$('#exp1').hide();
$('#exp2').hide();
$('#exp3').hide();
function onExpertOver(which) {
$('#exp' + which).show();
}
function onExpertOut(which) {
$('#exp' + which).hide();
}
</script>
<script src="https://spreadsheets.google.com/feeds/list/0Apk83VzG7OVldHl3N0h0d0tDaV9Lb1BVbVNxRUlPQmc/od6/public/values?alt=json-in-script&callback=loadGSContent" type="text/javascript"></script>
<script src="https://spreadsheets.google.com/feeds/list/0Apk83VzG7OVldENrY3Uyel83VGlOUk5oNkNDeGlGblE/od6/public/values?alt=json-in-script&callback=loadCalcData" type="text/javascript"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-37303540-1'], ['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>