-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
139 lines (105 loc) · 4.62 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- App Description -->
<meta name="description" content="WeatherPlus">
<meta name="application-name" content="WeatherPlus">
<meta name="theme-color" content="#7127c0" />
<meta name="msapplication-TileColor" content="#7127c0">
<!-- Manifest -->
<link rel="manifest" href="site.webmanifest">
<link rel="mask-icon" href="images/safari-pinned-tab.svg" color="#7127c0">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
<!-- ios Support -->
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon.png">
<meta name="apple-mobile-web-app-title" content="WeatherPlus">
<meta name="apple-mobile-web-app-status-bar" content="#7127c0" />
<!-- font Awesome CDN -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.14.0/css/all.css" integrity="sha384-HzLeBuhoNPvSl5KYnjx0BT+WB0QEEqLprO+NBkkk5gbc67FTaL7XIGa2w1L0Xbgc" crossorigin="anonymous">
<!-- Google Fonts CDN -->
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@700&family=Poppins:wght@600&family=Roboto:wght@700&display=swap" rel="stylesheet">
<!-- //Weather Icons CSS -->
<link rel="stylesheet" href="css/weather-icons.min.css">
<!-- //Custom CSS -->
<link rel="stylesheet" href="css/style.css">
<title>WeatherPlus - GADS Practice Project</title>
</head>
<body>
<div class="overlay">
<nav>
<!-- Search Location Section -->
<section class="weather__location__search">
<a id="location" >
<h3 class="logo">
<i class='wi wi-day-thunderstorm'></i>
<span> Weather+</span>
</h3>
</a>
<div class="search__container">
<label for="search" aria-label="search city"></label>
<input id='search' class="weather__search" name="search" type="search" placeholder="Search City" >
<i class="fas fa-search-location search__icon"></i>
</div>
</section>
</nav>
<main>
<!-- Weather Preview Section (City, Country and Date information) -->
<section class="weather__preview">
</section>
<!-- Weather information -->
<div class="weather__today">
<section class="weather__description">
</section>
<section class="weather__details">
<p>Welcome to Weather+ 😊, Please input a location for weather search</p>
<p>You can search for your current location weather by clicking on the logo</p>
<p>Made with 💓 by <a href="https://github.com/Caspero-62" rel="noreferrer">Webdot</a></p>
</section>
</div>
<!-- Weekly weather Forecast -->
<section class="future__weather__forecast">
</section>
<button class="install__button" aria-label="install" hidden>install</button>
</main>
</div>
<div class="spinner-wrapper">
<div class="sk-folding-cube">
<div class="sk-cube1 sk-cube"></div>
<div class="sk-cube2 sk-cube"></div>
<div class="sk-cube4 sk-cube"></div>
<div class="sk-cube3 sk-cube"></div>
</div>
</div>
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous"></script>
<script>
$(document).ready(() => {
setTimeout(() => {
//preloader
const hidePreloader = () => {
let preloader = $('.spinner-wrapper');
preloader.fadeOut(500);
}
hidePreloader();
}, 3000);
});
</script>
<script src="scripts/index.js"></script>
<script>
// Register service worker.
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('service-worker.js')
.then((reg) => {
console.log('Service worker registered.', reg);
});
});
}
</script>
</body>
</html>