File tree Expand file tree Collapse file tree 4 files changed +25
-5
lines changed Expand file tree Collapse file tree 4 files changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -914,6 +914,10 @@ var DataStore = new function () {
914
914
self . update_network_status ( 0 ) ;
915
915
} ) ;
916
916
917
+ self . team_create . add ( function ( ) {
918
+ $ ( document . body ) . removeClass ( "teams-hidden" ) ;
919
+ } ) ;
920
+
917
921
918
922
////// Sorted contest list
919
923
Original file line number Diff line number Diff line change @@ -265,6 +265,10 @@ abbr {
265
265
outline : 0 ;
266
266
}
267
267
268
+ .teams-hidden # TeamSearch_input {
269
+ display : none;
270
+ }
271
+
268
272
# TeamSearch_bg {
269
273
display : none;
270
274
position : absolute;
@@ -404,6 +408,10 @@ abbr {
404
408
width : calc (2em + 20px );
405
409
}
406
410
411
+ .teams-hidden # Scoreboard .team {
412
+ display : none;
413
+ }
414
+
407
415
# Scoreboard_head tr {
408
416
height : 2.5em ;
409
417
}
Original file line number Diff line number Diff line change 29
29
< script src ="Ranking.js "> </ script >
30
30
< title > Ranking</ title >
31
31
</ head >
32
- < body >
32
+ < body class =" teams-hidden " >
33
33
< div id ="OuterFrame ">
34
34
< div id ="LogoPanel ">
35
35
< img src ="logo " alt ="Logo " />
Original file line number Diff line number Diff line change @@ -176,8 +176,12 @@ var Scoreboard = new function () {
176
176
<col class=\"score contest\" data-contest=\"" + c_id + "\" data-sort_key=\"c_" + c_id + "\"/> <col/><col/><col/>" ;
177
177
}
178
178
179
- result += " \
179
+ self . show_global_score = contests . length > 1 ;
180
+
181
+ if ( self . show_global_score ) {
182
+ result += " \
180
183
<col class=\"score global\" data-sort_key=\"global\"/> <col/><col/><col/><col/>" ;
184
+ }
181
185
182
186
return result ;
183
187
} ;
@@ -212,9 +216,11 @@ var Scoreboard = new function () {
212
216
<th colspan=\"4\" class=\"score contest\" data-contest=\"" + c_id + "\" data-sort_key=\"c_" + c_id + "\"><abbr title=\"" + escapeHTML ( contest [ "name" ] ) + "\">" + escapeHTML ( contest [ "name" ] ) + "</abbr></th>" ;
213
217
}
214
218
215
- result += " \
219
+ if ( self . show_global_score ) {
220
+ result += " \
216
221
<th colspan=\"5\" class=\"score global\" data-sort_key=\"global\">Global</th> \
217
222
</tr>" ;
223
+ }
218
224
219
225
return result ;
220
226
} ;
@@ -269,10 +275,12 @@ var Scoreboard = new function () {
269
275
<td colspan=\"4\" class=\"score contest " + score_class + "\" data-contest=\"" + c_id + "\" data-sort_key=\"c_" + c_id + "\">" + round_to_str ( user [ "c_" + c_id ] , contest [ "score_precision" ] ) + "</td>" ;
270
276
}
271
277
272
- var score_class = self . get_score_class ( user [ "global" ] , DataStore . global_max_score ) ;
273
- result += " \
278
+ if ( self . show_global_score ) {
279
+ var score_class = self . get_score_class ( user [ "global" ] , DataStore . global_max_score ) ;
280
+ result += " \
274
281
<td colspan=\"5\" class=\"score global " + score_class + "\" data-sort_key=\"global\">" + round_to_str ( user [ "global" ] , DataStore . global_score_precision ) + "</td> \
275
282
</tr>" ;
283
+ }
276
284
277
285
return result ;
278
286
} ;
You can’t perform that action at this time.
0 commit comments