MediaWiki:Imagemap-Hightlight.js: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
KMA (Diskussion | Beiträge) Die Seite wurde neu angelegt: „$(document).ready(function() { var //add this class to all elements created by the script. the reason is that we call the script again on //window resize…“ |
KMA (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 7: | Zeile 7: | ||
, liHighlightClass = 'liHighlighting' | , liHighlightClass = 'liHighlighting' | ||
// "2d context" attributes used for highlighting. | // "2d context" attributes used for highlighting. | ||
, areaHighLighting = {fillStyle: 'rgba(0,0,0,0.35)', strokeStyle: 'yellow', lineJoin: 'round', lineWidth: 2} | //, areaHighLighting = {fillStyle: 'rgba(0,0,0,0.35)', strokeStyle: 'yellow', lineJoin: 'round', lineWidth: 2} | ||
, areaHighLighting = {fillStyle: 'rgba(0,0,0,0.35)', strokeStyle: 'black', lineJoin: 'round', lineWidth: 2} | |||
//every imagemap that wants highlighting, should reside in a div of this 'class': | //every imagemap that wants highlighting, should reside in a div of this 'class': | ||
, hilightDivMarker = '.imageMapHighlighter' | , hilightDivMarker = '.imageMapHighlighter' | ||
// specifically for wikis - redlinks tooltip adds this message | // specifically for wikis - redlinks tooltip adds this message | ||
, he = mw && mw.config && mw.config.get('wgUserLanguage') == 'he' | , he = mw && mw.config && mw.config.get('wgUserLanguage') == 'he' | ||
, pageDoesntExistMessage = | , pageDoesntExistMessage = ' (page does not exist)' | ||
, expandLegend = 'ּShow Legend' | |||
, collapseLegend = | , collapseLegend = 'Hide Legend' | ||
; | ; | ||