Advertisement
Mechoboy

Untitled

Jul 4th, 2016
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Book Library</title>
  6. <script src="https://code.jquery.com/jquery-3.0.0.min.js"></script>
  7. <script src="books-library.js"></script>
  8. <link rel="stylesheet" type="text/css" href="site.css"/>
  9.  
  10. </head>
  11. <body>
  12. <header id="menu">
  13. <a href="#" id="linkHome"> Home</a>
  14. <a href="#" id="linkLogin">Login</a>
  15. <a href="#" id="linkRegister">Register</a>
  16. <a href="#" id="linkListBooks">List Books</a>
  17. <a href="#" id="linkCreateBook">Create Book</a>
  18. <a href="#" id="linkLogout">Logout</a>
  19. </header>
  20. <main>
  21. <section id="loadingBox">Loading...</section>
  22. <section id="infoBox" onclick='$(this).fadeOut()'>Info</section>
  23. <section id="errorBox" onclick='$(this).fadeOut()'>Error</section>
  24. <section id="viewHome">
  25. <h1>Welcome</h1>
  26. Welcome to our book library
  27. </section>
  28. <section id="viewLogin">
  29. <h1>Please login</h1>
  30. <form id="formLogin">
  31. <div>Username:</div>
  32. <div><input type="text" id="loginUser" required/></div>
  33. <div>Password:</div>
  34. <div><input type="password" id="loginPass" required/></div>
  35. <div><input type="submit" value="Login"/></div>
  36. </form>
  37. </section>
  38. <section id="viewRegister">
  39. <h1>Please register here</h1>
  40. <form id="formRegister">
  41. <div>Username:</div>
  42. <div><input type="text" id="registerUser" required="true"/></div>
  43. <div>Password:</div>
  44. <div><input type="password" id="registerPass" required="true"/></div>
  45. <div><input type="submit" value="Register"/></div>
  46. </form>
  47. </section>
  48. <section id="viewBooks">
  49. <h1>Books</h1>
  50. <div id="books"/>
  51. </section>
  52. <section id="viewCreateBook">
  53. <h1>Create new book</h1>
  54. <form id="formCreateBook">
  55. <div>Title:</div>
  56. <div><input type="text" id="bookTitle" required/></div>
  57. <div>Author:</div>
  58. <div><input type="text" id="bookAuthor" required/></div>
  59. <div>Description:</div>
  60. <div><textarea id="bookDesctiption" rows="10" required></textarea></div>
  61. <div><input type="submit" value="Create"/></div>
  62. </form>
  63.  
  64. </section>
  65. </main>
  66. <footer>Books Library - Sample Project</footer>
  67. </body>
  68. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement