blob: e199a687a8f678748f7e8fbc0aadd6b43cdf376c [file] [log] [blame]
Eric Park7f629192021-06-12 15:14:11 +09001$.ajax({
2 type: "GET",
3 url: "https://api.blissroms.org/api/teambliss", // TeamBliss JSON
4 success: function (data) {
5 var newContent = ''; // Variable to hold HTML
6 for (var i = 0; i < data.length; i++) { // Loop through object
7 newContent += '<div id="event" class="team_item">';
8 newContent += '<img class="image crop" loading="lazy" style="min-height: 190px" src="' + data[i].avatar + '" ';
9 newContent += 'alt="' + data[i].member + '" />';
10 newContent += '<h3><b>' + data[i].member + '</b></h3>';
11 newContent += '<p class="team_data_text font-weight-bold">' + data[i].designation + '</p>';
12 // newContent += '<p class="team_data_text font-weight-bold"><i>&quot;' + data[i].email + '&quot;</i></p>';
13 newContent += '</div>';
14 }
15 // Update the page with the new content
16 document.getElementById('content').innerHTML = newContent;
17 }
18})