-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
105 lines (96 loc) · 5.15 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ForecastFinder</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" />
<link rel="stylesheet" href="./assets/css/style.css">
</head>
<body>
<!-- Header -->
<nav id="headerStyle" class="pb-2 mb-3 mt-3">
<div class="text-center">
<a href="https://github.com/jwilferd10/ForecastFinder" target="_blank" id="gitHubLink" class="text-light borderStyle h1">
Forecast<span id="finderText">Finder</span></h1>
</a>
<h3 class="text-light pt-3">Your Weather Planning Companion</h3>
</div>
</nav>
<main>
<section class=" d-flex flex-wrap">
<!-- Search Form (Top Left of Page) -->
<div id="formWrapper" class="searchBar col-md-3 col-sm-12 mr-md-3">
<div class="d-flex align-items-center">
<h3 class="pt-4 pb-1 text-light">Search For A City</h3>
<button id="infoBtn" class="btn-lg btn btn-outline-info ml-3" data-toggle="modal" data-target="#directionsModal">i</button>
</div>
<form id="formID">
<input id="searchInput" class="mb-2 form-control" type="text" placeholder="Enter City Name or Zip Code">
<div class="pb-2 btn-group btn-lg btn-block formBtns">
<button type="button" class="btn mr-2 rounded btn-outline-primary" id="searchButton"> Search </button>
<button type="button" class="btn ml-2 rounded btn-outline-danger" id="clearBtn" data-toggle="modal" data-target="#modalNotify" onClick="clearHistory()"> Clear History </button>
</div>
</form>
<!-- Previous Searches -->
<h5 class="text-light pt-2">Previous Searches:</h5>
<ul id="locationResult">
<!-- List items -->
</ul>
<p id="notifyUser" class="text-center blinkAnimation"></p>
</div>
<!-- Weather Display Container (Right side of screen) -->
<div class="rightContainer col-md-8 col-sm-12 border flex-sm-column">
<!-- Today's Weather Display Wrapper -->
<h2 class="pt-4 text-light">Current Forecast</h2>
<div id="weatherDetails" class="text-white cardColor card hidden">
<div class="card-body">
<h1 id="cityName" class="card-title"></h1>
<div id="weatherMain" class="fiveBody">
<h4 id ="currentCondition"></h4>
<img id="currentWeatherPNG" class="weatherImgShadow">
<h4 id="currentTemp"></h4>
<h4 id="windSpeed"></h4>
<h4 id="humidity"></h4>
</div>
</div>
</div>
</div>
</section>
<section>
<!-- 5-Day Header -->
<h4 id="fiveDayHeader" class="text-light">5-Day Forecast</h4>
<!-- 5-Day Body -->
<div id='fiveDayBody' class="d-flex fiveContainer">
<!-- Dynamically Generated Content -->
</div>
</section>
</main>
<div class="modal fade" id="modalNotify" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<!-- Modal header -->
<div class="modal-header">
<h5 class="modal-title" id="modalTitle">Modal Title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<!-- Modal body -->
<div class="modal-body">
<p id="modalText">Modal body text goes here.</p>
</div>
<!-- Modal footer -->
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" id="modalActionBtn" class="btn" data-dismiss="modal"></button>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="assets/js/script.js"></script>
</body>
</html>