small changes before pull request
This commit is contained in:
parent
aaa216f899
commit
b000138e1a
1 changed files with 15 additions and 1 deletions
|
@ -1,6 +1,20 @@
|
|||
// to do:
|
||||
// - menus need to be clicked twice to open
|
||||
// - clicking on window does not result in menu closing
|
||||
// - have menu items shift when drop down is open
|
||||
|
||||
window.onclick = function(event) {
|
||||
if (!event.target.matches('.dropbtn')) {
|
||||
var dropdowns = document.getElementsByClassName("dropdown-content");
|
||||
var i;
|
||||
for (i = 0; i < dropdowns.length; i++) {
|
||||
var openDropdown = dropdowns[i];
|
||||
//IF STATEMENT IS NOT EXECUTING
|
||||
if (openDropdown.classList.contains('show')) {
|
||||
openDropdown.classList.remove('show');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function PRlist() {
|
||||
var click = document.getElementById("PR");
|
||||
|
|
Loading…
Reference in a new issue