Mercurial Hosting > lang
view src/account.html.luan @ 23:0c17c233c45a
start courses
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 30 Jul 2025 23:29:33 -0600 |
parents | 7b35fb1e6603 |
children | 87fe70201aa8 |
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="javascript:logout()">Logout</a></p> </div> </body> </html> <% end