Skip to content
Permalink
Browse files

Show on the play / draw

  • Loading branch information...
Manuel-777 committed May 11, 2019
1 parent e310d6e commit ee3fdbab017118dfd12699e945e615dfaaa529dc
BIN +2.97 KB images/onthedraw.png
Binary file not shown.
Binary file not shown.
@@ -1823,6 +1823,7 @@ function saveMatch(matchId) {
});

var match = {};
match.onThePlay = currentMatch.onThePlay;
match.id = currentMatch.matchId;
match.duration = currentMatch.matchTime;
match.opponent = {
@@ -300,6 +300,16 @@ function renderData(container, index) {
jQuery.data(t, "autocomplete", tags);
}

if (match.onThePlay) {
let onThePlay = false;
if (match.player.seat == match.onThePlay) {
onThePlay = true;
}
let div = createDivision([onThePlay ? "ontheplay" : "onthedraw"]);
div.title = onThePlay ? "On the play" : "On the draw";
flr.appendChild(div);
}

d = createDivision(
[
"list_match_result",
@@ -495,6 +495,20 @@ span.top_nav_item_text {
color: rgba(183, 200, 158, 1);
}

.ontheplay {
width: 24px;
height: 24px;
margin: auto 6px auto -6px;
background: url(../images/ontheplay.png);
}

.onthedraw {
width: 24px;
height: 24px;
margin: auto 6px auto -6px;
background: url(../images/onthedraw.png);
}

.list_draft_share {
cursor: pointer;
opacity: 0.75;

0 comments on commit ee3fdba

Please sign in to comment.
You can’t perform that action at this time.