Guest User

Untitled

a guest
May 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. <script type="text/javascript">
  2. // Save the hash the user loaded the page with
  3. var page = (location.hash) ? location.hash : '';
  4.  
  5. // When you instantiate the jQTouch object, it will revert the hash to the top div on the page or the div with class="current"
  6. $jQT = new $.jQTouch({
  7. icon: 'jqtouch.png',
  8. statusBar: 'black-translucent',
  9. preloadImages: [
  10. 'themes/jqt/img/chevron_white.png',
  11. 'themes/jqt/img/bg_row_select.gif',
  12. 'themes/jqt/img/back_button_clicked.png',
  13. 'themes/jqt/img/button_clicked.png'
  14. ]
  15. });
  16.  
  17. $(document).ready(function() {
  18. // If we have page set, make jQTouch go to that page
  19. if (page) jQT.goto(page, 'slide');
  20. });
  21. </script>
Add Comment
Please, Sign In to add comment