Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript

view source
01
$(document).ready(function () {
02
  $('.navbar-toggler').click(function () {
03
    $('.navbar-collapse').slideToggle(300);
04
  });
05
 
06
  smallScreenMenu();
07
  let temp;
08
 
09
  function resizeEnd() {
10
    smallScreenMenu();
11
  }
12
 
13
  $(window).resize(function () {
14
    clearTimeout(temp);
15
    temp = setTimeout(resizeEnd, 100);
16
    resetMenu();
17
  });
18
});
Source by www.jqueryscript.net #
 
PREVIOUS NEXT
Tagged: #javascript
ADD COMMENT
Topic
Name
6+2 =