-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
89 lines (87 loc) · 4.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Weather JS</title>
<link rel="stylesheet" href="bootstrap.min.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-6 mx-auto text-center bg-primary mt-5 p-5 rounded">
<h1 id="w-location"></h1>
<h3 class="text-drak" id="w-desc"></h3>
<h3 id="w-string"></h3>
<img id="w-icon">
<ul class="list-group mt-3" id="w-details">
<li class="list-group-item" id="w-humidity"></li>
<li class="list-group-item" id="w-dewpoint"></li>
<li class="list-group-item" id="w-feelsLike"></li>
<li class="list-group-item" id="w-wind"></li>
</ul>
<hr>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#locModal">
Change Location
</button>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="locModal" tabindex="-1" role="dialog" aria-labelledby="locModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Choose Location</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form id="w-from">
<div class="from-group">
<label for="city">City</label>
<input type="text" id="city" class="form-control" placeholder="CAIRO">
</div>
<div class="from-group">
<label for="country">Country Code</label>
<input type="text" id="country" class="form-control" placeholder="EG">
</div>
<label for="unit">Units</label>
<div class="from-group row center" style="margin-left: 0;">
<div class="">
<label for="state">℃ </label>
<input type="radio" name="unit" id="unit" value="metric" class="" checked>
</div>
<span style="color: transparent;">123</span>
<div class="">
<label for="state">℉ </label>
<input type="radio" name="unit" id="unit1" value="imperial" class="">
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button id="w-change-btn" type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<script src="storage.js"></script>
<script src="weather.js"></script>
<script src="ui.js"></script>
<script src="app.js"></script>
</body>
</html>