-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
34 lines (32 loc) · 1.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/svg+xml" href="./images/logo.png" />
<title>ChoreTrekker</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1 class="heading">CHORE TREKKER</h1>
<p class="subheading">Your Ultimate Companion for Task Tracking and Management</p>
<div>
<button class="landingButton" id="loginButton">Login</button>
<button class="landingButton" id="RegisterButton">Register</button>
</div>
<footer>
<p>Made with ♥ by Rishi</p>
<p ></p>© copyright</p>
</footer>
<script>
const loginbutton=document.getElementById("loginButton");
const Registerbutton=document.getElementById("RegisterButton")
loginbutton.addEventListener("click", function() {
window.location.href = "login.html"; // Redirect to login.html in the same tab
});
Registerbutton.addEventListener("click", function() {
window.location.href = "Register.html"; // Redirect to register.html in the same tab
});
</script>
</body>
</html>