forked from LiangMingyang/buaaicpc
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
133 lines (132 loc) · 6.65 KB
/
index.html
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html lang="en" ng-app="bcpc-rating">
<head>
<meta charset="UTF-8">
<title>BCPC Rating</title>
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="bower_components/ng-sortable/dist/ng-sortable.min.css">
<link rel="stylesheet" href="style/style.css">
<!--<link rel="stylesheet" href="bower_components/ng-sortable/dist/ng-sortable.style.min.css">-->
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="bower_components/angular/angular.min.js"></script>
<script src="bower_components/highcharts/highcharts.js"></script>
<script src="bower_components/highcharts/modules/exporting.js"></script>
<script src="js/app.js"></script>
<script src="bower_components/ng-sortable/dist/ng-sortable.min.js"></script>
<script src="js/calc-rating.js"></script>
</head>
<body ng-controller="main" style="background: url('集训队合影.jpg'); background-attachment: fixed; background-repeat: no-repeat; background-size: 100%; z-index: -100;">
<div style="position:fixed;top:0;left:0;right:0;bottom:0; z-index: -99;background-color: rgba(188,188,188,0.5);"></div>
<div>
<!--<body ng-controller="main">-->
<!--<div><div>-->
<div class="container">
<div class="row">
<div class="col-sm-12">
<h1 class="text-center">BUAA 2017 ACM-ICPC 队暑期集训</h1>
<!--<a target="_blank" href="https://sojump.com/jq/9382751.aspx" class="text-center"><h4>反馈</h4></a>-->
</div>
</div>
<div class="row">
<!--<div class="col-sm-2"></div>-->
<!--<div class="col-sm-1"></div>-->
<div class="col-sm-2">
<p id="contest" style="font-weight: bold; font-size: large;">Contest #{{currentRanks.length+1}}</p>
</div>
<div class="col-sm-2"></div>
<div class="col-sm-2">
<p id="rating" style="font-weight: bold; font-size: large;">Rating #{{currentRanks.length}}</p>
</div>
<div class="col-sm-2">
<p id="updated-time" class="text-info small" style="font-weight: bold; vertical-align: middle; display: table-cell; height: 21px;">{{updatedDate | date:'yyyy-MM-dd HH:mm:ss'}}</p>
</div>
<div class="col-sm-4">
<div class="row">
<div class="col-sm-4">
<p id="Problems" style="font-weight: bold; font-size: large; word-break: keep-all; white-space: nowrap;">+ Problems</p>
</div>
<div class="col-lg-3 col-sm-4">
<p id="PS" style="font-weight: bold; font-size: large; word-break: keep-all; white-space: nowrap;">Contest*{{PS}}</p>
</div>
<div class="col-lg-3 col-sm-4">
<p id="PT" style="font-weight: bold; font-size: large; word-break: keep-all; white-space: nowrap;">Training*{{PT}}</p>
</div>
</div>
</div>
<!--<div class="col-sm-2">-->
<!--<p id="Problems" style="font-weight: bold; font-size: large;">+ Problems</p>-->
<!--</div>-->
<!--<div class="col-sm-1">-->
<!--<p id="PS" style="font-weight: bold; font-size: large;">Contest*{{PS}}</p>-->
<!--</div>-->
<!--<div class="col-sm-1">-->
<!--<p id="PT" style="font-weight: bold; font-size: large;">Training*{{PT}}</p>-->
<!--</div>-->
</div>
<div class="row">
<!--<div class="col-sm-2"></div>-->
<div class="col-sm-1">
<ul class="rank">
<li ng-style="{background:color($index+1)}" ng-repeat="teamName in teamNames">{{$index+1}}</li>
</ul>
</div>
<div class="col-sm-2">
<ul class="list" data-as-sortable data-ng-model="teamList">
<li ng-repeat="team in teamList" data-as-sortable-item>
<div data-as-sortable-item-handle>
{{team}}
</div>
</li>
</ul>
<button ng-click="calc();" class="btn btn-default">根据排名计算积分</button>
</div>
<div class="col-sm-1"></div>
<div class="col-sm-2">
<ul class="team">
<li style="background-color: #f5f5f5;" ng-repeat="team in result">{{team.name}}</li>
</ul>
<!--<button ng-click="drawChart();" class="btn btn-default">画出统计图表</button>-->
<input type="checkbox" ng-model="draw">画出变化图</input>
</div>
<div class="col-sm-2">
<ul class="rating">
<li style="background-color: #f5f5f5;" ng-repeat="team in result">{{team.rating}}</li>
</ul>
<button ng-click="downloadRank();" class="btn btn-default">保存</button>
</div>
<!--<div class="row">-->
<!--<div class="col-sm-3"></div>-->
<div class="col-sm-3">
<table class="table table-bordered" style="margin-top: 6px; margin-bottom: 5px;">
<!--<thead>-->
<!--<tr>-->
<!--<td>Team</td>-->
<!--<td>Problems</td>-->
<!--</tr>-->
<!--</thead>-->
<tbody>
<tr style="background-color: #f5f5f5;" ng-repeat="team in teamNames">
<td class="team">{{team}}</td>
<td class="rating">
<input type="number" ng-model="problemCount[$index]" ng-change="update();" title="" style="width: 60px;">
</td>
<td class="rating">
<input type="number" ng-model="trainingCount[$index]" ng-change="update();" title="" style="width: 60px;">
</td>
</tr>
</tbody>
</table>
<button ng-click="reset();" class="btn btn-danger">重置</button>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div id="panel" ng-show="draw"></div>
</div>
</div>
</div>
</div>
</body>
</html>