Advertisement
Punisher1542

Login Page

Feb 6th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.82 KB | None | 0 0
  1.  
  2.  
  3.  
  4. <!DOCTYPE html>
  5. <html>
  6. <body>
  7. <title>Login Page</title>
  8. <style>
  9. /* Full-width input fields */
  10. input[type=text], input[type=password] {
  11. width: 100%;
  12. padding: 12px 20px;
  13. margin: 8px 0;
  14. display: inline-block;
  15. border: 1px solid #ccc;
  16. box-sizing: border-box;
  17. }
  18.  
  19. /* Set a style for all buttons */
  20. button {
  21. background-color: #4CAF50;
  22. color: white;
  23. padding: 14px 20px;
  24. margin: 8px 0;
  25. border: none;
  26. cursor: pointer;
  27. width: 100%;
  28. }
  29.  
  30. button:hover {
  31. opacity: 0.8;
  32. }
  33.  
  34. /* Extra styles for the cancel button */
  35. .cancelbtn {
  36. width: auto;
  37. padding: 10px 18px;
  38. background-color: #f44336;
  39. }
  40.  
  41. /* Center the image and position the close button */
  42. .imgcontainer {
  43. text-align: center;
  44. margin: 24px 0 12px 0;
  45. position: relative;
  46. }
  47.  
  48. img.avatar {
  49. width: 40%;
  50. border-radius: 50%;
  51. }
  52.  
  53. .container {
  54. padding: 16px;
  55. }
  56.  
  57. span.psw {
  58. float: right;
  59. padding-top: 16px;
  60. }
  61.  
  62. /* The Modal (background) */
  63. .modal {
  64. display: none; /* Hidden by default */
  65. position: fixed; /* Stay in place */
  66. z-index: 1; /* Sit on top */
  67. left: 0;
  68. top: 0;
  69. width: 100%; /* Full width */
  70. height: 100%; /* Full height */
  71. overflow: auto; /* Enable scroll if needed */
  72. background-color: rgb(0,0,0); /* Fallback color */
  73. background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  74. padding-top: 60px;
  75. }
  76.  
  77. /* Modal Content/Box */
  78. .modal-content {
  79. background-color: #fefefe;
  80. margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
  81. border: 1px solid #888;
  82. width: 80%; /* Could be more or less, depending on screen size */
  83. }
  84.  
  85. /* The Close Button (x) */
  86. .close {
  87. position: absolute;
  88. right: 25px;
  89. top: 0;
  90. color: #000;
  91. font-size: 35px;
  92. font-weight: bold;
  93. }
  94.  
  95. .close:hover,
  96. .close:focus {
  97. color: red;
  98. cursor: pointer;
  99. }
  100.  
  101. /* Add Zoom Animation */
  102. .animate {
  103. -webkit-animation: animatezoom 0.6s;
  104. animation: animatezoom 0.6s
  105. }
  106.  
  107. @-webkit-keyframes animatezoom {
  108. from {-webkit-transform: scale(0)}
  109. to {-webkit-transform: scale(1)}
  110. }
  111.  
  112. @keyframes animatezoom {
  113. from {transform: scale(0)}
  114. to {transform: scale(1)}
  115. }
  116.  
  117. /* Change styles for span and cancel button on extra small screens */
  118. @media screen and (max-width: 300px) {
  119. span.psw {
  120. display: block;
  121. float: none;
  122. }
  123. .cancelbtn {
  124. width: 100%;
  125. }
  126. }
  127. </style>
  128. <body>
  129.  
  130. <h2>Login Form</h2>
  131.  
  132. <p style="font-size:110%;">Click the button below that says; "Login," to proceed. If you've any trouble (maybe some type of bug or something), please click the email below to notify me about the problem.</p>
  133.  
  134. <a href="thomasor2020@paragouldschools.net?cc=someoneelse@example.com&bcc=andsomeoneelse@example.com&subject=Problem%20with%20login%20page" target="_top">Send mail!</a><br>
  135.  
  136. <button onclick="document.getElementById('id01').style.display='block'" style="width:auto;">Login</button><br><br>
  137.  
  138. <div id="id01" class="modal">
  139.  
  140. <form class="modal-content animate" action="file:///home/chronos/user/Downloads/Thanks%20for%20logining%20in.html">
  141. <div class="imgcontainer">
  142. <span onclick="document.getElementById('id01').style.display='none'" class="close" title="Close Modal">&times;</span>
  143. <img src="file:///home/chronos/user/Downloads/My websites/Photos/faggot.jpg" alt="Avatar" class="avatar">
  144. </div>
  145.  
  146. <div class="container">
  147. <label><b>Username</b></label>
  148. <input type="text" placeholder="Enter Username" name="uname" required>
  149.  
  150. <label><b>Password</b></label>
  151. <input type="password" placeholder="Enter Password" name="psw" required>
  152.  
  153. <button type="submit">Login</button>
  154. <input type="checkbox" checked="checked"> Remember me
  155. </div>
  156.  
  157. <div class="container" style="background-color:#f1f1f1">
  158. <button type="button" onclick="document.getElementById('id01').style.display='none'" class="cancelbtn">Cancel</button>
  159. <span class="psw">Forgot <a href="#">password?</a></span>
  160. </div>
  161. </form>
  162. </div>
  163. <script type="text/javascript">
  164. function validate()
  165. {
  166. if( document.getElementById("text1").value == "Rick"
  167. && document.getElementById("text2").value == "Morty" )
  168. {
  169. alert( "Welcome User" );
  170. location.href="file:///home/chronos/user/Downloads/Thanks%20for%20logining%20in.html";
  171. }
  172. else
  173. {
  174. alert( "Either the username or password is incorrect. Please try again." );
  175. location.href="file:///home/chronos/user/Downloads/MY%20Login%20Page.html";
  176. }
  177. }
  178. <script>
  179. // Get the modal
  180. var modal = document.getElementById('id01');
  181.  
  182. // When the user clicks anywhere outside of the modal, close it
  183. window.onclick = function(event) {
  184. if (event.target == modal) {
  185. modal.style.display = "none";
  186. }
  187. }
  188. </script>
  189.  
  190. </body>
  191. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement