From e41dccc331321af342e80f00606b11c0263000e3 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Thu, 15 May 2014 09:42:23 +0100 Subject: [PATCH] Update index.html --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index ba309a7..8c2e860 100644 --- a/index.html +++ b/index.html @@ -60,7 +60,7 @@ width: 15em; height: 100%; padding: 1em; - visibility: hidden; + display: none; } .menutitle { @@ -99,7 +99,7 @@ function openMenu() { $(function(){ if ( $("#rightmenu").attr("data-open") != "true" ) { - $("#rightmenu").css("visibility", "visible"); + $("#rightmenu").css("display", "inline"); $("#rightmenu").animate({left: "-=" + $("#rightmenu").css("width")}, 1000); $("#rightmenu").attr("data-open", "true"); } @@ -109,8 +109,8 @@ function closeMenu() { $(function(){ if ( $("#rightmenu").attr("data-open") != "false" ) { - $("#rightmenu").animate({left: "+=" + $("#rightmenu").css("width")}, 1000).done(function(){ - $("#rightmenu").css("visibility", "hidden"); + $("#rightmenu").animate({left: "+=" + $("#rightmenu").css("width")}, 1000).success(function(){ + $("#rightmenu").css("display", "none"); $("#rightmenu").attr("data-open", "false"); alert("Hello"); });