Guest User

Untitled

a guest
Feb 15th, 2017
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>SweetAlert</title>
  5.  
  6. <link rel="stylesheet" type="text/css" href="dist/sweetalert.css">
  7. </head>
  8. <body>
  9.  
  10. <form>
  11. <input type="text" id="username" required placeholder="Username" />
  12. <br>
  13. <br>
  14. <input type="text" id="password" required placeholder="Password" />
  15. <br>
  16. <br>
  17. <button onclick="validation();">Login</button>
  18.  
  19. <script src="sweetalert.min.js"></script>
  20. <script type="text/javascript">
  21. function validation()
  22. </form>
  23.  
  24. <script src="sweetalert.min.js"></script>
  25. <script type="text/javascript">
  26. function validation()
  27. {
  28. // swal("Good job!", "You have logged in!", "success");
  29.  
  30. // var username = 'martindenbeste';
  31. // var password = '12345';
  32.  
  33. // var username = document.getElementById('username').value;
  34. // var passWord = document.getElementById('password').value;
  35.  
  36. // if((username == userName) && (password ==passWord)) {
  37. // swal("Good job!", "You have logged in!", "success");
  38. // }
  39. // else {
  40. // sweetalert("Oops...", "Username or Password is incorrect", "error");
  41. // }
  42. }
  43. </script>
  44.  
  45.  
  46. </body>
  47. </html>
Add Comment
Please, Sign In to add comment