-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
28 lines (28 loc) · 917 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="homestyle.css">
<title>Lock Screen</title>
</head>
<body>
<div class="lock-screen" id="lockScreen">
<div class="clock" id="clock"></div>
<div class="date" id="date"></div>
</div>
<div class="bottom-bar">
<div class="arrow" id="arrow">↑</div>
<div class="text">Swipe to unlock</div>
</div>
<script src="homescript.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
const customBackgroundImage = localStorage.getItem('customBackgroundImage');
if (customBackgroundImage) {
document.body.style.backgroundImage = `url(${customBackgroundImage})`;
}
});
</script>
</body>
</html>