Διαφορά μεταξύ των αναθεωρήσεων του "MediaWiki:Common.js"
(DSVGO) |
Dx4 (Συζήτηση | συνεισφορές) |
||
Γραμμή 109: | Γραμμή 109: | ||
req.send(); | req.send(); | ||
})(); | })(); | ||
+ | |||
+ | (function () | ||
+ | { | ||
+ | var script = document.createElement('script'); | ||
+ | script.src = 'https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript'; | ||
+ | script.async = true; | ||
+ | document.getElementsByTagName('head')[0].appendChild(script); | ||
+ | } | ||
+ | ) (); |
Αναθεώρηση της 09:34, 30 Αυγούστου 2022
/* Οποιοσδήποτε κώδικας JavaScript εδώ θα φορτωθεί για όλους τους χρήστες σε κάθε φόρτωση σελίδας. */
/*
$function() {
var img = $( '#bilder img' ).attr( 'src' );
if ( img == '/images/logo/1.png' ) {
$( '#bilder img' ).attr( 'src', 'http://wiki.metin2.de/images/logo/1.png' );
} else if ( img == '/images/logo/2.png' ) {
$( '#bilder img' ).attr( 'src', 'http://wiki.metin2.de/images/logo/2.png' );
} else if ( img == '/images/logo/3.png' ) {
$( '#bilder img' ).attr( 'src', 'http://wiki.metin2.de/images/logo/3.png' );
} else {
$( '#bilder img' ).attr( 'src', 'http://wiki.metin2.de/images/logo/4.png' );
}
}
*/
$("div#content").append("<div class='content-footer'></div>");
var x = 0;
$('#p-navigation h5').removeClass("active");
$('#p-navigation').removeClass("activate");
$('#p-Comunidade h5').removeClass("active");
$('#p-Comunidade').removeClass("activate");
$('#p-tb h5').removeClass("active");
$('#p-tb').removeClass("activate");
$('#p-lang h5').removeClass("active");
$('#p-lang').removeClass("activate");
$('#p-navigation').click(function() {
$('#p-navigation .portletNavMiddle').slideToggle();
$('#p-navigation h5').toggleClass("active");
$('#p-navigation').toggleClass("activate");
$('#p-Comunidade .portletNavMiddle').slideUp(500);
$('#p-tb .portletNavMiddle').slideUp(500);
$('#p-lang .portletNavMiddle').slideUp(500);
if (x == 1) {
$('#p-navigation h5').css("background-image", "url(http://wiki.metin2.gr/images/8/85/Dz_normal.png)");
x=0;
}else{
$('#p-navigation h5').css("background-image", "url(http://wiki.metin2.gr/images/b/b4/Dz_hover.png)");
x=1;
}
$('#p-tb h5').css("background-image", "url(http://wiki.metin2.gr/images/8/85/Dz_normal.png)");
$('#p-lang h5').css("background-image", "url(http://wiki.metin2.gr/images/7/71/Dz_button_long.png)");
});
$('#p-Comunidade').click(function() {
$('#p-Comunidade .portletNavMiddle').slideToggle();
$('#p-Comunidade h5').removeClass("active");
$('#p-Comunidade').removeClass("activate");
$('#p-navigation .portletNavMiddle').slideUp(500);
$('#p-tb .portletNavMiddle').slideUp(500);
$('#p-lang .portletNavMiddle').slideUp(500);
});
$('#p-tb').click(function() {
$('#p-tb .portletNavMiddle').slideToggle();
$('#p-tb h5').removeClass("active");
$('#p-tb').removeClass("activate");
$('#p-navigation .portletNavMiddle').slideUp(500);
$('#p-lang .portletNavMiddle').slideUp(500);
$('#p-Comunidade .portletNavMiddle').slideUp(500);
$('#p-navigation h5').css("background-image", "url(http://wiki.metin2.gr/images/8/85/Dz_normal.png)");
if (x == 2) {
$('#p-tb h5').css("background-image", "url(http://wiki.metin2.gr/images/8/85/Dz_normal.png)");
x=0;
}else{
$('#p-tb h5').css("background-image", "url(http://wiki.metin2.gr/images/b/b4/Dz_hover.png)");
x=2;
}
$('#p-lang h5').css("background-image", "url(http://wiki.metin2.gr/images/7/71/Dz_button_long.png)");
});
$('#p-lang').click(function() {
$('#p-lang .portletNavMiddle').slideToggle();
$('#p-lang h5').removeClass("active");
$('#p-lang').removeClass("activate");
$('#p-tb .portletNavMiddle').slideUp(500);
$('#p-Comunidade .portletNavMiddle').slideUp(500);
$('#p-navigation .portletNavMiddle').slideUp(500);
$('#p-navigation h5').css("background-image", "url(http://wiki.metin2.gr/images/8/85/Dz_normal.png)");
$('#p-tb h5').css("background-image", "url(http://wiki.metin2.gr/images/8/85/Dz_normal.png)");
if (x == 3) {
$('#p-lang h5').css("background-image", "url(http://wiki.metin2.gr/images/7/71/Dz_button_long.png)");
x=0;
}else{
$('#p-lang h5').css("background-image", "url(http://wiki.metin2.gr/images/7/72/Dz_button_long_hover.png)");
x=3;
}
});
(function () {
var req = new XMLHttpRequest();
req.addEventListener('load', function (ev) {
if (this.status >= 200 && this.status < 300) {
var data = JSON.parse(this.responseText);
if (data.hasOwnProperty('version')) {
var gdpr = document.createElement("script");
gdpr.src = "https://s3-static.geo.gfsrv.net/cookiebanner/" + data.version + "/cookie.min.js";
document.head.appendChild(gdpr);
}
}
});
req.open('GET', "https://s3-static.geo.gfsrv.net/cookiebanner/version.json");
req.send();
})();
(function ()
{
var script = document.createElement('script');
script.src = 'https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript';
script.async = true;
document.getElementsByTagName('head')[0].appendChild(script);
}
) ();