Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Arti-Login</title>
- <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
- <script src="http://code.jquery.com/jquery-latest.min.js"></script>
- <script src="/socket.io/socket.io.js"></script>
- <script>
- $(document).ready(function() {
- var username, email, pass, conpass;
- $("#submit").click(function() {
- username = $("#username").val();
- email = $("#email").val();
- pass = $("#password").val();
- conpass = $("#passwordconfirm").val();
- if (pass == conpass) {
- $.post("http://localhost:8000/login", {
- username: username,
- email: email,
- pass: pass
- }, function(data) {
- if (data === 'done') {
- window.location.href = "home.html";
- }
- });
- } else {
- echo("Stimmt nicht überein")
- }
- //COPY BLOCK start
- //COPY BLOCK end
- });
- });
- </script>
- </head>
- <body>
- <input type="text" size="40" placeholder="Type your username" id="username" required=><br />
- <input type="text" size="40" placeholder="Type your email" id="email"><br/>
- <input type="password" size="40" placeholder="Type your password" id="password"><br />
- <input type="password" size="40" placeholder="Confirm your password" id="passwordconfirm"><br />
- <input type="button" value="Einloggen" id="submit">
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement