function responseSavedTeamById(team) {
    let logoUri = team.crestUrl;
    logoUri = logoUri.replace(/^http:\/\//i, 'https://');
    let teamHTML = `
    <div class="card">
        <div class="card-image waves-effect waves-block waves-light">
            <img src="${logoUri}" class="logo-detail-image" alt="Logo" />
        </div>
        <div class="card-content">
            <span class="card-title center-align">${team.name} DUAR</span>
            <table>
                <tbody>
                    <tr>
                        <td>Address</td>
                        <td>${team.address}</td>
                    </tr>
                    <tr>
                        <td>Phone</td>
                        <td>${team.phone}</td>
                    </tr>
                    <tr>
                        <td>Website</td>
                        <td>${team.website}</td>
                    </tr>
                    <tr>
                        <td>Email</td>
                        <td>${team.email}</td>
                    </tr>
                    <tr>
                        <td>Club Colors</td>
                        <td>${team.clubColors}</td>
                    </tr>
                    <tr>
                        <td>Venue</td>
                        <td>${team.venue}</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    `;
    // Sisipkan komponen card ke dalam elemen dengan id #
    document.getElementById("body-content").innerHTML = teamHTML;
}
// Blok kode response dari saved team by id
Blok kode response dari saved team by id
Blok kode response dari saved team by id
function responseSavedTeamById(team) {
    let logoUri = team.crestUrl;
    logoUri = logoUri.replace(/^http:\/\//i, 'https://');
    let teamHTML = `
    <div class="card">
        <div class="card-image waves-effect waves-block waves-light">
            <img src="${logoUri}" class="logo-detail-image" alt="Logo" />
        </div>
        <div class="card-content">
            <span class="card-title center-align">${team.name} DUAR</span>
            <table>
                <tbody>
                    <tr>
                        <td>Address</td>
                        <td>${team.address}</td>
                    </tr>
                    <tr>
                        <td>Phone</td>
                        <td>${team.phone}</td>
                    </tr>
                    <tr>
                        <td>Website</td>
                        <td>${team.website}</td>
                    </tr>
                    <tr>
                        <td>Email</td>
                        <td>${team.email}</td>
                    </tr>
                    <tr>
                        <td>Club Colors</td>
                        <td>${team.clubColors}</td>
                    </tr>
                    <tr>
                        <td>Venue</td>
                        <td>${team.venue}</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    `;
    document.getElementById("body-content").innerHTML = teamHTML;
}
function responseSavedTeamById ( team ) { let logoUri = team . crestUrl ; logoUri = logoUri . replace ( / ^http:\/\/ / i , 'https://' ) ; let teamHTML = ` ${ logoUri } ${ team . name } ${ team . address } ${ team . phone } ${ team . website } ${ team . email } ${ team . clubColors } ${ team . venue } ` ; document . getElementById ( "body-content" ) . innerHTML = teamHTML ; }
Blok kode response dari saved team by id
Blok kode response dari saved team by id
// Sisipkan komponen card ke dalam elemen dengan id #