/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function myOrder() {
document.getElementById("myOrder").classList.toggle("show");
}
function myOrder2() {
document.getElementById("myOrder2").classList.toggle("show");
}
function mySpecial1() {
document.getElementById("mySpecial1").classList.toggle("show");
}
function mySpecial2() {
document.getElementById("mySpecial2").classList.toggle("show");
}
// Close the dropdown menu if the user clicks outside of it
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 (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function myOrderEQ() {
document.getElementById("myOrderEQ").classList.toggle("show");
}
// Close the dropdown menu if the user clicks outside of it
window.onclick = function(event) {
if (!event.target.matches('.dropbtneq')) {
var dropdowns = document.getElementsByClassName("dropdowneq-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}