('products-list').addEventListener('mouseover', function() {
            document.getElementById('dropdown-products').checked = true;
          });
          // on mouse out
          document.getElementById('resources-list').addEventListener('mouseout', function() {
            // if not hovering over the sublist or the label, uncheck the dropdown
            // wait 1 sec
            setTimeout(function() {
              if (!document.querySelector('.resources-sublist:hover') && !document.querySelector('#