Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <!-- Include meta tag to ensure proper rendering and touch zooming -->
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <!-- Include jQuery Mobile stylesheets -->
- <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
- <!-- Include the jQuery library -->
- <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
- <!-- Include the jQuery Mobile library -->
- <script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
- <script>
- function pagetwonav() {
- window.location.href = "#pagetwo";
- var name = document.getElementById('naam').value;
- document.getElementById('showName').innerHTML=name
- }
- $(document).on("pagecreate","#pageone",function(){
- $("li").on("swipe", function () {
- $(this).hide();
- });
- $(document).on("scrollstart", function () {
- // alert("you started scroling!!");
- });
- });
- function checkLogin()
- {
- var data = {
- user: document.getElementById("naam").value,
- pass: document.getElementById("mypass").value
- };
- $.getJSON("http://college9909.site90.net/desc.php?jsonp=?", data, function (data) {
- var status = JSON.stringify(data['status']);
- alert(status);
- }
- );
- }
- </script>
- </head>
- <body>
- <div data-role="page" id="pageone">
- <div data-role="header">
- <h1>Welcome To My Homepage</h1>
- </div>
- <div data-role="main" class="ui-content">
- <p>Welcome!</p>
- <a href="#pagetwo" data-transition="slide"> Navigate to page two</a>
- <input type="text" name="name" placeholder="Your Name" id="naam">
- <input type="password" name="pass" placeholder="Your password" id="mypass">
- <input type="button" value="Go" id="button" onclick="checkLogin()">
- <input type="range" min="0" max="100" value="20" name="range_name">
- </div>
- <div data-role="footer" data-position="fixed" style="background-color:#ff0000">
- <h1>© Codeblix</h1>
- </div>
- </ol>
- <div data-role="page" id="pagetwo">
- <div data-role="header">
- <h1>Welcome </h1>
- </div>
- <div data-role="main" class="ui-content">
- <p>Welcome <div id="showName"></div></p>
- </div>
- <div data-role="footer" data-position="fixed">
- <h1>Footer Text for page 2</h1>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement