diff --git a/Assignments/module-5/js/script.js b/Assignments/module-5/js/script.js index ed455ddd..164d1a63 100644 --- a/Assignments/module-5/js/script.js +++ b/Assignments/module-5/js/script.js @@ -1,7 +1,5 @@ -$(function () { // Same as document.addEventListener("DOMContentLoaded"... - - // Same as document.querySelector("#navbarToggle").addEventListener("blur",... - $("#navbarToggle").blur(function (event) { +$(document).ready(function() { + $(document).on("click",function(e){ var screenWidth = window.innerWidth; if (screenWidth < 768) { $("#collapsable-nav").collapse('hide');