-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathutils.js
More file actions
24 lines (21 loc) · 1003 Bytes
/
utils.js
File metadata and controls
24 lines (21 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
getNotificationHtml = (document) => {
const notificationElement = document.createElement("div");
notificationElement.style.position = "fixed";
notificationElement.style.right = "10px";
notificationElement.style.top = "10px";
notificationElement.style.color = "white";
notificationElement.style.backgroundColor = "#323232";
notificationElement.style.padding = "10px";
notificationElement.style.borderRadius = "5px";
notificationElement.style.zIndex = "999999999";
notificationElement.style.fontFamily = "Verdana";
const firstChildElement = document.createElement("div");
firstChildElement.style.fontSize = "16px";
firstChildElement.innerHTML = "Applied window rules!";
const secondChildElement = document.createElement("div");
secondChildElement.style.fontSize = "12px";
secondChildElement.innerHTML = "Source: Slash Cookies";
notificationElement.appendChild(firstChildElement);
notificationElement.appendChild(secondChildElement);
return notificationElement;
};