Currently on my portfolio I have separate functions to open seperate lightboxes.
$(".project.clientA").click(function(){
$(".lightbox.clientA").addClass("open", 500);
});
$(".project.clientB").click(function(){
$(".lightbox.clientB").addClass("open", 500);
});
$(".project.clientC").click(function(){
$(".lightbox.clientC").addClass("open", 500);
});
Because I have a function like this for each project, when you have a lot of projects, this makes the code get pretty long. I'm wondering if there is a way to templatize this into one function that works for all clients (clientA, clientB, clientC, etc) by saying something like this.
$(".project.whateverclient").click(function(){
$(".lightbox.sameclient").addClass("open", 500);
});
Hope this makes sense.