Added server time to game hall.
This commit is contained in:
@@ -9,6 +9,8 @@ public interface TournamentDAO {
|
||||
public void addTournament(String tournamentId, String draftType, String tournamentName, String format,
|
||||
CollectionType collectionType, Tournament.Stage stage, String pairingMechanism, String prizeScheme, Date start);
|
||||
|
||||
// public List<TournamentQueueInfo> getFutureScheduledTournaments();
|
||||
|
||||
public List<TournamentInfo> getUnfinishedTournaments();
|
||||
|
||||
public List<TournamentInfo> getFinishedTournamentsSince(long time);
|
||||
|
||||
@@ -9,6 +9,10 @@ body {
|
||||
background-color: #666666;
|
||||
}
|
||||
|
||||
.serverTime {
|
||||
border: 1px solid #ffffff;
|
||||
}
|
||||
|
||||
.leagueName, #stats .period, .tournamentName, .playerStatHeader {
|
||||
font-size: 200%;
|
||||
font-weight: bolder;
|
||||
|
||||
@@ -20,6 +20,7 @@ response.setDateHeader ("Expires", -1);
|
||||
|
||||
$(document).ready(
|
||||
function () {
|
||||
$("#latestNews").append("<div class='serverTime' style='float: right'></div>");
|
||||
$("#latestNews").append("<b>All sets are available to play.</b> "
|
||||
+ "If you find any problems with specific card or rules in general, please report it <a href='http://lotrtcgdb.com/forums/index.php/topic,7592.0.html'>at the TLHH forums</a>.");
|
||||
|
||||
|
||||
@@ -342,6 +342,10 @@ var GempLotrHallUI = Class.extend({
|
||||
if (motd != null)
|
||||
$("#motd").html("<b>MOTD:</b> " + motd);
|
||||
|
||||
var serverTime = root.getAttribute("serverTime");
|
||||
if (serverTime != null)
|
||||
$(".serverTime").text("Server time: "+serverTime);
|
||||
|
||||
var busy = root.getAttribute("busy") == "true";
|
||||
|
||||
var queues = root.getElementsByTagName("queue");
|
||||
|
||||
Reference in New Issue
Block a user