Skip to content

Commit

Permalink
Merge pull request #7 from StolpnerA/featureVisualDifference
Browse files Browse the repository at this point in the history
edite name class
  • Loading branch information
StolpnerA authored Sep 28, 2017
2 parents 317be8b + 7c541ff commit 515b7c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/script/components/IndexPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ class IndexPage {
let dateFrom = new Date(elem.dateFrom);
let dateTo = new Date(elem.dateTo);
if (dateNow < dateFrom) {
classForTr = "yellow";
classForTr = "upcoming";
} else if (dateNow >= dateFrom && dateNow <= dateTo) {
classForTr = "green";
} else classForTr = "red";
classForTr = "present";
} else classForTr = "past";
tbody += `
<tr class="${classForTr}">
<th scope="row">${element.id}</th>
Expand Down
6 changes: 3 additions & 3 deletions src/style/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
.info {
margin-top: 20px;
}
.yellow {
.upcoming {
background-color: #fff3cd !important;
}
.green {
.present {
background-color: #d4edda !important;
}
.red {
.past {
background-color: #f8d7da !important;
}

0 comments on commit 515b7c0

Please sign in to comment.