-
Notifications
You must be signed in to change notification settings - Fork 1
/
baseball.html
81 lines (76 loc) · 2.74 KB
/
baseball.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
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Sample Baseball Graphs</title>
<link rel="stylesheet" type="text/css" href="/css/basscss.min.css">
<script type="text/javascript" src="js/d3/d3.min.js"></script>
<script type="text/javascript" src="js/jquery/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="js/plotly/plotly.min.js"></script>
<script type="text/javascript" src="js/internal/baseball.js"></script>
<script type="text/javascript" src="/templates/templates.js"></script>
<script type="text/javascript" src="/templates/ga.js"></script>
<link rel="shortcut icon" type="image/png" href="/favicon.png">
<style type="text/css">
.double{
display: inline-block;
}
.double img{
width: 150%;
}
</style>
</head>
<body>
<div id="navHeader"></div>
<div class='container py1 px1 border-bottom'>
<h1>Player Stats</h1>
<select class='py2 mt3 border' id="playerSelect" onchange="drawGraphs(this.selectedIndex);">
</select>
</div>
<div class='container py1 px1'>
<div class='clearfix'>
<div class="col col-2 center py1 px1">
<img id='playerImage'></img>
</div>
<div class="col col-4 py1 px1">
<table class="table-light">
<tr><td>Games Played:</td> <td><span id="playerGames"></td></span></tr>
<tr><td>At Bats:</td> <td><span id="playerABs"></span></td></tr>
<tr><td>Hits:</td> <td><span id="playerHits"></span></td></tr>
</table>
</div>
<div class="col col-4 py1 px1">
<table class="table-light">
<tr><td>RBIs:</td> <td><span id="playerRBIs"></span></td></tr>
<tr><td>Home Runs:</td> <td><span id="playerHRs"></span></td></tr>
<tr><td>Batting Average</td> <td><span id="playerBA"></td></span></tr>
</table>
</div>
<div class="col col-2 center py1 px1 double">
<img id='teamImage'></img>
</div>
</div>
<div class="clearfix">
<div class="col col-6">
<div id="battingAverageGraph" style="width: 100%; height: 400px;"></div>
</div>
<div class="col col-6">
<div id="hittingStreakGraph" style="width: 100%; height: 400px;"></div>
</div>
<div class="col col-6">
<div id="atBatsGraph" style="width: 100%; height: 400px;"></div>
</div>
<div class="col col-6">
<div id="homeRunsGraph" style="width: 100%; height: 400px;"></div>
</div>
<div class="col col-6">
<div id="hitsGraph" style="width: 100%; height: 400px;"></div>
</div>
<div class="col col-6">
<div id="rbiGraph" style="width: 100%; height: 400px;"></div>
</div>
</div>
</div>
<div id="navFooter"></div>
</body>
</html>