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

@ -693,3 +693,204 @@ INFO 2020-03-10 02:26:46,545 judgehandler judge1: Grading has begun on: 48
INFO 2020-03-10 02:26:46,583 judgehandler judge1: 3 test case(s) completed on: 48 INFO 2020-03-10 02:26:46,583 judgehandler judge1: 3 test case(s) completed on: 48
INFO 2020-03-10 02:26:46,648 judgehandler judge1: Grading has ended on: 48 INFO 2020-03-10 02:26:46,648 judgehandler judge1: Grading has ended on: 48
INFO 2020-03-10 02:26:46,648 judgelist Judge available after grading 48: judge1 INFO 2020-03-10 02:26:46,648 judgelist Judge available after grading 48: judge1
INFO 2020-03-16 02:34:23,436 judgehandler Judge connected from: ('127.0.0.1', 58500)
INFO 2020-03-16 02:34:23,438 judgehandler Judge authenticated: ('127.0.0.1', 58500) (judge1)
INFO 2020-03-16 02:54:41,002 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:55:20,713 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:55:24,191 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:55:28,666 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:55:30,476 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:55:38,589 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:55:50,475 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:56:01,002 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:56:25,834 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:56:39,985 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:57:13,328 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:57:47,626 judgelist Free judges: 1
INFO 2020-03-16 02:57:47,628 judgelist Dispatched submission 49 to: judge1
INFO 2020-03-16 02:57:47,649 judgehandler Submission acknowledged: 49
INFO 2020-03-16 02:57:47,758 judgehandler judge1: Grading has begun on: 49
INFO 2020-03-16 02:57:47,828 judgehandler judge1: 1 test case(s) completed on: 49
INFO 2020-03-16 02:57:47,895 judgehandler judge1: Grading has ended on: 49
INFO 2020-03-16 02:57:47,896 judgelist Judge available after grading 49: judge1
INFO 2020-03-16 02:58:01,408 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:58:02,052 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:58:32,793 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:58:32,839 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:58:32,860 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:58:47,946 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:58:48,942 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:58:56,280 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:58:56,639 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:59:03,210 judgehandler judge1: Updated problem list
INFO 2020-03-16 02:59:39,329 judgelist Free judges: 1
INFO 2020-03-16 02:59:39,330 judgelist Dispatched submission 50 to: judge1
INFO 2020-03-16 02:59:39,347 judgehandler Submission acknowledged: 50
INFO 2020-03-16 02:59:40,048 judgehandler judge1: Grading has begun on: 50
INFO 2020-03-16 02:59:40,431 judgehandler judge1: 1 test case(s) completed on: 50
INFO 2020-03-16 02:59:40,737 judgehandler judge1: Grading has ended on: 50
INFO 2020-03-16 02:59:40,737 judgelist Judge available after grading 50: judge1
INFO 2020-03-16 03:02:36,588 judgehandler judge1: Updated problem list
INFO 2020-03-16 03:04:08,800 judgehandler judge1: Updated problem list
INFO 2020-03-16 03:04:09,051 judgehandler judge1: Updated problem list
INFO 2020-03-16 03:04:27,267 judgehandler judge1: Updated problem list
INFO 2020-03-16 03:04:58,877 judgehandler judge1: Updated problem list
INFO 2020-03-16 03:05:07,980 judgehandler judge1: Updated problem list
INFO 2020-03-16 03:05:08,870 judgehandler judge1: Updated problem list
INFO 2020-03-16 03:05:14,472 judgehandler judge1: Updated problem list
INFO 2020-03-16 03:09:09,206 judgehandler judge1: Updated problem list
INFO 2020-03-16 03:09:17,772 judgehandler judge1: Updated problem list
INFO 2020-03-16 03:09:41,468 judgehandler judge1: Updated problem list
INFO 2020-03-16 03:09:43,369 judgehandler judge1: Updated problem list
INFO 2020-03-16 03:09:52,096 judgehandler judge1: Updated problem list
INFO 2020-03-16 03:09:52,228 judgehandler judge1: Updated problem list
INFO 2020-03-16 03:09:55,720 judgehandler judge1: Updated problem list
INFO 2020-03-16 03:10:01,076 judgehandler judge1: Updated problem list
INFO 2020-03-16 03:10:07,556 judgehandler judge1: Updated problem list
INFO 2020-03-16 03:10:18,501 judgehandler judge1: Updated problem list
INFO 2020-03-16 04:05:05,007 judgehandler judge1: Updated problem list
INFO 2020-03-16 04:05:19,876 judgehandler judge1: Updated problem list
INFO 2020-03-16 04:05:54,743 judgelist Free judges: 1
INFO 2020-03-16 04:05:54,744 judgelist Dispatched submission 51 to: judge1
INFO 2020-03-16 04:05:54,764 judgehandler Submission acknowledged: 51
INFO 2020-03-16 04:05:55,913 judgehandler judge1: Grading has begun on: 51
INFO 2020-03-16 04:05:56,055 judgehandler judge1: 1 test case(s) completed on: 51
INFO 2020-03-16 04:05:56,194 judgehandler judge1: Grading has ended on: 51
INFO 2020-03-16 04:05:56,194 judgelist Judge available after grading 51: judge1
INFO 2020-03-16 04:06:28,949 judgelist Free judges: 1
INFO 2020-03-16 04:06:28,949 judgelist Dispatched submission 52 to: judge1
INFO 2020-03-16 04:06:28,967 judgehandler Submission acknowledged: 52
INFO 2020-03-16 04:06:29,005 judgehandler judge1: Grading has begun on: 52
INFO 2020-03-16 04:06:29,084 judgehandler judge1: 1 test case(s) completed on: 52
INFO 2020-03-16 04:06:29,195 judgehandler judge1: Grading has ended on: 52
INFO 2020-03-16 04:06:29,195 judgelist Judge available after grading 52: judge1
INFO 2020-03-16 04:07:08,933 judgelist Free judges: 1
INFO 2020-03-16 04:07:08,933 judgelist Dispatched submission 53 to: judge1
INFO 2020-03-16 04:07:08,950 judgehandler Submission acknowledged: 53
INFO 2020-03-16 04:07:11,354 judgehandler judge1: Submission generated compiler messages: 53
INFO 2020-03-16 04:07:11,410 judgehandler judge1: Grading has begun on: 53
INFO 2020-03-16 04:07:12,039 judgehandler judge1: 1 test case(s) completed on: 53
INFO 2020-03-16 04:07:12,762 judgehandler judge1: Grading has ended on: 53
INFO 2020-03-16 04:07:12,762 judgelist Judge available after grading 53: judge1
INFO 2020-03-16 04:11:38,835 judgelist Free judges: 1
INFO 2020-03-16 04:11:38,835 judgelist Dispatched submission 54 to: judge1
INFO 2020-03-16 04:11:38,853 judgehandler Submission acknowledged: 54
INFO 2020-03-16 04:11:39,737 judgehandler judge1: Submission generated compiler messages: 54
INFO 2020-03-16 04:11:39,773 judgehandler judge1: Grading has begun on: 54
INFO 2020-03-16 04:11:39,811 judgehandler judge1: 1 test case(s) completed on: 54
INFO 2020-03-16 04:11:39,888 judgehandler judge1: Grading has ended on: 54
INFO 2020-03-16 04:11:39,888 judgelist Judge available after grading 54: judge1
INFO 2020-03-16 04:11:53,547 judgelist Free judges: 1
INFO 2020-03-16 04:11:53,548 judgelist Dispatched submission 55 to: judge1
INFO 2020-03-16 04:11:53,566 judgehandler Submission acknowledged: 55
INFO 2020-03-16 04:11:54,439 judgehandler judge1: Submission generated compiler messages: 55
INFO 2020-03-16 04:11:54,579 judgehandler judge1: Grading has begun on: 55
INFO 2020-03-16 04:11:54,641 judgehandler judge1: 1 test case(s) completed on: 55
INFO 2020-03-16 04:11:54,778 judgehandler judge1: Grading has ended on: 55
INFO 2020-03-16 04:11:54,779 judgelist Judge available after grading 55: judge1
INFO 2020-03-16 04:13:21,095 judgelist Free judges: 1
INFO 2020-03-16 04:13:21,096 judgelist Dispatched submission 56 to: judge1
INFO 2020-03-16 04:13:21,113 judgehandler Submission acknowledged: 56
INFO 2020-03-16 04:13:21,365 judgehandler judge1: Submission failed to compile: 56
INFO 2020-03-16 04:13:21,366 judgelist Judge available after grading 56: judge1
INFO 2020-03-16 04:13:38,972 judgelist Free judges: 1
INFO 2020-03-16 04:13:38,973 judgelist Dispatched submission 57 to: judge1
INFO 2020-03-16 04:13:38,980 judgehandler Submission acknowledged: 57
INFO 2020-03-16 04:13:39,209 judgehandler judge1: Submission generated compiler messages: 57
INFO 2020-03-16 04:13:39,974 judgehandler judge1: Grading has begun on: 57
INFO 2020-03-16 04:13:40,763 judgehandler judge1: 1 test case(s) completed on: 57
INFO 2020-03-16 04:13:41,708 judgehandler judge1: Grading has ended on: 57
INFO 2020-03-16 04:13:41,708 judgelist Judge available after grading 57: judge1
INFO 2020-03-16 04:25:44,775 judgelist Free judges: 1
INFO 2020-03-16 04:25:44,776 judgelist Dispatched submission 58 to: judge1
INFO 2020-03-16 04:25:44,784 judgehandler Submission acknowledged: 58
INFO 2020-03-16 04:25:46,058 judgehandler judge1: Submission generated compiler messages: 58
INFO 2020-03-16 04:25:46,121 judgehandler judge1: Grading has begun on: 58
INFO 2020-03-16 04:25:46,157 judgehandler judge1: 1 test case(s) completed on: 58
INFO 2020-03-16 04:25:46,224 judgehandler judge1: Grading has ended on: 58
INFO 2020-03-16 04:25:46,225 judgelist Judge available after grading 58: judge1
INFO 2020-03-16 04:28:46,644 judgelist Free judges: 1
INFO 2020-03-16 04:28:46,645 judgelist Dispatched submission 59 to: judge1
INFO 2020-03-16 04:28:46,661 judgehandler Submission acknowledged: 59
INFO 2020-03-16 04:28:47,484 judgehandler judge1: Submission generated compiler messages: 59
INFO 2020-03-16 04:28:47,524 judgehandler judge1: Grading has begun on: 59
INFO 2020-03-16 04:28:47,560 judgehandler judge1: 1 test case(s) completed on: 59
INFO 2020-03-16 04:28:47,696 judgehandler judge1: Grading has ended on: 59
INFO 2020-03-16 04:28:47,697 judgelist Judge available after grading 59: judge1
INFO 2020-03-16 04:33:13,204 judgelist Free judges: 1
INFO 2020-03-16 04:33:13,204 judgelist Dispatched submission 60 to: judge1
INFO 2020-03-16 04:33:13,208 judgehandler Submission acknowledged: 60
INFO 2020-03-16 04:33:14,148 judgehandler judge1: Submission generated compiler messages: 60
INFO 2020-03-16 04:33:14,203 judgehandler judge1: Grading has begun on: 60
INFO 2020-03-16 04:33:14,241 judgehandler judge1: 3 test case(s) completed on: 60
INFO 2020-03-16 04:33:14,306 judgehandler judge1: Grading has ended on: 60
INFO 2020-03-16 04:33:14,306 judgelist Judge available after grading 60: judge1
INFO 2020-03-16 04:33:33,916 judgelist Free judges: 1
INFO 2020-03-16 04:33:33,917 judgelist Dispatched submission 61 to: judge1
INFO 2020-03-16 04:33:33,935 judgehandler Submission acknowledged: 61
INFO 2020-03-16 04:33:34,789 judgehandler judge1: Submission generated compiler messages: 61
INFO 2020-03-16 04:33:34,821 judgehandler judge1: Grading has begun on: 61
INFO 2020-03-16 04:33:34,947 judgehandler judge1: 2 test case(s) completed on: 61
INFO 2020-03-16 04:33:35,013 judgehandler judge1: 1 test case(s) completed on: 61
INFO 2020-03-16 04:33:35,083 judgehandler judge1: Grading has ended on: 61
INFO 2020-03-16 04:33:35,083 judgelist Judge available after grading 61: judge1
INFO 2020-03-16 04:38:54,503 judgelist Free judges: 1
INFO 2020-03-16 04:38:54,504 judgelist Dispatched submission 62 to: judge1
INFO 2020-03-16 04:38:54,523 judgehandler Submission acknowledged: 62
INFO 2020-03-16 04:38:55,380 judgehandler judge1: Submission generated compiler messages: 62
INFO 2020-03-16 04:38:55,419 judgehandler judge1: Grading has begun on: 62
INFO 2020-03-16 04:38:55,468 judgehandler judge1: 1 test case(s) completed on: 62
INFO 2020-03-16 04:38:55,651 judgehandler judge1: 10 test case(s) completed on: 62
INFO 2020-03-16 04:38:55,902 judgehandler judge1: 10 test case(s) completed on: 62
INFO 2020-03-16 04:38:56,423 judgehandler judge1: 3 test case(s) completed on: 62
INFO 2020-03-16 04:38:56,505 judgehandler judge1: 2 test case(s) completed on: 62
INFO 2020-03-16 04:38:56,658 judgehandler judge1: 9 test case(s) completed on: 62
INFO 2020-03-16 04:38:56,907 judgehandler judge1: 9 test case(s) completed on: 62
INFO 2020-03-16 04:38:57,484 judgehandler judge1: 4 test case(s) completed on: 62
INFO 2020-03-16 04:38:58,115 judgehandler judge1: 1 test case(s) completed on: 62
INFO 2020-03-16 04:38:58,208 judgehandler judge1: 2 test case(s) completed on: 62
INFO 2020-03-16 04:38:58,302 judgehandler judge1: 6 test case(s) completed on: 62
INFO 2020-03-16 04:38:58,417 judgehandler judge1: 9 test case(s) completed on: 62
INFO 2020-03-16 04:38:58,668 judgehandler judge1: 22 test case(s) completed on: 62
INFO 2020-03-16 04:38:58,922 judgehandler judge1: 10 test case(s) completed on: 62
INFO 2020-03-16 04:38:59,031 judgehandler judge1: 2 test case(s) completed on: 62
INFO 2020-03-16 04:38:59,172 judgehandler judge1: Grading has ended on: 62
INFO 2020-03-16 04:38:59,172 judgelist Judge available after grading 62: judge1
INFO 2020-03-16 04:50:00,653 judgelist Free judges: 1
INFO 2020-03-16 04:50:00,653 judgelist Dispatched submission 63 to: judge1
INFO 2020-03-16 04:50:00,671 judgehandler Submission acknowledged: 63
INFO 2020-03-16 04:50:01,525 judgehandler judge1: Submission generated compiler messages: 63
INFO 2020-03-16 04:50:01,862 judgehandler judge1: Grading has begun on: 63
INFO 2020-03-16 04:50:02,137 judgehandler judge1: 2 test case(s) completed on: 63
INFO 2020-03-16 04:50:02,249 judgehandler judge1: 1 test case(s) completed on: 63
INFO 2020-03-16 04:50:02,317 judgehandler judge1: 4 test case(s) completed on: 63
INFO 2020-03-16 04:50:02,783 judgehandler judge1: 12 test case(s) completed on: 63
INFO 2020-03-16 04:50:03,436 judgehandler judge1: 1 test case(s) completed on: 63
INFO 2020-03-16 04:50:04,285 judgehandler judge1: 2 test case(s) completed on: 63
INFO 2020-03-16 04:50:05,115 judgehandler judge1: 1 test case(s) completed on: 63
INFO 2020-03-16 04:50:06,612 judgehandler judge1: 2 test case(s) completed on: 63
INFO 2020-03-16 04:50:07,442 judgehandler judge1: 3 test case(s) completed on: 63
INFO 2020-03-16 04:50:07,536 judgehandler judge1: 1 test case(s) completed on: 63
INFO 2020-03-16 04:50:07,641 judgehandler judge1: 6 test case(s) completed on: 63
INFO 2020-03-16 04:50:07,741 judgehandler judge1: 1 test case(s) completed on: 63
INFO 2020-03-16 04:50:07,834 judgehandler judge1: 2 test case(s) completed on: 63
INFO 2020-03-16 04:50:07,940 judgehandler judge1: 1 test case(s) completed on: 63
INFO 2020-03-16 04:50:08,041 judgehandler judge1: 3 test case(s) completed on: 63
INFO 2020-03-16 04:50:08,154 judgehandler judge1: 1 test case(s) completed on: 63
INFO 2020-03-16 04:50:08,272 judgehandler judge1: 1 test case(s) completed on: 63
INFO 2020-03-16 04:50:08,467 judgehandler judge1: 2 test case(s) completed on: 63
INFO 2020-03-16 04:50:09,446 judgehandler judge1: 1 test case(s) completed on: 63
INFO 2020-03-16 04:50:09,624 judgehandler judge1: 2 test case(s) completed on: 63
INFO 2020-03-16 04:50:09,743 judgehandler judge1: 2 test case(s) completed on: 63
INFO 2020-03-16 04:50:09,861 judgehandler judge1: 2 test case(s) completed on: 63
INFO 2020-03-16 04:50:09,991 judgehandler judge1: 1 test case(s) completed on: 63
INFO 2020-03-16 04:50:10,169 judgehandler judge1: 7 test case(s) completed on: 63
INFO 2020-03-16 04:50:10,347 judgehandler judge1: 12 test case(s) completed on: 63
INFO 2020-03-16 04:50:10,537 judgehandler judge1: 9 test case(s) completed on: 63
INFO 2020-03-16 04:50:10,897 judgehandler judge1: 8 test case(s) completed on: 63
INFO 2020-03-16 04:50:11,563 judgehandler judge1: 4 test case(s) completed on: 63
INFO 2020-03-16 04:50:11,681 judgehandler judge1: 1 test case(s) completed on: 63
INFO 2020-03-16 04:50:11,813 judgehandler judge1: 1 test case(s) completed on: 63
INFO 2020-03-16 04:50:11,944 judgehandler judge1: 4 test case(s) completed on: 63
INFO 2020-03-16 04:50:12,087 judgehandler judge1: Grading has ended on: 63
INFO 2020-03-16 04:50:12,088 judgelist Judge available after grading 63: judge1

