Diferencia entre revisiones de «Usuario:Pybalo/monobook.js»
Contenido eliminado Contenido añadido
Sin resumen de edición |
Sin resumen de edición |
||
Línea 90:
function addLangCheckboxes()
{
cbs = '<div style="font-size:small;text-align:left"><b>Lenguajes:</b>';
cbs += langCheckBox("ca","Catalán");
cbs += langCheckBox("es","Español");
cbs += langCheckBox("en","Inglés");
cbs += langCheckBox("fr","Francés");
cbs += langCheckBox("pl","Polaco");
cbs += langCheckBox("pt","Portugués");
cbs += langCheckBox("ru","Ruso");
cbs += '<div>';
cbs += '<div style="font-size:small;text-align:left"><b>Secciones:</b>';
cbs += sectCheckBox("tr","Traducciones");
cbs += sectCheckBox("et","Etimología");
cbs += sectCheckBox("ph","Fonética");
cbs += '<div>';
var toolbox = document.getElementById("siteNotice");
Línea 108 ⟶ 113:
return '<input name="'+code+'" type="checkbox" checked="true" onclick="checkLang(this.name,this.checked)">'+name+'</input>';
}
function sectCheckBox(code, name)
{
return '<input name="'+code+'" type="checkbox" checked="true" onclick="checkSect(this.name,this.checked)">'+name+'</input>';
}
function checkLang(lang, state)
Línea 115 ⟶ 126:
if(langSection)
langSection.style.display = state ? "" : "none";
}
function checkSect(sect, state)
{
var msg = "Simulando "+sect+"->"+state+"...";
alert(msg);
}
|