Created
September 8, 2010 02:58
-
-
Save kyo-ago/569543 to your computer and use it in GitHub Desktop.
click_wrapper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$().ajaxSend(function () { | |
if ($('#click_wrapper').length) return; | |
$('<div id="click_wrapper">').appendTo('body').css('opacity', 0); | |
}).bind('ajaxComplete', function () { | |
setTimeout(function () { | |
$('#click_wrapper').remove(); | |
}, 500); | |
}); | |
$('body').live('pageAnimationStart', function () { | |
if ($('#click_wrapper').length) return; | |
$('<div id="click_wrapper">').appendTo('body').css('opacity', 0); | |
}).live('pageAnimationEnd', function () { | |
$('#click_wrapper').remove(); | |
}); | |
$('a').live('tap', function () { | |
$('a').not(this).removeClass('active'); | |
}); | |
/* for css | |
#click_wrapper { | |
width:100%; | |
height:100%; | |
position:absolute; | |
top:0; | |
left:0; | |
z-index:9999; | |
display:block; | |
} | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/* for jQTouch */
click_wrapper {
}