From 5b52365f44a726ae3d26c8fc42a78d37c61b2abd Mon Sep 17 00:00:00 2001 From: Vaibhav234k <114278562+Vaibhav234k@users.noreply.github.com> Date: Thu, 30 Mar 2023 12:27:56 +0530 Subject: [PATCH 1/2] imported jquery cdn --- label_buddy/templates/base.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/label_buddy/templates/base.html b/label_buddy/templates/base.html index 85d849a..6a34a5d 100644 --- a/label_buddy/templates/base.html +++ b/label_buddy/templates/base.html @@ -29,6 +29,7 @@ {% endblock %} + {% block title %}{% endblock %} @@ -138,4 +139,4 @@ <h6 class="dropdown-header user-round-icon"> {% endblock %} </body> -</html> \ No newline at end of file +</html> From 8a4ccda8ea4ae77045c250db445cdded49b45a3a Mon Sep 17 00:00:00 2001 From: Vaibhav234k <114278562+Vaibhav234k@users.noreply.github.com> Date: Thu, 30 Mar 2023 12:29:40 +0530 Subject: [PATCH 2/2] setTimeout function added for alert close --- label_buddy/static/js/common.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/label_buddy/static/js/common.js b/label_buddy/static/js/common.js index fdc44e7..bb80f1c 100644 --- a/label_buddy/static/js/common.js +++ b/label_buddy/static/js/common.js @@ -26,3 +26,9 @@ document.addEventListener('DOMContentLoaded', function() { NProgress.start(); }); }); + +window.setTimeout(function() { + $(".alert").fadeTo(500, 0).slideUp(500, function(){ + $(this).remove(); + }); +}, 4000);