FuckingDescription.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title</title>
  6. <style type="text/css">
  7. #code {
  8. position: fixed;
  9. top: 0px;
  10. right: 1ex;
  11. }
  12. textarea {
  13. width: 400px;
  14. height: 60px;
  15. }
  16. </style>
  17. </head>
  18. <body>
  19. <b>Name of this Description:</b><input type="text" id="name" value="Unnamed" /><br/>
  20. <br/><b>Description:</b><br/>
  21. <textarea id="missDesc"></textarea><br/>
  22. <a href="#" id="addUnit">Add Unit</a>
  23. <pre id="code">
  24. (new CombatDescription(""))
  25. let fd = (new FuckingDescription("<span id="nameCode"></span>"));
  26. spitroast.setDescription(new Say(<span id="descriptionCode"></span>))
  27. .addUnit()
  28. .setFucker(OrcDebugger)
  29. .setHole(HumanoidVagina)
  30. .setStick(HumanoidPenis);
  31. spitroast.addUnit()
  32. .setFucker(OrcDebugger)
  33. .setHole(HumanoidHead)
  34. .setStick(HumanoidPenis);
  35. </pre>
  36. <script type="text/javascript">
  37. function updateCode () {
  38. document.getElementById("nameCode").innerText = document.getElementById("name").value;
  39. }
  40. updateCode();
  41. let inputs = document.getElementsByTagName("input");
  42. let textareas = document.getElementsByTagName("textarea");
  43. (new Array(...inputs, ...textareas)).forEach(element => {
  44. element.addEventListener("keyup", updateCode);
  45. });
  46. </script>
  47. </body>
  48. </html>