www/js/dropdown.js
/* When called, all open dropdowns are closed immediately */
When called, all open dropdowns are closed immediately
When called all open dropdowns are closed immediately
function closeAllDropDowns() {
  var dropdowns = document.getElementsByClassName('dropdown-content');
  var i;
  for (i = 0; i < dropdowns.length; i++) {
    var openDropdown = dropdowns[i];
    if (openDropdown.classList.contains('dropshow')) {
      openDropdown.classList.remove('dropshow');
    }
  }
}
function closeAllDropDowns ( ) { var dropdowns = document . getElementsByClassName ( 'dropdown-content' ) ; var i ; for ( i = 0 ; i < dropdowns . length ; i ++ ) { var openDropdown = dropdowns [ i ] ; if ( openDropdown . classList . contains ( 'dropshow' ) ) { openDropdown . classList . remove ( 'dropshow' ) ; } } }
When called, all open dropdowns are closed immediately
When called all open dropdowns are closed immediately