Skip to content
Snippets Groups Projects
Commit 947cd09a authored by TonyFord's avatar TonyFord
Browse files

add spielerattribute

parent 7bdfb73d
No related branches found
No related tags found
No related merge requests found
...@@ -165,7 +165,11 @@ if( !empty($csv) ){ ...@@ -165,7 +165,11 @@ if( !empty($csv) ){
function(v,i){ function(v,i){
var team=TEAMS.filter((a) => ( a.nt == v.nt ))[0];
if( team == undefined ) return;
if( v.nt == 'xx' ) return; if( v.nt == 'xx' ) return;
var tr = document.createElement('tr'); var tr = document.createElement('tr');
var td = document.createElement('td'); var td = document.createElement('td');
...@@ -234,9 +238,19 @@ if( !empty($csv) ){ ...@@ -234,9 +238,19 @@ if( !empty($csv) ){
var a = document.createElement('a'); var a = document.createElement('a');
a.href='https://ultrasoccer.de/playerprofile/?id='+v.id; a.href='https://ultrasoccer.de/playerprofile/?id='+v.id;
a.target='ultrasoccer'; a.target='ultrasoccer';
if( v.attr != '' ){
Object.values( v.attr.split(/ /g) ).forEach(
function(w){
var attr = document.createElement('i');
attr.classList='fas '+w;
$(td).append(attr);
}
)
}
$(a).text(v.name); $(a).text(v.name);
var span=document.createElement('span'); var span=document.createElement('span');
$(span).text(' ('+v.age+')'); $(span).text(' ('+v.age+')');
$(td).append(a); $(td).append(a);
$(td).append(span); $(td).append(span);
$(tr).append(td); $(tr).append(td);
......
...@@ -355,6 +355,9 @@ td.n { color: firebrick; } ...@@ -355,6 +355,9 @@ td.n { color: firebrick; }
tr:nth-child(odd){ tr:nth-child(odd){
background: whitesmoke; background: whitesmoke;
} }
i.fas {
padding-right:5px;
}
} }
.mono { .mono {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment