You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.5 KiB
46 lines
1.5 KiB
local etlua = require"etlua"
|
|
local form = etlua.compile[[
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Yokoka’s Quest Character Profile Creator</title>
|
|
</head>
|
|
<body>
|
|
<h1>THIS IS WORK IN PROGRESS, THIS IS NON FUNCTIONAL, PLZ DON’T USE YET</h1>
|
|
<%= data %>
|
|
<form action="/cgi/yqtemplate" method="post">
|
|
<label for="name">Character name:</label>
|
|
<input type="text" id="name" name="name" /><br>
|
|
<label for="class1">Class 1:</label>
|
|
<select name=class1 id=class1>
|
|
<option value=1>Beast</option>
|
|
<option value=2>Swordsman</option>
|
|
<option value=3>Spirit Bird</option>
|
|
<option value=4>Twin Blades</option>
|
|
<option value=5>Healer</option>
|
|
<option value=6>Summoner</option>
|
|
<option value=7>Tamer</option>
|
|
<option value=8>Pugilist</option>
|
|
<option value=9>Mounted Fighter</option>
|
|
<option value=10>Fruit Animal</option>
|
|
<option value=11>Spellcaster</option>
|
|
</select>
|
|
<input type="submit" value="Generate">
|
|
</form>
|
|
<hr />
|
|
Based on the character profiles in the webcomic <a
|
|
href=https://yokokasquest.com>Yokoka’s Quest</a> by Chris Hyacinth R. Assets
|
|
shared by the author on the <a
|
|
href=https://forums.cisumchronicles.com/>webcomic’s forums</a>.
|
|
</body>
|
|
</html>
|
|
]]
|
|
|
|
return {
|
|
desc = "Creates Yokoka’s quest-style personal status page",
|
|
run = function(fcgi)
|
|
fcgi.print("Content-Type: text/html; charset=utf-8\r\n\r\n")
|
|
local data = fcgi.post()
|
|
fcgi.print(form({data = data}))
|
|
end
|
|
}
|