diff --git a/html/_layouts/default.php b/html/_layouts/default.php index c33ecca84619ee55f979fe07f3d648c66d8cd136..f3158cef706ab4097c9efc0f69223776ce2eb9be 100644 --- a/html/_layouts/default.php +++ b/html/_layouts/default.php @@ -165,7 +165,11 @@ if( !empty($csv) ){ function(v,i){ + var team=TEAMS.filter((a) => ( a.nt == v.nt ))[0]; + if( team == undefined ) return; + if( v.nt == 'xx' ) return; + var tr = document.createElement('tr'); var td = document.createElement('td'); @@ -234,9 +238,19 @@ if( !empty($csv) ){ var a = document.createElement('a'); a.href='https://ultrasoccer.de/playerprofile/?id='+v.id; 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); var span=document.createElement('span'); $(span).text(' ('+v.age+')'); + $(td).append(a); $(td).append(span); $(tr).append(td); diff --git a/html/assets/css/custom.scss b/html/assets/css/custom.scss index 84bfd101ccc9dd3d8d0c66dd0149f6cc746b12c9..e97d47f02bebee0e9cfa87927287e68d22aa3005 100644 --- a/html/assets/css/custom.scss +++ b/html/assets/css/custom.scss @@ -355,6 +355,9 @@ td.n { color: firebrick; } tr:nth-child(odd){ background: whitesmoke; } + i.fas { + padding-right:5px; + } } .mono {