-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
205 lines (181 loc) · 6.46 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="keywords" content="weather,open-source,web-app,pwa" />
<meta
name="description"
content="Open source mobile web app using wttr
api and glassmorphism aesthetics for desktop and mobile."
/>
<meta
name="subject"
content="Open source mobile web app using wttr
api and glassmorphism aesthetics for desktop and mobile"
/>
<meta name="copyright" content="ronynn" />
<meta name="language" content="ES" />
<meta name="robots" content="index,follow" />
<meta name="revised" content="Sunday, June 9th, 2024, 5:15 pm" />
<meta name="abstract" content="" />
<meta name="topic" content="Weather App" />
<meta name="summary" content="" />
<meta name="Classification" content="App" />
<meta name="author" content="ronynn" />
<meta name="designer" content="ronynn" />
<meta name="reply-to" content="ronynn" />
<meta name="owner" content="ronynn" />
<meta name="url" content="https://ronynn.github.io" />
<meta name="identifier-URL" content="https://ronynn.github.io" />
<meta name="pagename" content="ronynn weather" />
<meta name="category" content="webapp" />
<meta name="rating" content="General" />
<meta
name="subtitle"
content="Open source weather app using wttr api"
/>
<meta name="target" content="all" />
<meta name="HandheldFriendly" content="True" />
<meta name="MobileOptimized" content="320" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon-16x16.png"
/>
<link rel="manifest" href="manifest.webmanifest" />
<title>Ronynn Weather</title>
<link rel="stylesheet" href="style.css" />
<script
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2749889536957447"
crossorigin="anonymous"
></script>
</head>
<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-MDG8SVY9GB"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-MDG8SVY9GB");
</script>
<body>
<nav>
<a href="https://ronynn.github.io/weather"> ronynn weather </a>
<a href="https://github.com/ronynn/weather"
><img
src="https://img.shields.io/github/stars/ronynn/weather?style=social"
alt="stars - weather"
/></a>
</nav>
<br />
<br />
<form id="myForm" class="glassmorphism-form">
<input type="text" id="myInput" placeholder="Enter city name .." />
</form>
<h1 id="loc"> </h1>
<h3 id="date" style="text-align: center"> </h3>
<h2 id="desc" style="text-align: center"> </h2>
<div class="panel">
<p id="desc"></p>
<div class="left-panel">
<h1 id="temp"></h1>
</div>
<div class="right-panel" style="font-size: 1.5em">
<p id="minmax"></p>
</div>
<br />
<div class="details">
<p id="detailsnow"></p>
</div>
</div>
<div class="future">
<div class="div1">
<p id="tomorrow"></p>
</div>
<div class="div2">
<p id="overmorrow"></p>
</div>
</div>
<div id="today" class="tabcontent">
<canvas id="weatherCharttoday" width="400" height="200"></canvas
><br />
<div id="today1"></div>
</div>
<div id="nextday" class="tabcontent">
<canvas id="weatherChartnextday" width="400" height="200"></canvas
><br />
<div id="nextday1"></div>
</div>
<div id="nextnextday" class="tabcontent">
<canvas
id="weatherChartnextnextday"
width="400"
height="200"
></canvas
><br />
<div id="nextnextday1"></div>
</div>
<div id="buttons">
<button class="tablinks" onclick="openTab(event, 'today')">
Today
</button>
<button class="tablinks" onclick="openTab(event, 'nextday')">
Tomorrow
</button>
<button class="tablinks" onclick="openTab(event, 'nextnextday')">
Overmorrow
</button>
</div>
<script
type="text/javascript"
id="cookiebanner"
src="cookies.js"
data-height="25px"
data-position="bottom"
data-moreinfo="https://ronynn.github.io/blog/privacy"
data-message="We use cookies to improve your app experience."
></script>
<noscript>
<div class="noscript" style="text-align: center">
It's not a server based app so you need javascript to run this.
</div>
</noscript>
</body>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
if (navigator.serviceWorker) {
navigator.serviceWorker.register("/weather/sw.js", {
scope: "/weather/"
});
}
function openTab(evt, tabName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
document.getElementById(tabName).style.display = "block";
// document.getElementById(tabName).scrollIntoView({ behavior: "smooth", block: "center" });
}
</script>
<script src="script.js"></script>
</html>