Difference between revisions of "MediaWiki:Common.js"

From Inkscape Wiki
Jump to navigation Jump to search
m (Replaced content with "$('img').each(function( i, l ){ if (l.src.slice(-4) == ".gif") { $(this).data("src", $(this).src); $(this).src = undefined; } })")
Tag: Replaced
m
Line 1: Line 1:
$('img').each(function( i, l ){
$('img').each(function( i, l ){
if (l.src.slice(-4) == ".gif") {
if (l.src.slice(-4) == ".gif") {
$(this).data("src", $(this).src);
$(l).data("src", $(this).src);
         $(this).src = undefined;
         $(l).src = undefined;
}
}
})
})

Revision as of 00:35, 7 September 2020

$('img').each(function( i, l ){
	if (l.src.slice(-4)	== ".gif") {
		$(l).data("src", $(this).src);
        $(l).src = undefined;
	}
})