-
Notifications
You must be signed in to change notification settings - Fork 1
/
update.html
86 lines (78 loc) · 2.94 KB
/
update.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Update Notification</title>
<style>
body {
background-color: #121212;
color: #ffffff;
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
transition: background-color 0.3s;
}
.notification-box {
background-color: #1e1e1e;
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
width: 350px;
text-align: center;
transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
}
.notification-title {
font-size: 30px;
margin-bottom: 20px;
}
.notification-message {
font-size: 16px;
color: #b0b0b0;
margin-bottom: 20px;
transition: color 0.3s;
}
.update-button {
background-color: #6200ea;
color: #ffffff;
border: none;
border-radius: 5px;
padding: 10px 15px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s;
}
.update-button:hover {
background-color: #3700b3;
}
</style>
</head>
<body>
<div class="notification-box"
onmouseenter="changeTheme(true)"
onmouseleave="changeTheme(false)">
<div class="notification-title">Update Available!</div>
<div class="notification-message">This version of the extention is expired and is no longer working. Please update the extention from the github repo to continue using the extention.
<br><br><br><i>PS: You will need to uninstall this version before installing the new one.<i/></div>
<button class="update-button" onclick="window.location.href='https://github.com/ErrorxCode/FkNeo/releases/latest'">Download Now</button>
</div>
<script>
function changeTheme(isHovering) {
if (isHovering) {
document.body.style.backgroundColor = '#ffffff';
document.querySelector('.notification-box').style.backgroundColor = '#cccccc';
document.querySelector('.notification-message').style.color = '#333333';
document.querySelector('.notification-box').style.color = '#121212';
} else {
document.body.style.backgroundColor = '#121212';
document.querySelector('.notification-box').style.backgroundColor = '#1e1e1e';
document.querySelector('.notification-message').style.color = '#b0b0b0';
document.querySelector('.notification-box').style.color = '#ffffff';
}
}
</script>
</body>
</html>