Revision 483916 of "MediaWiki:Onlyifediting.js" on kuwiki // Optionen für das Sonderzeichenmenü in [[MediaWiki:Edittools]]
// wird in [[MediaWiki:Monobook.js]] ganz unten eingebunden
function addCharSubsetMenu() {
var specialchars = document.getElementById('specialchars');
if (specialchars) {
var menu = "<select style=\"display:inline\" onChange=\"chooseCharSubset(selectedIndex)\">";
menu += "<option>Kurdî</option>";
menu += "<option>WîkîKod</option>";
menu += "<option>Soranî</option>";
menu += "<option>Erebî</option>";
menu += "</select>";
specialchars.innerHTML = menu + specialchars.innerHTML;
// Standard-CharSubset
chooseCharSubset(0);
}
}
// CharSubset-Auswahl
function chooseCharSubset(s) {
var l = document.getElementById('specialchars').getElementsByTagName('p');
for (var i = 0; i < l.length ; i++) {
l[i].style.display = i == s ? 'inline' : 'none';
// l[i].style.visibility = i == s ? 'visible' : 'hidden';
}
}
// Menü-Einfügung
function customizeWikipedia() {
addCharSubsetMenu();
}
addOnloadHook(customizeWikipedia);All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://ku.wikipedia.org/w/index.php?oldid=483916.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|