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 102: | Zeile 102: | ||
.append(img); // now yank the original image from the window and place it on top. | .append(img); // now yank the original image from the window and place it on top. | ||
img.fadeTo(1, 0); // make the image transparent - we see canvas and bgimg through it. | img.fadeTo(1, 0); // make the image transparent - we see canvas and bgimg through it. | ||
var ol = $('<ol>', {'class': myClassName}) | |||
.css({clear: 'both', margin: 0, listStyle: 'none', maxHeight: '24em', maxWidth: w + 'px', overflowY: 'auto', position: 'relative'}) | |||
.attr({'data-expandtext' : expandLegend, 'data-collapsetext': collapseLegend}); | |||
// ol below image, hr below ol. original caption pushed below hr. | // ol below image, hr below ol. original caption pushed below hr. | ||
div.after($('<hr>', {'class': myClassName}).css('clear', 'both')).after(ol); | div.after($('<hr>', {'class': myClassName}).css('clear', 'both')).after(ol); | ||