Set tap to toggle footer
Description
The following code shows how to set tap to toggle footer.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.8.3.js'></script>
<script type="text/javascript"
src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.js"></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.css">
<script type='text/javascript'>//<![CDATA[
$(window).load(function(){<!--from w w w. jav a 2s . c om-->
$(document).bind("pageinit", function() {
$("[data-role=header],[data-role=footer]").fixedtoolbar({ tapToggle: true });
$("[data-role=header],[data-role=footer]").fixedtoolbar({ fullscreen: true });
}):
});//]]>
</script>
</head>
<body>
<div data-role="page">
<div data-role="header" data-position="fixed" data-fullscreen="true">
<h1>Page Title</h1>
</div>
<!-- /header -->
<div data-role="content">
<p>hello!</p>
</div>
<!-- /content -->
<div data-role="footer" data-position="fixed" data-fullscreen="true">
<h4>Page Footer</h4>
</div>
<!-- /footer -->
</div>
<!-- /page -->
</body>
</html>