diff --git a/css/dropdown.css b/css/dropdown.css index cfb236f4..04b3adfa 100644 --- a/css/dropdown.css +++ b/css/dropdown.css @@ -41,11 +41,4 @@ display: block; } -/* Change color of dropdown links on hover */ -.dropdown-content a:hover {background-color: #ddd;} - -/* Show the dropdown menu on hover */ -.dropdown:hover .dropdown-content {display: block;} - -/* Change the background color of the dropdown button when the dropdown content is shown */ -.dropdown:hover .dropbtn {background-color: #000001;} +/* removed hover capabilities and added js click capabilities in css/dropdown.js */ diff --git a/css/dropdown.js b/css/dropdown.js new file mode 100644 index 00000000..2dadad50 --- /dev/null +++ b/css/dropdown.js @@ -0,0 +1,20 @@ +function PRlist() { + var click = document.getElementById("PR"); + if(click.style.display ==="none") { + click.style.display ="block"; + } else { + click.style.display ="none"; + } +} + +function PLTlist() { + var click = document.getElementById("PLT"); + if(click.style.display ==="none") { + click.style.display ="block"; + } else { + click.style.display ="none"; + } +} + +document.getElementById('PR').addEventListener("click", PRlist); +document.getElementById('PLT').addEventListener("click", PLTlist); diff --git a/index.html b/index.html index 535838d5..06af619c 100644 --- a/index.html +++ b/index.html @@ -36,7 +36,6 @@ –––––––––––––––––––––––––––––––––––––––––––––––––– --> - @@ -107,8 +106,8 @@ -->