change styles

This commit is contained in:
cuom1999 2020-03-16 01:56:55 -06:00
parent f424e609bc
commit 0ff312e3ba
10 changed files with 228 additions and 21 deletions

View file

@ -34,7 +34,9 @@
{% endblock js_media %}
{% block body %}
<textarea id="chat-log" cols="100" rows="20"></textarea><br/>
<input id="chat-message-input" type="text" size="100"/><br/>
<button id="chat-message-submit"> Send </button>
<div>
<textarea disabled id="chat-log" rows="20" style="width: 100%"></textarea><br/>
<input id="chat-message-input" type="text" style="width: 100%"/><br/>
</div>
<button id="chat-message-submit" style="margin-top: 1em"> Send </button>
{% endblock body %}

View file

@ -225,7 +225,7 @@
$('a#fill-testcases').click(function () {
var inFiles = [], outFiles = [];
for (var i = 0; i < window.valid_files.length; i++) {
if (window.valid_files[i].endsWith(".in")) {
if (window.valid_files[i].endsWith(".in") || window.valid_files[i].endsWith(".inp")) {
inFiles.push(window.valid_files[i]);
}
if (window.valid_files[i].endsWith(".out")) {
@ -233,7 +233,7 @@
}
}
if (inFiles.length == 0) {
alert("No input/output files. Make sure your files' suffices are .in/.out");
alert("No input/output files. Make sure your files' suffices are .in(p)/.out");
return false;
}
if (inFiles.length != outFiles.length) {
@ -248,6 +248,9 @@
for (var i = 0; i < inFiles.length; i++) {
$("#id_cases-" + i + "-input_file").val(inFiles[i]).change();
}
for (var i = 0; i < outFiles.length; i++) {
$("#id_cases-" + i + "-output_file").val(outFiles[i]).change();
}
// add points
if ($('#problem-type').val() == "ICPC") {
for (i = 0; i + 1 < inFiles.length; i++) {