Update index.html

This commit is contained in:
Scott Wallace 2014-05-15 09:39:40 +01:00
parent ab9c405588
commit d0022f450f

View file

@ -60,7 +60,7 @@
width: 15em; width: 15em;
height: 100%; height: 100%;
padding: 1em; padding: 1em;
display: none; visibility: hidden;
} }
.menutitle { .menutitle {
@ -99,7 +99,7 @@
function openMenu() { function openMenu() {
$(function(){ $(function(){
if ( $("#rightmenu").attr("data-open") != "true" ) { if ( $("#rightmenu").attr("data-open") != "true" ) {
$("#rightmenu").css("display", "inline"); $("#rightmenu").css("visibility", "visible");
$("#rightmenu").animate({left: "-=" + $("#rightmenu").css("width")}, 1000); $("#rightmenu").animate({left: "-=" + $("#rightmenu").css("width")}, 1000);
$("#rightmenu").attr("data-open", "true"); $("#rightmenu").attr("data-open", "true");
} }
@ -110,7 +110,7 @@
$(function(){ $(function(){
if ( $("#rightmenu").attr("data-open") != "false" ) { if ( $("#rightmenu").attr("data-open") != "false" ) {
$("#rightmenu").animate({left: "+=" + $("#rightmenu").css("width")}, 1000).done(function(){ $("#rightmenu").animate({left: "+=" + $("#rightmenu").css("width")}, 1000).done(function(){
$("#rightmenu").css("display", "none"); $("#rightmenu").css("visibility", "hidden");
$("#rightmenu").attr("data-open", "false"); $("#rightmenu").attr("data-open", "false");
}); });
} }