Skip to content

Instantly share code, notes, and snippets.

@Rockncoder
Created August 3, 2012 21:33
Show Gist options
  • Select an option

  • Save Rockncoder/3251740 to your computer and use it in GitHub Desktop.

Select an option

Save Rockncoder/3251740 to your computer and use it in GitHub Desktop.
JQM Resize - body of the index.html file
<body>
<div id="page1" data-role="page" data-rockncoder-jspage="page1">
<!-- the resize code takes into account whether or not there are headers and footers -->
<header data-role="header" data-position="fixed">
<h1>Index Page</h1>
</header>
<section id="content" data-role="content">
<div id="flexDiv" ></div>
</section>
<footer data-role="footer" data-position="fixed">
<h1>Index Page Footer</h1>
</footer>
</div>
<script src="scripts/code.js" type="text/javascript"></script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment