MediaWiki:Common.js: Unterschied zwischen den Versionen
Aus DIQA-Homepage
(Added to the wiki via WikiImport-Script.) |
(Added to the wiki via WikiImport-Script.) |
||
| Zeile 1: | Zeile 1: | ||
| − | + | /* | |
function showMailPopup() { | function showMailPopup() { | ||
if ( mw.config.get( 'wgPageName' ) !== 'Hauptseite' ) { | if ( mw.config.get( 'wgPageName' ) !== 'Hauptseite' ) { | ||
| Zeile 11: | Zeile 11: | ||
} | } | ||
} | } | ||
| + | */ | ||
function resizeImages() { | function resizeImages() { | ||
| Zeile 26: | Zeile 27: | ||
resizeImages(); | resizeImages(); | ||
| − | + | /* $('#form_date').datepicker();*/ | |
removeLinkTargetsInMenu(); | removeLinkTargetsInMenu(); | ||
| − | showMailPopup(); | + | /*showMailPopup();*/ |
}); | }); | ||
Version vom 19. September 2018, 21:21 Uhr
/*
function showMailPopup() {
if ( mw.config.get( 'wgPageName' ) !== 'Hauptseite' ) {
var url = new URL(window.location.href);
var showpopup = url.searchParams.get("showpopup");
if (showpopup) {
alert(url.searchParams.get("popuptext"));
}
}
}
*/
function resizeImages() {
$('.imageExpand img').attr("width","100%");
$('.imageExpand img').attr("height","100%");
}
function removeLinkTargetsInMenu() {
$('div#mw-navigation-collapse').find('a[target="_blank"]').removeAttr('target');
};
$(document).ready(function() {
resizeImages();
/* $('#form_date').datepicker();*/
removeLinkTargetsInMenu();
/*showMailPopup();*/
});
window.onbeforeprint = function() {
};