-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (40 loc) · 1.54 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
<html>
<head>
<link rel="stylesheet" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>
<body>
<h1 class="siteHeader">WeatherWear</h1>
<div class="siteHeader">Wear for the Weather.</div>
<br>
<div id="searchContainer">
<input class="searchControl" type="text" placeholder="Zip Code" id="searchInput">
<button class="searchControl" id="searchBtn">Search!</button>
</div>
<br>
<br>
<div id="weatherContainer">
<div id="recommendedWear" class="recWear"></div>
<div id = "weatherDesc">
<h1 id = cityHeader></h1>
<div id="weatherMain">
<div id="temp"></div>
<div id="weatherDescHeader"></div>
<div><img id="documentIconImg"></div>
</div>
<hr>
<div id="windSpeed" class="bottomDetails"></div>
<div id="humidity" class="bottomDetails"></div>
</div>
</div>
<script src = script.js></script>
<script>
//jQuery
document.getElementById("searchBtn").addEventListener("click", fadeContainer);
function fadeContainer() {
$(document.getElementById("weatherContainer")).hide();
$(document.getElementById("weatherContainer")).fadeIn(600);
}
</script>
</body>
</html>