- //index.html
- <!doctype html>
- <html lang="de">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script type="text/javascript">
- $(document).ready(function(){
- if($('#yd_send').stop().click(function () {
- var name = $('#yd_name_send').val();
- var pw = $('#yd_pw_send').val();
- if(pw == '' || name == '') {
- } else {
- $.ajax({
- type: 'POST',
- url: 'login.php',
- data: 'luser=' + name + '&pw=' + pw,
- success: function (msg) {
- $("#yd_warn_place").html(msg);
- }
- });
- }
- }));
- });
- </script>
- </head>
- <body>
- <div id="yd_start">
- <div id="yd_switch_case">
- </div>
- </div>
- </div>
- <footer>
- </footer>
- </body>
- </html>
- //start.html
- <div id="yd_login">
- <center>
- <h1 id="yd_line">Leak your Mind</h1>
- <form method="post">
- <input id="yd_name_send" type="name" placeholder="Name" required>
- <input id="yd_pw_send" type="password" placeholder="Passwort" required>
- <input type="submit" disabled="disabled" value="Login" id="yd_send">
- </form>
- <p id="yd_warn_place"></p>
- </center>
- </div>
HAbe alles noch ein bisschen zurecht geschnitten!