mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-02 09:09:37 +00:00
some minor css fixes
This commit is contained in:
1 parent
760b9681f1
commit
35dbd8033d
2 files changed
+13
-20
No files matched your search
@@ -18,7 +18,7 @@
|
||||
<script type="text/javascript" src="<%= request.getContextPath() %>/js/jquery.tablesorter.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$("#leaderboardTable").tablesorter();
|
||||
$("#leaderboardTable").tablesorter();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
@@ -40,7 +40,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="50">Rank</th>
|
||||
<th>Name</th>
|
||||
<th>Team</th>
|
||||
<% for (RaceColumn raceColumn : raceColumns) { %>
|
||||
<th><%= raceColumn.getName() %></th>
|
||||
<% } %>
|
||||
@@ -53,14 +53,13 @@
|
||||
%>
|
||||
<tr>
|
||||
<td><%= totalRank %></td>
|
||||
<td><img src="<%= imgFlagPath + nationality.getCountryCode().getTwoLetterISOCode().toLowerCase() + ".png"%>" /> <%= competitor.getName() %></td>
|
||||
<td><img src="<%= imgFlagPath + nationality.getCountryCode().getTwoLetterISOCode().toLowerCase() + ".png"%>" /> <%= competitor.getName() %></td>
|
||||
<% for (RaceColumn raceColumn : raceColumns) {
|
||||
List<Competitor> rankedCompetitorsForColumn = rankedCompetitorsPerColumn.get(raceColumn);
|
||||
if (rankedCompetitorsForColumn == null) {
|
||||
rankedCompetitorsForColumn = leaderboard.getCompetitorsFromBestToWorst(raceColumn, timePoint);
|
||||
rankedCompetitorsPerColumn.put(raceColumn, rankedCompetitorsForColumn);
|
||||
}
|
||||
Fleet fleetOfCompetitor = raceColumn.getFleetOfCompetitor(competitor);
|
||||
Double netPoints = leaderboard.getNetPoints(competitor, raceColumn, timePoint);
|
||||
Double totalPoints = leaderboard.getTotalPoints(competitor, raceColumn, timePoint);
|
||||
MaxPointsReason maxPointsReason = leaderboard.getMaxPointsReason(competitor, raceColumn, timePoint);
|
||||
@@ -77,18 +76,7 @@
|
||||
scoreFormat.setMinimumFractionDigits(digitPresicion);
|
||||
scoreFormat.setMaximumFractionDigits(digitPresicion);
|
||||
|
||||
String IS_LIVE_TEXT_COLOR = "#1876B3";
|
||||
String DEFAULT_TEXT_COLOR = "#000000";
|
||||
|
||||
String racePointsStyleClasses = "";
|
||||
|
||||
boolean isLive = false; //isLive(entry.fleet);
|
||||
|
||||
String textColor = isLive ? IS_LIVE_TEXT_COLOR : DEFAULT_TEXT_COLOR;
|
||||
|
||||
if (fleetOfCompetitor != null && fleetOfCompetitor.getColor() != null) {
|
||||
// add the fleet color as border here
|
||||
}
|
||||
|
||||
String racePoints = " ";
|
||||
if (maxPointsReason == null || maxPointsReason == MaxPointsReason.NONE) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* tables */
|
||||
/* table sorter table */
|
||||
table.tablesorter {
|
||||
font-family:arial;
|
||||
background-color: #CDCDCD;
|
||||
@@ -7,6 +7,7 @@ table.tablesorter {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table.tablesorter thead tr th, table.tablesorter tfoot tr th {
|
||||
background-color: #4d4d4d;
|
||||
border-bottom: 1px solid #4d4d4d;
|
||||
@@ -15,14 +16,15 @@ table.tablesorter thead tr th, table.tablesorter tfoot tr th {
|
||||
color: #fff;
|
||||
border-right: 1px solid #9c9c9c;
|
||||
}
|
||||
|
||||
table.tablesorter thead tr .header {
|
||||
background-image: url(bg.gif);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center right;
|
||||
cursor: pointer;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
|
||||
table.tablesorter tbody td {
|
||||
color: #fff;
|
||||
padding: 0 4px 4px 15px;
|
||||
@@ -35,19 +37,22 @@ table.tablesorter tbody td {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table.tablesorter tbody td:last-child, table.tablesorter thead tr th:last-child, table.tablesorter tfoot tr th:last-child {
|
||||
border: none;
|
||||
table.tablesorter tbody tr:last-child td {
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
table.tablesorter tbody tr.odd td {
|
||||
background-color:#F0F0F6;
|
||||
}
|
||||
table.tablesorter thead tr .headerSortUp {
|
||||
|
||||
table.tablesorter thead tr .headerSortUp {
|
||||
background-image: url(asc.gif);
|
||||
}
|
||||
|
||||
table.tablesorter thead tr .headerSortDown {
|
||||
background-image: url(desc.gif);
|
||||
}
|
||||
|
||||
table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp {
|
||||
background-color: #949494;
|
||||
}
|
||||
Reference in new issue
Block a user