-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
272 lines (230 loc) · 10.7 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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<title>Clocket</title>
<style>
.banner {
width: 100%;
height: 500px;
background-image: url("static/banner-bg.jpeg");
background-repeat: no-repeat;
background-size: cover;
color: white;
text-align: center;
vertical-align: middle;
padding-top: 200px;
}
.banner h1 {
font-size: 120px;
text-align: center;
color: aquamarine;
}
.download {
background-color: rgb(68, 226, 5);
color: black;
font-size: 20px;
font-weight: 500;
text-decoration: none;
padding-top: 5px;
padding-bottom: 5px;
padding-right: 10px;
padding-left: 10px;
width: 200px;
text-align: center;
display: block;
margin: auto;
border-radius: 20px;
transition: all .3s linear;
}
.download:hover {
background-color: black;
color: rgb(68, 226, 5);
}
.spn {
background-color: rgb(73, 61, 141);
color: coral;
padding: 7px;
border-radius: 5px;
margin-top: 20px;
}
#uselist{
width:60%;
list-style: none;
display: block;
margin:auto;
border: 1px solid rgb(170, 170, 170);
border-radius: 7px;
overflow: hidden;
padding: 0px;
margin-bottom:50px;
}
#uselist li{
width:100%;
color:black;
padding:20px;
border-bottom: 1px solid rgb(170, 170, 170);
font-size: 16px;
font-weight: 300px;
}
#uselist li:last-child{
border-bottom: none;
}
#uselist li:hover{
background-color: rgb(19, 102, 228);
color:white;
}
#uselist li:hover a{
color:black;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light"
style="background-color: rgb(8, 238, 142); height:40px; position: fixed; width: 100%; z-index: 100;">
<div class="container-fluid">
<a class="navbar-brand" href="#">Clocket desklet</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup"
aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav">
<a class="nav-link active" aria-current="page" href="#">Home</a>
<a class="nav-link" href="#feature">Features</a>
<a class="nav-link" style="color:rgb(236, 16, 53);" href="#use">Use</a>
<a class="nav-link" href="#cust">customization</a>
<a class="nav-link" style="color:rgb(235, 87, 19);" href="#download">Download</a>
<a class="nav-link" style="color:blueviolet;" href="#latlon">Location finder</a>
</div>
</div>
</div>
</nav>
<div class="banner">
<h1>Clocket</h1>
<h3>A clock & weather display desklet.</h3>
</div>
<br>
<img src="static/screenshot.png" alt="" width="100%" height="auto">
<br><br>
<h1 style="color:darkorchid; text-align: center;" id="feature">Features</h1>
<br><br>
<div class="list-group" style="margin: auto; width: 60%; margin-bottom: 50px;">
<a href="#f2" class="list-group-item list-group-item-action active" aria-current="true" id="f1">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">beautiful clock display</h5>
</div>
<p class="mb-1">minimalistic display of this deklet make your desktop more attractive</p>
<small>so definitley try it out.</small>
</a>
<a href="#f3" class="list-group-item list-group-item-action" id="f2">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">Customization</h5>
</div>
<p class="mb-1">customize everything as your taste.</p>
<small class="text-muted">Unleash the power of customization.</small>
</a>
<a href="#f1" class="list-group-item list-group-item-action" id="f3">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">clock combind with weather display.</h5>
</div>
<p class="mb-1">combined two desklet into one and you can hide the weather block anytime. small display for
junc free & focused workflow.</p>
<small class="text-muted">so feel light with clocket</small>
</a>
<a href="#f4" class="list-group-item list-group-item-action" id="f4">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">detailed and compacted display.</h5>
</div>
<p class="mb-1">Two weather display version available i. detailed ii. compacted display to make your desktop
open sky.</p>
<small class="text-muted">so feel light with clocket</small>
</a>
</div>
<h1 style="color:rgb(236, 16, 53); text-align: center; margin-bottom: 50px;" id="use">How to use properly</h1>
<ol id="uselist">
<li>launch the desklet</li>
<li>right click on desklet select configure..</li>
<li>change colors of your taste.</li>
<li>Generate a current weather data api key from <a
href="https://openweathermap.org/price">openweathermap.org</a> or existing api .just make sure that api
is from openweathermap
</li>
<li>now put lat-lon or place name. if you dont know your location get it from <a
href="https://tirtharajsinha.github.io/clocket/#latlon">here</a></li>
<li>To update detailed weather block click on refresh button and in compacted version click current weather icon
to refresh weather data.</li>
</ol>
<h1 style="color:rgb(238, 103, 25); text-align: center; margin-bottom: 50px;" id="cust">Customization</h1>
<div style="display: flex; justify-content: space-around;">
<img src="static/custo.png" alt="" width="50%" height="auto" style="display:block;">
<p style="width:15%; padding-top:200px; line-height: 25px;">Customization is main beauty of this desklet.
customize as you want.
<br> right click on desklet and select configure.. to get this promt. <br>
set text color, bg color,api-key,lat-lon or place whatever you want.
</p>
</div>
<div style="width: 100%; height: 200px; margin-top: 100px; margin-bottom: 50px;">
<h3 style="text-align: center; margin-bottom: 30px; color: rgb(219, 10, 97);">Download letest version of clocket
</h3>
<a href="https://github.com/tirtharajsinha/clocket/releases/latest" id="download" class="download">Download</a>
</div>
<hr>
<div style="width: 100%; height: 200px; margin-top: 100px; margin-bottom: 50px;">
<h3 style="text-align: center; margin-bottom: 30px; color: rgb(219, 10, 97);">Current location(latitude and
longitude) finder.</h3>
<h5 style="text-align: center; color: rgb(167, 167, 167);">Downloaded clocket wanna find out you current
latitude and longitude ? click to find out. </h5>
<button class="download" id="click-here" style="background-color: rgb(141, 11, 61);" onclick="location()">Click
here</button>
<h6 style="text-align: center; color: rgb(56, 170, 46);">:-: After clicking button make sure you allow to read
your location. <br> Note that we don't collect your location.so feel free to allow it.</h6>
<div class="latlon" id="latlon"
style="text-align:center;width:30%; background-color: rgba(246, 248, 128, 0.671); color:black; margin: auto; border-radius: 7px; height:0px">
</div>
</div>
<div
style=" text-align:center;margin-top: 220px; width: 100%; height: 100px; background-color: rgb(0, 0, 0); padding-top: 30px; color:white;">
Made by Tirtharaj Sinha. © 2021
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js"
integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT"
crossorigin="anonymous"></script>
<script>
function geoFindMe() {
const mapLink = document.querySelector('#latlon');
mapLink.textContent = '';
function success(position) {
const latitude = position.coords.latitude;
const longitude = position.coords.longitude;
mapLink.style.transition = "all .3s linear";
mapLink.style.height = "200px";
mapLink.style.color = "transparent";
mapLink.innerHTML = `<br>Latitude: ${latitude} °,<br> Longitude: ${longitude} °<br> <span style="color:green;">copy and paste the text below</span> <br><br><spna class="spn">${latitude}:${longitude}</span>`;
mapLink.style.color = "black";
}
function error() {
status.textContent = 'Unable to retrieve your location';
}
if (!navigator.geolocation) {
mapLink.innerHTML = 'Geolocation is not supported by your browser';
} else {
mapLink.innerHTML = 'Locating…';
navigator.geolocation.getCurrentPosition(success, error);
}
}
document.querySelector('#click-here').addEventListener('click', geoFindMe);
</script>
</body>
</html>