-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
73 lines (69 loc) · 2.28 KB
/
index.html
File metadata and controls
73 lines (69 loc) · 2.28 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Clock - By Geoloup</title>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('sw.js')
.then(registration => {
console.log('Service Worker registered:', registration);
})
.catch(error => {
console.error('Service Worker registration failed:', error);
});
});
}
</script>
<link rel="shortcut icon" href="clock.png">
<link rel="manifest" href="manifest.json" />
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
<link rel="stylesheet" href="style.css">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script src="//cdn.jsdelivr.net/npm/eruda"></script>
<script>eruda.init();</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0,interactive-widget=resizes-content">
</head>
<body>
<video id='video' width="320" height="240" autoplay loop muted>
<source src="screen.mp4" type="video/mp4" />
</video>
<i class="bx bx-edit" onclick="openEditor()" href="editor.html"></i>
<div class="weather-container" id="weather">
<div>
<h2>Température</h2>
<i class="bx bxs-sun" id="weather-icon"></i>
</div>
<div id="today-weather">
<h3>Aujourd'hui:</h3>
<div id="temperature">Temperature: 16.1°C</div>
<div id="uv-index">UV Index: 5.1</div>
<div id='hourly-uv-index'></div>
</div>
<div id="tomorrow-weather">
<h3>Demain</h3>
<div id="tomorrow-temp">Tomorrow's Temperature: 24.7°C</div>
<div id="tomorrow-uv">Tomorrow's UV Index: 6.1</div>
</div>
</div>
<div id="time">
<div id="clock"></div>
<div id="date"></div>
</div>
<div class="Info" id="setting">
<h3 id='batterie'></h3>
<label><input onclick='toggleLock()' id='lock' type="checkbox" value="keep screen alive"> keep screen
alive</label>
<button onclick="fullscreen()">FullScreen</button>
</div>
<div class='cssBatterie' id="bat" data-charge='100%'>
<div class='top'></div>
<div class='middle'></div>
<div class='charging'>
<i class='bx bxs-bolt'></i>
</div>
</div>
<script src="script.js"></script>
</body>
</html>