Unterschied: MediaWiki:Citizen.js
MediaWiki interface page
Ansichten
Aktionen
Namensräume
Varianten
Werkzeuge
Admin (Diskussion | Beiträge) |
Admin (Diskussion | Beiträge) Markierung: Zurückgesetzt |
||
Zeile 1: | Zeile 1: | ||
/* All JavaScript here will be loaded for users of the Citizen skin */ | /* All JavaScript here will be loaded for users of the Citizen skin */ | ||
$("li.mw-search-result").on("click", function(e) { | |||
e.target.find(".mw-search-result-heading a")[0].click(); | |||
console.log(e.target); | |||
}); | |||
$(window).scroll(function() { | $(window).scroll(function() { |
Version vom 12. Juni 2021, 13:33 Uhr
/* All JavaScript here will be loaded for users of the Citizen skin */
$("li.mw-search-result").on("click", function(e) {
e.target.find(".mw-search-result-heading a")[0].click();
console.log(e.target);
});
$(window).scroll(function() {
if ($(this).scrollTop() > 20) {
$('#searchform').addClass('fadeOut');
$('#search-toggle').addClass('fadeOut');
$('#search-toggle-icon').addClass('fadeOut');
} else {
$('#searchform').removeClass('fadeOut');
$('#search-toggle').removeClass('fadeOut');
$('#search-toggle-icon').removeClass('fadeOut');
}
});