Wikipedia:Monobook.js/LiveRC.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 621:
var options = "";
var lstNs = new Array();
 
for (i=0; i<len; i++) {
id = nss[i].getAttribute('id');
Riga 630:
if (id == 0) ns = "(Principale)";
 
//Select namespace (default = *)
options += '<option value="' + id + '">' + ns + '</option>';
if (checkNamespace && checkNamespace == id)
options += '<option value="' + id + ' SELECTED ' + '">' + ns + '</option>';
else
options += '<option value="' + id + '">' + ns + '</option>';
lstNs.push(id);
}
options = '<option value="' + lstNs.join('|') + '">*</option>' + options;
document.getElementById('selectNS').innerHTML = '<label for="showNS0">'+lang_menu[0].NAMESP+' </label><select id="showNS0">' + options + '</select>';
 
liveWatch();
}
Riga 1 572 ⟶ 1 576:
'<a href="javascript:;" onClick="supprLigne(\'n\');" style="color: rgb(178, 243, 113); font-weight: bold;">X</a>' +
'<input id="stopLive" type="checkbox" value="true" />' +
'<label for="stopLive">' + lang_menu[0].PAUSE + '</label>' +;
'<input id="shidPrev" type="checkbox" onclick="showHideObj(this, \'divLivePreview\');" />' +
//Anteprima (default = not checked)
'<label for="shidPrev">' + lang_menu[0].PREVIEW + '</label>' +
if (checkAnteprima && checkAnteprima == "1")
'<input id="shidList" type="checkbox" onclick="showHideObj(this, \'liveFollow\');" />' +
lvPreviewFoot.innerHTML += '<input id="shidPrev" type="checkbox" checked onclick="showHideObj(this, \'divLivePreview\');" />';
'<label for="shidList">' + lang_menu[0].LISTS + '</label>' +
else
'<input id="showDiffR" type="checkbox" />' +
lvPreviewFoot.innerHTML += '<input id="shidPrev" type="checkbox" onclick="showHideObj(this, \'divLivePreview\');" />' +;
'<label for="showDiffR">'+ lang_menu[0].LOWDIFF + '</label>' +
lvPreviewFoot.innerHTML += '<label for="shidPrev">' + lang_menu[0].PREVIEW + '</label>' +;
'<input id="shidRC" type="checkbox" checked onclick="showHideObj(this, \'divTabRC\');" />' +
'<label for="shidRC">' + lang_menu[0].RCLABEL + '</label>' +
'<input//Liste (default id="showBot" type="checkbox"not checked />' +)
if (checkListe && checkListe == "1")
'<label for="showBot">' + lang_menu[0].NOBOTS + '</label>' +
lvPreviewFoot.innerHTML += '<input id="showIPshidList" type="checkbox" checked onclick="showHideObj(this, \'liveFollow\');" />' +;
else
'<label for="showIP">' + lang_menu[0].IPONLY + ' • </label>' +
lvPreviewFoot.innerHTML += '<input id="showRCshidList" type="checkbox" checkedonclick="showHideObj(this, \'liveFollow\');" />' +;
lvPreviewFoot.innerHTML += '<label for="showRCshidList">' + lang_menu[0].RCSHOWLISTS + '</label>' +;
'<input id="showLog" type="checkbox" checked />' +
//Modifiche minori (default = not checked)
'<label for="showLog">' + lang_menu[0].LOGSHOW + ' • </label>' +
if (checkModificheMinori && checkModificheMinori == "1")
lvPreviewFoot.innerHTML += '<input id="showDiffR" type="checkbox" checked />';
else
lvPreviewFoot.innerHTML += '<input id="showDiffR" type="checkbox" />' +;
lvPreviewFoot.innerHTML += '<label for="showDiffR">'+ lang_menu[0].LOWDIFF + '</label>' +;
//Pannello (default = checked)
if (checkPannello && checkPannello == "0")
lvPreviewFoot.innerHTML += '<input id="shidListshidRC" type="checkbox" onclick="showHideObj(this, \'liveFollowdivTabRC\');" />' +;
else
lvPreviewFoot.innerHTML += '<input id="shidRC" type="checkbox" checked onclick="showHideObj(this, \'divTabRC\');" />' +;
lvPreviewFoot.innerHTML += '<label for="shidRC">' + lang_menu[0].RCLABEL + '</label>' +;
//Show Bot (default = checked)
if (checkNienteBot && checkNienteBot == "0")
lvPreviewFoot.innerHTML += '<input id="showBot" type="checkbox" />';
else
lvPreviewFoot.innerHTML += '<input id="showBot" type="checkbox" checked />';
lvPreviewFoot.innerHTML += '<label for="shidListshowBot">' + lang_menu[0].LISTS NOBOTS + '</label>' +;
//Solo IP (default = not checked)
if (checkSoloIP && checkSoloIP == "1")
lvPreviewFoot.innerHTML += '<input id="showIP" type="checkbox" checked />';
else
lvPreviewFoot.innerHTML += '<input id="showIP" type="checkbox" />';
lvPreviewFoot.innerHTML += '<label for="showIP">' + lang_menu[0].IPONLY + ' • </label>' +;
 
//RC (default = checked)
if (checkRC && checkRC == "0")
lvPreviewFoot.innerHTML += '<input id="showRC" type="checkbox" />';
else
lvPreviewFoot.innerHTML += '<input id="showRC" type="checkbox" checked />';
lvPreviewFoot.innerHTML += '<label for="showLogshowRC">' + lang_menu[0].LOGSHOWRCSHOW + ' • </label>' +;
//Log (default = checked)
if (checkLog && checkLog == "0")
lvPreviewFoot.innerHTML += '<input id="showLog" type="checkbox" />' +
else
lvPreviewFoot.innerHTML += '<input id="showLog" type="checkbox" checked />' +
lvPreviewFoot.innerHTML += '<label for="showBotshowLog">' + lang_menu[0].NOBOTSLOGSHOW + '</label>' +
'<span id="selectNS" />';
if (lrcPreviewHeight) document.getElementById('livePreview').style.height = lrcPreviewHeight;