S2OJ/web/app/views/contest-standings.php

23 lines
877 B
PHP
Raw Normal View History

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 ?>
<div id="standings"></div>
<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()) ?>;
var first_accepted = {};
2022-11-06 02:26:21 +00:00
2023-02-07 12:41:37 +00:00
$(document).ready(showStandings());
</script>