MediaWiki:Common.js: Unterschied zwischen den Versionen

MediaWiki-Schnittstellenseite
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 7: Zeile 7:
mw.loader.load( 'http://wiki.llz.uni-halle.de/index.php?title=MediaWiki:Common.js/Highlight.js&action=raw&ctype=text/javascript' );
mw.loader.load( 'http://wiki.llz.uni-halle.de/index.php?title=MediaWiki:Common.js/Highlight.js&action=raw&ctype=text/javascript' );
mw.loader.load( 'http://wiki.llz.uni-halle.de/index.php?title=MediaWiki:Common.js/Webfont.js&action=raw&ctype=text/javascript' );
mw.loader.load( 'http://wiki.llz.uni-halle.de/index.php?title=MediaWiki:Common.js/Webfont.js&action=raw&ctype=text/javascript' );
$( function() {
var strMarker = querystring.marker;
if (typeof(strMarker) !== 'undefined') {
var arrMarker = strMarker.split(' ');
// Suchbegriffe markieren
$('div#bodyContent').highlight(arrMarker, {element: 'span', className: 'marker'});
// Betroffene Fragen ausklappen
$('div.faq.unit').each( function() {
if ($(this).find('span.marker').length > 0){
$(this).addClass('preselection');
}
});
}
});


// Checkliste zurücksetzen
// Checkliste zurücksetzen

Version vom 10. Juli 2017, 13:58 Uhr

// Das Script Common.js wird immer eingebunden und eignet sich deshalb zur Verknüpfung weiterer Scripte.

mw.loader.load( 'http://wiki.llz.uni-halle.de/index.php?title=MediaWiki:Common.js/Querystring.js&action=raw&ctype=text/javascript' );
mw.loader.load( 'http://wiki.llz.uni-halle.de/index.php?title=MediaWiki:Common.js/Faq.js&action=raw&ctype=text/javascript' );
mw.loader.load( 'http://wiki.llz.uni-halle.de/index.php?title=MediaWiki:Common.js/Datatables.js&action=raw&ctype=text/javascript' );
mw.loader.load( 'http://wiki.llz.uni-halle.de/index.php?title=MediaWiki:Common.js/Labelauty.js&action=raw&ctype=text/javascript' );
mw.loader.load( 'http://wiki.llz.uni-halle.de/index.php?title=MediaWiki:Common.js/Highlight.js&action=raw&ctype=text/javascript' );
mw.loader.load( 'http://wiki.llz.uni-halle.de/index.php?title=MediaWiki:Common.js/Webfont.js&action=raw&ctype=text/javascript' );

// Checkliste zurücksetzen
$( function() {
	$( ".checklist .aktionen a#resetChecklist" ).click( function( ) {
		$(".checklist :checkbox").each(function () {
			$(this).removeAttr("checked");
		})
	} );

	// Checklisten formatieren
	// $(".checklist :checkbox").labelauty({ label: false });
});