Тестовая страница входа
This commit is contained in:
parent
f6e3a22544
commit
998c88377b
39
test-login.html
Normal file
39
test-login.html
Normal file
@ -0,0 +1,39 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>ПАБ — Тест входа</title>
|
||||
<style>
|
||||
body{font:16px/1.5 sans-serif;display:flex;align-items:center;justify-content:center;min-height:100vh;background:#0F1218}
|
||||
.card{background:#fff;padding:40px;border-radius:12px;width:360px;box-shadow:0 8px 40px rgba(0,0,0,0.3)}
|
||||
h1{font-size:20px;text-align:center;margin-bottom:24px}
|
||||
input{width:100%;padding:10px;margin-bottom:12px;border:2px solid #ddd;border-radius:6px;font-size:14px;box-sizing:border-box}
|
||||
button{width:100%;padding:12px;background:#00B4D8;color:#fff;border:none;border-radius:6px;font-size:15px;font-weight:700;cursor:pointer}
|
||||
button:hover{background:#48CAE4}
|
||||
.err{color:#E63946;font-size:13px;text-align:center;display:none;margin-top:8px}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="card">
|
||||
<h1>🛡️ Вход в ПАБ</h1>
|
||||
<input type="text" id="user" placeholder="Логин">
|
||||
<input type="password" id="pass" placeholder="Пароль">
|
||||
<button id="btn">Войти</button>
|
||||
<div id="err" class="err">Неверный логин или пароль</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
document.getElementById('btn').onclick = function(){
|
||||
var u = document.getElementById('user').value.trim().toLowerCase();
|
||||
var p = document.getElementById('pass').value.trim();
|
||||
if(u==='admin' && p==='admin'){
|
||||
alert('Вход успешен! Кнопка работает.');
|
||||
window.location.href = '/';
|
||||
} else {
|
||||
document.getElementById('err').style.display = 'block';
|
||||
}
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user