Permalink
Browse files

country flags

  • Loading branch information...
Manuel-777 committed Jan 13, 2019
1 parent b6cef46 commit c2696ccf9ee7604b42888a9f968cad255c0e6e75
BIN +46 Bytes window_main/blank.gif
Binary file not shown.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
BIN +78.2 KB window_main/flags.png
Binary file not shown.
@@ -2523,6 +2523,12 @@ a:hover {
margin-bottom: 2px;
}

.tou_flag {
margin-left: 6px;
align-self: center;
width: 19px !important;
}

.swap_icon {
align-self: center;
width: 28px;
@@ -4,6 +4,7 @@
<meta charset="utf-8">
<title>MTG Arena Tool</title>
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="flags.min.css">
<link rel="stylesheet" href="../shared/shared.css">
<script src="../shared/jquery-3.3.1.min.js" onload="window.$ = window.jQuery = module.exports;"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
@@ -175,6 +175,7 @@ let stateClockInterval = null;
let lastSeenInterval = null;

function open_tournament(t) {
console.log(t);
tou = t;
let mainDiv = $("#ux_1");
mainDiv.html('');
@@ -506,7 +507,9 @@ function open_tournament(t) {
let s = '';
if (pname == userName) s = 'style="color: rgba(183, 200, 158, 1);"';

let str = `<div ${s} class="tou_stand_name">${pname.slice(0, -6)} ${tou.drops.indexOf(pname) !== -1 ? ' (drop)' : ''}</div>
let str = `
<img src="blank.gif" class="flag tou_flag flag-${tou.flags[pname].toLowerCase()}" />
<div ${s} class="tou_stand_name">${pname.slice(0, -6)} ${tou.drops.indexOf(pname) !== -1 ? ' (drop)' : ''}</div>
<div class="tou_stand_cell">${stat.mp}</div>
<div class="tou_stand_cell">${stat.w}-${stat.d}-${stat.l}</div>
<div class="tou_stand_cell">${stat.rpl}</div>

0 comments on commit c2696cc

Please sign in to comment.