| 123456789101112131415161718192021222324252627282930313233 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="refresh" content="10">
- <title>Today's to-do List</title>
- <style>
- {{ css }}
- </style>
- <script>
- function refreshPage() {
- window.location.reload();
- }
- setTimeout(refreshPage, 30 * 1000);
- </script>
- </head>
- <body>
- {% if items %}
- <h4>Today's to-do List</h4>
- <ul>
- {% for item in items %}
- <li style="text-decoration: {{ 'line-through' if item.crossed == 'yes' else 'none' }};">
- {{ item.name }}
- </li>
- {% endfor %}
- </ul>
- {% else %}
- <h4>Nothing on the to-do list yet</h4>
- {% endif %}
- </body>
- </html>
|