Skip to content
Snippets Groups Projects
Commit 6f71f914 authored by sandeepsajan0's avatar sandeepsajan0 Committed by Fredrik Jonsson
Browse files

fix lint fe

parent 6ed9ab99
No related branches found
No related tags found
No related merge requests found
......@@ -3,13 +3,13 @@
'use strict';
document.querySelector('.simplified__dropbtn').addEventListener('click', function () {
document.getElementById("downloadDropdown").classList.toggle("simplified__show");
document.getElementById('downloadDropdown').classList.toggle('simplified__show');
});
// Close the dropdown menu if the user clicks outside of it
window.addEventListener('click', function(event) {
window.addEventListener('click', function (event) {
if (!event.target.matches('.simplified__dropbtn')) {
var dropdown = document.querySelector(".simplified__dropdown-content");
var dropdown = document.querySelector('.simplified__dropdown-content');
if (dropdown.classList.contains('simplified__show')) {
dropdown.classList.remove('simplified__show');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment