Utente:Jalo/Tatoo.js

Da Wikipedia, l'enciclopedia libera.
Vai alla navigazione Vai alla ricerca

Questa pagina definisce alcuni parametri di aspetto e comportamento generale di tutte le pagine. Per personalizzarli vedi Aiuto:Stile utente.


Nota: dopo aver salvato è necessario pulire la cache del proprio browser per vedere i cambiamenti (per le pagine globali è comunque necessario attendere qualche minuto). Per Mozilla / Firefox / Safari: fare clic su Ricarica tenendo premuto il tasto delle maiuscole, oppure premere Ctrl-F5 o Ctrl-R (Command-R su Mac); per Chrome: premere Ctrl-Shift-R (Command-Shift-R su un Mac); per Konqueror: premere il pulsante Ricarica o il tasto F5; per Opera può essere necessario svuotare completamente la cache dal menù Strumenti → Preferenze; per Internet Explorer: mantenere premuto il tasto Ctrl mentre si preme il pulsante Aggiorna o premere Ctrl-F5.

//<source lang=javascript>

var Container = document.createElement('div');
Container.style.position = "fixed";
Container.style.backgroundColor = "transparent";
Container.style.bottom = "10px";
Container.style.right = "10px";
Container.style.zIndex = "1000";
Container.style.display = "block";
document.getElementsByTagName('body')[0].appendChild(Container );

//CLOSE ME
var CloseMe = document.createElement('div');
CloseMe.style.cursor = "pointer";
CloseMe.style.position = "fixed";
CloseMe.style.backgroundColor = "transparent";
CloseMe.style.bottom = "45px";
CloseMe.style.right = "3px";
CloseMe.style.zIndex = "1001";
CloseMe.style.display = "block";
var CloseMeLink = document.createElement('a');
CloseMeLink.onclick=function(){Container.style.display = "none";};
var CloseMeImg = document.createElement('img');
CloseMeImg.src = "https://upload.wikimedia.org/wikipedia/commons/8/87/Close_icon_default.jpg";
CloseMeImg.width = "15";
CloseMeImg.height = "11";
CloseMeImg.alt = "CloseMe";
CloseMeLink.appendChild(CloseMeImg);
CloseMe.appendChild(CloseMeLink);
Container.appendChild(CloseMe);

//ESPLORAZIONI
var Esplorazioni = document.createElement('div');
Esplorazioni.style.position = "fixed";
Esplorazioni.style.backgroundColor = "transparent";
Esplorazioni.style.bottom = "10px";
Esplorazioni.style.right = "10px";
Esplorazioni.style.zIndex = "1000";
Esplorazioni.style.display = "block";
var EsplorazioniLink = document.createElement('a');
EsplorazioniLink.href = "http://it.wikipedia.org/wiki/Utente:Jalo/Esplorazioni";
var EsplorazioniImg = document.createElement('img');
EsplorazioniImg.src = "https://upload.wikimedia.org/wikipedia/commons/5/57/Crystal_Clear_app_internet.png";
EsplorazioniImg.width = "40";
EsplorazioniImg.height = "40";
EsplorazioniImg.alt = "Esplorazioni";
EsplorazioniLink.appendChild(EsplorazioniImg);
Esplorazioni.appendChild(EsplorazioniLink);
Container.appendChild(Esplorazioni);

//CONTRIBUTI
var contributi = document.createElement('div');
contributi.style.position = "fixed";
contributi.style.backgroundColor = "transparent";
contributi.style.bottom = "10px";
contributi.style.right = "55px";
contributi.style.zIndex = "1000";
contributi.style.display = "block";
var contributiLink = document.createElement('a');
contributiLink.href = "http://it.wikipedia.org/w/index.php?title=Utente:Jalo/contributi&action=edit&section=1";
var contributiImg = document.createElement('img');
contributiImg.src = "http://upload.wikimedia.org/wikipedia/commons/8/81/Icon_tools.png";
contributiImg.width = "40";
contributiImg.height = "40";
contributiImg.alt = "Modifica contributi";
contributiLink.appendChild(contributiImg);
contributi.appendChild(contributiLink);
Container.appendChild(contributi);

//IL BAR DI OGGI
var my_date = new Date();
giorno = "" + my_date.getDate();
mese = "" + (my_date.getMonth()+1);
anno = "" + my_date.getFullYear();

if (mese.length == 1) mese= "0" + mese;

data = anno + " " + mese + " " + giorno;

var Bar = document.createElement('div');
Bar.style.position = "fixed";
Bar.style.backgroundColor = "transparent";
Bar.style.bottom = "10px";
Bar.style.right = "100px";
Bar.style.zIndex = "1000";
Bar.style.display = "block";
var BarLink = document.createElement('a');
BarLink.href = "http://it.wikipedia.org/wiki/Wikipedia:Bar/" + data + "?action=purge";
var BarImg = document.createElement('img');
BarImg.src = "http://upload.wikimedia.org/wikipedia/commons/c/c8/Nuvola_apps_kteatime.png";
BarImg.width = "40";
BarImg.height = "40";
BarImg.alt = "Bar di oggi";
BarLink.appendChild(BarImg);
Bar.appendChild(BarLink);
Container.appendChild(Bar);

//</source>