forked from Simnation/Main
ed
This commit is contained in:
parent
60d3bab09d
commit
028317e2ec
5 changed files with 324 additions and 33 deletions
|
@ -63,6 +63,21 @@ function showLicense(data) {
|
|||
container.classList.remove('hidden');
|
||||
}
|
||||
|
||||
// Foto anzeigen
|
||||
const photoImg = document.getElementById('player-photo');
|
||||
const photoPlaceholder = document.getElementById('photo-placeholder');
|
||||
|
||||
if (data.license.photo_url && data.license.photo_url !== '') {
|
||||
// Echtes Foto anzeigen
|
||||
photoImg.src = data.license.photo_url;
|
||||
photoImg.classList.remove('hidden');
|
||||
photoPlaceholder.classList.add('hidden');
|
||||
} else {
|
||||
// Platzhalter anzeigen
|
||||
photoImg.classList.add('hidden');
|
||||
photoPlaceholder.classList.remove('hidden');
|
||||
}
|
||||
|
||||
// Geschlecht formatieren
|
||||
function formatGender(gender) {
|
||||
const genderMap = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue