Mercurial Hosting > freedit
comparison src/new_thread.html.luan @ 42:0c1b820fff34
use push
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 08 Nov 2022 14:02:28 -0700 |
parents | 9674275019bb |
children | 289718f121e4 |
comparison
equal
deleted
inserted
replaced
41:acb730710328 | 42:0c1b820fff34 |
---|---|
27 <!doctype html> | 27 <!doctype html> |
28 <html> | 28 <html> |
29 <head> | 29 <head> |
30 <% head() %> | 30 <% head() %> |
31 <title><%=forum_title%>: new thread</title> | 31 <title><%=forum_title%>: new thread</title> |
32 <style> | |
33 textarea { | |
34 width: 100%; | |
35 } | |
36 </style> | |
37 <script> | |
38 function uploaded(input,url,filename) { | |
39 let textarea = document.querySelector('textarea'); | |
40 textarea.focus(); | |
41 textarea.setRangeText(url,textarea.selectionStart,textarea.selectionEnd,'select'); | |
42 } | |
43 </script> | |
32 </head> | 44 </head> |
33 <body> | 45 <body> |
34 <% header() %> | 46 <% header() %> |
35 <div content> | 47 <div content> |
36 <h1>New Thread</h1> | 48 <h1>New Thread</h1> |
37 <form method=post> | 49 <form method=post> |
38 <p> | 50 <p> |
39 <label>Subject</label> | 51 <label>Subject</label> |
40 <input name=subject required> | 52 <input name=subject required> |
41 </p> | 53 </p> |
42 <p><textarea name=content></textarea></p> | 54 <p><textarea name=content oninput="fixTextarea(this)"></textarea></p> |
55 <p> | |
56 <input type=file onchange="upload(this,uploaded)"> | |
57 <button type=button onclick="fileButtonClick(this)">Upload File</button> | |
58 </p> | |
43 <p><input type=submit></p> | 59 <p><input type=submit></p> |
44 </form> | 60 </form> |
45 </div> | 61 </div> |
46 <% footer() %> | 62 <% footer() %> |
47 </body> | 63 </body> |