-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
87 lines (79 loc) · 3.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"
integrity="sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="sticker.png" type="image/x-icon">
<title>Country Location</title>
<link href="https://fonts.cdnfonts.com/css/trt" rel="stylesheet">
</head>
<body>
<div class="container my-5">
<div id="errors"></div>
<div class="card mb-3">
<div class="card-body">
<div class="input-group" id="inputLocation">
<input type="text" id="txtSearch" class="form-control" />
<button class="btn btn-dark" id="btnSearch">Search</button>
<button id="btnLocation" class="btn btn-danger">
<i class="fas fa-search-location"></i>
</button>
</div>
</div>
</div>
<div class="spinner-border justify-content-center align-items-center" role="status" id="loading">
<span class="visually-hidden">Loading...</span>
</div>
<div id="weather">
<div class="card mb-3">
<div class="card-header fw-bolder">Weather of Your Current Location</div>
<div class="card-body">
<div class="row" id="weather-details"></div>
</div>
</div>
</div>
<div id="details">
<div class="card mb-3">
<div class="card-header fw-bolder">Details</div>
<div class="card-body">
<div class="row" id="country-details"></div>
</div>
</div>
<div class="card mb-3">
<div class="card-header fw-bolder">Neighboring Countries</div>
<div class="card-body">
<div class="row" id="neighbors"></div>
</div>
</div>
</div>
</div>
<footer class="py-2 text-center text-light fixed-bottom bg-dark">
<span class="container text-center lead">
All rights reserved. @2023
</span>
<span class="github">
<a
href="https://github.com/eqselans"
class="fab fa-github"
target="_blank"
>
</a>
</span>
<button onclick="toggleDarkMode()" class="btn btn-dark">
<i class="fas fa-toggle-on" id="switch"></i>
</button>
</footer>
<script src="script.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
</body>
</html>