-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (39 loc) · 1.35 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
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/weather-icons/2.0.9/css/weather-icons.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
</head>
<body onload="getLocation()">
<div class="container-fluid">
<h1>
Local Weather
</h1>
<h2>
<div id="userLocation">
</div>
</h2>
<div class="row">
<div class="col-lg-4 col-lg-offset-2">
<h3>Temperature <br></h3>
<div id="temperature">
<br>
</div>
<div id="toggle-units" class="btn-group btn-toggle">
<button id="c-button" class="btn btn-primary active" onclick="displayCelcius()"> ℃</button>
<button id="f-button" class="btn btn-default" onclick="displayFahrenheit()">℉ </button>
</div>
</div>
<div class="col-lg-4">
<h3>Description<br></h3>
<div id="weatherDescription">
<br>
</div>
<i id="weatherIcon">
</i>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="javascript.js">
</script>
</body>