Mercurial Hosting > lang
view src/account.html.luan @ 57:7c31604ce3fc
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 17 Aug 2025 18:40:33 +0900 |
parents | 87fe70201aa8 |
children |
line wrap: on
line source
local Luan = require "luan:Luan.luan" local error = Luan.error local Io = require "luan:Io.luan" local Http = require "luan:http/Http.luan" local Shared = require "site:/lib/Shared.luan" local head = Shared.head or error() local header = Shared.header or error() return function() Io.stdout = Http.response.text_writer() %> <!doctype html> <html lang="en"> <head> <% head() %> <script> 'use strict'; function logout() { document.cookie = 'user=; Max-Age=0; path=/;'; document.cookie = 'password=; Max-Age=0; path=/;'; location = '/'; } </script> </head> <body> <% header() %> <div content> <h1>Your Account</h1> <p><a href="chats.html">Your chats</a></p> <p><a href="your_courses.html">Your courses</a></p> <p><a href="javascript:logout()">Logout</a></p> </div> </body> </html> <% end