Skip to content

Commit a131fd4

Browse files
clean input when sending a command
1 parent 5fb5840 commit a131fd4

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

home.html

+14-13
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
return false;
7070
}
7171
socket.emit('command', input.val());
72+
input.val('');
7273
});
7374

7475
$('#export').click(function() {
@@ -99,7 +100,7 @@
99100
} else {
100101
appendLog('Your browser does not support WebSockets.')
101102
}
102-
103+
103104
$("#input").focus();
104105
});
105106
</script>
@@ -109,7 +110,7 @@
109110
height: 100%;
110111
}
111112

112-
body {
113+
body {
113114
margin: 0px;
114115
padding: 0px;
115116
background: #F8F9F9;
@@ -119,7 +120,7 @@
119120

120121
#container {
121122
display: flex;
122-
flex-direction: column;
123+
flex-direction: column;
123124
height: 100vh;
124125
width: 100%;
125126
}
@@ -134,15 +135,15 @@
134135
overflow-y: auto;
135136
}
136137

137-
#footer {
138-
display: flex;
138+
#footer {
139+
display: flex;
139140
flex-wrap: wrap;
140141
align-items: flex-start;
141142
justify-content: space-between;
142-
margin: 0px 15px 0px;
143+
margin: 0px 15px 0px;
143144
}
144145

145-
#form {
146+
#form {
146147
display: flex;
147148
flex-grow: 1;
148149
margin-bottom: 15px;
@@ -153,8 +154,8 @@
153154
}
154155

155156
#secondary-controls div {
156-
display: inline-block;
157-
padding: 10px 15px;
157+
display: inline-block;
158+
padding: 10px 15px;
158159
}
159160

160161
#autoscroll,
@@ -177,7 +178,7 @@
177178
box-shadow: 0 4px #95a5a6;
178179
margin-bottom: 4px;
179180
color: #000;
180-
cursor: pointer;
181+
cursor: pointer;
181182
font-size: 14px;
182183
letter-spacing: 1.28px;
183184
line-height: normal;
@@ -189,20 +190,20 @@
189190
}
190191

191192
.button:hover {
192-
box-shadow: 0 2px #95a5a6;
193+
box-shadow: 0 2px #95a5a6;
193194
outline: none;
194195
transform: translateY(2px);
195196
}
196197

197198
.button:active {
198-
box-shadow: none;
199+
box-shadow: none;
199200
transform: translateY(4px);
200201
}
201202

202203
.textfield {
203204
background-color: #dae3e3;
204205
width: auto;
205-
height: auto;
206+
height: auto;
206207
padding: 10px 8px;
207208
margin-left: 8px;
208209
vertical-align: top;

0 commit comments

Comments
 (0)