Permalink
Browse files

history time and events

  • Loading branch information...
Manuel-777 committed Dec 22, 2018
1 parent 7a13555 commit 3235dd2b46d118700dd2dcb7b0786b614db1f354
Showing with 8 additions and 3 deletions.
  1. +5 −0 window_main/history.js
  2. +3 −3 window_main/renderer.js
@@ -186,6 +186,11 @@ function open_history_tab(loadMore) {
d.innerHTML = match.playerDeck.name;
flt.appendChild(d);

d = document.createElement("div");
d.classList.add("list_deck_name_it");
d.innerHTML = getReadableEvent(match.eventId);
flt.appendChild(d);

match.playerDeck.colors.forEach(function(color) {
var m = document.createElement("div");
m.classList.add("mana_s20");
@@ -1030,10 +1030,10 @@ function expandEvent(_course, expandDiv) {
try {
tile.style.backgroundImage = "url(https://img.scryfall.com/cards"+cardsDb.get(tileGrpid).images["art_crop"]+")";
}
catch (e) {
catch (e) {timeSince(new Date(match.date))+' ago - '+toMMSS(match.duration)
console.error(e)
}
fltl.appendChild(tile);
//fltl.appendChild(tile);

var d = document.createElement("div");
d.classList.add("list_deck_name");
@@ -1063,7 +1063,7 @@ function expandEvent(_course, expandDiv) {

d = document.createElement("div");
d.classList.add("list_match_time");
d.innerHTML = timeSince(new Date(match.date))+' ago.';
d.innerHTML = timeSince(new Date(match.date))+' ago - '+toMMSS(match.duration);
fcb.appendChild(d);

var cc = get_deck_colors(match.oppDeck);

0 comments on commit 3235dd2

Please sign in to comment.