blob: f9ab8c8efbd9acfe4b50165bd04a64a1d7a80a2c (
plain)
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
|
<!DOCTYPE html>
<html lang="en">
<head>
<title>​</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<link rel="stylesheet" href="/style.css">
</head>
<body>
<div class="container">
<h1>📝</h1>
<!--- auth section. --->
<div id="auth-section">
<div class="tabs">
<button class="tab-btn active" id="login-tab" onclick="switchTab('login')">Log in_::</button>
<button class="tab-btn" id="register-tab" onclick="switchTab('register')">Register_::</button>
</div>
<form id="login-form" onsubmit="login(event)">
<input type="text" id="login-username" placeholder=":user" required>
<input type="password" id="login-password" placeholder=":pass" required>
<button type="submit">Login</button>
</form>
<form id="register-form" style="display:none" onsubmit="register(event)">
<input type="text" id="reg-username" placeholder=":user" required>
<input type="password" id="reg-password" placeholder=":pass" required>
<button type="submit">Register</button>
</form>
<p id="auth-error" class="error"></p>
</div>
<!--- tasks section. --->
<div id="tasks-section" style="display:none">
<div class="header">
<h2>Your Tasks</h2>
<button onclick="logout()" class="logout-btn">Logout</button>
</div>
<!--- create task. --->
<form id="task-form" onsubmit="createTask(event)">
<input type="text" id="task-title" placeholder="Task title" required>
<input type="text" id="task-desc" placeholder="Description (optional)">
<button type="submit">Add Task</button>
</form>
<!--- task list. --->
<ul id="task-list"></ul>
</div>
<script src="/app.js"></script>
</body>
</html>
|