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>
<input type="hidden" name="CSRF" value="{{ .HonkCSRF }}">
<p>
<label id="donker">attach: <input onchange="updatedonker();" type="file" name="donk"><span></span></label>
<p>
<textarea name="noise" id="honknoise"></textarea>
<p>
<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>
<script>
function showhonkform(rid, hname) {
@ -27,6 +28,6 @@ function showhonkform(rid, hname) {
}
function updatedonker() {
var el = document.getElementById("donker")
el.children[1].textContent = el.children[0].value
el.children[1].textContent = el.children[0].value.slice(-20)
}
</script>

View File

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