Add notifications on work page, rebase already exists with notifications.js

This commit is contained in:
Sokurov Idar
2021-04-20 22:55:22 +03:00
parent 83939f6681
commit cff6443eca
22 changed files with 1083 additions and 46 deletions

View File

@@ -0,0 +1,14 @@
"use strict";
function create_notification(title,description,theme,time){
const myNotification = window.createNotification({
closeOnClick: true,
displayCloseButton: true,
positionClass: 'nfc-top-right',
theme: theme,
showDuration: Number(time),
});
myNotification({
title: title,
message: description
});
};