-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
97 lines (93 loc) · 2.87 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Form</title>
<style>
body {
display: flex;
justify-content: end;
align-items: start;
flex-direction: column;
height: 100vh;
background-color: #f4f4f4;
font-family: Arial, sans-serif;
}
.login-container {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
text-align: center;
margin: auto;
}
input {
width: 100%;
padding: 10px 0 10px 0;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 5px;
}
button {
width: 100%;
padding: 10px 0 10px 0;
background: yellow;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: 0.3s;
}
button:disabled {
background: gray;
cursor: not-allowed;
}
button:hover {
background: orange;
}
.label {
text-align: left;
width: 100%;
display: block;
font-weight: bold;
color: pink;
}
label {
color: black !important;
}
body > a {
color: white;
background: black;
margin-bottom: 10px;
}
</style>
</head>
<body>
<a href="https://origo.hu" target="_blank">(0,0)</a>
<div class="login-container" ondrag="handleDrag()">
<h2 style="max-width: 300px;">Gyula hiper szuper bejelentkező oldala</h2>
<label class="username-label label" for="username"><i>felhasználó név</i></label>
<input type="text" placeholder="Username" id="username">
<label class="password-label label" for="password">Jelszóóó</label>
<input type="password" placeholder="Password" id="password">
<button id="loginBtn" onclick="handleLogin()">Login</button>
</div>
<script>
function handleLogin() {
const loginBtn = document.getElementById("loginBtn");
const usernameField = document.getElementById("username");
const passwdField = document.getElementById("password");
loginBtn.disabled = true;
console.log("Username: ", usernameField.value, "Password: ", passwdField.value);
setTimeout(() => {
console.log("Login successful");
loginBtn.disabled = false;
}, 2000);
}
function handleDrag(x, y) {
console.log("draggong", x, y)
}
</script>
</body>
</html>