Advertisement
Guest User

Untitled

a guest
Apr 26th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Untitled Document</title>
  6. <script src="js/jquery-2.1.3.min.js"></script>
  7. <script src="js/jquery.mobile-1.4.5.js"></script>
  8. <link rel="stylesheet" href="css/jquery.mobile-1.4.5.css">
  9. <link rel="stylesheet" href="css/exercise1.css">
  10. <link rel="stylesheet" href="css/exercise1.min.css">
  11. <link rel="stylesheet" href="css/jquery.mobile.icons.min.css">
  12. </head>
  13. <!--------Themes go to : http://themeroller.jquerymobile.com/---------->
  14. <body>
  15. <!---------------------------------SCRIPT FOR PAGE 1---------------------------------->
  16. <div data-role="page" id="page01">
  17. <div data-role="header" data-position="fixed">
  18. <h1 align="center" style="font-size:2em; margin-bottom:-40px; margin-top:-20px" >SMST</h1>
  19. <h2>Home</h2>
  20. </div>
  21. <script>
  22. $( document ).on( "swipeleft swiperight", "page01.html", function( e ) {
  23. if ( e.type === "swipeleft" )
  24. {
  25. $.mobile.changePage("page02.html", {transition:"slide", reloadPage: true});
  26. }
  27. else if ( e.type === "swiperight" )
  28. {
  29. $.mobile.changePage("page04.html", {transition: "slide", reverse:true, reloadPage: true});
  30. }
  31. });
  32. </script>
  33.  
  34. <div data-role="content">
  35. This is the Homescreen. <br>
  36. This is the Homescreen. <br>
  37. This is the Homescreen. <br>
  38. This is the Homescreen. <br>
  39. This is the Homescreen. <br>
  40. This is the Homescreen. <br>
  41. This is the Homescreen. <br>
  42. This is the Homescreen. <br>
  43. This is the Homescreen. <br>
  44. This is the Homescreen. <br>
  45. This is the Homescreen. <br>
  46. This is the Homescreen. <br>
  47. This is the Homescreen. <br>
  48. This is the Homescreen. <br>
  49. This is the Homescreen. <br>
  50. This is the Homescreen. <br>
  51.  
  52. </div>
  53.  
  54. <div data-role="footer" data-position="fixed">
  55. <div data-role="navbar">
  56. <ul>
  57. <li><a data-icon="home1" data-transition="slide" href="page01.html" style="color:#082E40 !important" class="ui-btn-active ui-state-persist">Home</a></li>
  58. <li><a data-icon="contact1" data-transition="slide" href="page02.html">Contact Us</a></li>
  59. <li><a data-icon="location1" data-transition="slide" href="page03.html">Map</a></li>
  60. <li><a data-icon="arrival1" data-transition="slide" href="page04.html">Arrival Times</a></li>
  61. </ul>
  62. </div>
  63. </div>
  64. </div>
  65.  
  66. </body>
  67. <style type="text/css">
  68. .ui-btn {
  69. border-width: 2px;
  70. }
  71. .ui-icon-home1:after {
  72. background-image: url(home.png) !important;
  73. background-size:16px 16px;
  74. }
  75. .ui-icon-contact1:after {
  76. background-image: url(contact.png) !important;
  77. background-size:16px 16px;
  78. }
  79. .ui-icon-location1:after {
  80. background-image: url(location.png) !important;
  81. background-size:16px 16px;
  82. }
  83. .ui-icon-arrival1:after {
  84. background-image: url(arrival.png) !important;
  85. background-size:16px 16px;
  86. }
  87. .ui-popup {
  88.  
  89. }
  90. #textarea-a {
  91. height: 100px;
  92. width: 300px;
  93. }
  94. closebtn {
  95. margin-left: 200px;
  96. margin-top: 20px;
  97. width: 100px;
  98. height: 100px;
  99. }
  100. hgroup {
  101. margin-left: 170px;
  102. font-size: 2em;
  103. margin-bottom: -10px;
  104. }
  105. html, body, #map-canvas {
  106. height: 100%;
  107. margin: 0px;
  108. padding: 0px
  109. }
  110.  
  111. </style>
  112. </html>
  113. <!---------------------------------END OF SCRIPT---------------------------------->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement