Advertisement
Guest User

round 1

a guest
Jul 2nd, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <!-- Include meta tag to ensure proper rendering and touch zooming -->
  5.     <meta name="viewport" content="width=device-width, initial-scale=1">
  6.     <!-- Include jQuery Mobile stylesheets -->
  7.     <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
  8.     <!-- Include the jQuery library -->
  9.     <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
  10.     <!-- Include the jQuery Mobile library -->
  11.     <script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
  12.     <script>
  13.  
  14.         function pagetwonav() {
  15.             window.location.href = "#pagetwo";
  16.             var name = document.getElementById('naam').value;
  17.             document.getElementById('showName').innerHTML=name
  18.         }
  19.  
  20.         $(document).on("pagecreate","#pageone",function(){
  21.             $("li").on("swipe", function () {
  22.                 $(this).hide();
  23.             });
  24.             $(document).on("scrollstart", function () {
  25.                 alert("you started scroling!!");
  26.             });
  27.         });
  28.        
  29.        
  30.  
  31.     </script>
  32. </head>
  33. <body>
  34.  
  35.     <div data-role="page" id="pageone">
  36.         <div data-role="header">
  37.             <h1>Welcome To My Homepage</h1>
  38.         </div>
  39.  
  40.         <div data-role="main" class="ui-content">
  41.             <p>Welcome!</p>
  42.             <a href="#pagetwo" data-transition="slide"> Navigate to page two</a>
  43.             <input type="text" name="name" placeholder="Your Name" id="naam">
  44.             <input type="button" value="Go" id="button" onclick="pagetwonav()">
  45.         </div>
  46.         <ul data-role="listview" >
  47.             <li>tea</li>
  48.             <li>coffee</li>
  49.             <li>tea</li>
  50.             <li>coffee</li><li>tea</li>
  51. <li>coffee</li><li>tea</li>
  52. <li>coffee</li><li>tea</li>
  53. <li>coffee</li><li>tea</li>
  54. <li>coffee</li><li>tea</li>
  55. <li>coffee</li><li>tea</li>
  56. <li>coffee</li><li>tea</li>
  57. <li>coffee</li><li>tea</li>
  58. <li>coffee</li><li>tea</li>
  59. <li>coffee</li><li>tea</li>
  60. <li>coffee</li><li>tea</li>
  61. <li>coffee</li><li>tea</li>
  62. <li>coffee</li><li>tea</li>
  63. <li>coffee</li><li>tea</li>
  64. <li>coffee</li><li>tea</li>
  65. <li>coffee</li><li>tea</li>
  66. <li>coffee</li><li>tea</li>
  67. <li>coffee</li><li>tea</li>
  68. <li>coffee</li><li>tea</li>
  69. <li>coffee</li><li>tea</li>
  70. <li>coffee</li><li>tea</li>
  71. <li>coffee</li><li>tea</li>
  72. <li>coffee</li><li>tea</li>
  73. <li>coffee</li><li>tea</li>
  74. <li>coffee</li>
  75.             </ul>
  76.  
  77.         <div data-role="footer" data-position="fixed" style="background-color:#ff0000">
  78.             <h1>&copy; Codeblix</h1>
  79.         </div>
  80.     </ol>
  81.  
  82.     <div data-role="page" id="pagetwo">
  83.         <div data-role="header">
  84.             <h1>Welcome </h1>
  85.         </div>
  86.  
  87.         <div data-role="main" class="ui-content">
  88.             <p>Welcome <div id="showName"></div></p>
  89.  
  90.         </div>
  91.  
  92.         <div data-role="footer" data-position="fixed">
  93.             <h1>Footer Text for page 2</h1>
  94.         </div>
  95.     </div>
  96.  
  97.  
  98. </body>
  99. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement