Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...) http://blog.slucas.fr/en/oss/calibre-opds-php-server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
2.8KB

  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  5. <title>COPS</title>
  6. <script type="text/javascript" src="resources/jQuery/jquery-1.10.2.min.js"></script>
  7. <link rel='stylesheet' type='text/css' href='http://fonts.googleapis.com/css?family=Open+Sans:400,300italic,800,300,400italic,600,600italic,700,700italic,800italic' />
  8. <style media="screen" type="text/css">
  9. body{
  10. background:white;
  11. font-family:'Open Sans';
  12. }
  13. #block{
  14. width:230px;
  15. height:113px;
  16. margin:auto;
  17. background:#2c3e50;
  18. margin-top:100px;
  19. border-radius:2px;
  20. }
  21. #block:before{
  22. content:'';
  23. display:block;
  24. width:230px;
  25. height:3px;
  26. }
  27. #block:after{
  28. content:'';
  29. display:block;
  30. }
  31. #block input[type=text],#block input[type=password] {
  32. font-family:'Open Sans';
  33. width:156px;
  34. height:32px;
  35. margin:15px 15px;
  36. border:0;
  37. border-radius:2px;
  38. display:block;
  39. font-size:18px;
  40. }
  41. #block input[type=password]{
  42. width:156px;
  43. height:32px;
  44. margin:-5px 15px;
  45. }
  46. #submit{
  47. position:absolute;
  48. width:33px;
  49. height:34px;
  50. background:#9b59b6;
  51. margin:15px;
  52. color:#ffffff;
  53. border:0;
  54. margin:-29px 180px;
  55. font-size:22px;
  56. padding:0;
  57. }
  58. </style>
  59. <script>
  60. $(document).ready(function()
  61. {
  62. $('#loginForm').submit(function()
  63. {
  64. var username = $('#user').val();
  65. var password = $('#password').val();
  66. $.ajax(
  67. {
  68. 'password' : password,
  69. 'username' : username,
  70. 'url' : 'index.php',
  71. 'type' : 'GET',
  72. 'success' : function(){ window.location = 'index.php'; },
  73. 'error' : function(){ alert('Bad Login Details');},
  74. }
  75. );
  76. return false;
  77. });
  78. });
  79. </script>
  80. </head>
  81. <body>
  82. <form id="loginForm">
  83. <div id="block">
  84. <input id="user" type="text" placeholder="Username" required="required" />
  85. <input id="password" type="password" placeholder="Password" required="required" />
  86. <input id="submit" type="submit" value="&#x2192;" />
  87. </div>
  88. </form>
  89. </body>
  90. </html>