Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added json fetch for members #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 2 additions & 123 deletions UDC-crew/crew.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,130 +167,9 @@ <h2 class="section-heading text-center">ABOUT US</h2>
<h2 class="text-center section-heading">MEMBERS</h2>
</div>

<div class="member-carousel">

<div class="slick-item-custom"> <img src="assets/Members/m1.jpg" class="member-pic"><br />
<div class="text-center member-body">
<p><b>NAME: </b> PRANJAL KULSHRESHTHA </p>
<p><b>COURSE: </b> B.A. (J&MC), 2nd YEAR </p>
</div>
</div>

<div class="slick-item-custom"> <img src="assets/Members/m2.jpg" class="member-pic"><br />
<div class="text-center member-body">
<p><b>NAME:</b> VANDIT RAI </p>
<p><b>COURSE: </b>B.I.D. , 4th YEAR </p>
</div>
</div>

<div class="slick-item-custom"> <img src="assets/Members/m3.jpg" class="member-pic"><br />
<div class="text-center member-body">
<p><b>NAME:</b> AISHWARYA CHANDRA </p>
<p><b>COURSE: </b> B.A. (J&MC), 3rd YEAR</p>
</div>
</div>

<div class="slick-item-custom"> <img src="assets/Members/m4.jpg" class="member-pic"><br />
<div class="text-center member-body">
<p><b>NAME:</b> AKSHAT PANDE</p>
<p><b>COURSE:</b> BTECH(CSE), 2nd YEAR</p>
</div>
</div>

<div class="slick-item-custom"> <img src="assets/Members/m5.jpg" class="member-pic"><br />
<div class="text-center member-body">
<p><b>NAME:</b> NIKITA NEGI</p>
<p><b>COURSE:</b> B.A. (Hons.) ENGLISH, 2nd YEAR</p>
</div>
</div>

<div class="slick-item-custom"> <img src="assets/Members/m6.jpg" class="member-pic"><br />
<div class="text-center member-body">
<p><b>NAME:</b> SHIFA KHAN</p>
<p><b>COURSE:</b> B.F.A. , 2nd YEAR</p>
</div>
</div>

<div class="slick-item-custom"> <img src="assets/Members/m7.jpg" class="member-pic"><br />
<div class="text-center member-body">
<p><b>NAME:</b> ANKITA SINGH</p>
<p><b>COURSE:</b> BTECH(CSE), 2nd YEAR</p>
</div>
</div>

<div class="slick-item-custom"> <img src="assets/Members/m8.jpg" class="member-pic"><br />
<div class="text-center member-body">
<p><b>NAME:</b> SIDDHANT SINGH</p>
<p><b>COURSE:</b> BTECH(CE), 2nd YEAR</p>
</div>
</div>

<div class="slick-item-custom"> <img src="assets/Members/m9.jpg" class="member-pic"><br />
<div class="text-center member-body">
<p><b>NAME:</b> ANUSHREE BANSAL</p>
<p><b>COURSE:</b> BTECH(CSE), 2nd YEAR</p>
</div>
</div>

<div class="slick-item-custom"> <img src="assets/Members/m12.jpg" class="member-pic"><br />
<div class="text-center member-body">
<p><b>NAME:</b> SHUBHANGI PRIYA</p>
<p><b>COURSE:</b> BTECH(CSE), 2nd YEAR</p>
</div>
</div>

<div class="slick-item-custom"> <img src="assets/Members/m13.jpg" class="member-pic"><br />
<div class="text-center member-body">
<p><b>NAME:</b> DANIA ALAM</p>
<p><b>COURSE:</b> B.A. (Hons.) ENGLISH, 3rd YEAR</p>
</div>
</div>

<div class="slick-item-custom"> <img src="assets/Members/m14.jpg" class="member-pic"><br />
<div class="text-center member-body">
<p><b>NAME:</b> ANUSHKA SHUKLA</p>
<p><b>COURSE:</b> B.DES(FASHION DESIGNING), 2nd YEAR</p>
</div>
</div>

<div class="slick-item-custom"> <img src="assets/Members/m15.jpg" class="member-pic"><br />
<div class="text-center member-body">
<p><b>NAME:</b> AKSHAY LAKHMANI</p>
<p><b>COURSE:</b> B.F.A. , 1st YEAR</p>
</div>
</div>

<div class="slick-item-custom"> <img src="assets/Members/m16.jpg" class="member-pic"><br />
<div class="text-center member-body">
<p><b>NAME:</b> PRERNA ROHATGI</p>
<p><b>COURSE:</b> BTECH(CSE), 1st YEAR</p>
</div>
</div>

<div class="slick-item-custom"> <img src="assets/Members/m17.jpg" class="member-pic"><br />
<div class="text-center member-body">
<p><b>NAME:</b>P. DEEPIKA RAO</p>
<p><b>COURSE:</b> B.A. (H) APPLIED PSYCHOLOGY, 1st YEAR</p>
</div>
</div>

<div class="slick-item-custom"> <img src="assets/Members/m18.jpg" class="member-pic"><br />
<div class="text-center member-body">
<p><b>NAME:</b> PRAKRITI TANDON</p>
<p><b>COURSE:</b> B.I.D. , 1st YEAR</p>
</div>
</div>

<div class="slick-item-custom"> <img src="assets/Members/m19.jpg" class="member-pic"><br />
<div class="text-center member-body">
<p><b>NAME:</b> DEEKSHA PANDEY</p>
<p><b>COURSE:</b> B.COM(Hons.), 1st YEAR</p>
</div>
</div>



<div id="members" class="member-carousel">


</div>
</div>
</div>
Expand Down
25 changes: 23 additions & 2 deletions UDC-crew/crewjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,25 @@ function home_gallery() {
}

$(document).ready(function() {
$(".member-carousel").slick({
var members = ""
$.ajax({
headers: {'secret-key': '$2b$10$5wdP1w5Yckb1MCKHY8xQWuEEtJF4mEf9tCAeBv2sZIAk2D4/sC34y'},
url: 'https://api.jsonbin.io/b/5ed26dba7741ef56a564b3a8/latest',
type: 'GET',
dataType: 'json',
success: function(data) {
$.each(data['members'], function(index, value){
members += '<div class="slick-item-custom"> <img src="' + value['img'] + '" class="member-pic">' +
'<br />' +
'<div class="text-center member-body">' +
'<p><b>NAME: </b>' + value['name'] + '</p>' +
'<p><b>COURSE: </b>' + value['course'] + '</p>' +
'</div>' +
'</div>'
});
$("#members").html(members);

$(".member-carousel").slick({
dots: false,
infinite: true,
speed: 2000,
Expand Down Expand Up @@ -226,5 +244,8 @@ $(document).ready(function() {
}
}
]
});
});
},
error: function() { alert('Unable To Fetch'); },
});
});