Difference between revisions of "Template:SKLMT-China/footer"

Line 331: Line 331:
 
var alt = $(this).attr("alt");
 
var alt = $(this).attr("alt");
 
var $span = $(this).parent('.image');
 
var $span = $(this).parent('.image');
 +
if(alt != '') {
 
$span.append('<div class="alt">' + alt + '</div>');
 
$span.append('<div class="alt">' + alt + '</div>');
var $alt = $span.children('.alt');
+
}
 
});
 
});
 
new MODALit({
 
new MODALit({

Revision as of 13:51, 17 October 2018