Update index.html
This commit is contained in:
parent
89609bf72a
commit
e41dccc331
|
@ -60,7 +60,7 @@
|
||||||
width: 15em;
|
width: 15em;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
visibility: hidden;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.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("visibility", "visible");
|
$("#rightmenu").css("display", "inline");
|
||||||
$("#rightmenu").animate({left: "-=" + $("#rightmenu").css("width")}, 1000);
|
$("#rightmenu").animate({left: "-=" + $("#rightmenu").css("width")}, 1000);
|
||||||
$("#rightmenu").attr("data-open", "true");
|
$("#rightmenu").attr("data-open", "true");
|
||||||
}
|
}
|
||||||
|
@ -109,8 +109,8 @@
|
||||||
function closeMenu() {
|
function closeMenu() {
|
||||||
$(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).success(function(){
|
||||||
$("#rightmenu").css("visibility", "hidden");
|
$("#rightmenu").css("display", "none");
|
||||||
$("#rightmenu").attr("data-open", "false");
|
$("#rightmenu").attr("data-open", "false");
|
||||||
alert("Hello");
|
alert("Hello");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue