Mercurial > bugzilla-dashboard
view main.html @ 44:d3ed74176b4d
added module preloading and loading screen
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Sat, 24 Apr 2010 19:04:38 -0700 |
parents | 0a1c7fec0af2 |
children | 72d01c7d5258 |
line wrap: on
line source
<html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="all" href="css/main.css" /> <title>Bugzilla Dashboard</title> </head> <body> <div id="header"> <h1 class="title">Bugzilla Dashboard</h1> <ul class="menu"> <li title="login" class="requires-no-login">Log In</span> <li title="login" class="requires-login">Change User</span> <li title="find-user" class="requires-auth-login">Find A User</span> <li title="file-bug">File A Bug</span> </ul> </div> <div id="loading-screen" class="loading"> </div> <div id="reports"> </div> <div id="login" class="dialog"> <div class="content"> <form id="login-form"> <p>Enter your Bugzilla login information below.</p> <p>Your browser sends these credentials directly to Bugzilla over a secure connection—no third parties can access them, including the server this page is hosted on.</p> <table> <tr> <td>Your Username</td> <td><input type="text" class="username" id="login-username"/></td> </tr> <tr> <td>Your Password</td> <td><input type="password" class"password" id="login-password"/></td> </tr> </table> <br/> <input type="submit" id="login-submit" value="View Dashboard"/> </form> </div> </div> </body> <!-- Base Scripts --> <script src="js/jquery.js"></script> <script src="js/require.js"></script> <script> $(window).ready(function() { var moduleScripts = [ "js/modules/app.js" ]; var customModuleExports = { jQuery: jQuery }; Require.preload(document, moduleScripts, function whenLoaded() { $("#loading-screen").hide(); var require = Require.build(Require.modules, customModuleExports); require("app/ui").init(document); }); }); </script> </html>