mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-13 18:16:19 +02:00
add missing files.
This commit is contained in:
1
src/lib/escodegen.browser.min.js
vendored
Normal file
1
src/lib/escodegen.browser.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
20
src/notifications.js
Normal file
20
src/notifications.js
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
(function () {
|
||||||
|
|
||||||
|
var noticationContainerEL = $('#js-alerts-container');
|
||||||
|
|
||||||
|
function addNotification(msg) {
|
||||||
|
var n = document.createElement('div');
|
||||||
|
// div.textContent = msg;
|
||||||
|
// noticationContainerEL.appendChild(n);
|
||||||
|
noticationContainerEL.textContent = msg;
|
||||||
|
noticationContainerEL.classList.add('is-active');
|
||||||
|
|
||||||
|
setTimeout(function () {
|
||||||
|
noticationContainerEL.classList.remove('is-active');
|
||||||
|
}, 2000)
|
||||||
|
}
|
||||||
|
|
||||||
|
window.alertsService = {
|
||||||
|
add: addNotification
|
||||||
|
}
|
||||||
|
})();
|
Reference in New Issue
Block a user