MediaWiki:Gadget-ImageAnnotator.js explained

/* ImageAnnotator v2.3.2

Image annotations. Draw rectangles onto image thumbnail displayed on image description page and associate them with textual descriptions that will be displayed when the mouse moves over the rectangles. If an image has annotations, display the rectangles. Add a button to create new annotations.

Note: if an image that has annotations is overwritten by a new version, only display the annotations if the size of the top image matches the stored size exactly. To recover annotations, one will need to edit the image description page manually, adjusting image sizes and rectangle coordinates, or re-enter annotations.

Author:, June 2009 - March 2010 License: Quadruple licensed GFDL, GPL, LGPL and Creative Commons Attribution 3.0 (CC-BY-3.0)

Choose whichever license of these you like best :-)

See http://commons.wikimedia.org/wiki/Help:Gadget-ImageAnnotator for documentation.

/* global importScript, importScriptURI, LAPI, Tooltip, Tooltips, TextCleaner, UIElements, Buttons, ImageAnnotator, ImageAnnotator_disable *//* eslint-disable one-var, vars-on-top, camelcase, no-use-before-define, eqeqeq, no-alert, no-loop-func, no-inner-declarations */

if (typeof ImageAnnotator