Guest User

sdfds

a guest
Apr 27th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.44 KB | None | 0 0
  1. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  2. <!DOCTYPE html>
  3.  
  4. <head>
  5. <title>FunWeb </title>
  6. <meta charset="utf-8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <link href="https://fonts.googleapis.com/css?family=Oleo+Script:400,700" rel="stylesheet">
  9. <link href="https://fonts.googleapis.com/css?family=Teko:400,700" rel="stylesheet">
  10. <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
  11. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  12. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  13. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
  14. <script src="https://cdnjs.cloudflare.com/ajax/libs/lettering.js/0.7.0/jquery.lettering.min.js"> </script>
  15. <link href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css" rel="stylesheet">
  16. <script src="https://cdnjs.cloudflare.com/ajax/libs/textillate/0.4.0/jquery.textillate.js"> </script>
  17.  
  18. <link href="test.css" rel="stylesheet">
  19. <style>
  20. html{
  21. position: relative;
  22. min-height: 100%;
  23. }
  24.  
  25. body{
  26. padding-top: 60px;
  27. width: 100%;
  28. height: 100%;
  29. background: #3a6186;
  30. background: -webkit-linear-gradient(to left, #3a6186 , #89253e); /* Chrome 10-25, Safari 5.1-6 */
  31. background: linear-gradient(to left, #3a6186 , #89253e); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  32.  
  33. }
  34.  
  35. #login{
  36. font-family: 'Teko', sans-serif;
  37. color : #fff;
  38. }
  39. .content-header{
  40. font-family: 'Oleo Script', cursive;
  41. color:#fcc500;
  42. font-size: 45px;
  43. }
  44.  
  45.  
  46. body{
  47. font-family: 'Teko', sans-serif;
  48. }
  49.  
  50. .items{
  51. padding-top: 100px;
  52. }
  53.  
  54. .section-content{
  55. text-align: center;
  56. }
  57.  
  58. label{
  59. font-size: 1.3em;
  60. line-height: 1em;
  61. font-weight: normal;
  62. }
  63.  
  64.  
  65. textarea.form-control {
  66. height: 135px;
  67. }
  68.  
  69. #footer{
  70. position:relative;
  71. bottom:0;
  72. top: 80px;
  73. font-family: 'Teko', sans-serif;
  74. }
  75. </style>
  76.  
  77. </head>
  78.  
  79. <body>
  80. <div class ="container-fluid" id="login">
  81. <div class="text-center">
  82. <h1> <span class="content-header wow fadeIn " data-wow-delay="0.2s" data-wow-duration="2s"> &lt; Fun Web &#47; &gt;</span></h1>
  83. <h3 class="bounce">A new and exciting game!</h3>
  84. </div>
  85.  
  86.  
  87.  
  88. <form class="items" action="/validateRegistration" method="post">
  89.  
  90. <div class="col-md-3"> </div>
  91. <div class="col-md-6">
  92. <div class="form-group">
  93. <label for="email"> E-mail </label>
  94. <input type="text" class="form-control" id="email" name="email" placeholder=" Enter your e-mail">
  95. </div>
  96. <div class="form-group">
  97. <label for="username">Username</label>
  98. <input type="text" class="form-control" id="username" name="username" placeholder=" Enter Username">
  99. </div>
  100. <div class="form-group">
  101. <label for="password">Password</label>
  102. <input type="password" class="form-control" id="password" name="password" placeholder=" Enter password">
  103. </div>
  104.  
  105. <div class="checkbox">
  106. <label><input type="checkbox"> Remember me</label>
  107. </div>
  108.  
  109. <button type="submit" class="btn btn-success">Register</button>
  110.  
  111.  
  112. </div>
  113. </form>
  114. </div>
  115.  
  116. <footer id = "footer">
  117. <div class="container">
  118. <p class="text-center">Contact | FunWeb &#9400; 2017 <p>
  119. </div>
  120. </footer>
  121.  
  122.  
  123. <script>
  124. $(document).ready(function(){
  125. $('.content-header').textillate({
  126. in: {
  127. shuffle: false,
  128. sync: true
  129. },
  130. out: {
  131. effect: 'FadeOutRightBig',
  132. shuffle: false,
  133. sync: true
  134. }
  135. });
  136.  
  137. })
  138. </script>
  139.  
  140. <script>
  141. $(document).ready(function(){
  142. $('.bounce').textillate({
  143. loop: true,
  144. in: {
  145. effect: 'tada',
  146. delayScale: 1,
  147. delay: 150,
  148. shuffle: true
  149. },
  150. out: {
  151. effect: 'flipOutY',
  152. reverse: true
  153. }
  154. });
  155.  
  156. })
  157. </script>
  158.  
  159. <script type="text/javascript">
  160. $(document).ready(function() {
  161. $("#username").change(function () {
  162. $("#username").tooltip("hide");
  163. $.post("/checkUsernameAvailable", {
  164. username: $("#username").val()
  165. }, function (data) {
  166.  
  167. data = JSON.parse(data);
  168.  
  169. if (data.status === 'ok') {
  170. $("#username").tooltip("hide");
  171. } else if (data.status === "taken") {
  172. $("#username").attr("title",
  173. "The username is already taken, what about: " + data.suggestion);
  174. $("#username").tooltip("fixTitleda");
  175. $("#username").tooltip("show");
  176. $("#username").trigger("mouseover");
  177. }
  178. });
  179. });
  180.  
  181. $("#password").change(function () {
  182. $("#password").tooltip("hide");
  183.  
  184. $.post("/checkPasswordStrength", {
  185. password: $("#password").val()
  186. }, function (data) {
  187. data = JSON.parse(data);
  188.  
  189. var strengthString = null;
  190.  
  191. if (data.strength === 0) {
  192. strengthString = "weak password";
  193. } else if (data.strength === 1) {
  194. strengthString = "medium password";
  195. } else {
  196. strengthString = "strong password";
  197. }
  198.  
  199. $("#password").attr("title", strengthString);
  200. $("#password").tooltip("fixTitle");
  201. $("#password").tooltip("show");
  202. $("#password").trigger("mouseover");
  203.  
  204. })
  205. });
  206. });
  207. </script>
  208.  
  209. </body>
  210. </html>
Add Comment
Please, Sign In to add comment