MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 40: Line 40:
             }
             }
                        
                        
           
             // Set up image toggle if more than one image is found
             // Set up image toggle if more than one image is found
             if (cardImages.length > 1) {
             if (cardImages.length > 1) {
Line 81: Line 80:
             if (cardImages.length > 0) {
             if (cardImages.length > 0) {
                 var initialImage = cardImages[0]; // Use the first image initially
                 var initialImage = cardImages[0]; // Use the first image initially
                 articleContentHtml +=  
                // Append the image HTML with the dynamic label
                    '<div class="article-images">' +
                 articleContentHtml += getImageHtml(initialImage, 0, cardImages.length); // Add current index and total
                        '<p class="article-label-image">Image(s)</p>' +
                        '<div class="article-image">' + getImageHtml(initialImage) + '</div>' +
                    '</div>';
             }
             }
 
           
             // Add non-image content (description, reflection, etc.)
             // Add non-image content (description, reflection, etc.)
             articleContentHtml +=  
             articleContentHtml +=  

Navigation menu