View file

@ -109,7 +109,7 @@ TIMEZONE_MAP = None
TIMEZONE_DETECT_BACKEND = None TIMEZONE_DETECT_BACKEND = None
TERMS_OF_SERVICE_URL = None TERMS_OF_SERVICE_URL = None
DEFAULT_USER_LANGUAGE = 'PY3' DEFAULT_USER_LANGUAGE = 'CPP11'
PHANTOMJS = '' PHANTOMJS = ''
PHANTOMJS_PDF_ZOOM = 0.75 PHANTOMJS_PDF_ZOOM = 0.75
@ -431,9 +431,9 @@ EVENT_DAEMON_SUBMISSION_KEY = '6Sdmkx^%pk@GsifDfXcwX*Y7LRF%RGT8vmFpSxFBT$fwS7trc
# https://docs.djangoproject.com/en/1.11/topics/i18n/ # https://docs.djangoproject.com/en/1.11/topics/i18n/
# Whatever you do, this better be one of the entries in `LANGUAGES`. # Whatever you do, this better be one of the entries in `LANGUAGES`.
LANGUAGE_CODE = 'en' LANGUAGE_CODE = 'vi'
TIME_ZONE = 'UTC' TIME_ZONE = 'Asia/Ho_Chi_Minh'
DEFAULT_USER_TIME_ZONE = 'America/Toronto' DEFAULT_USER_TIME_ZONE = 'Asia/Ho_Chi_Minh'
USE_I18N = True USE_I18N = True
USE_L10N = True USE_L10N = True
USE_TZ = True USE_TZ = True

View file

@ -17,7 +17,7 @@ fi
FILES=(sass_processed/style.css sass_processed/content-description.css sass_processed/table.css sass_processed/ranks.css) FILES=(sass_processed/style.css sass_processed/content-description.css sass_processed/table.css sass_processed/ranks.css)
cd `dirname $0` cd `dirname $0`
sass --update resources:sass_processed sass resources:sass_processed
echo echo
postcss "${FILES[@]}" --verbose --use autoprefixer -d resources postcss "${FILES[@]}" --verbose --use autoprefixer -d resources

View file

@ -218,7 +218,7 @@ header {
} }
#nav-shadow { #nav-shadow {
height: 3px; height: 1px;
background: linear-gradient(rgba(0, 0, 0, 0.5), transparent); background: linear-gradient(rgba(0, 0, 0, 0.5), transparent);
} }
@ -276,7 +276,7 @@ nav {
display: inline-block; display: inline-block;
text-decoration: none; text-decoration: none;
vertical-align: middle; vertical-align: middle;
color: #FFF; color: #3e452c;
padding: 13px 7px; padding: 13px 7px;
height: 18px; height: 18px;
@ -291,8 +291,9 @@ nav {
} }
&.active { &.active {
color: #FFF; // color: #FFF;
background: $highlight_blue; background: $highlight_blue;
color: black;
} }
.nav-expand { .nav-expand {

View file

@ -15,10 +15,10 @@
font-size: 1.7em; font-size: 1.7em;
a { a {
color: #5b80b9 !important; color: Maroon !important;
&:hover { &:hover {
color: #0645ad !important; color: #c00000 !important;
} }
} }
} }

View file

@ -42,9 +42,9 @@ $table_header_rounding: 6px;
th { th {
height: 2em; height: 2em;
color: #FFF; color: #2b333b;
background-color: $widget_black; background-color: $widget_black;
border-color: #555; border-color: #cccccc;
border-width: 1px 1px 0 0; border-width: 1px 1px 0 0;
border-style: solid; border-style: solid;
padding: 4px 10px; padding: 4px 10px;

View file

@ -1,5 +1,5 @@
$highlight_blue: #2980B9; $highlight_blue: white;
$widget_black: #3b3b3b; $widget_black: #63c8f9;//68BBE3, add8e6
$border_gray: #ccc; $border_gray: #ccc;
$background_gray: #ededed; $background_gray: #ededed;
$background_light_gray: #fafafa; $background_light_gray: #fafafa;

View file

@ -419,7 +419,7 @@ ul.select2-selection__rendered {
margin: 0 -5px; margin: 0 -5px;
background: $widget_black; background: $widget_black;
border-radius: $widget_border_radius $widget_border_radius 0 0; border-radius: $widget_border_radius $widget_border_radius 0 0;
color: white; color: #2b333b;
padding-top: 5px; padding-top: 5px;
padding-bottom: 5px; padding-bottom: 5px;
padding-left: 7px; padding-left: 7px;
@ -427,7 +427,7 @@ ul.select2-selection__rendered {
} }
.sidebox h3 .fa { .sidebox h3 .fa {
color: white; color: #2b333b;
float: right; float: right;
margin: 0.2em 0.4em 0 0; margin: 0.2em 0.4em 0 0;
} }

View file

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

View file

@ -225,7 +225,7 @@
$('a#fill-testcases').click(function () { $('a#fill-testcases').click(function () {
var inFiles = [], outFiles = []; var inFiles = [], outFiles = [];
for (var i = 0; i < window.valid_files.length; i++) { 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]); inFiles.push(window.valid_files[i]);
} }
if (window.valid_files[i].endsWith(".out")) { if (window.valid_files[i].endsWith(".out")) {
@ -233,7 +233,7 @@
} }
} }
if (inFiles.length == 0) { 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; return false;
} }
if (inFiles.length != outFiles.length) { if (inFiles.length != outFiles.length) {
@ -248,6 +248,9 @@
for (var i = 0; i < inFiles.length; i++) { for (var i = 0; i < inFiles.length; i++) {
$("#id_cases-" + i + "-input_file").val(inFiles[i]).change(); $("#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 // add points
if ($('#problem-type').val() == "ICPC") { if ($('#problem-type').val() == "ICPC") {
for (i = 0; i + 1 < inFiles.length; i++) { for (i = 0; i + 1 < inFiles.length; i++) {