diff --git a/events/events.html b/events/events.html
index f23f4ae8d8..16a0dadcf6 100644
--- a/events/events.html
+++ b/events/events.html
@@ -66,13 +66,30 @@
}
function showingDropDown() {
+ if(document.body.clientWidth<767){
this.classList.toggle("active");
- let dropDown = this.nextElementSibling;
-
- if (dropDown.style.display === "block") {
- dropDown.style.display = "none";
- } else {
- dropDown.style.display = "block";
+ let dropDown = this.nextElementSibling;
+ if (dropDown.style.display === "block") {
+ dropDown.style.display = "none";
+ } else {
+ dropDown.style.display = "block";
+ }
+ }
+ }
+ window.addEventListener('resize',handleScreenResize)
+ function handleScreenResize(){
+ if(document.body.clientWidth>767){
+ const columns = document.querySelectorAll('.mobile-dropdown');
+ for(let column of columns){
+ column.style.display='block';
+ column.previousElementSibling.classList.remove('active');
+ }
+ }
+ else{
+ const columns = document.querySelectorAll('.mobile-dropdown');
+ for(let column of columns){
+ column.style.display='none';
}
}
+}
\ No newline at end of file