inital commit
This commit is contained in:
31
www/index.lua
Normal file
31
www/index.lua
Normal file
@@ -0,0 +1,31 @@
|
||||
local fes = require("fes")
|
||||
local std = fes.std
|
||||
local u = fes.util
|
||||
|
||||
local screen = function (cnt)
|
||||
return string.format([[
|
||||
%s
|
||||
%s
|
||||
<div class="screen">
|
||||
%s
|
||||
</div>
|
||||
]], fes.app.style.get(), std.center(std.h1("Fes in Fes")), cnt)
|
||||
end
|
||||
|
||||
local act = function (action)
|
||||
return std.a("/?action=" .. action, action)
|
||||
end
|
||||
|
||||
local cnt = u.cc {
|
||||
[[<div class="ui">]],
|
||||
std.h2("Actions:"),
|
||||
std.ul {
|
||||
act("Punch"),
|
||||
act("Kick"),
|
||||
act("Block"),
|
||||
act("Flee"),
|
||||
},
|
||||
[[</div>]],
|
||||
}
|
||||
|
||||
return screen(cnt)
|
||||
Reference in New Issue
Block a user