Differenze tra le versioni di "Utente:Alex brollo/eiv.js"

nessun oggetto della modifica
 
/* passo 1 : costruire l'ambiente */
 
// in nsPage, and in view mode, eiv environment is built
creabox();
activate();
// closeButtontoggleButton generico (chiudenasconde parent())
var closeButtontoggleButton=$('<img>')
.attr("src","//upload.wikimedia.org/wikipedia/commons/f/f8/Tooltip-CloseButton.png")
.attr("style",'position:absolute; top:0;right:0;cursor:pointer; z-index:200;')
.click(function(){$(this).parent().toggle();
});
 
function toggle() {
$("#wpPreview").click(function(){
pagePreview();
});
// closeButton generico (chiude parent())
var closeButton=$('<img>')
.attr("src","//upload.wikimedia.org/wikipedia/commons/f/f8/Tooltip-CloseButton.png")
.attr("style",'position:absolute; top:0;right:0;cursor:pointer; z-index:200;')
.click(function(){$(this).parent().toggle();
});
//creazione box divPreview
if ( data && data.parse ) {
$("#divPreview").html($(data.parse.text["*"])).append(toggleButton);
 
} else if ( data && data.error ) {
362 077

contributi