Separate Javascript components
Change-Id: Ifc337e27ab139df1d0909c3109505a241c3dc50e
diff --git a/js/team.js b/js/team.js
new file mode 100644
index 0000000..e199a68
--- /dev/null
+++ b/js/team.js
@@ -0,0 +1,18 @@
+$.ajax({
+ type: "GET",
+ url: "https://api.blissroms.org/api/teambliss", // TeamBliss JSON
+ success: function (data) {
+ var newContent = ''; // Variable to hold HTML
+ for (var i = 0; i < data.length; i++) { // Loop through object
+ newContent += '<div id="event" class="team_item">';
+ newContent += '<img class="image crop" loading="lazy" style="min-height: 190px" src="' + data[i].avatar + '" ';
+ newContent += 'alt="' + data[i].member + '" />';
+ newContent += '<h3><b>' + data[i].member + '</b></h3>';
+ newContent += '<p class="team_data_text font-weight-bold">' + data[i].designation + '</p>';
+ // newContent += '<p class="team_data_text font-weight-bold"><i>"' + data[i].email + '"</i></p>';
+ newContent += '</div>';
+ }
+ // Update the page with the new content
+ document.getElementById('content').innerHTML = newContent;
+ }
+})
\ No newline at end of file