MediaWiki:Imagemap-Hightlight.js: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
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…“
 
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 = he ? ' (הדף אינו קיים)' : ' (page does not exist)'
, pageDoesntExistMessage = ' (page does not exist)'
, expandLegend = he ? 'הצגת מקרא' : 'ּShow Legend'
                , expandLegend = 'ּShow Legend'
, collapseLegend = he ? 'הסתרת המקרא' : 'Hide Legend'
, collapseLegend = 'Hide Legend'
;
;