function responseTeamDetail(data) {
    let logoUri = data.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">${data.name}</span>
                <table>
                    <tbody>
                        <tr>
                            <td>Address</td>
                            <td>${data.address}</td>
                        </tr>
                        <tr>
                            <td>Phone</td>
                            <td>${data.phone}</td>
                        </tr>
                        <tr>
                            <td>Website</td>
                            <td>${data.website}</td>
                        </tr>
                        <tr>
                            <td>Email</td>
                            <td>${data.email}</td>
                        </tr>
                        <tr>
                            <td>Club Colors</td>
                            <td>${data.clubColors}</td>
                        </tr>
                        <tr>
                            <td>Venue</td>
                            <td>${data.venue}</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    `;

    document.getElementById("body-content").innerHTML = teamHTML;
    return data;
}
// Blok kode response team berdasarkan id
Blok kode response team berdasarkan id
Blok kode response team berdasarkan id
function responseTeamDetail(data) {
    let logoUri = data.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">${data.name}</span>
                <table>
                    <tbody>
                        <tr>
                            <td>Address</td>
                            <td>${data.address}</td>
                        </tr>
                        <tr>
                            <td>Phone</td>
                            <td>${data.phone}</td>
                        </tr>
                        <tr>
                            <td>Website</td>
                            <td>${data.website}</td>
                        </tr>
                        <tr>
                            <td>Email</td>
                            <td>${data.email}</td>
                        </tr>
                        <tr>
                            <td>Club Colors</td>
                            <td>${data.clubColors}</td>
                        </tr>
                        <tr>
                            <td>Venue</td>
                            <td>${data.venue}</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    `;
    document.getElementById("body-content").innerHTML = teamHTML;
    return data;
}
function responseTeamDetail ( data ) { let logoUri = data . crestUrl ; logoUri = logoUri . replace ( / ^http:\/\/ / i , 'https://' ) ; let teamHTML = ` ${ logoUri } ${ data . name } ${ data . address } ${ data . phone } ${ data . website } ${ data . email } ${ data . clubColors } ${ data . venue } ` ; document . getElementById ( "body-content" ) . innerHTML = teamHTML ; return data ; }
Blok kode response team berdasarkan id
Blok kode response team berdasarkan id