MediaWiki:Imagemap-Hightlight.js: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
KMA (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
KMA (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 112: | Zeile 112: | ||
div.after($('<hr>', {'class': myClassName}).css('clear', 'both')).after(ol); | div.after($('<hr>', {'class': myClassName}).css('clear', 'both')).after(ol); | ||
var lis = {}; //collapse areas with same caption to one list item | var lis = {}; //collapse areas with same caption to one list item | ||
$('area', map).each(function() { | /*$('area', map).each(function() { | ||
var $this = $(this), text = this.title; | var $this = $(this), text = this.title; | ||
var li = lis[text]; // title already met? use the same li | var li = lis[text]; // title already met? use the same li | ||
| Zeile 126: | Zeile 126: | ||
li.data('areas').push(this); //add the area to the li | li.data('areas').push(this); //add the area to the li | ||
$(this).bind('mouseover mouseout', function(e) {li.trigger(e);}) | $(this).bind('mouseover mouseout', function(e) {li.trigger(e);}) | ||
}); | */}); | ||
ol.addClass('mw-collapsed') | ol.addClass('mw-collapsed') | ||
.makeCollapsible(); | .makeCollapsible(); | ||