tune up the honk form

master
Ted Unangst 5 years ago
parent 9da87b5348
commit dcd099c52e

@ -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>

@ -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;
}

Loading…
Cancel
Save