tune up the honk form

This commit is contained in:
Ted Unangst 2019-06-02 14:51:02 -04:00
parent 9da87b5348
commit dcd099c52e
2 changed files with 4 additions and 5 deletions

View File

@ -5,10 +5,11 @@
in reply to: <input type="text" name="rid" id="ridinput" value="" autocomplete=off> in reply to: <input type="text" name="rid" id="ridinput" value="" autocomplete=off>
<input type="hidden" name="CSRF" value="{{ .HonkCSRF }}"> <input type="hidden" name="CSRF" value="{{ .HonkCSRF }}">
<p> <p>
<label id="donker">attach: <input onchange="updatedonker();" type="file" name="donk"><span></span></label>
<p>
<textarea name="noise" id="honknoise"></textarea> <textarea name="noise" id="honknoise"></textarea>
<p> <p>
<input type="submit" value="it's gonna be honked"> <input type="submit" value="it's gonna be honked">
<label id="donker" style="margin-left:4em;">attach: <input onchange="updatedonker();" type="file" name="donk"><span></span></label>
</form> </form>
<script> <script>
function showhonkform(rid, hname) { function showhonkform(rid, hname) {
@ -27,6 +28,6 @@ function showhonkform(rid, hname) {
} }
function updatedonker() { function updatedonker() {
var el = document.getElementById("donker") var el = document.getElementById("donker")
el.children[1].textContent = el.children[0].value el.children[1].textContent = el.children[0].value.slice(-20)
} }
</script> </script>

View File

@ -82,6 +82,7 @@ button a {
height: 8em; height: 8em;
margin-bottom: 0.5em; margin-bottom: 0.5em;
box-sizing: border-box; box-sizing: border-box;
max-width: 100%;
} }
.info input[type="checkbox"] { .info input[type="checkbox"] {
position: fixed; position: fixed;
@ -175,9 +176,6 @@ img.emu {
body { body {
font-size: 12px; font-size: 12px;
} }
.info textarea {
width: 20em;
}
.honk header { .honk header {
height: 48px; height: 48px;
} }