diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/css/gemp-001/hall.css b/gemp-lotr/gemp-lotr-async/src/main/web/css/gemp-001/hall.css index fdbd593f2..34e92712f 100644 --- a/gemp-lotr/gemp-lotr-async/src/main/web/css/gemp-001/hall.css +++ b/gemp-lotr/gemp-lotr-async/src/main/web/css/gemp-001/hall.css @@ -1,174 +1,175 @@ -body { - font-size: 12px; - background-color: #000000; -} - -.eventHeader { - font-size: 120%; - font-weight: bolder; - background-color: #666666; -} - -.serverTime { - border: 1px solid #ffffff; -} - -.leagueName, #stats .period, .tournamentName, .playerStatHeader { - font-size: 200%; - font-weight: bolder; -} - -.serieName { - font-size: 150%; - font-weight: bolder; -} - -.borderOverlay { - border: 2px solid #000000; -} - -.foilOverlay { - opacity: 0.2; -} - -.cardHint { - display: inline; - color: #6f6fff; - cursor: pointer; -} - -.prizeHint { - display: inline; - color: #6f6fff; - cursor: pointer; -} - -.clickableFormat { - cursor: pointer; - color: #6f6fff; -} - -.pocket { - background-color: #000000; - border: 1px solid #ffffff; - color: #ffffff; - font-size: 90%; - font-weight: bolder; - text-align: right; - opacity: 1; -} - -.cardCount { - width: 20px; - height: 18px; - background-color: #000000; - color: #ffffff; - font-size: 120%; - font-weight: bolder; - display: table-cell; - text-align: center; - vertical-align: middle; - opacity: 0.7; -} - -.tableFormatName { - text-align: center; - font-weight: bold; - font-size: 100%; -} - -.tableStatus { - text-align: center; - font-style: italic; - font-size: 100%; -} - -.tablePlayer { - text-align: center; -} - -.winningPlayer { - font-weight: bold; - font-size: 110%; -} - -.losingPlayer { - font-size: 80%; -} - -.chatMessage { - color: #ffffff; -} - -.systemMessage { - color: #5f5f5f; -} - -.warningMessage { - color: #ff0000; -} - -.chatUser { - color: #ffffff; -} - -.systemMessage > .timestamp { - display: inline; - color: #5f5f5f; -} - -.timestamp { - display: inline; - color: #cfcfcf; -} - -#disclaimer { - color: #ffffff; - font-size: 80%; -} - -#latestNews { - color: #ffffff; - font-size: 90%; -} - -#motd { - color: #ffffff; - font-size: 90%; -} - -table.tables { - width: 100%; -} - -table.tables td, table.tables th { - padding: 2px; - border: 1px solid white; -} - -.ui-tabs-nav li { - font-size: 70%; -} - -.ui-button-text-only .ui-button-text { - font-size: 70%; - padding: .2em .5em; -} - -.standings td, .standings th { - padding: 2px; - border: 1px solid white; -} - -.gameHistory td, .gameHistory th { - padding: 2px; - border: 1px solid white; -} - -.userList { - border-left: 1px solid #FFFFFF; -} - -tr.played { - background-color: #990000; +body { + font-size: 12px; + background-color: #000000; +} + +.eventHeader { + font-size: 120%; + font-weight: bolder; + background-color: #666666; + cursor: pointer; +} + +.serverTime { + border: 1px solid #ffffff; +} + +.leagueName, #stats .period, .tournamentName, .playerStatHeader { + font-size: 200%; + font-weight: bolder; +} + +.serieName { + font-size: 150%; + font-weight: bolder; +} + +.borderOverlay { + border: 2px solid #000000; +} + +.foilOverlay { + opacity: 0.2; +} + +.cardHint { + display: inline; + color: #6f6fff; + cursor: pointer; +} + +.prizeHint { + display: inline; + color: #6f6fff; + cursor: pointer; +} + +.clickableFormat { + cursor: pointer; + color: #6f6fff; +} + +.pocket { + background-color: #000000; + border: 1px solid #ffffff; + color: #ffffff; + font-size: 90%; + font-weight: bolder; + text-align: right; + opacity: 1; +} + +.cardCount { + width: 20px; + height: 18px; + background-color: #000000; + color: #ffffff; + font-size: 120%; + font-weight: bolder; + display: table-cell; + text-align: center; + vertical-align: middle; + opacity: 0.7; +} + +.tableFormatName { + text-align: center; + font-weight: bold; + font-size: 100%; +} + +.tableStatus { + text-align: center; + font-style: italic; + font-size: 100%; +} + +.tablePlayer { + text-align: center; +} + +.winningPlayer { + font-weight: bold; + font-size: 110%; +} + +.losingPlayer { + font-size: 80%; +} + +.chatMessage { + color: #ffffff; +} + +.systemMessage { + color: #5f5f5f; +} + +.warningMessage { + color: #ff0000; +} + +.chatUser { + color: #ffffff; +} + +.systemMessage > .timestamp { + display: inline; + color: #5f5f5f; +} + +.timestamp { + display: inline; + color: #cfcfcf; +} + +#disclaimer { + color: #ffffff; + font-size: 80%; +} + +#latestNews { + color: #ffffff; + font-size: 90%; +} + +#motd { + color: #ffffff; + font-size: 90%; +} + +table.tables { + width: 100%; +} + +table.tables td, table.tables th { + padding: 2px; + border: 1px solid white; +} + +.ui-tabs-nav li { + font-size: 70%; +} + +.ui-button-text-only .ui-button-text { + font-size: 70%; + padding: .2em .5em; +} + +.standings td, .standings th { + padding: 2px; + border: 1px solid white; +} + +.gameHistory td, .gameHistory th { + padding: 2px; + border: 1px solid white; +} + +.userList { + border-left: 1px solid #FFFFFF; +} + +tr.played { + background-color: #990000; } \ No newline at end of file diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/hallUi.js b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/hallUi.js index 91fe25a54..78f69a646 100644 --- a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/hallUi.js +++ b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/hallUi.js @@ -120,28 +120,15 @@ var GempLotrHallUI = Class.extend({ var content = $("
"); - var toggleContent = $("
Toggle tournament queues
").button({ - icons: { - primary: "ui-icon-circlesmall-minus" - }, - text: false - }); - var that = this; var toggle = function() { - if (toggleContent.button("option", "icons")["primary"] == "ui-icon-circlesmall-minus") - toggleContent.button("option", "icons", {primary: "ui-icon-circlesmall-plus"}); - else - toggleContent.button("option", "icons", {primary: "ui-icon-circlesmall-minus"}); content.toggle("blind", {}, 200); that.updateHallSettings(); }; - toggleContent.css({width: "13px", height: "15px"}); - toggleContent.click(toggle); - header.append(toggleContent); - header.append(" Tournament queues"); + header.append("Tournament queues"); header.append(" (0)"); + header.click(toggle); var table = $("
"); table.append("FormatCollectionQueue nameStartsSystemPlayersCostPrizesActions"); @@ -150,9 +137,10 @@ var GempLotrHallUI = Class.extend({ this.tablesDiv.append(header); this.tablesDiv.append(content); - if (!displayed) { - toggleContent.button("option", "icons", {primary: "ui-icon-circlesmall-plus"}); - content.css({"display":"none"}); + if (displayed) { + content.show(); + } else { + content.hide(); } }, @@ -161,27 +149,14 @@ var GempLotrHallUI = Class.extend({ var content = $("
"); - var toggleContent = $("
Toggle tournaments in progress
").button({ - icons: { - primary: "ui-icon-circlesmall-minus" - }, - text: false - }); - var that = this; var toggle = function() { - if (toggleContent.button("option", "icons")["primary"] == "ui-icon-circlesmall-minus") - toggleContent.button("option", "icons", {primary: "ui-icon-circlesmall-plus"}); - else - toggleContent.button("option", "icons", {primary: "ui-icon-circlesmall-minus"}); content.toggle("blind", {}, 200); that.updateHallSettings(); }; - toggleContent.css({width: "13px", height: "15px"}); - toggleContent.click(toggle); - header.append(toggleContent); - header.append(" Tournaments in progress"); + header.append("Tournaments in progress"); header.append(" (0)"); + header.click(toggle); var table = $("
"); table.append("FormatCollectionTournament nameSystemStageRoundPlayersActions"); @@ -190,9 +165,10 @@ var GempLotrHallUI = Class.extend({ this.tablesDiv.append(header); this.tablesDiv.append(content); - if (!displayed) { - toggleContent.button("option", "icons", {primary: "ui-icon-circlesmall-plus"}); - content.css({"display":"none"}); + if (displayed) { + content.show(); + } else { + content.hide(); } }, @@ -201,27 +177,14 @@ var GempLotrHallUI = Class.extend({ var content = $("
"); - var toggleContent = $("
Toggle waiting tables
").button({ - icons: { - primary: "ui-icon-circlesmall-minus" - }, - text: false - }); - var that = this; var toggle = function() { - if (toggleContent.button("option", "icons")["primary"] == "ui-icon-circlesmall-minus") - toggleContent.button("option", "icons", {primary: "ui-icon-circlesmall-plus"}); - else - toggleContent.button("option", "icons", {primary: "ui-icon-circlesmall-minus"}); content.toggle("blind", {}, 200); that.updateHallSettings(); }; - toggleContent.css({width: "13px", height: "15px"}); - toggleContent.click(toggle); - header.append(toggleContent); - header.append(" Waiting tables"); + header.append("Waiting tables"); header.append(" (0)"); + header.click(toggle); var table = $("
"); table.append("FormatTournamentStatusPlayersActions"); @@ -230,9 +193,10 @@ var GempLotrHallUI = Class.extend({ this.tablesDiv.append(header); this.tablesDiv.append(content); - if (!displayed) { - toggleContent.button("option", "icons", {primary: "ui-icon-circlesmall-plus"}); - content.css({"display":"none"}); + if (displayed) { + content.show(); + } else { + content.hide(); } }, @@ -241,27 +205,14 @@ var GempLotrHallUI = Class.extend({ var content = $("
"); - var toggleContent = $("
Toggle playing tables
").button({ - icons: { - primary: "ui-icon-circlesmall-minus" - }, - text: false - }); - var that = this; var toggle = function() { - if (toggleContent.button("option", "icons")["primary"] == "ui-icon-circlesmall-minus") - toggleContent.button("option", "icons", {primary: "ui-icon-circlesmall-plus"}); - else - toggleContent.button("option", "icons", {primary: "ui-icon-circlesmall-minus"}); content.toggle("blind", {}, 200); that.updateHallSettings(); }; - toggleContent.css({width: "13px", height: "15px"}); - toggleContent.click(toggle); - header.append(toggleContent); - header.append(" Playing tables"); + header.append("Playing tables"); header.append(" (0)"); + header.click(toggle); var table = $("
"); table.append("FormatTournamentStatusPlayersActions"); @@ -270,9 +221,10 @@ var GempLotrHallUI = Class.extend({ this.tablesDiv.append(header); this.tablesDiv.append(content); - if (!displayed) { - toggleContent.button("option", "icons", {primary: "ui-icon-circlesmall-plus"}); - content.css({"display":"none"}); + if (displayed) { + content.show(); + } else { + content.hide(); } }, @@ -281,27 +233,14 @@ var GempLotrHallUI = Class.extend({ var content = $("
"); - var toggleContent = $("
Toggle finished tables
").button({ - icons: { - primary: "ui-icon-circlesmall-minus" - }, - text: false - }); - var that = this; var toggle = function() { - if (toggleContent.button("option", "icons")["primary"] == "ui-icon-circlesmall-minus") - toggleContent.button("option", "icons", {primary: "ui-icon-circlesmall-plus"}); - else - toggleContent.button("option", "icons", {primary: "ui-icon-circlesmall-minus"}); content.toggle("blind", {}, 200); that.updateHallSettings(); }; - toggleContent.css({width: "13px", height: "15px"}); - toggleContent.click(toggle); - header.append(toggleContent); - header.append(" Finished tables"); + header.append("Finished tables"); header.append(" (0)"); + header.click(toggle); var table = $("
"); table.append("FormatTournamentStatusPlayersWinner"); @@ -310,9 +249,10 @@ var GempLotrHallUI = Class.extend({ this.tablesDiv.append(header); this.tablesDiv.append(content); - if (!displayed) { - toggleContent.button("option", "icons", {primary: "ui-icon-circlesmall-plus"}); - content.css({"display":"none"}); + if (displayed) { + content.show(); + } else { + content.hide(); } },