-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex1.html
28 lines (27 loc) · 956 Bytes
/
index1.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weather App - Login</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<h1>Weather App</h1>
<form id="loginForm">
<input type="email" id="email" placeholder="Email" required>
<input type="password" id="password" placeholder="Password" required>
<button type="submit" onclick="login()">Login</button>
</form>
</div>
<script src="script.js"></script>
<script>
function login() {
// Perform login validation (you can use AJAX to validate credentials)
// For simplicity, let's assume the login is successful
window.location.href = "afterlogin.html"; // Redirect to page2.html
}
</script>
</body>
</html>