-
Notifications
You must be signed in to change notification settings - Fork 0
/
stats.html
155 lines (127 loc) · 7.38 KB
/
stats.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Tonbridge Baseball</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Favicons -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<!-- Custom fonts for this template -->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css">
<!-- Plugin CSS -->
<link href="vendor/magnific-popup/magnific-popup.css" rel="stylesheet" type="text/css">
<!-- Custom styles for this template -->
<link href="css/freelancer.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Navigation -->
<nav class="navbar navbar-expand-lg bg-secondary fixed-top text-uppercase" id="mainNav">
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="index.html"><img class="img-fluid d-block mx-auto img-responsive" src="img/wildcats-standard.png" alt="" style="max-width: 45px;"></a>
<button class="navbar-toggler navbar-toggler-right text-uppercase btn-primary text-white rounded" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
Menu
<i class="fas fa-bars"></i>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" href="index.html#about">About</a>
</li>
<li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" href="index.html#team">Team</a>
</li>
<li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" href="fixtures.html">Fixtures</a>
</li>
<li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" href="#stats">Stats</a>
</li>
<li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" href="index.html#recruit">Recruitment</a>
</li>
<li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" href="index.html#contact">Contact</a>
</li>
</ul>
</div>
</div>
</nav>
<section id="stats" class="masthead">
<div class="container">
<h2 class="text-center text-uppercase text-secondary mb-0">2020 Player Stats</h2>
<hr class="star-dark mb-5">
</div>
<!-- Table -->
<div class="container">
<div class="table-responsive">
<table class="table table-bordered table-striped" id="testTable">
<!-- Table head -->
<thead>
<tr>
<th>Name</th>
<th>Number</th>
<th>BA</th>
<th>OBP</th>
<th>Hits</th>
<th>Runs</th>
<th>Doubles</th>
<th>Triples</th>
<th>Home Runs</th>
<th>RBI</th>
</tr>
</thead>
<!-- Table head -->
<!-- Table body -->
<tbody id="demo1">
</tbody>
<!-- Table body -->
</table>
<!-- Table -->
</div>
</div>
</section>
<section class="container col-8 text-center pt-0 mx-auto">
<p class="font-weight-bold">For even more stats, use the button below</p>
<a class="btn btn-primary btn-xl btn-block" href="https://docs.google.com/spreadsheets/d/1i4V9kUYvh7mLpc5WslIBjGbf0FNxPkn_ONnfQw3jmbw/edit?usp=sharing" role="button" target="_blank">Nerdier Stats</a>
</section>
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Plugin JavaScript -->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<script src="vendor/magnific-popup/jquery.magnific-popup.min.js"></script>
<!-- Contact Form JavaScript -->
<script src="js/jqBootstrapValidation.js"></script>
<script src="js/contact_me.js"></script>
<!-- Custom scripts for this template -->
<script src="js/freelancer.js"></script>
<script> $.getJSON("https://spreadsheets.google.com/feeds/list/1i4V9kUYvh7mLpc5WslIBjGbf0FNxPkn_ONnfQw3jmbw/od6/public/values?alt=json", function (data) {
var sheetData = data.feed.entry;
var i;
for (i = 0; i < sheetData.length; i++) {
var name = data.feed.entry[i]["gsx$name"]["$t"];
var jersey = data.feed.entry[i]["gsx$number"]["$t"];
var batting = data.feed.entry[i]["gsx$ba"]["$t"];
var onbase = data.feed.entry[i]["gsx$obp"]["$t"];
var hits = data.feed.entry[i]["gsx$hits"]["$t"];
var runs = data.feed.entry[i]["gsx$runs"]["$t"];
var doubles = data.feed.entry[i]["gsx$doubles"]["$t"];
var triples = data.feed.entry[i]["gsx$triples"]["$t"];
var homeruns = data.feed.entry[i]["gsx$homeruns"]["$t"];
var rbi = data.feed.entry[i]["gsx$rbi"]["$t"];
document.getElementById("demo1").innerHTML +=("<tr>"+"<td>"+name+"</td>"+"<td>"+jersey+"</td>"+"<td>"+batting+"</td>"+"<td>"+onbase+"</td>"+"<td>"+hits+"</td>"+"<td>"+runs+"</td>"+"<td>"+doubles+"</td>"+"<td>"+triples+"</td>"+"<td>"+homeruns+"</td>"+"<td>"+rbi+"</td>"+"</tr>");
}
});</script>
</body>
</html>