4,114
edits
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
if (imageElem.length) { | if (imageElem.length) { | ||
var captionText = $(this).find('.caption' + imageClass).text(); // Fetching caption text | var captionText = $(this).find('.caption' + imageClass).text(); // Fetching caption text | ||
console.log("Caption for " + imageClass + ": " + captionText); // Debugging line | |||
cardImages.push({ | cardImages.push({ | ||
link: $(this).find(imageClass + ' a').attr('href'), | link: $(this).find(imageClass + ' a').attr('href'), |