-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreset.html
62 lines (56 loc) · 1.67 KB
/
reset.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Song limit reset</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #282828;
color: white;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
}
h1 {
color: #1DB954;
}
button {
background-color: #ff4500;
color: white;
border: none;
border-radius: 5px;
padding: 15px 30px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s;
}
button:hover {
background-color: #ff6347;
transform: scale(1.05);
}
p {
margin-top: 20px;
}
</style>
</head>
<body>
<h1>Reset the limit on your device</h1>
<p>Press the button to reset the song addition limit on the current device.</p>
<button id="reset-btn">Reset</button>
<p id="status-message"></p>
<script>
const resetBtn = document.getElementById('reset-btn');
const statusMessage = document.getElementById('status-message');
resetBtn.addEventListener('click', () => {
localStorage.removeItem('addHistory');
statusMessage.textContent = 'Limite di aggiunta brani resettato con successo!';
console.log('Limite di aggiunta brani resettato.');
});
</script>
</body>
</html>