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

  1. local etlua = require"etlua"
  2. local form = etlua.compile[[
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>Yokokas Quest Character Profile Creator</title>
  7. </head>
  8. <body>
  9. <h1>THIS IS WORK IN PROGRESS, THIS IS NON FUNCTIONAL, PLZ DONT USE YET</h1>
  10. <%= data %>
  11. <form action="/cgi/yqtemplate" method="post">
  12. <label for="name">Character name:</label>
  13. <input type="text" id="name" name="name" /><br>
  14. <label for="class1">Class 1:</label>
  15. <select name=class1 id=class1>
  16. <option value=1>Beast</option>
  17. <option value=2>Swordsman</option>
  18. <option value=3>Spirit Bird</option>
  19. <option value=4>Twin Blades</option>
  20. <option value=5>Healer</option>
  21. <option value=6>Summoner</option>
  22. <option value=7>Tamer</option>
  23. <option value=8>Pugilist</option>
  24. <option value=9>Mounted Fighter</option>
  25. <option value=10>Fruit Animal</option>
  26. <option value=11>Spellcaster</option>
  27. </select>
  28. <input type="submit" value="Generate">
  29. </form>
  30. <hr />
  31. Based on the character profiles in the webcomic <a
  32. href=https://yokokasquest.com>Yokokas Quest</a> by Chris Hyacinth R. Assets
  33. shared by the author on the <a
  34. href=https://forums.cisumchronicles.com/>webcomics forums</a>.
  35. </body>
  36. </html>
  37. ]]
  38. return {
  39. desc = "Creates Yokoka’s quest-style personal status page",
  40. run = function(fcgi)
  41. fcgi.print("Content-Type: text/html; charset=utf-8\r\n\r\n")
  42. local data = fcgi.post()
  43. fcgi.print(form({data = data}))
  44. end
  45. }