Skip to content

Commit

Permalink
Update notification.js
Browse files Browse the repository at this point in the history
  • Loading branch information
LB123658 authored Jul 28, 2021
1 parent fae4a48 commit a722786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notification.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function displayNotification(text) {
var css = document.createElement("style");
css.innerHTML = "#banner { position: absolute; top: 20px; right: 20px; width: 250px; z-index: 10; background: #5765f2; color: white; padding: 10px; border-radius: 8px; animation-name: slide; animation-duration: 1s; cursor: pointer; user-select: none; transition: transform 0.5s; }#banner:hover {transform: scale(1.1);}@keyframes slide { 0% {right: -270px;} 100% {right: 20px;} }";
css.innerHTML = "#banner { position: absolute; top: 15px; right: 20px; width: 250px; z-index: 10; background: #5765f2; color: white; padding: 10px; border-radius: 8px; animation-name: slide; animation-duration: 1s; cursor: pointer; user-select: none; transition: transform 0.5s; }#banner:hover {transform: scale(1.1);}@keyframes slide { 0% {right: -270px;} 100% {right: 20px;} }";
document.head.appendChild(css);
var banner = document.createElement("div");
banner.id = "banner";
Expand Down

0 comments on commit a722786

Please sign in to comment.