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.

99 lines
2.8KB

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