12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Title</title>
- <style type="text/css">
- #code {
- position: fixed;
- top: 0px;
- right: 1ex;
- }
- textarea {
- width: 400px;
- height: 60px;
- }
- </style>
- </head>
- <body>
- <b>Name of this Description:</b><input type="text" id="name" value="Unnamed" /><br/>
- <br/><b>Description:</b><br/>
- <textarea id="missDesc"></textarea><br/>
- <a href="#" id="addUnit">Add Unit</a>
- <pre id="code">
- (new CombatDescription(""))
- let fd = (new FuckingDescription("<span id="nameCode"></span>"));
- spitroast.setDescription(new Say(<span id="descriptionCode"></span>))
- .addUnit()
- .setFucker(OrcDebugger)
- .setHole(HumanoidVagina)
- .setStick(HumanoidPenis);
- spitroast.addUnit()
- .setFucker(OrcDebugger)
- .setHole(HumanoidHead)
- .setStick(HumanoidPenis);
- </pre>
- <script type="text/javascript">
- function updateCode () {
- document.getElementById("nameCode").innerText = document.getElementById("name").value;
- }
- updateCode();
- let inputs = document.getElementsByTagName("input");
- let textareas = document.getElementsByTagName("textarea");
- (new Array(...inputs, ...textareas)).forEach(element => {
- element.addEventListener("keyup", updateCode);
- });
- </script>
- </body>
- </html>
|