nvpie exozyme
ce8f71f02a
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
48 lines
1,003 B
Text
48 lines
1,003 B
Text
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
<title> 12 Factor App! </title>
|
|
<style>
|
|
* {
|
|
background: chocolate;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: black;
|
|
}
|
|
|
|
.app {
|
|
text-align: center;
|
|
margin: 0 auto;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="app">
|
|
<h1> [Hosting Todos Node App] </h1>
|
|
<ul>
|
|
<% todolist.forEach(function(todo, index) { %>
|
|
<li>
|
|
<a href="/todo/delete/<%= index %>">✘</a>
|
|
<a href="/todo/<%= index %>">✎</a>
|
|
<%- todo %>
|
|
</li>
|
|
<% }); %>
|
|
</ul>
|
|
|
|
<form action="/todo/add/" method="post">
|
|
<p>
|
|
<label for="newtodo">Todo</label>
|
|
<input type="text" name="newtodo" id="newtodo" autofocus />
|
|
<input type="submit" value="Add" />
|
|
</p>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|