MediaWiki:Gadget-ImageAnnotator.js: Difference between revisions

Content deleted Content added
eslint-config-wikimedia autofix
Per request
 
(4 intermediate revisions by 4 users not shown)
Line 1:
// <source lang="javascript">
 
/*
ImageAnnotator v2.3.2
 
ATTENTION:
This is in the Gadget- prefix but not actually registered nor loaded as a Gadget. It is
loaded directly by [[MediaWiki:Common.js]], raw, unminified and in the global scope.
 
Image annotations. Draw rectangles onto image thumbnail displayed on image description
Line 1,741 ⟶ 1,735:
}
}
if ( name.search( /\.(jpe?g|png|gif|svg|tiff?|webp)$/i ) < 0 ) { return null; } // Only PNG, JPE?G, GIF, SVG, and TIFF?, and WebP
// Finally check for wpImageAnnotatorControl
var icon_only = false;
Line 3,064 ⟶ 3,058:
return s;
} else {
return importScriptURImw.loader.load( url );
}
},
Line 3,111 ⟶ 3,105:
 
} // end if (guard against double inclusions)
 
// </source>