/
contestrank3.php
executable file
·51 lines (41 loc) · 1.57 KB
/
contestrank3.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=1200">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">
<link rel="stylesheet" type="text/css" href="template/<?php echo $OJ_TEMPLATE?>/css/scrollboard.css">
<title><?php echo $OJ_NAME?></title>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css">
<style>
.label {
text-align:center;
}
.label.label-danger {
background-color:#d9534f;
}
</style>
</head>
<body>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<?php include("template/$OJ_TEMPLATE/js.php");?>
<script type="text/javascript" src="include/jquery.tablesorter.js?v=0.1"></script>
<script type="text/javascript" src="template/<?php echo $OJ_TEMPLATE?>/js/scrollboard.js?v=0.09"></script>
<script type="text/javascript">
var board = new Board(<?php echo $problem_num?>, new Array(<?php echo $gold_num?>, <?php echo $silver_num?>, <?php echo $bronze_num?>),StringToDate("<?php echo $start_time_str?>"), StringToDate("<?php echo $lock_time_str?>"),<?php echo $cid?>);
board.showInitBoard();
$('html').click(function(e) {
board.keydown();
});
$('html').keydown(function(e) {
if(e.keyCode==13)
board.keydown();
});
</script>
</body>
</html>