2023-02-07 12:41:37 +00:00
|
|
|
<?php if ($contest['frozen']) : ?>
|
|
|
|
<h4 class="text-center text-danger">
|
|
|
|
封榜于 <?= $contest['frozen_time']->format(UOJTime::FORMAT) ?>
|
|
|
|
</h4>
|
|
|
|
<?php endif ?>
|
|
|
|
|
2023-02-16 07:10:24 +00:00
|
|
|
<div id="standings" class="container"></div>
|
2018-07-09 02:40:30 +00:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
2023-02-07 12:41:37 +00:00
|
|
|
var contest_rule = <?= json_encode($contest['extra_config']['basic_rule']) ?>;
|
|
|
|
var bonus = <?= json_encode($contest['extra_config']['bonus']) ?>;
|
2022-11-06 02:26:21 +00:00
|
|
|
var standings_version = <?= $contest['extra_config']['standings_version'] ?>;
|
|
|
|
var contest_id = <?= $contest['id'] ?>;
|
|
|
|
var standings = <?= json_encode($standings) ?>;
|
|
|
|
var score = <?= json_encode($score) ?>;
|
|
|
|
var problems = <?= json_encode($contest_data['problems']) ?>;
|
|
|
|
var standings_config = <?= json_encode(isset($standings_config) ? $standings_config : ['_config' => true]) ?>;
|
2023-02-07 12:41:37 +00:00
|
|
|
var myname = <?= json_encode(Auth::id()) ?>;
|
2023-02-08 03:32:59 +00:00
|
|
|
var after_contest = <?= json_encode(isset($after_contest) && $after_contest) ?>;
|
2022-11-06 07:57:38 +00:00
|
|
|
var first_accepted = {};
|
2022-11-06 02:26:21 +00:00
|
|
|
|
2023-02-16 07:10:24 +00:00
|
|
|
if (problems.length > 8) {
|
|
|
|
$('#standings').removeClass('container');
|
|
|
|
}
|
|
|
|
|
2023-02-07 12:41:37 +00:00
|
|
|
$(document).ready(showStandings());
|
2018-07-09 02:40:30 +00:00
|
|
|
</script>
|