Файловый менеджер - Редактировать - /home/hrpsychology/public_html/soulfood.gr/psychology.soulfood.gr/9f89c710/validation.tar
Назад
app.js 0000644 00000002542 15224203162 0005662 0 ustar 00 function validate() { let username = document.getElementById('username').value; let password = document.getElementById('password').value; console.log("Username:", username); console.log("Password:", password); if (username === 'AB' && password === 'ABCARE4U') { window.location.href = "https://www.soulfood.gr/login/ab-soulfood"; } else if (username === 'kotsovolos' && password === 'kotsovolos123!@#'){ window.location.href = "https://www.soulfood.gr/login/kotsovolos-soulfood"; } else if (username === 'ERGO' && password === 'ERGOCARE4U'){ window.location.href = "https://www.soulfood.gr/login/ergo-soulfood"; } else if (username === 'LATSCO' && password === 'LATSCOWELLNESS4U'){ window.location.href = "https://www.soulfood.gr/login/latsco-soulfood"; } else if (username === 'softonegroup' && password === 'SUP1234!'){ window.location.href = "https://www.soulfood.gr/login/softone-soulfood"; } else if (username === 'PRAKTIKER' && password === 'BEWELL!'){ window.location.href = "https://www.soulfood.gr/login/praktiker-soulfood"; } else if (username === 'krikri' && password === 'mazistinkrikri'){ window.location.href = "https://www.soulfood.gr/login/krikri-soulfood"; } else { alert('Τα στοιχεία σύνδεσης που εισάγατε δεν είναι σωστά. Παρακαλούμε προσπαθήστε ξανά.'); } } credentials.html 0000644 00000002741 15224203162 0007730 0 ustar 00 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>SoulFood Login</title> <link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" integrity="sha512-Fo3rlrZj/k7ujTnHg4CGR2D7kSs0v4LLanw2qksYuRlEzO+tcaEPQogQ0KaoGN26/zrn20ImR1DfuLWnOo7aBA==" crossorigin="anonymous" referrerpolicy="no-referrer" /> </head> <body> <div class="wrapper"> <div class="logo"> <img src="img/logo-soulfood.png"> </div> <div" class="box"> <h1>ΣΥΝΔΕΣΗ</h1> <!-- User Input --> <div class="username"> <input type="text" placeholder="Όνομα Χρήστη" id="username"> <i class="far fa-envelope"></i> </div> <!-- Password Input --> <div class="password"> <input type="password" placeholder="Κωδικός" id="password"> <i class="fas fa-lock-open"></i> </div> <!-- Button --> <button id="btn" type="submit" onclick="validate()">Σύνδεση</button> </div> </div> <script src="app.js"></script> <script> let input = document.getElementById("password"); input.addEventListener("keypress", function(event) { if (event.key === "Enter") { event.preventDefault(); document.getElementById("btn").click(); } }); </script> </body> </html>