Difference between revisions of "Template:Tel-Hai/js"

Line 1: Line 1:
 
jQuery(document).ready(function($) {
 
jQuery(document).ready(function($) {
console.log('eden');
+
$('.image-caption-box').each(function() {
 +
$(this).find('small').width($(this).find('img').width());
 +
});
 
});
 
});

Revision as of 18:46, 31 October 2017

jQuery(document).ready(function($) { $('.image-caption-box').each(function() { $(this).find('small').width($(this).find('img').width()); }); });