Advertisement
Guest User

tt

a guest
Jul 2nd, 2015
259
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.         function checkLogin()
  30.         {
  31.             var data = {
  32.                 user: document.getElementById("naam").value,
  33.                 pass: document.getElementById("mypass").value
  34.             };
  35.             $.getJSON("http://college9909.site90.net/desc.php?jsonp=?", data, function (data) {
  36.                 var status = JSON.stringify(data['status']);
  37.                 alert(status);
  38.             }
  39.             );
  40.         }
  41.        
  42.  
  43.     </script>
  44. </head>
  45. <body>
  46.  
  47.     <div data-role="page" id="pageone">
  48.         <div data-role="header">
  49.             <h1>Welcome To My Homepage</h1>
  50.         </div>
  51.  
  52.         <div data-role="main" class="ui-content">
  53.             <p>Welcome!</p>
  54.             <a href="#pagetwo" data-transition="slide"> Navigate to page two</a>
  55.             <input type="text" name="name" placeholder="Your Name" id="naam">
  56.             <input type="password" name="pass" placeholder="Your password" id="mypass">
  57.             <input type="button" value="Go" id="button" onclick="checkLogin()">
  58.             <input type="range" min="0" max="100" value="20" name="range_name">
  59.         </div>
  60.        
  61.         <div data-role="footer" data-position="fixed" style="background-color:#ff0000">
  62.             <h1>&copy; Codeblix</h1>
  63.         </div>
  64.     </ol>
  65.  
  66.     <div data-role="page" id="pagetwo">
  67.         <div data-role="header">
  68.             <h1>Welcome </h1>
  69.         </div>
  70.  
  71.         <div data-role="main" class="ui-content">
  72.             <p>Welcome <div id="showName"></div></p>
  73.  
  74.         </div>
  75.  
  76.         <div data-role="footer" data-position="fixed">
  77.             <h1>Footer Text for page 2</h1>
  78.         </div>
  79.     </div>
  80.  
  81.  
  82. </body>
  83. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement