lyhanna.fr
Espace presse · On veille sur le feu.

Espace privé

Cette page sert à préparer tes communiqués. Entre ton code.

Ce code n'est qu'un rideau. Pour une vraie protection, mets le fichier .htaccess fourni plus bas. Tant qu'il n'est pas posé, n'écris rien de confidentiel ici.

'; var blob=new Blob([doc],{type:"text/html"});var a=document.createElement("a"); a.href=URL.createObjectURL(blob);a.download="communique-"+slug(titre)+".html";document.body.appendChild(a);a.click(); setTimeout(function(){URL.revokeObjectURL(a.href);a.remove();},500); } function slug(s){return (s||"presse").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,40)||"presse";} /* ---- liste presse + groupes ---- */ function parseList(){ var raw=$("plist").value||""; var arr=raw.split(/[\s,;]+/).map(function(x){return x.trim();}).filter(function(x){return /.+@.+\..+/.test(x);}); var seen={},out=[];arr.forEach(function(e){var k=e.toLowerCase();if(!seen[k]){seen[k]=1;out.push(e);}}); return out; } function buildGroups(){ var box=$("groups");if(!box)return;box.innerHTML=""; var arr=parseList();var info=$("plistInfo"); if(info)info.textContent=arr.length?(arr.length+" adresse"+(arr.length>1?"s":"")+" prêtes"):""; if(!arr.length)return; var SIZE=40;var G=Math.ceil(arr.length/SIZE); for(var i=0;i