-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaskhunt.html
79 lines (73 loc) · 2.96 KB
/
taskhunt.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Task Hunt</title>
<link rel="stylesheet" href="taskhunt.css">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
</head>
<body>
<header>
<ul class="nav">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
</ul>
<video src="hunt.mp4" autoplay muted loop></video>
<div class="content">
<h1>Task Hunt</h1>
<h3>Now! Be the best hunter</h3>
</div>
</header>
<!-- Login Page -->
<div id="loginPage" class="page" style="display: none;">
<h2>Login</h2>
<form id="loginForm">
<input type="text" id="username" placeholder="Username" required>
<input type="password" id="password" placeholder="Password" required>
<button type="submit" class="Login-btn" onclick="fun()">Login</button>
</form>
</div>
<div class="container">
<!-- Signup Page -->
<div id="signupPage" class="page">
<h2>Sign Up</h2>
<form id="signupForm">
<input type="text" id="signupUsername" placeholder="Username" required>
<input type="password" id="signupPassword" placeholder="Password" required>
<button type="submit">Sign Up</button>
</form>
<p>Already have an account? <a href="#" id="showLogin">Login</a></p>
</div>
<script>
function fun(){
var email=document.getElementById("username").value
var pass=document.getElementById('password')
if (email == '[email protected]' && pass=='123')
alert("success full!")
window.location.assign("hunt99.html")
}
else
{
alert("inalid input")
}
</script>
<!-- Task Management Page -->
<div id="taskManagementPage" class="page" style="display: none;">
<h2>Create Task</h2>
<form id="taskForm">
<input type="text" id="taskName" placeholder="Task Name" required>
<input type="text" id="assignee" placeholder="Assignee" required>
<input type="date" id="dueDate" required>
<button type="submit">Create Task</button>
</form>
<div id="taskList">
<!-- Task list will be displayed here -->
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>