Skip to content

Commit 835e582

Browse files
dropdown menu is revealed when javascript is disabled
1 parent 0aecdea commit 835e582

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

assets/index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ a {
175175
}
176176

177177
@media (max-width: $tablet) {
178-
#menu {
178+
#menu.js {
179179
height: 0;
180180
}
181181
h2 {

javascripts/city_dropdown.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ $(function(){
55
class_name = "show_menu";
66
wrapper = $("#menu_wrapper");
77
header = wrapper.find("#menu_header");
8-
8+
menu = wrapper.find("#menu");
9+
10+
menu.addClass("js");
11+
912
header.click(function(){
1013
wrapper.toggleClass(class_name);
1114
})

stylesheets/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ a {
119119
.wrapper #menu_wrapper ul li:first-child a {
120120
border: none; }
121121
@media (max-width: 767px) {
122-
.wrapper #menu_wrapper #menu {
122+
.wrapper #menu_wrapper #menu.js {
123123
height: 0; }
124124
.wrapper #menu_wrapper h2 {
125125
color: white;

0 commit comments

Comments
 (0)