tesses-webserver-cpp/wwwroot/index.twss

30 lines
730 B
Plaintext
Raw Permalink Normal View History

2024-09-02 03:19:22 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ToDo List</title>
</head>
<body>
<h1>ToDo List</h1>
<form method="POST" action="./cgi-bin/add-todo.twss">
<input type="text" name="text" placeholder="ToDo Text">
<input type="submit" value="Add">
</form>
<ul>
<!--tws
2024-09-24 01:31:12 +00:00
var i = 0;
lock();
2024-09-02 03:19:22 +00:00
each(global todos) {
-->
2024-09-24 01:31:12 +00:00
<li><!--tws print htmlencode(item); --> <a href="./cgi-bin/delete.twss?id=<!--tws print i; -->">x</a></li>
2024-09-02 03:19:22 +00:00
<!--tws
2024-09-24 01:31:12 +00:00
i+=1;
2024-09-02 03:19:22 +00:00
}
2024-09-24 01:31:12 +00:00
unlock();
2024-09-02 03:19:22 +00:00
-->
</ul>
</body>
</html>