Исправлено: при таймауте не выделенных уведомлений исчезает выделенное уведомление

This commit is contained in:
Alexander Zhirov 2023-06-02 01:16:58 +03:00
parent 07d4a45190
commit 00faa70ff0
3 changed files with 25 additions and 9 deletions

18
test/index.html Normal file
View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-3.7.0.min.js"></script>
<script src="../noticer.js"></script>
</head>
<body>
<button id="test">test</button>
<script>
noticer = new Noticer;
$('#test').click(() => {
noticer.success("This is success notice");
noticer.warning("This is warning notice");
noticer.error("This is error notice");
});
</script>
</body>
</html>