MediaWiki:Custom.js
Aus Joachim Camerarius (1500-1574)
Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.
- Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
- Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
- Internet Explorer/Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
- Opera: Strg+F5
$(document).ready(function () { var e = window.location.hash; e && $('ul.nav.nav-pills a[href="' + e + '"]').tab("show"), $("ul.nav.nav-pills a").click(function (e) { $(this).tab("show"); $("body").scrollTop(); window.location.hash = this.hash }), $("#fs").on("change", function () { $("#testText").css("font-family", $(this).val()) }) }), $("#discussion").length && $.getJSON("http://camerarius.kallimachos.de/api.php?action=query&list=recentchanges&rctype=edit|new&rcnamespace=1&rcprop=title%7Ctimestamp%7Cuser&rclimit=500&format=json", function (e) { e.query.recentchanges.forEach(function (e) { $("#discussion").append('<tr><td><a href="/index.php/' + e.title + '">' + e.title.replace("Diskussion:", "") + "</a></td><td>" + e.user + "</td><td>" + e.timestamp.replace(/T|Z/g, " ") + "</td></tr>") }) }), $(document).ready(function () { $(".nav li.disabled a").click(function () { return !1 }); }), $(document).ready(function () { $(function () { var e = window.location.hash; e && $('ul.nav a[href="' + e + '"]').tab("show"), $(".nav-tabs a").click(function (e) { $(this).tab("show"); var n = $("body").scrollTop() || $("html").scrollTop(); window.location.hash = this.hash, $("html,body").scrollTop(n) }) }) });