-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.html
53 lines (49 loc) · 1.32 KB
/
client.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Task Manager</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
padding: 20px;
}
h1 {
color: #333;
}
form {
margin-bottom: 20px;
}
input[type="text"] {
padding: 10px;
width: 300px;
margin-right: 10px;
}
input[type="submit"] {
padding: 10px 20px;
background-color: #28a745;
color: #fff;
border: none;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #218838;
}
</style>
</head>
<body>
<h1>Task Manager</h1>
<!-- Task submission form -->
<form action="/cgi-bin/tasks.cgi" method="get">
<input type="text" name="description" placeholder="New Task">
<input type="hidden" name="action" value="add">
<input type="submit" value="Add Task">
</form>
<!-- Task list will be populated here from the server -->
<div id="task-list">
<!-- C++ backend will return the task list as an unordered list here -->
</div>
</body>
</html>