4,114
edits
No edit summary Tags: Manual revert Reverted |
No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
$(document).ready(function () { | $(document).ready(function () { | ||
// Log a message to the console | // Log a message to the console | ||
console.log('JavaScript is working!'); | console.log('JavaScript is working!'); | ||
Line 32: | Line 32: | ||
var modificationDate = $(this).find('.modification-date').text(); | var modificationDate = $(this).find('.modification-date').text(); | ||
var image = { | var image = { | ||
link: $(this).find('. | link: $(this).find('.image1 a').attr('href'), | ||
src: $(this).find('. | src: $(this).find('.image1 img').attr('src'), | ||
alt: $(this).find('. | alt: $(this).find('.image1 img').attr('alt'), | ||
caption: $(this).find('.caption- | caption: $(this).find('.caption-image1').text() // Assuming caption is stored in a separate element | ||
}; | }; | ||