Advertisement
Guest User

Untitled

a guest
May 17th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. <html>
  2.  
  3. <head>
  4. <title>Arti-Login</title>
  5. <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
  6. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  7. <script src="http://code.jquery.com/jquery-latest.min.js"></script>
  8. <script src="/socket.io/socket.io.js"></script>
  9. <script>
  10. $(document).ready(function() {
  11. var username, email, pass, conpass;
  12. $("#submit").click(function() {
  13. username = $("#username").val();
  14. email = $("#email").val();
  15. pass = $("#password").val();
  16. conpass = $("#passwordconfirm").val();
  17.  
  18. if (pass == conpass) {
  19. $.post("http://localhost:8000/login", {
  20. username: username,
  21. email: email,
  22. pass: pass
  23. }, function(data) {
  24. if (data === 'done') {
  25. window.location.href = "home.html";
  26. }
  27. });
  28. } else {
  29. echo("Stimmt nicht überein")
  30. }
  31.  
  32. //COPY BLOCK start
  33.  
  34. //COPY BLOCK end
  35.  
  36. });
  37. });
  38. </script>
  39. </head>
  40.  
  41. <body>
  42. <input type="text" size="40" placeholder="Type your username" id="username" required=><br />
  43. <input type="text" size="40" placeholder="Type your email" id="email"><br/>
  44. <input type="password" size="40" placeholder="Type your password" id="password"><br />
  45. <input type="password" size="40" placeholder="Confirm your password" id="passwordconfirm"><br />
  46. <input type="button" value="Einloggen" id="submit">
  47. </body>
  48.  
  49. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement