diff --git a/static/css/adc2019.css b/static/css/adc2019.css index d59c0197ceaed9bdc95d5b0cfd42a0e9138093d3..e0955e8fe57ebb8e8d294b766d69e0da90f69b7f 100644 --- a/static/css/adc2019.css +++ b/static/css/adc2019.css @@ -80,3 +80,18 @@ body{ #content-right h4.inline-heading{ display: inline-block; } + +#content-right h4#problem-status-title{ + vertical-align: bottom; + margin-right: 10px; +} + +#content-right #solution-list-container{ + height: calc(100vh - 55px); + overflow-y: scroll; +} + +#content-right #solution-list-container table>tbody>tr, +#content-right #solution-list-container table>tbody>tr>td{ + cursor: pointer; +} diff --git a/static/js/adc2019.js b/static/js/adc2019.js index da2c6dd8f4ad870824c61557ea577e0698cad607..f0d03655ba2712cbbe42ecae7685c6c422a4ab49 100644 --- a/static/js/adc2019.js +++ b/static/js/adc2019.js @@ -26,6 +26,13 @@ class StatusView { _this.container.find('.start-button').click(()=>{ _this.start_solver(); }); + + _this.container.find('.solution-detail-row td').click((e) => { + var solution_id = $(e.target).parent("tr").data("solution-id"); + var problem_name = $(e.target).parent("tr").data("problem"); + var viewer_url = "/viewer/solution#" + problem_name + "/" + solution_id; + window.open(viewer_url, "_blank"); + }) }); } @@ -46,8 +53,13 @@ class StatusView { var request_id = d['request_id']; var timeout = d['timeout']; - _this.container.find('#solver-processing-modal').modal('show'); + _this.container.find('#solver-processing-modal').modal({ + backdrop: 'static', + keyboard: false, + show: true + }); _this.container.find('#solver-processing-modal').on('hidden.bs.modal', function(e){ + console.log(e); _this.show_problem(); }) @@ -69,7 +81,6 @@ class StatusView { console.log(status); if(status == 'done'){ _this.request_refresh_timer = null; - // _this.show_problem(); }else{ _this.request_refresh_timer = setTimeout(_this.get_request_status(request_id, timeout), 1000); } diff --git a/templates/part_problem_status.html b/templates/part_problem_status.html index dd6cc4eee62f224300d7abba10fb70b05750e80d..088a64e77df5c8fa891f67476fe7d56de9daf24d 100644 --- a/templates/part_problem_status.html +++ b/templates/part_problem_status.html @@ -1,43 +1,44 @@
- -

【{{problem.name}}】

+

{{problem.name}}

{#% # if localmode %#} -

- - - - -

+ + + + {#% else %#} {#% endif %#}
-
+

処理結果一覧

- - - - - - {% for k, v in problem.get_solutions().items() %} - {#% if (qdata.best_json == k) and (v.answer != "") %#} - - {#% else %#} - - {#% endif %#} - - - - - {% endfor %} + + + + + + + + + {% for k, v in problem.get_solutions().items() %} + {#% if (qdata.best_json == k) and (v.answer != "") %#} + + {#% else %#} + + {#% endif %#} + + + + + {% endfor %} +
TimestampClientScore
{{v.timestamp_str}}{{v.worker}} - {#% if v.nlcheck == -1 %#} - - {#% else %#} - {#{v.nlcheck}#} - {#% endif %#} -
TimestampClientScore
{{v.timestamp_str}}{{v.worker}} + {#% if v.nlcheck == -1 %#} + + {#% else %#} + {#{v.nlcheck}#} + {#% endif %#} +
@@ -46,16 +47,16 @@