From: Dave Thompson <davet@freestation00.office.fsf.org> Date: Tue, 17 Jun 2014 16:43:05 +0000 (-0400) Subject: Make troubleshooting dropdowns show content when JS is disabled. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e69e712d11c753b9bb8a5c383c9f7a8644bde7c1;p=enc-static.git Make troubleshooting dropdowns show content when JS is disabled. --- diff --git a/css/main.css b/css/main.css index 4083918..fa9eb6a 100644 --- a/css/main.css +++ b/css/main.css @@ -446,7 +446,6 @@ ul.images li > img { } .troubleshooting dl { - display: none; padding: .5em; border: 1px solid #5f8dd3; border-radius: 0 3px 3px; diff --git a/js/scripts.js b/js/scripts.js index d0a1f40..e00e27a 100644 --- a/js/scripts.js +++ b/js/scripts.js @@ -1,10 +1,7 @@ - $(document).ready( function() { - - $(".troubleshooting > h4").click(function() { - $(this).toggleClass("expanded"); - $(this).next("dl").slideToggle(400); - }); - + $(".troubleshooting > dl").css("display", "none"); + $(".troubleshooting > h4").click(function() { + $(this).toggleClass("expanded"); + $(this).next("dl").slideToggle(400); + }); }); -