-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
175 lines (154 loc) · 8.24 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/1.9.6/tailwind.min.css">
<link href="https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<title>BETTER WEATHER</title>
</head>
<body>
<!-- Header -->
<div class="lg:flex lg:items-center lg:justify-between" id="header">
<div class="flex-1 min-w-0">
<h2 class="text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate" id="title">
BETTER WEATHER
</h2>
</div>
</div>
<!-- Upcoming Home Games feature with search bar -->
<div class="py-12 bg-white" id="header2">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="lg:text-center">
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl">
UPCOMING HOME GAMES
</p>
<div id="data"></div>
<span class="relative inset-y-0 left-0 flex items-center pl-2">
<input type="search" id="teamName" name="q"
class="py-2 text-sm text-white bg-gray-900 rounded-md pl-10 focus:outline-none focus:bg-white focus:text-gray-900"
placeholder="Enter Home City" autocomplete="off">
<button type="submit" id="searchBtn" class="p-1 focus:outline-none focus:shadow-outline">
<svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
stroke-width="2" viewBox="0 0 24 24" class="w-6 h-6">
<path d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
</svg>
</button>
</span>
</div>
</div>
</div>
<!-- Current searched city 5 day weather forecast -->
<div class="grid grid-cols-3 gap-4 ">
<div id="weatherCss">
<div class="bg-white shadow sm:rounded-lg columnData overflow-y-auto">
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl text-center">
WEATHER INFO
</p>
<h1 class="text-center">City: <span id="weatherCity"></span></h1>
<div class="border-t border-gray-200 text-center" id="weather">
</div>
</div>
</div>
<!-- Searched city stadium details -->
<div id="stadiumCss">
<div class="bg-white shadow overflow-auto sm:rounded-lg columnData">
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl text-center">
STADIUM INFO
</p>
<div class="border-t border-gray-200 text-left" id="wikipage">
<dl>
<div class="bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500 text-right">
Stadium:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2" id="stadiumEl">
</dd>
</div>
<div class="bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500 text-right">
Team:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2" id="teamEl">
</dd>
</div>
<div class="bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500 text-right">
Roof Type:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2" id="roofEl">
</dd>
</div>
<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500 text-right">
Turf:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2" id="turfEl">
</dd>
</div>
<div class="bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500 text-right">
Capacity:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2" id="capacityEl">
</dd>
</div>
<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500 text-right">
Location:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2" id="locationEl">
</dd>
</div>
</dl>
</div>
</div>
</div>
<!-- Latest odds data and 5 sites for game -->
<div id="oddsCss">
<div class="bg-white shadow overflow-hidden sm:rounded-lg columnData">
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl text-center">
ODDS INFO
</p>
<div class="border-t border-gray-200" id="game">
<dl>
<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500 text-right">
Home Team:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2" id="hometeam">
</dd>
</div>
<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500 text-right">
Game:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2" id="gameteams">
</dd>
</div>
<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500 text-right">
Game Date/Time:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2" id="gametime">
</dd>
</div>
<div class="bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500 text-right">
Odds Sites:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2" id="websites">
</dd>
</div>
</dl>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<script src="script.js"></script>
</body>
</html>