Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2014
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 6.05 KB | None | 0 0
  1. //Refer this code
  2.  
  3. <!DOCTYPE html>
  4. <html>
  5.     <head>
  6.        <script>
  7.         (function()
  8.         {
  9.             if ("-ms-user-select" in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/)) {
  10.                 var msViewportStyle = document.createElement("style");
  11.                 msViewportStyle.appendChild(
  12.                     document.createTextNode("@-ms-viewport{width:auto!important}")
  13.                 );
  14.                 document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
  15.             }
  16.         })();
  17.         </script>
  18.          
  19.         <title>test</title>
  20.         <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  21.         <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
  22.         <meta name="apple-mobile-web-app-capable" content="yes" />
  23.         <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
  24.         <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  25.    
  26.         <link rel="stylesheet" type="text/css" href="appframework/af.ui.css" />
  27.         <link rel="stylesheet" type="text/css" href="appframework/icons.css" />
  28.         <script type="text/javascript" charset="utf-8" src="appframework/appframework.ui.min.js"></script>
  29.       <script type="text/javascript" charset="utf-8" src="plugins/af.slidemenu.js"></script>
  30.  
  31.    
  32.         <!-- include af.desktopBrowsers.js on desktop browsers only -->
  33.         <script>
  34.             function onDeviceReady()
  35.             {
  36.                 $.ui.launch();    
  37.             }
  38.             document.addEventListener("device.ready", onDeviceReady, false);   
  39.                
  40.            
  41.         $.ui.autoLaunch = false;
  42.         $.ui.useOSThemes = false;
  43.         $.ui.backButtonText = "Back";
  44.    
  45.         $(document).ready(function(){
  46.             $.ui.launch();
  47.            
  48.             // setup signin and signup button events
  49.             $("#login").on("click", function(){
  50.                 signIn();
  51.             });
  52.            
  53.             $("#register").on("click", function(){
  54.                 signUp();
  55.             });
  56.         });
  57.                
  58.         function signIn(){
  59.            
  60.             // sigin code here
  61.            
  62.             $.ui.loadContent("main", null, null, "fade");
  63.         }
  64.                
  65.         function signUp(){
  66.        
  67.             // signup code here
  68.            
  69.             $.ui.loadContent("main", null, null, "fade");
  70.         }  
  71.                
  72.         function startApp(){
  73.             // clears all back button history
  74.             $.ui.clearHistory();  
  75.            
  76.             // your app code here
  77.         }
  78.  
  79.  
  80.          function loadedPanel(what) {
  81.                 //We are going to set the badge as the number of li elements inside the target
  82.                 $.ui.updateBadge("#aflink", $("#af").find("li").length);
  83.             }
  84.  
  85.         function unloadedPanel(what) {
  86.             console.log("unloaded " + what.id);
  87.         }
  88.  
  89.         if (!((window.DocumentTouch && document instanceof DocumentTouch) || 'ontouchstart' in window)) {
  90.            var script = document.createElement("script");
  91.             script.src = "plugins/af.desktopBrowsers.js";
  92.             var tag = $("head").append(script);
  93.         }
  94.         </script>
  95. </head>
  96. <body>
  97. <div id="afui">
  98.    
  99.     <!--Left Side Menu Navigation bar -->
  100.     <nav>
  101.         <ul class="list">
  102.             <li><a href="#" class="icon home">Home</a></li>
  103.             <li><a href="#" class="icon heart">Favorites</a></li>
  104.             <li><a href="#" class="icon chat">Messages</a></li>
  105.             <li><a href="#" class="icon user">Profile</a></li>
  106.         </ul>
  107.     </nav>
  108.    
  109.     <div id="content" style="">  
  110.         <!-- Welcome View -->
  111.         <div class="panel" title="Welcome" id="page1" data-header="none" data-footer="none" selected="true">
  112.             <div style="text-align:center">
  113.             <br>
  114.             <br>
  115.             <img src='images/logo.png'/>
  116.             <br>
  117.            
  118.             <br>
  119.             </div>    
  120.             <ul class="list inset">
  121.                 <li><a href="#signup" class="icon pencil" style="text-align:center">Register</a></li>
  122.             </ul>
  123.         </div>
  124.        
  125.         <!-- Register View -->
  126.         <div class="panel" title="Register" id="signup" data-footer="none">
  127.             <div style="text-align:center">
  128.             <br>
  129.             <br>
  130.             </div>
  131.             <input name="name" type="text" placeholder="Name" />
  132.             <input name="email" type="text" placeholder="Email" />
  133.             <input name="username" type="text" placeholder="username" />
  134.             <input name="password" type="password" placeholder="password" />
  135.             <input name="password2" type="password" placeholder="confirm password" />
  136.             <input name="name" type="text" placeholder="Name 1" />
  137.             <input name="email" type="text" placeholder="Email 1" />
  138.             <input name="username" type="text" placeholder="username 1" />
  139.             <input name="password" type="password" placeholder="password 1" />
  140.             <input name="password2" type="password" placeholder="confirm password 1" />
  141.             <input name="name" type="text" placeholder="Name 2" />
  142.             <input name="email" type="text" placeholder="Email 2" />
  143.             <input name="username" type="text" placeholder="username 2" />
  144.             <input name="password" type="password" placeholder="password 2" />
  145.             <input name="password2" type="password" placeholder="confirm password 2" />
  146.             <a class="button block customred" href="#" id="register">Register</a>
  147.         </div>
  148.        
  149.     </div>
  150.    
  151.     <!--Footer with Tabs or Navigation bar -->
  152.     <div id="navbar">
  153.         <a href="#" id='tab1' class="icon home" data-transition="none">Home</a>
  154.         <a href="#" id='tab2' class="icon heart" data-transition="none">Favorites</a>
  155.         <a href="#" id='tab3' class="icon chat" data-transition="none">Messages</a>
  156.         <a href="#" id='tab4' class="icon user" data-transition="none">Profile</a>
  157.         <a href="#" id='tab5' class="icon user" data-transition="none">Login</a>
  158.     </div>
  159.  
  160. </div>
  161. </body>
  162. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement