|
|
(161 dazwischenliegende Versionen von 4 Benutzern werden nicht angezeigt) |
Zeile 1: |
Zeile 1: |
| /* Das folgende JavaScript wird für alle Benutzer geladen. */ | | mw.loader.load('/index.php?title=MediaWiki:ListNav.js&action=raw&ctype=text/javascript'); |
| /* Display Feedback button */ | | mw.loader.load('/index.php?title=MediaWiki:Editor.js&action=raw&ctype=text/javascript'); |
| | mw.loader.load('/index.php?title=MediaWiki:CustomDrilldown.js&action=raw&ctype=text/javascript'); |
| | mw.loader.load('/index.php?title=MediaWiki:CustomCommentStream.js&action=raw&ctype=text/javascript'); |
| | mw.loader.load('/index.php?title=MediaWiki:ScrollTop.js&action=raw&ctype=text/javascript'); |
| | mw.loader.load('/index.php?title=MediaWiki:Feedback.js&action=raw&ctype=text/javascript'); |
| | mw.loader.load('/index.php?title=MediaWiki:Werkbeschreibung.js&action=raw&ctype=text/javascript'); |
| | mw.loader.load('/index.php?title=MediaWiki:Custom.js&action=raw&ctype=text/javascript'); |
| | mw.loader.load('/index.php?title=MediaWiki:Navbar.js&action=raw&ctype=text/javascript'); |
|
| |
|
| $(document).ready(function () { var hash = window.location.hash;
| | function waitForElement(e, n) { |
| hash && $('ul.nav.nav-pills a[href="' + hash + '"]').tab('show');
| | window.setTimeout(function () { |
| $('ul.nav.nav-pills a').click(function (e) {
| | $(e).length ? n(e, $(e)) : waitForElement(e, n) |
| $(this).tab('show');
| | }, 500) |
| var scrollmem = $('body').scrollTop();
| |
| window.location.hash = this.hash;
| |
| });
| |
| $("#fs").on('change', function() {
| |
| $('#testText').css("font-family", $(this).val());
| |
| });
| |
| });
| |
| | |
| /* Unblur when drilldown has loaded */
| |
| $(document).ready(function () {
| |
| $(".drilldown-results").css({ "-webkit-filter": "blur(0)", "-moz-filter": "blur(0)", "-o-filter": "blur(0)", "-ms-filter": "blur(0)", "filter": "blur(0)" });
| |
| }); | |
| | |
| $(document).ready(function () {
| |
| $('.drilldown-filter-values:has(a)').css('display', 'none');
| |
| });
| |
| | |
| if ($("#discussion").length) {
| |
| $.getJSON("http://kallimachos.de/camerarius/api.php?action=query&list=recentchanges&rctype=edit|new&rcnamespace=1&rcprop=title%7Ctimestamp%7Cuser&rclimit=500&format=json", function (json) {
| |
| json.query.recentchanges.forEach(function (arrayItem) {
| |
| $('#discussion').append('<tr><td><a href="/camerarius/index.php/' + arrayItem.title + '">' + arrayItem.title.replace("Diskussion:", "") + '</a></td><td>' + arrayItem.user + '</td><td>' + arrayItem.timestamp.replace(/T|Z/g, ' ') + '</td></tr>');
| |
| });
| |
| });
| |
| };
| |
| | |
| $(document).ready(function () {
| |
| $(".nav li.disabled a").click(function () {
| |
| return false;
| |
| });
| |
| });
| |
| | |
| function loadFrame(url) {
| |
| $("#result").empty().load(url + ' #frameContent,#frameContentInner');
| |
| $("#linkResult").empty().prepend('<div class="container"><div class="col-md-4"></div><div class="col-md-4"> <a href=' + url + ' class="btn btn-sm drilldown-btn-test victoria-two">Seite besuchen</a></div><div class="col-md-4"></div></div>');
| |
| } | | } |
|
| |
|
| function onReady(callback) { | | function toggleTimeline() { |
| var intervalID = window.setInterval(checkReady, 1000);
| | $("html, body").animate({ |
| | | scrollTop: $("#timelineWrapper").offset().top |
| function checkReady() {
| | }, 500, "linear") |
| if (document.getElementsByTagName('body')[0] !== undefined) {
| |
| window.clearInterval(intervalID);
| |
| callback.call(this);
| |
| }
| |
| }
| |
| } | | } |
|
| |
|
| | | /** Add custom text to MediaWiki search page **/ |
| /**** Custom collapse ***/ | | if("Search" === mw.config.get("wgCanonicalSpecialPageName")){ |
| $(function () {
| | $('<div class="card card-body bg-light"><p>Durch eine Trunkierung des Suchbegriffs mit * lassen sich ggf. mehr Treffer erzielen ("Eoban*" findet "Eoban, Eobanus, Eobani" usw.). <br/>Weitere Recherchemöglichkeiten erläutert die <a target="_blank" href="http://camerarius.kallimachos.de/Anleitung#strategy-v">Einführung.</a></p></div>').insertBefore("#bodyContent"); |
| $(".collapsibleDesc").on('click', function () {
| |
| $(this).next(".collapsedDesc").toggle();
| |
| });
| |
| });
| |
| | |
| $(document).ready(function () {
| |
| $(".collapsibleDesc").click(function () {
| |
| $(this).fadeToggle(200, function () {
| |
| $(this).html(($(this).html() == '(Kurzbeschreibung ausblenden <i class="fa fa-minus" aria-hidden="true"></i>)') ? '(Kurzbeschreibung einblenden <i class="fa fa-plus" aria-hidden="true"></i>)' : '(Kurzbeschreibung ausblenden <i class="fa fa-minus" aria-hidden="true"></i>)').fadeToggle(200);
| |
| });
| |
| });
| |
| });
| |
| | |
| function drilldownswitcher() {
| |
| if ($('#drilldown-switch:contains("Alle Filter ausklappen")').length) {
| |
| $('.drilldown-filter-values:has(a)').css('display', 'block');
| |
| $('.drilldown-values-toggle').each(function () {
| |
| $('img').each(function () {
| |
| $(this).attr('src', $(this).attr('src').replace('right-arrow.png', 'down-arrow.png'));
| |
| });
| |
| });
| |
| document.getElementById("drilldown-switch").innerHTML = 'Alle Filter einklappen <i class="fa fa-minus"></i>';
| |
| }
| |
| else if ($('#drilldown-switch:contains("Alle Filter einklappen")').length) {
| |
| $('.drilldown-filter-values:has(a)').css('display', 'none');
| |
| $('.drilldown-values-toggle').each(function () {
| |
| $('img').each(function () {
| |
| $(this).attr('src', $(this).attr('src').replace('down-arrow.png', 'right-arrow.png'));
| |
| });
| |
| });
| |
| document.getElementById("drilldown-switch").innerHTML = 'Alle Filter ausklappen <i class="fa fa-plus"></i>';
| |
| }
| |
| } | | } |
|
| |
| $(document).ready(function () {
| |
| $('#drilldown-header').next().remove();
| |
| $('<br /><h3 class="drilldown-pre-header">1. Gesetzte Filter</h3>').insertBefore("#drilldown-header");
| |
| /* $('<p class="drilldown-post-header">Diese Seite besteht aus einer Reihe von Filteroptionen und einer im Anschluss ausgegebenen Liste von Treffern.<br />Wählen Sie einen oder mehrere Filter, um die Listenanzeige gezielt einzuschränken. Klicken Sie hierzu auf den Pfeil vor dem Filter und treffen Sie dann Ihre Auswahl.</p>').insertAfter("#drilldown-header"); */
| |
| $('<h3 class="drilldown-pre-filters">2. Verfügbare Filteroptionen</h3>').insertBefore('.drilldown-filters');
| |
| $('<h3 class="drilldown-post-filters">3. Anwendung der Filter</h3>').insertAfter('.drilldown-filters');
| |
| $('<htmL><div class="button-wrapper"><a class="btn btn-sm drilldown-btn-test thar-three" href="javascript:;" onclick="drilldownswitcher()" id="drilldown-switch">Alle Filter ausklappen <i class="fa fa-plus"></i></a></div></html>').insertBefore('.drilldown-filters');
| |
| });
| |
|
| |
| /* Hide empty drilldown elements */
| |
| $(function () {
| |
| $("div .drilldown-filter-values:contains('(Es sind keine Werte für diesen Filter vorhanden.)')").parent('div').remove();
| |
| });
| |
|
| |
|
| |
| /* Scroll up */
| |
|
| |
| $("body").append('<a onclick="scrollup()" id="return-to-top" class="btn-float"> <i class="fa fa-chevron-up my-float"></i> </a> <div class="label-container"> <div class="label-text">Zum Seitenanfang</div> <i class="fa fa-play label-arrow"></i> </div>');
| |
|
| |
| $(window).scroll(function () {
| |
| if ($(this).scrollTop() >= 50) {
| |
| $('#return-to-top').fadeIn(200);
| |
| } else {
| |
| $('#return-to-top').fadeOut(200);
| |
| }
| |
| });
| |
|
| |
| function scrollup() {
| |
| $('body,html').animate({
| |
| scrollTop: 0
| |
| }, 500);
| |
| };
| |
|
| |
| $(document).ready(function () {
| |
| $('.drilldown-values-toggle').each(function () {
| |
| $('img').each(function () {
| |
| $(this).attr('src', $(this).attr('src').replace('down-arrow.png', 'right-arrow.png'));
| |
| })
| |
| })
| |
| });
| |
|
| |
| $(document).ready(function () {
| |
| if (mw.config.get('wgPageName') === 'Spezial:Daten_durchsuchen/Drucke') {
| |
| $('<div class="well drilldown-well"><p>Diese Seite besteht aus einer Reihe von Filteroptionen und einer im Anschluss ausgegebenen Liste von Drucken, in denen Werke oder Korrespondenz von Camerarius überliefert werden. Wählen Sie einen oder mehrere Filter, um die Listenanzeige der Drucke gezielt einzuschränken. Klicken Sie hierzu auf den Pfeil vor dem Filter und treffen Sie dann Ihre Auswahl.</p><p>Weitere Anmerkungen</p><ul><li>Das Feld “Biographischer Zeitraum” gliedert sich nach den Wirkungsorten des Camerarius (Erfurt und Wittenberg, Nürnberg, Tübingen, Leipzig) und bezieht für postume Veröffentlichungen auch die Zeit nach seinem Tod mit ein.</li><li>Eine systematische und differenzierte Schlagwortvergabe erfolgt bei den Werken.</li><li>Das Feld “Drucker / Verleger” ist alphabetisch nach dem Schema Vorname-Nachname geordnet. Hier kann jedoch auch frei nach dem Nachnamen gesucht werden.</li></ul></div>').insertBefore('#bodyContent');
| |
| }
| |
| });
| |
|
| |
| $(document).ready(function () {
| |
| if (mw.config.get('wgPageName') === 'Spezial:Daten_durchsuchen/Werke') {
| |
| $('<div class="well drilldown-well"><p>Diese Seite besteht aus einer Reihe von Filteroptionen und einer im Anschluss ausgegebenen Liste von Camerarius-Werken. Wählen Sie einen oder mehrere Filter, um die Listenanzeige der Werke gezielt einzuschränken. Klicken Sie hierzu auf den Pfeil vor dem Filter und treffen Sie dann Ihre Auswahl.</p></div>').insertBefore('#bodyContent');
| |
| }
| |
| });
| |
|
| |
| $(document).ready(function () {
| |
| if (mw.config.get('wgPageName') === 'Spezial:Daten_durchsuchen/Briefe') {
| |
| $('<div class="well drilldown-well"><p>Diese Seite besteht aus einer Reihe von Filteroptionen und einer im Anschluss ausgegebenen Liste von Camerarius-Briefen. Wählen Sie einen oder mehrere Filter, um die Listenanzeige der Briefe gezielt einzuschränken. Klicken Sie hierzu auf den Pfeil vor dem Filter und treffen Sie dann Ihre Auswahl. Der Filter “Besitzende Institution” bezieht sich i.d.R. nur auf handschriftliche Briefe, die gleichzeitig gedruckt vorliegen.</p></div>').insertBefore('#bodyContent');
| |
| }
| |
| });
| |
|
| |
| $(document).ready(function () {
| |
| if(mw.config.get('wgCanonicalSpecialPageName') === 'Search'){
| |
| $('<div class="well drilldown-wel"><p>Durch eine Trunkierung des Suchbegriffs mit * lassen sich ggf. mehr Treffer erzielen ("Eoban*" findet "Eoban, Eobanus, Eobani" usw.). <br/>Weitere Recherchemöglichkeiten erläutert die <a target="_blank" href="http://kallimachos.de/camerarius/index.php/Anleitung#strategy-v">Einführung.</a></p></div>').insertBefore('#bodyContent');
| |
| }
| |
| });
| |
|
| |
| $(document).ready(function () {
| |
| $('.navbar-right').first().append('<li class="nav"><a text="Anleitung zur Suche in der Datenbank" href="http://kallimachos.de/camerarius/index.php/Anleitung#strategy-v"><i class="fa fa-question-circle"></i></a></li>');
| |
| });
| |
|
| |
| $(document).ready(function () {
| |
| $(function(){
| |
| var hash = window.location.hash;
| |
| hash && $('ul.nav a[href="' + hash + '"]').tab('show');
| |
| $('.nav-tabs a').click(function (e) {
| |
| $(this).tab('show');
| |
| var scrollmem = $('body').scrollTop() || $('html').scrollTop();
| |
| window.location.hash = this.hash;
| |
| $('html,body').scrollTop(scrollmem);
| |
| });
| |
| });
| |
| });
| |
|
| |
| function toggleFeedback() {
| |
| $('#cs-comments').slideToggle();
| |
| };
| |
|
| |
|
| |
| $(document).ready(function () {
| |
| if (mw.config.get('wgCanonicalNamespace') !== 'Talk' && mw.config.get('wgCanonicalNamespace') !== 'Category_talk' && mw.config.get('wgIsArticle') === true && mw.config.get('skin') === 'tweeki' && mw.config.get('wgPageName') !== "Einführung" && mw.config.get('wgCanonicalNamespace') !== "Category") {
| |
| if($("#catlinks").length){
| |
| $("#catlinks").after('<html><div><a onclick="toggleFeedback()" class="btn-feedback btn-large"><i class="fa fa-comment"></i></i></i></a><div class="label-container"><div class="label-text">Feedback</div><i class="fa fa-play label-arrow"></i></div></div></html>');
| |
| }else{
| |
| $("#mw-content-text").after('<html><div><a onclick="toggleFeedback()" class="btn-feedback btn-large"><i class="fa fa-comment"></i></i></i></a><div class="label-container"><div class="label-text">Feedback</div><i class="fa fa-play label-arrow"></i></div></div></html>');
| |
| }
| |
|
| |
| }
| |
| });
| |
|
| |
| $(document).ready(function () {
| |
| if (mw.config.get('wgCanonicalNamespace') !== 'Talk' && mw.config.get('wgCanonicalNamespace') !== 'Category_talk' && mw.config.get('wgIsArticle') === true && mw.config.get('skin') === 'tweeki' && mw.config.get('wgCanonicalNamespace') === "Category") {
| |
| if($("#catlinks").length){
| |
| $("#catlinks").after('<html><div><a onclick="toggleFeedback()" class="btn-feedback btn-large"><i class="fa fa-comment"></i></i></i></a><div class="label-container"><div class="label-text">Feedback</div><i class="fa fa-play label-arrow"></i></div></div></html>');
| |
| }else{
| |
| $("#mw-content-text").after('<html><div><a onclick="toggleFeedback()" class="btn-feedback btn-large"><i class="fa fa-comment"></i></i></i></a><div class="label-container"><div class="label-text">Feedback</div><i class="fa fa-play label-arrow"></i></div></div></html>');
| |
| }
| |
|
| |
| }
| |
| });
| |