File tree Expand file tree Collapse file tree 4 files changed +6
-18
lines changed
java/com/codingame/gameengine/runner Expand file tree Collapse file tree 4 files changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -712,7 +712,7 @@ public void handleRequest(HttpServerExchange exchange) throws Exception {
712
712
} catch (IOException ex ) {
713
713
sendException (e , ex , StatusCodes .BAD_REQUEST );
714
714
}
715
- });
715
+ }, StandardCharsets . UTF_8 );
716
716
} else {
717
717
exchange .setStatusCode (StatusCodes .NOT_FOUND );
718
718
}
Original file line number Diff line number Diff line change @@ -225,36 +225,26 @@ button {
225
225
margin-left : 2px ;
226
226
display : inline-block;
227
227
vertical-align : middle;
228
+ width : 20px ;
229
+ height : 20px ;
228
230
}
229
231
.statement-body .statement-section .statement-goal .icon .icon-goal {
230
232
background-image : url ("/images/statement/icon_statement_goal.png" );
231
- width : 20px ;
232
- height : 20px ;
233
233
}
234
234
.statement-body .statement-section .statement-rules .icon .icon-rules {
235
235
background-image : url ("/images/statement/icon_statement_rules.png" );
236
- width : 20px ;
237
- height : 20px ;
238
236
}
239
237
.statement-body .statement-section .statement-expertrules .icon .icon-expertrules {
240
238
background-image : url ("/images/statement/icon_statement_expert_rules.png" );
241
- width : 20px ;
242
- height : 20px ;
243
239
}
244
240
.statement-body .statement-section .statement-warning .icon .icon-warning {
245
241
background-image : url ("/images/statement/icon_statement_warning.png" );
246
- width : 20px ;
247
- height : 20px ;
248
242
}
249
243
.statement-body .statement-section .statement-protocol .icon .icon-protocol {
250
244
background-image : url ("/images/statement/icon_statement_protocol.png" );
251
- width : 20px ;
252
- height : 20px ;
253
245
}
254
246
.statement-body .statement-section .statement-examples .icon .icon-example {
255
247
background-image : url ("/images/statement/icon_statement_examples.png" );
256
- width : 20px ;
257
- height : 20px ;
258
248
}
259
249
260
250
.statement-victory-conditions {
Original file line number Diff line number Diff line change 14
14
< button id ="save " onclick ="save() " disabled > Saved</ button >
15
15
</ div >
16
16
17
- < div class ="statement-body ">
17
+ < div class ="preview ">
18
18
< div class ="preview-title "> Preview</ div >
19
19
< div id ="error "> </ div >
20
20
< code id ="result "> </ code >
Original file line number Diff line number Diff line change @@ -7,9 +7,7 @@ function refreshStatement () {
7
7
const errorNode = document . getElementById ( 'error' )
8
8
9
9
try {
10
- resultNode . innerText = getStatementInput ( )
11
-
12
- resultNode . innerHTML = resultNode . innerText . replace ( '\'' , ''' ) . replace ( '≤' , '≤' )
10
+ resultNode . innerHTML = getStatementInput ( )
13
11
14
12
errorNode . innerText = ''
15
13
resultNode . style . opacity = 1
@@ -23,7 +21,7 @@ async function load () {
23
21
const response = await fetch ( '/services/statement' , {
24
22
method : 'GET'
25
23
} )
26
- statement = await response . text ( )
24
+ const statement = await response . text ( )
27
25
document . getElementById ( 'statementInput' ) . value = statement
28
26
29
27
refreshStatement ( )
You can’t perform that action at this time.
0 commit comments