Skip to content

Commit

Permalink
Update about.html to use API for collaborators
Browse files Browse the repository at this point in the history
  • Loading branch information
electrikjesus committed Feb 1, 2024
1 parent a4407e4 commit d9e6674
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -634,22 +634,22 @@ <h3>Sreeja Manghat</h3>
// Make a GET request to the JSON API
$.get("https://api.blissroms.org/api/contributors/all", function(data) {
// Assuming data is an array of team member objects
// data.forEach(function(member) {
// // Create a new member box for each team member
// var memberBox = `
// <div class="item">
// <div class="testimonial_slide_box">
// <div class="testimonial_img">
// <img src="${member.avatar}" alt="image" class="team-member-avatar">
// </div>
// <h3>${member.member}</h3>
// <span class="designation">${member.designation}</span>
// </div>
// </div>
// `;
// // Append the member box to the team-members section
// $("#contributors_slider").append(memberBox);
// });
data.forEach(function(member) {
// Create a new member box for each team member
var memberBox = `
<div class="item">
<div class="testimonial_slide_box">
<div class="testimonial_img">
<img src="${member.avatar}" alt="image" class="team-member-avatar">
</div>
<h3>${member.member}</h3>
<span class="designation">${member.designation}</span>
</div>
</div>
`;
// Append the member box to the team-members section
$("#contributors_slider").append(memberBox);
});
// Initialize Owl Carousel after adding members
$("#contributors_slider").owlCarousel({
items: 2, // You can adjust the number of items shown per slide
Expand Down Expand Up @@ -767,4 +767,4 @@ <h3 class="text-center mb-5 pb-3">We <i class="fa fa-fw fa-heart d-inline text-d
</section>
</body>

</html>
</html>

0 comments on commit d9e6674

Please sign in to comment.