Difference between revisions of "MediaWiki:Common.js"

From Inkscape Wiki
Jump to navigation Jump to search
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: $(function () { console.log($('img[src=*.gif]').prop('src')); }());")
 
m
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
$(function () {
$(function () {
console.log($('img[src=*.gif]').prop('src'));
$.each($('img')), function( i, l ){
}());
if (l.src.slice(-4) == ".gif") {
print(l.src);
}
}
});

Revision as of 00:08, 7 September 2020

/* Any JavaScript here will be loaded for all users on every page load. */
$(function () {
	$.each($('img')), function( i, l ){
	if (l.src.slice(-4)	== ".gif") {
		print(l.src);
	}
}
});