Advertisement
oStile10001

fbn_JSengine.js

Mar 17th, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function closest(a,b){var e;["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"].some(function(a){return"function"==typeof document.body[a]?(e=a,!0):!1});for(var f;a;){if((f=a.parentElement)&&f[e](b))return f;a=f}return null}
  2. function com(a,b,e){G15||(G15=!0,a={url:"api/internal/check-command/",parametri:[["txt",b64e(a)]],callback:function(a){null!=a.isC?a.isC?null!=a.command?(null!=e&&(e.value="",e.blur()),Fc129("close"),Fc125(a.command,null!=a.authapp?a.authapp:"")):b.submit():b.submit():b.submit()}},Fc0(a),setTimeout(function(){G15=!1},2E3))}
  3. function crypp(a,b,e){b=b64e(JSON.stringify(b));Fc0({url:"api/internal/encrypt-data-app/",parametri:[["data",b],["auth",a]],callback:e})}function Fc16(a,b){cla($(a),b)}function Fc17(a,b){var e=$(a);null!=e&&(e.classList.contains(b)?clr(e,b):cla(e,b))}
  4. function Fc142(a,b,e){function f(){var e=W.pageYOffset||(D.documentElement||B.parentNode||B).scrollTop;a.style.height="0";a.style.height=a.scrollHeight-2+"px";null!=b&&0<b&&parseInt(a.style.height)<b&&(a.style.height=b+"px");W.scrollTo(0,e)}"postfeed"==a.id&&(Fc147(),setTimeout(function(){f()},100),setTimeout(function(){f()},200),setTimeout(function(){f()},350));null==e&&(e=0);setTimeout(function(){f()},e)}
  5. function Fc123(){var a=parseInt(parseInt(G13)+parseInt(G12));D.title=a?"("+a+") "+G14:G14}function Fc18(a){}
  6. function fbn_appResize(a){var b=$("colonna_cx"),e=G10.window_w;b.offsetWidth<e&&(e=b.offsetWidth);b=$("appiframe");var f=b.getAttribute("width");b.getAttribute("height");var g=!1;"responsivezoom"==a.apptype?g=!0:"noresize"==a.apptype?g=!1:e<f&&(g=!0);g?(a=1/(f/e),$("appiframewrapper").style.height=parseInt(parseInt(b.height)*a)+"px",b.style.transform="scale("+a+")"):b.width=$("colonna_cx").offsetWidth;b.style.visibility="visible"}
  7. function Fc159(){var a=$("areafloat");var b=$("notifichefloaticon");cla(a,"n");cla(b,"n");b="afelscontainer";nt=$(b);nt.removeEventListener("scroll",Fc154,!1);nt.removeAttribute("data-ntl");a.removeAttribute("data-t");Fc12($("aftitle"),"","i");var e=$("affooter");Fc12(e,"","i");e.removeAttribute("data-a");$("afmain").className="";b=[].slice.call($(b).children);for(a=0;a<b.length;++a)"afloading"!=b[a].id?Fc85(b[a]):clr(b[a],"n");a=".btncontainer";
  8. e=$qsa(a+" .triangle");[].forEach.call(e,function(a){cla(a,"n")});clr($q(a+".ntf"),"selected");clr($q(a+".msgs"),"selected");vw()}
  9. function Fc156(a,b){var e=$("afelscontainer");if(null!=e&&("ntfs"==a||"msgs"==a||"crono"==a)){var f="",g="";if("ntfs"==a){var h="api/internal/load-notifications/";var k="notifiche"}else"msgs"==a?(h="api/internal/load-conversazioni/",k="messaggi"):(h="api/internal/load-cronologia/",k="cronologia",g=b[1]);null!=b&&null!=b[0]&&(f=b[0]);var l=e.getAttribute("data-ntl");if(null==l||1!=l)l=[],null==f&&(f=""),l=[["l",f],["u",g]],Fc0({url:h,parametri:l,callback:function(a){var b=$("afloading"),
  10. f=a[k];var g=a.ended;if(null!=f){var h=f.length;if(0<h){for(var l="",m=0;m<h;m++)null!=f[m].id&&(l+=f[m].html);Fc12(b,l,"bb")}else g=!0}null!=g&&g&&(cla(b,"n"),e.setAttribute("data-ntl","1"));a=a.html;null!=a&&""!=a&&Fc12(b,a,"bb");G0=!1}})}}function Fc158(){$("afelscontainer").style.height=623>G10.window_h?G10.window_h-46-79+"px":""}
  11. function Fc154(){if(!G0){var a=$("areafloat"),b=a.getAttribute("data-t"),e="",f="";if("ntfs"==b){e=".notifica";var g=9;var h="id"}else"msgs"==b?(e=".msg",g=0,h="data-t"):"crono"==b&&(e=".msg",g=4,h="id",f=a.getAttribute("data-tu"));""!=e&&(a=$("afelscontainer"),a.scrollTop>=a.scrollHeight-a.offsetHeight-150&&(G0=!0,a=$q("#afelscontainer "+e+":last-of-type"),null!=a?(g=a.getAttribute(h).substr(g),Fc156(b,[g,f])):G0=!1))}}
  12. function Fc155(a,b){var e=$("areafloat"),f=e.getAttribute("data-t");if(e.classList.contains("n")||f!=a){Fc159();e.setAttribute("data-t",a);Fc129("close");vw("lock");Fc160();var g=f="",h=$("afmain"),k=$("affooter"),l=[];if("ntfs"==a){f="Notifiche:";g="Mostra Tutte";cla(h,"notifiche");cla($q(".btncontainer.ntf"),"selected");k.setAttribute("data-a","url,/notifiche/");var m="ntf"}else"msgs"==a?(f="Messaggi Privati:",g="Mostra Tutti",cla(h,"messaggi"),cla($q(".btncontainer.msgs"),
  13. "selected"),k.setAttribute("data-a","url,/messaggistica/"),m="msgs"):"crono"==a&&(f="Cronologia con "+b[1]+":",g="Cronologia Completa",cla(h,"messaggi"),cla(h,"cronologia"),cla($q(".btncontainer.msgs"),"selected"),k.setAttribute("data-a","url,/cronologia/"+b[0]+"/"),e.setAttribute("data-tu",b[0]),m="msgs",l=["",b[0]]);m=$q(".btncontainer."+m+" .triangle");Fc12($("aftitle"),f,"i");Fc12(k,g,"i");clr(e,"n");clr(m,"n");Fc158();Fc156(a,l);$("afelscontainer").addEventListener("scroll",
  14. Fc154,!1)}else Fc159()}function Fc185(){Fc61({url:"api/internal/blocca-utenti-dialog/",parametri:[]})}function Fc19(){Fc143($("postfeed"),62);$("video_link").value="";d("textarea_uploadvideo_area","none");null!=$("textarea_share_area")&&d("textarea_share_area","none")}
  15. function Fc20(){Fc143($("postfeed"),62);$("uploaded_file").value="";d("textarea_uploadimage_area","none");null!=$("textarea_share_area")&&d("textarea_share_area","none");d("textarea_uploadvideo_area","block");$("video_link").focus();var a=$qsa(".mainpostfeed .icon.immagine");[].forEach.call(a,function(a){clr(a,"ok")})}
  16. function Fc21(){Fc143($("postfeed"),62);$("uploaded_file").value="";d("textarea_uploadimage_area","none");d("textarea_uploadvideo_area","none");d("textarea_share_area","block");$("postshare_link").focus();var a=$qsa(".mainpostfeed .icon.immagine");[].forEach.call(a,function(a){clr(a,"ok")})}
  17. function Fc22(a,b){if(null!=a){var e="loadingmini";a.classList.contains("black")&&(e+="2");a.classList.contains("green")&&(e+="3");e='<img src="/grafica/gif/'+e+'.gif" class="vam" width="16" height="16" >';null==b&&(b=1);1==b&&Fc12(a,e,"i");2==b&&Fc12(a,a.innerText+" "+e,"i");if(3==b){null!=$("loadingmini")&&Fc85($("loadingmini"));var f=D.createElement("div");f.className="loadingmini";f.id="loadingmini";Fc12(f,e,"i");f.style.top="-35px";f.style.left=
  18. parseInt(a.offsetWidth/2-16)+"px";a.appendChild(f)}}}function Fc23(){var a=0,b=$("form_mainpostfeed"),e=$("video_link");""!=e.value?-1!=e.value.indexOf("youtube.com/watch?v=")||-1!=e.value.indexOf("youtu.be/")?a=1:(Fc12($("video_errore"),"Il video youtube inserito non &egrave; valido!","i"),d("video_errore","block")):""!=$("uploaded_file").value?a=1:""!=$("postfeed").value&&(a=1);a&&(Fc22($("btnpostfeed")),G7=30,b.submit())}
  19. function Fc118(a){a=$(a);null!=a&&a.setAttribute("data-busy",1)}function Fc119(a){a=$(a);null!=a&&a.removeAttribute("data-busy")}function Fc24(a){var b=location.pathname+location.search;""==b&&(b="/");location.href="/cambia-account/"+a+b}function fbn_changeSex(){var a=$("sesso");null!=a&&($("professioneM").className="select nascosto",$("professioneF").className="select nascosto",$("professione"+("F"==a.value?"F":"M")).className="select")}
  20. function Fc144(a){var b=a.action;null!=b&&("fbn-alert"==b?(Fc30(),Fc31(),fbn_openAlert(a.data)):"fbn-headbar"==b?(a=a.headbar,null!=a&&Fc12($("headbar"),a,"o")):"fbn-newss"==b?fbn_newExtraSS(a.data):"fbn-newss-wrefresh"==b?(fbn_newExtraSS(a.data),location.reload()):"fbn-refresh"==b?location.reload():"fbn-reg"==b&&(location.href="/registrazione/"))}
  21. function Fc26(a){if(null!=a){var b=a.getAttribute("data-src");null==b&&(b=a.getAttribute("src"));a=b.replace("_a.","_b.");a=a.replace("_c.","_b.");Fc62(a)}}function Fc27(a){if(null!=a.utente){if(a=a.utente[0],null!=a.id&&null==$("user_"+a.id)){var b=$q("#elenco_utenti p:first-of-type");null!=b&&Fc12(b,a.html,"ae")}}else null!=a.removeutente&&(a=$("user_"+a.removeutente),null!=a&&(b=$("elenco_utenti"),null!=b&&b.removeChild(a)))}
  22. function Fc28(){if(null!=$("posts_block")&&null==$("floatpost")){var a=W.pageYOffset+W.innerHeight,b=B.getBoundingClientRect(),e=$qsa("#posts_block .post"),f=[];[].forEach.call(e,function(e){var g=e.getBoundingClientRect();if(!(g.top-b.top>a)&&0<g.bottom){g=e.getAttribute("id").substr(5);var h=e.getAttribute("data-upd"),m=e.getAttribute("data-busy");if(null!=g&&null!=h&&null==m&&null==$("iframevideo"+g)&&null==$("inputcom_"+g)&&null==$("areaeditpost_"+g)&&null==$q("#commenti_block"+
  23. g+" .commento .edit")&&null==$q("#post_"+g+" .iframevideo")){allcom=e.getAttribute("data-com")?!0:!1;m=e=!1;if(6<$qsa("#commenti_block"+g+" div.commento").length||null!=$("comnext"+g))e=parseInt($q("#commenti_block"+g+" div.commento:first-of-type").id.substr(2)),m=parseInt($q("#commenti_block"+g+" div.commento:last-of-type").id.substr(2));f[f.length]=[g,h,allcom,e,m]}}});var g=f.length;g&&(e={url:"refresh-posts/",parametri:[["post",b64e(JSON.stringify(f))]],callback:function(a){if(null!=a.posts&&
  24. (a=a.posts,null!=a&&"object"===typeof a)){for(var b=$("colonna_cx"),e=0;e<g;e++){var h=f[e][0];if(null!=a[h]){var p="post_"+h;if(null!=$(p)){var q=D.createElement("div");q.innerHTML=a[h];var u=q.getElementsByClassName("post")[0],r=u.getAttribute("data-upd");u=q.getElementsByClassName("postcontent")[0];var t=u.innerHTML;u=q.getElementsByClassName("box_commenti")[0];q=u.innerHTML;$(p).setAttribute("data-upd",r);r=D.createElement("div");r.className="nascosto buffer postbuffer";r.id=p+"_buffer";r.setAttribute("data-tempid",
  25. h);r.innerHTML=t;b.appendChild(r);t=D.createElement("div");t.className="nascosto buffer combuffer";t.id=p+"_combuffer";t.setAttribute("data-tempid",h);t.innerHTML=q;b.appendChild(t)}}}setTimeout(function(){function a(a){var b=[],e=$qsa("#posts_block #commenti_block"+a+" .commento");[].forEach.call(e,function(a){var e=a.id.substr(2);a=$q("#posts_block #t2postcom-"+e);null!=a&&(a.classList.contains("n")||b.push(e))});[].forEach.call(b,function(b){var e="#post_"+a+"_combuffer",f=$q(e+" #t2postcom-"+
  26. b);null!=f&&(clr(f,"n"),Fc85($q(e+" #c_"+b+" .readall")))})}var b=$qsa("#colonna_cx .postbuffer");[].forEach.call(b,function(a){var b=a.getAttribute("data-tempid"),e="post_"+b,f=[];f.id=b;var g=$q("#posts_block #link_p"+b);null==g||g.classList.contains("nascosto")?f.link_showed=!1:f.link_showed=!0;g=$q("#posts_block #t2post"+b);null==g||g.classList.contains("nascosto")?f.fulltext_showed=!1:f.fulltext_showed=!0;null!=$("boxeditcategory_menu"+b)?f.editcatmenu=!0:f.editcatmenu=!1;Fc12($q("#"+
  27. e+" .postcontent"),a.innerHTML,"i");Fc86(e+"_buffer");a=f.id;b=f.fulltext_showed;f.link_showed&&(e=$("link_p"+a),null!=e&&clr(e,"nascosto"));b&&(b=$("t2post"+a),null!=b&&(clr(b,"nascosto"),e=$q("#testopost_"+a+" div.readall"),null!=e&&Fc85(e)));f.editcatmenu&&Fc67(a)});b=$qsa("#colonna_cx .combuffer");[].forEach.call(b,function(b){b=b.getAttribute("data-tempid");var e="post_"+b;a(b);var f="#"+e+"_combuffer";Fc12($q("#"+e+" .box_commenti #commenti_block"+
  28. b),$q(f+" #commenti_block"+b).innerHTML,"i");Fc86(e+"_combuffer")})},400)}}},Fc0(e))}}function Fc183(a){var b=!1;"vocale"==a&&navigator.mediaDevices&&navigator.mediaDevices.getUserMedia&&void 0!=W.MediaRecorder&&(b=!0);if(b)return!0;a=[];a.title=b64e("Funzione non supportata");a.text=b64e("Questa funzionalit&agrave; non &egrave; supportata dal tuo dispositivo.");fbn_openAlert(a)}
  29. function Fc176(a,b){var e=$qsa(".cookiesettings .titoli div");[].forEach.call(e,function(a){a.className=""});b.className="sel";e=$qsa(".cookiesettings .sezioni .cell");[].forEach.call(e,function(a){cla(a,"n")});c=$q(".cookiesettings .sezioni .cell.sec"+a);clr(c,"n")}function fbn_citazioneKeyDown(a){if(13==("which"in a?a.which:a.keyCode)){if(a.shiftKey)return a.preventDefault(),a.stopPropagation(),!1;D.execCommand("formatBlock",!1,"h5");D.execCommand("insertBrOnReturn",!1,!1)}}
  30. function fbn_citazioneEdit(a){if("bg"==a)a=$("bgcolor"),null!=a&&($("memetextcontainer").style.backgroundColor=a.value);else if("col"==a)a=$("txtcolor"),null!=a&&($("memetextcontainer").style.color=a.value);else{var b=$("fba"),e=$("fta");if(null!=b&&null!=e){"bal"==a?($("memetextcontainer").style.textAlign="left",b.value=1):"bac"==a?($("memetextcontainer").style.textAlign="center",b.value=2):"bar"==a?($("memetextcontainer").style.textAlign="right",b.value=3):"tal"==a?($("memetext").style.textAlign=
  31. "left",e.value=1):"tac"==a?($("memetext").style.textAlign="center",e.value=2):"tar"==a&&($("memetext").style.textAlign="right",e.value=3);for(x=1;3>=x;++x)clr($("iba"+x),"selected"),clr($("ita"+x),"selected");cla($("iba"+b.value),"selected");cla($("ita"+e.value),"selected")}}}function Fc29(){var a=$("memetext"),b=$("fmemetext"),e=$("form_vignetta");null!=a&&null!=b&&null!=e&&(b.value=b64e(a.innerHTML),e.submit())}function Fc148(a,b){return $(a).cloneNode(b)}
  32. function fbn_close(a){d(a,"none")}function Fc30(){var a=$("centro_schermo"),b=$("dialog");null!=b&&(a.removeChild(b),Fc32(),cla(a,"anim03s"),a.style.position="absolute",B.style.position="")}function Fc31(){var a=$("centro_schermo"),b=$("theimg");null!=b&&(a.removeChild(b),Fc32())}function Fc32(){$("centro_schermo").style="";d("layer_mask","none")}function Fc33(a){d(a,"block")}
  33. function Fc34(a,b,e){a=$(a);e=$(e);if(null!=a&&null!=e){var f=$qsa(".colorpicker");[].forEach.call(f,function(a){a.style.display="none"});e.style.backgroundColor="#"+b;a.value="#"+b;a.onchange()}}function Fc125(a,b){vw("lock");var e=D.createElement("script");e.id="fbc_"+a;"undefined"!=typeof b&&""!=b&&e.setAttribute("auth",b);e.src="/include/js/commands/"+e.id+".js?c="+Math.floor(Date.now()/1E3);D.head.appendChild(e)}
  34. function Fc35(a,b,e,f){if(0<a){G7=8;var g=$("c_"+b);if(null!=g){var h=$q("#like_c"+b+" a");Fc22(h,3);Fc0({url:"like-commento/",parametri:[["p",a],["c",b],["op",e],["t",f]],callback:function(b){null!=b.html&&(null!=g&&Fc12(g,b.html,"o"),G7=0);Fc134(a)}})}}}function Fc36(a){0<a&&Fc0({url:"segnala-commento/",parametri:[["cref",a]],callback:function(a){null!=a.redirect&&(location.href=a.redirect)}})}
  35. function Fc37(a,b){if(a){var e=$("c_"+a);null!=e&&Fc0({url:"rimuovi-immagine-commento/",parametri:[["cref",a]],callback:function(f){var g=f.status;null!=g&&("ok"==g?(f=$("imgcomcontainer"+a),null==f&&(f=$q("#c_"+a+" .gifcontainer")),null!=f&&Fc85(f),Fc43(a,"c")):"delall"==g?(Fc85(e),Fc43(a,"c")):"refresh"==g&&null!=b&&(g=$("post_"+b),f=f.html,null!=f&&null!=g&&Fc12(g,f,"o")))}})}}
  36. function Fc38(a){0<a&&Fc61({url:"segnala-commento-dialog/",parametri:[["cref",a]]})}function Fc122(){var a=$q("#alertmsg .notifica");G12=a=null==a?0:parseInt(a.innerHTML);a=$q("#alertnotifiche .notifica");G13=a=null==a?0:parseInt(a.innerHTML);Fc123()}
  37. function Fc39(a){var b=$("colore"+a);null!=b&&Fc0({url:"modifica-colore-testata/",parametri:[["c",a]],callback:function(a){null!=a.status&&"OK"==a.status&&(a=$("copertina"),a.style.backgroundColor=b.style.backgroundColor,a.style.backgroundImage="")}})}
  38. function Fc40(){null!=$("coloreimg")&&Fc0({url:"modifica-colore-testata/",parametri:[["c",0]],callback:function(a){null!=a.status&&"OK"==a.status&&($("copertina").style.backgroundImage="url("+a.img+")")}})}
  39. function Fc195(){if(null==$q("#menumobile .avatarbox")){var a=$q(".avatarbox").cloneNode(!0);Fc12($q("#menumobile .menucontent"),a.outerHTML,"ab")}null==$q("#menumobile .hdropdownmenu")&&(a=$q(".hdropdownmenu").cloneNode(!0),a.id="",Fc12($q("#menumobile .menucontent"),a.outerHTML,"ae"));null==$q("#menumobile .sxmenu")&&(a=$q(".sxmenu").cloneNode(!0),Fc12($q("#menumobile .hdropdownmenu"),'<div class="menucontent">'+a.outerHTML+"</div>","ae"));if(null==$q("#menumobile .bannerareadx")){a=
  40. $q(".bannerareadx").cloneNode(!0);var b=$qsa("#menumobile .menucontent");Fc12(b[b.length-1],a.outerHTML,"ae")}}function Fc134(a){var b=$qsa("#colonna_cx .buffer");[].forEach.call(b,function(b){b.getAttribute("data-tempid")==a&&Fc85(b)})}
  41. function Fc43(a,b){if("p"==b){var e=$("testopost_"+a);if(null!=e){var f=$("areaeditpost_"+a);null!=f&&(Fc85(f),e.style.display="block")}}else"c"==b&&(e=$("testocom"+a),null!=e&&(f=$("areaeditcom_"+a),null!=f&&(Fc85(f),e.style.display="block")))}
  42. function Fc44(a){if(0<a){var b=$("areaeditcom_"+a);null==b&&Fc0({url:"modifica-commento/",parametri:[["cref",a]],callback:function(e){if(null==b){var f=e.html;null!=f&&""!=f&&(e=$("testocom"+a),null!=e&&(Fc12(e,f,"ae"),f=$("inputcom_"+a),null!=f&&(e.style.display="none",Fc143($("inputcom_"+a)),f.focus())))}}})}}
  43. function Fc45(a){if(0<a){var b=$("areaeditpost_"+a);null==b&&Fc0({url:"modifica-post/",parametri:[["pref",a]],callback:function(e){if(null==b){var f=e.html;null!=f&&""!=f&&(e=$("testopost_"+a),null!=e&&(Fc12(e,f,"ae"),f=$("textareapost_"+a),null!=f&&(e.style.display="none",f.focus())))}}})}}
  44. function Fc46(a){var b=$("textareapost_"+a);if(null!=b){b=b.value;var e=$q("#formedit"+a+" #op_pixel");e=null!=e?e.value:0;var f=$("psave"+a);Fc22(f);G7=30;f=$("previewimgpost"+a+"r");f=null!=f?parseInt(f.value):0;b={uploadfileform:"edituploaded_file"+a,url:"aggiorna-post/",parametri:[["pref",a],["ptx",b64e(b)],["ppx",e],["pr",f]],callback:function(b){b=b.html;if(null==b)Fc43(a,"p");else{var e=$("post_"+a);null!=e&&Fc12(e,b,"o")}}};Fc0(b)}}
  45. function Fc47(a,b,e){if(0<a){var f=$("postCategory"+a);null!=f&&Fc0({url:"modifica-categoria-post/",parametri:[["pref",a],["pcat",b],["pextra",e]],callback:function(b){null==b.op||"show"!=b.op&&"hide"!=b.op||(Fc85($("post_"+a)),G4=0);null!=b.category&&Fc12(f,b.category,"i");if(null!=b.url){var e=$("url_p"+a);Fc12(e,b.url,"i");$("href_p"+a).href=b.url}Fc67(0)}})}}
  46. function Fc135(a){G7=10;var b=a.innerHTML;Fc22(a,1);var e=closest(a,"form"),f={};f.method=e.id;for(var g=0;g<e.elements.length;g++){var h=e.elements[g];f[h.name]=h.value}f=b64e(JSON.stringify(f));Fc0({url:"api/internal/edit-profile/",parametri:[["data",f]],callback:function(f){if("ok"==f.status){var g=$("saveok").cloneNode(!0);e.appendChild(g);g.style.top="-15px";g.style.visibility="visible";setTimeout(function(){g.style.opacity=1;setTimeout(function(){g.style.opacity=
  47. 0},1500);setTimeout(function(){Fc85(g);G7=0},2E3)},100);null!=f.motto&&($q(".box_copertina .info h2").innerHTML=f.motto)}else G7=0;a.innerHTML=b}})}
  48. function Fc178(a){var b=$P($P($P(a))).id.substr(2);a=$q("#testocom"+b+" a strong").innerHTML.replace(" ","-");b=$P($("c_"+b)).id.substr(14);b=$("p_commento"+b);var e=b.value;if(-1==e.search(new RegExp("@"+a,"i"))){var f=e.slice(-1);""!=f&&" "!=f&&(e+=" ");b.value=e+"@"+a+" ";Fc142(b,30,40)}b.focus()}
  49. function Fc48(a,b){if(1==b)var e="m"+a,f=$("s"+a);else e="a"+a,f=$("q"+a);var g=$(e);g&&("block"==g.style.display?(d(e,"none"),f.className=""):(d(e,"block"),f.className="opened"))}function Fc143(a,b){setTimeout(function(){var e=a.id;"postfeed"==e&&(Fc147(),cla($("countervaccate"),"db"));null==b&&(b=62);a.style.height="0";a.style.height=a.scrollHeight-2+"px";parseInt(a.style.height)<b&&(a.style.height=b+"px");cla($(e+"_tool"),"db")},200)}
  50. function Fc147(){setTimeout(function(){var a=$("postfeed"),b=a.value;if(""!=$("uploaded_file").value||""!=$("video_link").value||/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig.test(b))clr(a,"big");else{var e=b.length;b=b.split(/\r\n|\r|\n/).length;200>=e+20*(b-1)?cla(a,"big"):clr(a,"big")}},50)}
  51. function Fc146(){var a=$("idoliblockdialog"),b=$("dialogfeed"),e=$("qcounter"),f=$("idoloselected");null!=e&&(e.value=parseInt(e.value)+1);null!=b&&""!=b.value.trim()&&null!=f&&null!=e?(b={url:"post-cerca-idoli/",parametri:[["txt",b.value.trim()],["nq",e.value]],callback:function(b){if(null!=b.nq&&b.nq==e.value)if(null!=a&&Fc12(a,"","i"),b=b.idoli,null!=b){var g=b.length;if(0<g)for(var k=0;k<g;k++){var l=D.createElement("div");l.id="d-idolo"+b[k].id;l.className="idolo";Fc12(l,
  52. "<img src='"+b[k].img+"' /><div class='nomeidolo'>"+b[k].nome+"</div>","i");l.onclick=function(a){a=$qsa("#idoliblockdialog .idolo");for(var b=0;b<a.length;b++)a[b].className="idolo";this.className="idolo selected";b=parseInt(this.id.substr(7));a=$("dialogbutton1");0<b?(f.value=b,null!=a&&(b=$("posttoset"),null!=b&&(b=parseInt(b.value),0<b?(a.setAttribute("data-a","setidolo,"+b+",0,"),a.className="button black"):(b=$("pgtoset"),null!=b&&(b=b.value,""!=b&&(a.setAttribute("data-a","setidolo,0,0,"+b),
  53. a.className="button black")))))):null!=a&&(a.className="button disabled")};a.appendChild(l)}}else null!=a&&Fc12(a,"<p class='f12'>Nessun Idolo trovato corrispondente ai tuoi criteri di ricerca. <a href='/nuovo-idolo/'>Crea subito un nuovo idolo</a>!</p>","i")}},Fc0(b)):null!=a&&Fc12(a,"","i")}
  54. function Fc49(a,b,e){0<a&&Fc0({url:"like-idolo/",parametri:[["i",a],["l",b],["t",e]],callback:function(b){if(null!=b.html){var e=$("idolo"+a);null!=e&&Fc12(e,b.html,"o")}else null!=b.yeah&&(e=$("btnyeah"+a),null!=e&&(e.className=b.yeah?"button black":"button white")),null!=b.bleah&&(e=$("btnbleah"+a),null!=e&&(e.className=b.bleah?"button black":"button white")),null!=b.nyeah&&(e=$("nyeah"+a),null!=e&&Fc12(e,b.nyeah,"i")),null!=b.nbleah&&(e=$("nbleah"+a),null!=e&&
  55. Fc12(e,b.nbleah,"i")),Fc27(b)}})}function Fc149(a,b){if(""!=a){var e=$("ignore_"+a);null!=e&&Fc0({url:b?"nuovo-ignore/":"annulla-ignore/",parametri:[["nick",a]],callback:function(f){null!=f.btn&&Fc12(e,f.btn,"i");1==b&&null!=$("seguace_"+a)&&Fc90(a,2,0)}})}}function Fc115(a){var b=$(a);a=$(a+"r");if(null!=b&&null!=a){var e=parseInt(a.value)+1;a.value=e;b.style.transform="rotate("+90*e+"deg)";G7=0}}
  56. function Fc177(a){var b=$("cka"),e=b.options[b.selectedIndex].value;b=$("ckt");Fc7(a,e,b.options[b.selectedIndex].value);Fc30()}
  57. function fbn_initVocale(a,b){null==a&&(a=!1);if(Fc183("vocale")){var e="1"==a?"#afelscontainer":"#colonna_cx";var f=$q(e+" #recvoc"),g=$q(e+" #norecvoc"),h=$q(e+" #vocpreview"),k=$q(e+" #voctrack");navigator.mediaDevices.getUserMedia({audio:!0}).then(function(){G20=!0;G18&&"recording"==G18.state&&Fc181("stop",a,b);G19=G18=!1;h.innerHTML="";clr(f,"n");g.innerHTML="Annulla";clr(k,"n");fbn_showHideElWithClass($q(e+" #voc_area"));
  58. var l=$qsa(e+" .iconf.mic");[].forEach.call(l,function(a){clr(a,"ok")})},function(){G20=!1;var a=[];a.title=b64e("Permesso al microfono negato");a.text=b64e("Per poter inviare messaggi vocali devi acconsentire all'utilizzo del microfono. Consulta le impostazioni del browser.");fbn_openAlert(a)});G21[b]=""}}
  59. function Fc50(){var a=$("emailtovalid");if(null!=a&&""!=a.value){var b=$("coderesend");Fc12(b,'<img src="/grafica/gif/loading.gif" />',"i");b.className="";b.setAttribute("data-a","");a={url:"nuovo-codice/",parametri:[["m",b64e(a.value)]],callback:function(a){null!=a["class"]&&(b.className=a["class"]);null!=a.html&&Fc12(b,a.html,"i")}};Fc0(a)}}function Fc51(){$("theimg")&&Fc31()}
  60. function Fc52(a,b,e){if(0<a){var f=$("like_p"+a);null!=f&&(Fc22(f,3),Fc0({url:"like-post/",parametri:[["pref",a],["op",b],["type",e]],callback:function(b){if(null!=b.status&&"ok"==b.status&&(null!=b.html&&Fc12(f,b.html,"o"),$("nlike_p"+a),null!=b.html2)){var e=$("likecontainer_p"+a);Fc12(e,b.html2,"i");1<=b.n?clr(e,"n"):cla(e,"n")}Fc85($("loadingmini"));Fc134(a)}}))}}
  61. function Fc116(a){a.style.backgroundImage="url(/grafica/gif/loading3square2.gif)";a.style.cursor="default";var b=a.parentNode,e=a.nextSibling,f=new Image,g=e.src.replace(".jpg",".gif"),h=b.parentNode.parentNode;null!=h&&h.classList.contains("post")&&Fc118(h.id);f.onload=function(){e.src=g;Fc85(a);Fc12(b,'<span class="stopbtn" data-a="stopgif">&#11035;&nbsp;stop</span>',"ab")};f.src=g}
  62. function Fc191(a,b){function e(){Fc191(a,!0)}null==b&&(b=!1);var f=new Image,g=a.getAttribute("data-src");f.onload=function(){a.src=g;clr(a,"lazy");a.removeAttribute("data-src");a.removeAttribute("onload");var b=a.nextSibling;null!=b&&"asyncimgloading"==b.className&&Fc85(b)};if(b){var h=(new Date).getTime();g=-1==g.indexOf("?")?g+"?nfc="+h:g+"&nfc="+h}else f.onerror=e,f.onabort=e;f.src=g}
  63. function Fc192(){var a=$qsa(".lazy");[].forEach.call(a,function(a){Fc191(a,!1)})}function Fc193(){var a=(window.pageYOffset||D.scrollTop)-(D.clientTop||0)+window.innerHeight+100;isNaN(a)&&(a=window.innerHeight+100);var b=document.body.getBoundingClientRect(),e=$qsa(".lazy");[].forEach.call(e,function(e){var f=e.getBoundingClientRect();parseInt(f.top-b.top)<=a&&Fc191(e,!1)})}
  64. function Fc163(a,b){a.style.backgroundImage="url(/grafica/gif/loading3square2.gif)";a.style.cursor="default";var e=a.parentNode,f=a.nextSibling,g=f.src.replace(".jpg",".mp4"),h=f.getAttribute("width"),k=e.parentNode.parentNode;null!=k&&k.classList.contains("post")&&Fc118(k.id);Fc12(f,'<video style="width:'+h+'px;" autoplay loop poster="'+g.replace(".mp4",".jpg")+'"><source src="'+g+'" type="video/mp4"></video>',"o");a.nextSibling.play();Fc85(a);Fc12(e,'<span class="stopbtn" data-a="stopvideo">&#11035;&nbsp;stop</span>',
  65. "ab")}
  66. function Fc194(){"undefined"!==typeof glob_ads&&!G26||G27||(G25=!0,Fc0({url:"api/internal/abalert/",parametri:[],callback:function(a){G25=!1;if(null==$("dialog")){B.style.position="fixed";var b=$("centro_schermo"),e=D.createElement("div");e.id="dialog";e.innerHTML=a.html;b.style.position="fixed";b.appendChild(e);Fc63("")}}}),setTimeout(function(){G25&&($("container").removeChild($("work_area")),setTimeout(function(){alert(b64d("Tm9uIGNlcmNhcmUgZGkgYWdnaXJhcmUgaWwgbm9zdHJvIHNpc3RlbWEgYW50aSBhZGJsb2NrIQ=="))},200))},
  67. 5E3))}function Fc53(a){a=$("t2post"+a);null!=a&&(a.className="",Fc85(G6))}function Fc172(a){""!=a&&Fc0({url:"api/internal/elimina-cronologiamsg/",parametri:[["who_ref",a]],callback:function(a){location.reload()}})}function Fc173(a){""!=a&&Fc61({url:"api/internal/elimina-cronologiamsg-dialog/",parametri:[["who_ref",a]]})}
  68. function Fc153(a){""!=a&&Fc0({url:"elimina-msg/",parametri:[["m_ref",a]],callback:function(b){if(null!=b.status&&"ok"==b.status){var e;for(e=1;2>=e;++e)b=$("msg_"+a),Fc85(b);Fc30()}}})}function Fc150(a){""!=a&&Fc61({url:"elimina-msg-dialog/",parametri:[["m_ref",a]]})}function fbn_msgOpnDialog(a){""!=a&&Fc61({url:"api/internal/opzioni-msg-dialog/",parametri:[["m_ref",a]]})}
  69. function Fc54(a){""!=a&&(a={url:"segnala-msg/",parametri:[["m_ref",a],["nt",b64e($("dialogfeed").value)]]},Fc0(a))}function Fc55(a){""!=a&&Fc61({url:"segnala-msg-dialog/",parametri:[["m_ref",a]]})}function Fc188(){var a=$("reactionbox");0<parseInt(a.style.top)&&(a.style.top="",a.style.marginTop="",a.style.opacity="",a.removeAttribute("data-idc"));clearTimeout(G24);G24=!1}
  70. function Fc56(a,b,e){if(""!=a){var f=$("nemico_"+a);null!=f&&Fc0({url:e?"nuovo-nemico/":"annulla-nemico/",parametri:[["nick",a],["type",b]],callback:function(e){var g=$("nseguaci_"+a),k=$("nnemici_"+a);null!=e.btn&&Fc12(f,e.btn,"i");null!=e.na&&null!=g&&Fc12(g,e.na,"i");null!=e.nn&&null!=k&&Fc12(k,e.nn,"i");3==b&&Fc27(e)}})}}
  71. function Fc130(a,b){if(""!=a){var e={url:"api/internal/new-dialog/",parametri:[["type",a],["dati",b64e(JSON.stringify(b))]]};Fc61(e)}}function Fc57(){var a=$("smsblock");if(null!=a){var b=G6,e=D.querySelectorAll("#smsblock .sms").length;Fc0({url:"aggiungi-sms/",parametri:[["n",e]],callback:function(e){null!=e.html&&(Fc12(a,e.html,"be"),null!=b&&Fc42(b))}})}}
  72. function Fc58(a){""!=a&&Fc0({url:"elimina-notifica/",parametri:[["n_ref",a]],callback:function(b){if(null!=b.status&&"OK"==b.status){var e;for(e=1;2>=e;++e)b=$("notifica_"+a),Fc85(b)}}})}function Fc59(a){G13=a;var b=$("alertnotifiche");null!=b&&(0<a?Fc12(b,'<span class="notifica">'+a+"</span>","i"):0==a&&Fc12(b,"","i"));Fc123()}
  73. function Fc60(a){G12=a;var b=$("alertmsg");null!=b&&(0<a?Fc12(b,'<span class="notifica">'+a+"</span>","i"):0==a&&Fc12(b,"","i"));Fc123()}function Fc174(){"Notification"in window&&(navigator.serviceWorker.register("/fbc_sw.js?c=0.2").then(function(a){},function(a){}),Notification.requestPermission(function(a){}))}
  74. function Fc175(a,b,e){"Notification"in window&&(navigator.serviceWorker.register("/fbc_sw.js?c=0.2").then(function(a){},function(a){}),Notification.requestPermission(function(e){"granted"===e&&navigator.serviceWorker.ready.then(function(e){e.showNotification(a,{body:b,icon:"/grafica/favicons/favicon-192x192.png",vibrate:[400,100,400],tag:"nuove-notifiche"})})}))}function fbn_onUpload(){$("form_upload").submit()}
  75. function fbn_openAlert(a){var b=D.createElement("div");b.className="alert";b.id="dialog";var e=$("centro_schermo");Fc63("white");var f="";null!=a.action&&(f=a.action);Fc0({url:"mostra-alert/",parametri:[["tt",a.title],["tx",a.text],["act",f]],callback:function(a){null!=a.html&&(Fc12(b,a.html,"i"),e.style.position="fixed",clr(e,"anim03s"),e.appendChild(b),e.style.top=W.innerHeight/2-b.clientHeight+"px")}})}
  76. function Fc61(a){null!=$("dialog")&&Fc30();var b=1,e=250,f=D.createElement("div");null!=a.dialogtype&&(b=a.dialogtype);1==b?f.className="dialog anim03s":2==b&&(f.className="dialog",e=1);f.id="dialog";f.innerHTML='<img class="mb20 mt20" src="/grafica/gif/loading.gif" /><div class="fw cp" data-a="xdialog"><strong>x annulla</strong></div>';var g=$("centro_schermo"),h=D.documentElement&&D.documentElement.scrollTop||B.scrollTop;g.style.top=400<=W.innerHeight?h+W.innerHeight/2-150+
  77. "px":h+150+"px";g.appendChild(f);setTimeout(function(){Fc63("");Fc0({url:a.url,parametri:a.parametri,callback:function(a){if(null!=a.html){var e=D.createElement("div");e.className="dialogcontent";e.id="dialogcontent";Fc12(e,a.html,"i");1==b?setTimeout(function(){Fc12(f,"","i");f.appendChild(e);f.style.width="550px";setTimeout(function(){f.style.height=e.clientHeight+"px";var a=parseInt(g.style.top)-e.clientHeight/2;40>a&&(a=40);g.style.top=a+"px";setTimeout(function(){e=
  78. $("dialogcontent").style.visibility="visible";f.style.height="auto";null!=$("dialogfeed")&&$("dialogfeed").focus()},400)},300)},400):2==b&&(a=D.documentElement,a=(W.pageYOffset||a.scrollTop)-(a.clientTop||0),Fc12(f,"","i"),f.appendChild(e),f.style.width="550px",f.style.height="auto",g.style.top=40+a+"px",e=$("dialogcontent").style.visibility="visible")}}})},e)}
  79. function Fc62(a){if(null==$("theimg")){var b=D.createElement("img");b.id="theimg";790>G10.window_w?(b.src="/grafica/zoom.png",b.onclick=function(){var b=W.open(a);Fc31();b.focus()}):(b.src=a,b.onclick=function(){Fc31()});b.style.verticalAlign="middle";var e=$("centro_schermo");e.style.top=(D.documentElement&&D.documentElement.scrollTop||B.scrollTop)+100+"px";e.appendChild(b);Fc63("")}}
  80. function Fc63(a){null==a||""==a?$("layer_mask").className="popup_mask":"white"==a&&($("layer_mask").className="popup_mask white");d("layer_mask","block");d("centro_schermo","block")}function Fc64(){var a=$("colonna_cx");null!=a&&(a.className="anim03s open")}
  81. function Fc136(a){a=a.parentNode.getElementsByTagName("UL")[0];if(a.classList.contains("nascosto")){var b=$qsa(".listapaesi ul");[].forEach.call(b,function(a){cla(a,"nascosto")});clr(a,"nascosto")}else cla(a,"nascosto")}function Fc65(a){null==$("smiles")&&Fc61({dialogtype:2,url:"mostra-smiles/",parametri:[["id",a]]})}
  82. function Fc180(a,b){if(0<a){for(n=1;4>=n;++n)cla($("coppit"+n),"disab");clr($("coppit"+a),"disab");$("prselected").value=b}var e=$("pgo");clr(e,"disab");e.setAttribute("data-a","pgo")}function Fc179(){$("pform").submit()}function fbn_playMp4(a){var b=a.parentNode;a.nextSibling.play();Fc85(a);a=b.parentNode.parentNode;null!=a&&a.classList.contains("post")&&Fc118(a.id);Fc12(b,'<span class="stopbtn" data-a="stopvideo">&#11035;&nbsp;stop</span>',"ab")}
  83. function Fc66(a,b,e){var f=$("video_"+a);if(null!=f){var g=f.offsetHeight;0< !g&&(g=e?200:390);Fc12(f,'<iframe id="iframevideo'+a+'" class="iframevideo" width="100%" height="'+g+'" src="https://www.youtube.com/embed/'+b+'?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>',"o")}}
  84. function Fc67(a){if(0<G4){var b=G4;a==G4&&(a=0);G4=0;Fc67(b)}0<a&&(menu=$("boxeditcategory_menu"+a),btn=$("editcategory_btnDown"+a),icon=$("postCategory_icon"+a),G4=a,null!=menu?($q("#post_"+a+" .postcontent .posttop").removeChild(menu),btn.style.backgroundColor="",btn.style.color="",icon.className="icon triangolinoNero",G4=0):(b=
  85. $("categorymenu_proto"),null!=b&&(a=b.innerHTML.replace(/{pid}/g,a),Fc12(btn,a,"ae"))))}function Fc139(){var a=$("centroschermocln");if(null!=a){var b=0,e=$q("#floatpost .posts_block .post");if(null!=e){b=$q("#floatpost .sprbox");Fc85(b);b=e.id;var f=e.outerHTML}Fc85(a);b&&(e=$(b),null!=e&&(e.outerHTML=f))}a=$("layermaskcln");null!=a&&Fc85(a)}
  86. function Fc69(a){0<a&&Fc0({url:"cancella-post/",parametri:[["pref",a]],callback:function(b){null!=b.status&&"ok"==b.status&&(Fc85($("post_"+a)),Fc30())}})}function Fc70(a){0<a&&Fc61({url:"cancella-post-dialog/",parametri:[["pref",a]]})}function Fc71(a){0<a&&Fc61({url:"descrivi-post-dialog/",parametri:[["pref",a]]})}
  87. function Fc72(a){if(0<a){var b={url:"descrivi-post/",parametri:[["pref",a],["ptx",b64e($("dialogfeed").value)],["pkw",b64e($("dialogfeed2").value)]],callback:function(b){if(null!=b.redirect)location.href=b.redirect;else if(null==b.alert&&(b=b.html,null!=b)){Fc30();var e=$("post_"+a);null!=e&&Fc12(e,b,"o")}}};Fc0(b)}}
  88. function Fc73(a){var b=$n("remove[]"),e=b.length,f=[];for(x=0;x<e;x++)b[x].checked&&f.push(b[x].value);f.length&&(a={url:"post-rimuovi-idoli/",parametri:[["idoli",b64e(JSON.stringify(f))],["pref",a]],callback:function(a){if(null!=a.status&&"ok"==a.status){a=f.length;for(x=0;x<a;x++)Fc86("i"+f[x]);$("dialogedited").value=1;Fc151()}}},Fc0(a))}
  89. function Fc74(a){0<a&&Fc0({url:"segnala-post/",parametri:[["pref",a]],callback:function(a){null!=a.redirect&&(location.href=a.redirect)}})}function Fc75(a){0<a&&Fc61({url:"segnala-post-dialog/",parametri:[["pref",a]]})}
  90. function Fc171(a,b){if(0<a){var e=$("savep"+a);if(null!=e){var f=$q("#savep"+a+" a");Fc22(f,3);Fc0({url:"api/internal/post-save/",parametri:[["pref",a],["op",b]],callback:function(b){null!=b.status&&"ok"==b.status&&null!=b.html&&Fc12(e,b.html,"o");Fc85($("loadingmini"));Fc134(a)}})}}}
  91. function Fc76(a){0<a&&(a={url:"condividi-post/",parametri:[["pref",a],["ptx",b64e($("dialogfeed").value)],["pcat",$("catfeed").value],["pwhere",$("whereshare").value]],callback:function(a){null!=a.redirect&&(location.href=a.redirect)}},Fc0(a))}function Fc77(a){0<a&&Fc61({url:"condividi-post-dialog/",parametri:[["pref",a]]})}
  92. function Fc138(a,b){if(0<a){var e=D.createElement("div");e.id="floatpost";var f=$("container"),g=$("centro_schermo"),h=Fc148("layer_mask",!1);h.id="layermaskcln";h.style.zIndex=900;f.insertBefore(h,f.firstChild);g=g.cloneNode(!1);g.id="centroschermocln";g.style.top=(D.documentElement&&D.documentElement.scrollTop||B.scrollTop)+100+"px";g.style.zIndex=950;g.style.padding="4px";f.insertBefore(g,f.firstChild);g.appendChild(e);h.className="popup_mask";d("layermaskcln","block");Fc0({url:"api/internal/post-show/",
  93. parametri:[["pref",a],["psec",b]],callback:function(a){null!=a.html?(Fc12(e,a.html,"i"),setTimeout(function(){d("centroschermocln","block")},500)):Fc139()},callbackfail:function(){Fc139()}})}}
  94. function Fc78(a,b,e){var f=$("idoloselected");if(null==b||0==b)b=parseInt(f.value);0<b&&(0<a||""!=e)&&Fc0({url:"post-assegna-idolo/",parametri:[["idolo",b],["pref",a],["pgroup",e]],callback:function(a){null!=a.html&&null!=a.id?null==$("i"+a.id)&&(Fc12($("idoliasblockdialog"),a.html,"be"),$("dialogfeed").value="",Fc12($("idoliblockdialog"),"","i"),a=$("dialogbutton1"),a.className="button disabled",a.removeAttribute("data-a"),$("dialogedited").value=1):Fc30()}})}
  95. function Fc79(a){0<a&&Fc61({url:"post-assegna-idolo-dialog/",parametri:[["pref",a]]})}function Fc80(){var a=$("dialogedited");if(null!=a&&1==parseInt(a.value)){var b=0;a=$("posttoset");null!=a&&(b=parseInt(a.value));b?Fc0({url:"refresh-post/",parametri:[["pref",b]],callback:function(a){a=a.html;null!=a&&null!=$("post_"+b)&&Fc12($("post_"+b),a,"o");Fc30()}}):Fc30()}else Fc30()}
  96. function Fc81(a){if(0<a){var b={url:"rendi-post-condiviso/",parametri:[["pref",a],["purl",b64e($("dialogfeed").value)],["ppx",$("dialogselect").value]],callback:function(b){if(null!=b.redirect)location.href=b.redirect;else if(null==b.alert&&(b=b.html,null!=b)){Fc30();var e=$("post_"+a);null!=e&&Fc12(e,b,"o")}}};Fc0(b)}}
  97. function Fc82(a){0<a&&(Fc67(0),Fc61({url:"rendi-post-condiviso-dialog/",parametri:[["pref",a]]}))}
  98. function Fc83(a){if(null!=$("dialogbutton1")){var b=$("ugc");if(null!=b){var e="",f="";null!=$("ugcdesc")&&(e=$("ugcdesc").value);null!=$("ugckey")&&(f=$("ugckey").value);if("meme"==a)a="meme-post";else if("sms"==a)a="sms-post";else if("cit"==a)a="cit-post";else if("lap"==a)a="lap-post";else return!1;b=b.getAttribute("data-img");e={url:a+"/",parametri:[["ptx",b64e($("dialogfeed").value)],["pcat",$("catfeed").value],["pwhere",$("wherepost").value],["pimg",b],["pdesc",e],["pkey",f]],callback:function(a){null!=
  99. a.redirect&&(location.href=a.redirect)}};Fc0(e)}}}function Fc84(a){if(null!=$("ugc")){if("meme"==a)a="meme-post-dialog";else if("sms"==a)a="sms-post-dialog";else if("cit"==a)a="cit-post-dialog";else if("lap"==a)a="lap-post-dialog";else return!1;Fc61({url:a+"/",parametri:[]})}}
  100. function Fc114(a,b,e){var f=$(b+"r");null!=f&&(f.value=0);if("c"==e){f=$("previewimgcom_proto");var g=a.id.substr(11);cloneproto=f.cloneNode(!0);cloneproto.id="previewimgcom"+g;f="#newcp"+g+" .form";var h=$q(f+" .previewimagebox");Fc85(h);var k="#newcp"+g+" .iconf.fotocamera";a.files&&a.files[0]&&($q(f).appendChild(cloneproto),h=$q(f+" .previewimage"),h.id=b,$q(f+" .previewimagebox input").id=b+"r",$q(f+" .previewimagebox .rotate a").setAttribute("data-a","imgrotate,"+b))}else if("ec"==
  101. e){var l=a.id.substr(17);k="#areaeditcom_"+l+" .menu .iconf.fotocamera"}else"ep"==e?(g=a.id.substr(17),k="#areaeditpost_"+g+" .menu .iconf.fotocamera"):"p"==e?k=".mainpostfeed .iconf.fotocamera":"m"==e&&(k=".textarea_toolsbar .iconf.fotocamera");if(a.files&&a.files[0]){var m=$(b);if(null!=m){m.style.transform="";m.style.backgroundImage="";var p=m.childNodes;p[0].style.display=""}b=new FileReader;b.onload=function(a){null!=m&&(m.style.backgroundImage="url("+a.target.result+")",p[0].style.display="none");
  102. a=$qsa(k);[].forEach.call(a,function(a){cla(a,"ok")})};"p"==e?d("textarea_uploadimage_area","block"):"m"==e?clr($("msg_uploadimage_area"),"n"):"ep"==e?clr($q("#areaeditpost_"+g+" .previewimagebox"),"n"):"ec"==e&&clr($q("#areaeditcom_"+l+" .previewimagebox"),"n");b.readAsDataURL(a.files[0])}else a=$qsa(k),[].forEach.call(a,function(a){clr(a,"ok")}),"p"==e?d("textarea_uploadimage_area","none"):"m"==e?cla($("msg_uploadimage_area"),"n"):"ep"==e?cla($q("#areaeditpost_"+g+" .previewimagebox"),"n"):"ec"==
  103. e&&cla($q("#areaeditcom_"+l+" .previewimagebox"),"n");"p"==e&&Fc147()}function Fc190(a){if(""!=a){if(null==$("profilocss")){var b=D.createElement("link");b.type="text/css";b.rel="stylesheet";b.id="profilocss";b.href="/css/v/profilo.css";D.getElementsByTagName("head")[0].appendChild(b)}Fc61({url:"api/internal/show-user-profile/",parametri:[["nick",a]]})}}
  104. function Fc187(a,b,e){var f=$("posts_block").getBoundingClientRect();"p"==e?(e=$("like_p"+b).getBoundingClientRect(),f=e.top-f.top,e=$("reactionbox"),e.setAttribute("data-idp",b),e.removeAttribute("data-idc"),e.style.top=f-1*parseInt(e.offsetHeight)+"px",e.style.marginTop=0,e.style.opacity=1):"c"==e&&(a=a.getAttribute("data-a").split(","),b=a[1],a=a[2],e=$("like_c"+a).getBoundingClientRect(),f=e.top-f.top,e=$("reactionbox"),e.setAttribute("data-idp",b),e.setAttribute("data-idc",a),e.style.top=
  105. f-1*parseInt(e.offsetHeight)+"px",e.style.marginTop=0,e.style.opacity=1);clearTimeout(G24);G24=setTimeout(function(){Fc188()},4500)}function Fc189(a){var b=$("reactionbox"),e=b.getAttribute("data-idp");b=b.getAttribute("data-idc");null!=e&&0<e&&0<=a&&(null!=b&&0<b?Fc35(e,b,1,a):Fc52(e,1,a),Fc188())}
  106. function Fc131(a,b){Fc0({url:"api/internal/new-gift/",parametri:[["nick",b],["rg",a]],callback:function(a){Fc30()}})}
  107. function Fc181(a,b,e){null==a&&(a="");null==b&&(b=null);if("stop"!=a&&Fc183("vocale")){var f="1"==b?"#afelscontainer":"#colonna_cx";var g=$q(f+" #recvoc"),h=$q(f+" #norecvoc"),k=$q(f+" #voctrack");G18&&"recording"==G18.state?(G18.stop(),G19.getAudioTracks()[0].stop(),clearTimeout(G22),g.innerHTML="Registra",k.src="/grafica/vocale/recb0.gif",clr(h,"n"),h.innerHTML="Elimina",cla(g,"n")):"stop"!=a&&(g.innerHTML="Stop",
  108. cla(h,"n"),navigator.mediaDevices.getUserMedia({audio:!0}).then(function(a){var g=[];G19=a;G18=new W.MediaRecorder(a);G18.ondataavailable=function(a){g.push(a.data);if("inactive"==G18.state){a=new Blob(g,{type:"audio/webm"});var b=URL.createObjectURL(a),h=D.createElement("audio"),m=$q(f+" #vocpreview");G21[e]=a;h.controls=!0;h.setAttribute("controlslist","nodownload");h.src=b;m.innerHTML="";m.appendChild(h);cla(k,"n");a=$qsa(f+" .iconf.mic");[].forEach.call(a,
  109. function(a){cla(a,"ok")});G7=0}};G18.start();k.src="/grafica/vocale/recb.gif";G22=setTimeout(function(){Fc181("stop",b)},121E3)}))}}function Fc113(a){a=a.previousSibling;null!=a&&Fc191(a)}function Fc86(a){a=$(a);Fc85(a)}
  110. function Fc168(a){var b=$n("remove[]"),e=b.length,f=[];for(x=0;x<e;x++)b[x].checked&&f.push(b[x].value);f.length&&(b="","ignore"==a?b="api/internal/rimuovi-ignora-utenti/":"blocca"==a&&(b="api/internal/sblocca-utente/"),""!=b&&(a=$("utgt").value,a={url:b,parametri:[["users",b64e(JSON.stringify(f))],["utgt",a]],callback:function(a){if(null!=a.status&&"ok"==a.status){a=f.length;for(x=0;x<a;x++)Fc86("U"+f[x]);Fc165()}}},Fc0(a)))}
  111. function Fc87(a,b){var e=$("canvas");if(null!=e){var f=e.getContext("2d"),g=$(a),h=$(b);if(null!=g&&null!=h)if(e.width=g.naturalWidth,e.height=g.naturalHeight,f.drawImage(g,0,0),e.msToBlob){h=e.msToBlob();e=$("btndownload").getAttribute("download");if(null==e||""==e)e="facciabuco_post.jpg";navigator.saveBlob=navigator.saveBlob||navigator.msSaveBlob||navigator.mozSaveBlob||navigator.webkitSaveBlob;navigator.saveBlob(h,e)}else e=e.toDataURL("image/jpeg").replace("image/jpeg","application/octet-stream"),
  112. h.href=e}}
  113. function Fc88(){function a(a,b,e){var f=$(a).getAttribute("data-ntl");null==f||1!=f?(b=$qsa(b).length,Fc0({url:e+"/",parametri:[["nm",b]],callback:function(b){if(null!=b.html){var e=$(a);""==b.html?e.setAttribute("data-ntl",1):Fc12(e,b.html,"be");G3=!1}}})):G3=!1}if(null!=$("posts_block")){var b=$("posts_block"),e=b.getAttribute("data-ntl");if(null!=e&&1==e||null===b.offsetParent)G3=!1;else{e=$qsa("#posts_block .post");e=e[e.length-
  114. 1].getAttribute("id").substr(5);var f=$qsa("#posts_block .post").length;e={url:"carica-vecchi-posts/",parametri:[["l",e],["nel",f],["s",G16]],callback:function(a){++G16;var e=$("loadnewposts");null!=e&&Fc85(e);e=$("posts_block");if(null!=a.posts){var f=a.posts,g=f.length;if(0<g){for(var m="",p=0;p<g;p++){var q=f[p].id;null!=q&&null==$("post_"+q)&&(m+=f[p].html)}Fc12(e,m,"be")}else b.setAttribute("data-ntl",1);G3=!1}null!=a.footer&&Fc12(e,
  115. a.footer,"be")}};Fc0(e)}}else null!=$("messaggi")?(e=$q("#messaggi .msg:last-of-type").getAttribute("id").substr(4),e={url:"carica-vecchi-messaggi/",parametri:[["l",e]],callback:function(a){if(null!=a.messaggi){a=a.messaggi;var b=a.length;if(0<b){for(var e="",f=$("messaggi"),g=0;g<b;g++){var p=a[g].id;null!=p&&null==$("msg_"+p)&&(e+=a[g].html)}Fc12(f,e,"be")}G3=!1}}},Fc0(e)):null!=$("notifiche")?(b=$q("#notifiche .notifica:last-of-type"),null!=b?(e=b.getAttribute("id").substr(9),
  116. e={url:"carica-vecchie-notifiche/",parametri:[["l",e]],callback:function(a){if(null!=a.notifiche){a=a.notifiche;var b=a.length;if(0<b){for(var e="",f=$("notifiche"),g=0;g<b;g++){var p=a[g].id;null!=p&&null==$("notifica_"+p)&&(e+=a[g].html)}Fc12(f,e,"be")}G3=!1}}},Fc0(e)):G3=!1):null!=$("idoli")?a("idoli","#idoli .post","carica-vecchi-idoli"):null!=$("serietv")?a("serietv","#serietv .elem","api/internal/load-serie-tv"):null!=$("elenco_utenti")?(e=$("elenco_utenti").getAttribute("data-ntl"),
  117. null==e||1!=e?(e={url:"carica-vecchi-utenti/",parametri:[],callback:function(a){if(null!=a.utenti){a=a.utenti;var b=a.length;if(0<b){for(var e="",f=$("elenco_utenti"),g=0;g<b;g++){var p=a[g].id;null!=p&&null==$("user_"+p)&&(e+=a[g].html)}Fc12(f,e,"be")}G3=!1}}},Fc0(e)):G3=!1):G3=!1;setTimeout(function(){Fc194()},1500)}
  118. function Fc89(){if(null!=$("posts_block")){var a=$("posts_block").getAttribute("data-ntl");null==a||1!=a?(a=$q("#posts_block .post").getAttribute("id").substr(5),a={url:"carica-nuovi-posts/",parametri:[["f",a]],callback:function(a){if(null!=a.posts){a=a.posts;if(null!=a){a=a.reverse();var b=a.length;if(0<b){for(var f="",g=$q("#posts_block .post"),h=0;h<b;h++){var k=a[h].id;null!=k&&(null==$("post_"+k)?f+=a[h].html:Fc12($("post_"+k),a[h].html,"o"))}null!=g&&Fc12(g,f,"bb")}}G3=
  119. !1}}},Fc0(a)):G3=!1}else null!=$("messaggi")?(a=$qsa("#messaggi .msg")[0].getAttribute("id").substr(4),a={url:"carica-nuovi-messaggi/",parametri:[["f",a]],callback:function(a){if(null!=a.messaggi){a=a.messaggi;var b=a.length;if(0<b){for(var f="",g=$q("#messaggi .msg:first-of-type"),h=0;h<b;h++){var k=a[h].id;null!=k&&null==$("msg_"+k)&&(f+=a[h].html)}Fc12(g,f,"bb")}G3=!1}}},Fc0(a)):null!=$("notifiche")?(a=$q("#notifiche .notifica:first-of-type").getAttribute("id").substr(9),
  120. a={url:"carica-nuove-notifiche/",parametri:[["f",a]],callback:function(a){if(null!=a.notifiche){a=a.notifiche;var b=a.length;if(0<b){for(var f="",g=$("notifiche"),h=0;h<b;h++){var k=a[h].id;null!=k&&null==$("notifica_"+k)&&(f+=a[h].html)}Fc12(g,f,"ab")}G3=!1}}},Fc0(a)):G3=!1}function Fc126(a,b){a.preventDefault();var e=b.parentNode,f=e.elements.search,g=f.value;"fbc "==g.substr(0,4).toLowerCase()?com(g,e,f):e.submit()}
  121. function Fc129(a){null==a&&(a="");var b=$("search_box"),e=$q(".btncontainer.search");if(null!=b){var f=!1;"ios"==G10.os&&790>=G10.window_w&&(f=!0);var g=$q(".btncontainer.search .triangle");if("close"==a||!b.classList.contains("n")&&"open"!=a){clr(e,"selected");cla(b,"n");if(f){var h=$("headbar");h.style.position="";h.style.top=""}cla(g,"n")}else{Fc159();cla(e,"selected");clr(g,"n");var k=$q("#form_search input[name='search']");clr(b,"n");if(f){var l=function(){setTimeout(function(){h.style.position=
  122. "";h.style.top="";cla(b,"n");cla(g,"n");clr(e,"selected");k.removeEventListener("blur",l)},200)};h=$("headbar");h.style.position="absolute";h.style.top=B.scrollTop+0+"px";k.addEventListener("blur",l)}null!=k&&k.focus()}Fc42(G6)}}function Fc128(a,b){13==("which"in a?a.which:a.keyCode)&&(a.preventDefault(),Fc126(a,b))}
  123. function Fc90(a,b,e){if(""!=a){var f=$("seguace_"+a);null!=f&&Fc0({url:e?"nuovo-seguace/":"annulla-seguace/",parametri:[["nick",a],["type",b]],callback:function(g){var h=$("nseguaci_"+a),k=$("nnemici_"+a);null!=g.btn&&Fc12(f,g.btn,"i");null!=g.na&&null!=h&&Fc12(h,g.na,"i");null!=g.nn&&null!=k&&Fc12(k,g.nn,"i");3==b&&Fc27(g);1==e&&null!=$("ignore_"+a)?Fc149(a,0):0==e&&null!=$("stalker_"+a)&&Fc184(a,0)}})}}
  124. function fbn_selectForumPost(a){if(a.checked)var b=" sel",e=" sel";else e=b="";a="#pcontent"+a.value+" .table .cell.";$q(a+"a").className="cell a"+b;$q(a+"b").className="cell b"+e}
  125. function Fc151(){var a=$n("remove[]"),b=a.length,e=!1;for(x=0;x<b;x++)if(a[x].checked){e=!0;break}a=$("dialogbutton2");b=!1;null!=a&&(e&&(e=$("posttoset"),null!=e&&(id=parseInt(e.value),0<id&&(b=!0))),b?(a.setAttribute("data-a","remidoli,"+id),a.className="button black"):(a.removeAttribute("data-a"),a.className="button disabled"))}
  126. function Fc165(a){var b=$n("remove[]"),e=b.length,f=!1;for(x=0;x<e;x++)if(b[x].checked){f=!0;break}b=$("dialogbutton2");null!=b&&(f?(b.setAttribute("data-a","remusers,"+a),b.className="button black"):(b.removeAttribute("data-a"),b.className="button disabled"))}
  127. function Fc137(a){var b=a.getAttribute("data-paeseid"),e=a.getAttribute("data-paeses");a=a.parentNode.parentNode;a.childNodes[0].childNodes[0].className="bpaese "+e;a.parentNode.getElementsByTagName("INPUT")[0].value=b;b=$qsa(".listapaesi ul");[].forEach.call(b,function(a){cla(a,"nascosto")})}
  128. function Fc166(a,b){var e="";"ignore"==a?e="api/internal/ignora-utente/":"blocca"==a&&(e="api/internal/blocca-utente/");if(""!=e){var f=$("userselected");if(null==b||0==b||""==b)b=f.value;0!=b&&""!=b&&(f=$("utgt").value,Fc0({url:e,parametri:[["user",b],["utgt",f]],callback:function(a){null!=a.html&&null!=a.id?null==$("U"+a.id)&&(Fc12($("usersasblockdialog"),a.html,"be"),$("dialogfeed").value="",Fc12($("usersblockdialog"),"","i"),a=$("dialogbutton1"),a.className="button disabled",
  129. a.removeAttribute("data-a")):Fc30()}}))}}function Fc132(a){a=$(a);var b=$("smilesfeed").value;null!=a&&(a.value+=b,Fc30(),b=a.getAttribute("data-kd"),null!=b&&(b=b.split(","),"sizeboxadjust"==b[0]&&Fc142(a,b[1],b[2])),a.focus())}
  130. function Fc124(a){if(0<a){var b=$q("#commenti_block"+a+" div.commento:first-of-type");parseInt(b.id.substr(2))&&Fc0({url:"mostra-commenti-iniziali-post/",parametri:[["pref",a]],callback:function(b){if(null!=b.html){var e=$("commenti_block"+a);null!=e&&Fc12(e,b.html,"i")}}})}}
  131. function Fc91(a,b){null==b&&(b=!1);obj=$(a);null!=obj&&("block"==obj.style.display?(obj.style.display="none",b&&Fc12(G6,"Mostra Tutto","i")):(obj.style.display="block",b&&Fc12(G6,"Nascondi Tutto","i")),Fc42(G6))}function Fc92(a){Fc93("link_p"+a)}function fbn_showHideElWithClass(a){null!=a&&(a.classList.contains("n")?clr(a,"n"):cla(a,"n"),Fc42(G6))}
  132. function Fc93(a){a=$(a);fbn_showHideElWithClass(a)}function Fc121(a){if(0<a){var b=$q("#commenti_block"+a+" div.commento:last-of-type");(b=parseInt(b.id.substr(2)))&&Fc0({url:"mostra-nuovi-commenti-post/",parametri:[["pref",a],["cref",b]],callback:function(b){if(null!=b.html){var e=$("commenti_block"+a);null!=e&&(Fc86("comnext"+a),Fc12(e,b.html,"be"))}}})}}
  133. function Fc94(a){if(0<a){var b=$q("#commenti_block"+a+" div.commento:first-of-type");(b=parseInt(b.id.substr(2)))&&Fc0({url:"mostra-commenti-post/",parametri:[["pref",a],["cref",b]],callback:function(b){if(null!=b.html){var e=$("commenti_block"+a);null!=e&&(Fc86("comstart"+a),Fc86("comold"+a),Fc12(e,b.html,"ab"))}}})}}
  134. function Fc95(a){var b=a.parentNode;if(null!=b){var e=D.createElement("div"),f=$("slidecontent");e.id="clonetemp";e.className="tab";e.innerHTML=b.innerHTML;e.style.visibility="hidden";f.appendChild(e);var g=e.scrollHeight;f.removeChild(e);e=b.style.maxHeight;e==g+"px"||e==g+1+"px"||e==g-1+"px"?(b.style.maxHeight="50px",a.children[1].className="icon down"):(b.style.maxHeight=g+"px",a.children[1].className="icon up")}}
  135. function Fc96(a,b){var e=D.createElement("div"),f=0,g=$("smilesfeed");e.id="clonetemp"+rand(1,99999);e.className="smile pa";e.innerHTML=a.innerHTML;e.style.top=a.offsetTop+"px";e.style.left=a.offsetLeft+"px";a.parentElement.appendChild(e);timer=setInterval(function(){++f;e.style.transform="scale("+(1+.2*f)+")";e.style.opacity=1-.04*f;20<=f&&(Fc85(e),clearInterval(timer))},10);g.value+=b}
  136. function fbn_smsChangeType(a){var b=$("typesms"+a);a=$("sms"+a);null!=b&&null!=a&&(a.className=1==b.value?"sms mittente":"sms destinatario")}function Fc184(a,b){if(""!=a){var e=$("stalker_"+a);null!=e&&Fc0({url:b?"api/internal/nuovo-stalk/":"api/internal/annulla-stalk/",parametri:[["nick",a]],callback:function(a){null!=a.btn&&Fc12(e,a.btn,"i")}})}}
  137. function Fc117(a){var b=a.parentNode,e=a.nextSibling,f=e.src.replace(".gif",".jpg");e.src=f;Fc85(a);Fc12(b,'<span class="playbtn" data-a="gif"></span>',"ab");a=b.parentNode.parentNode;null!=a&&Fc119(a.id)}function fbn_stopVideo(a){var b=a.parentNode;a.nextSibling.pause();Fc85(a);Fc12(b,'<span class="playbtn" data-a="playmp4"></span>',"ab");a=b.parentNode.parentNode;null!=a&&Fc119(a.id)}
  138. function Fc152(a,b,e){if(0<e&&0<b){a=$("previewimgecom"+e+"r");a=null!=a?parseInt(a.value):0;var f=$q("#areaeditcom_"+e+" #op_pixel");f=null!=f?f.value:0;var g=$("post_"+b),h=$("inputcom_"+e).value;if(null!=h){var k=!1,l=!1;if(6<$qsa("#commenti_block"+b+" div.commento").length||null!=$("comnext"+b))k=parseInt($q("#commenti_block"+b+" div.commento:first-of-type").id.substr(2)),l=parseInt($q("#commenti_block"+b+" div.commento:last-of-type").id.substr(2));var m=$("edc"+e),p=m.innerHTML;
  139. Fc22(m);G7=30;b={uploadfileform:"edituploaded_file"+e,url:"processa-modifica-commento/",parametri:[["cref",e],["pref",b],["ctx",b64e(h)],["pr",a],["cf",k],["ppx",f],["cl",l]],callback:function(a){G7=0;Fc12(m,p,"i");null!=a.html&&null!=g&&Fc12(g,a.html,"o")}};Fc0(b)}}}
  140. function fbn_submitMessage(a,b){null==a&&(a="");isfloat=0;""!=a&&(isfloat=1);Fc22(l);G7=30;Fc181("stop",isfloat);var e=G21[b];if(""!=a){var f=$("msgfeed"),g=f.value,h=$("uploaded_filemsg").value,k=$("previewimgmsgr");k=null!=k?parseInt(k.value):0;if(""!=g||""!=h||null!=e&&""!=e){var l=$("btnmsgfeed"),m=l.innerHTML;G21[b]="";e={upload:e,uploadfileform:"uploaded_filemsg",url:"api/internal/processa-messaggio/",parametri:[["m_uref",a],["m_msg",b64e(g)],
  141. ["m_r",k]],callback:function(a){G7=0;l.innerHTML=m;f.value="";if(null!=a.status&&"ok"==a.status){var b=$("afelscontainer"),e=Fc148("afloading",!0);b.innerHTML=a.html;b.insertBefore(e,null)}}};Fc0(e)}}else{var p=$("form_msgpostfeed");if(null!=e&&""!=e){var q=new FileReader;q.readAsDataURL(e);q.onloadend=function(){blobencoded=q.result;var a=D.createElement("input");a.name="vocalebin";a.type="hidden";a.value=blobencoded;p.appendChild(a);G21[b]="";p.submit()}}else p.submit()}}
  142. function Fc127(a,b){var e=$("p_commento"+b),f=e.offsetTop;if(0<b){var g=$("post_"+b),h=e.value,k=$("upload_file"+b).value,l=$("previewimgpost"+b+"r");l=null!=l?parseInt(l.value):0;if((""!=h||""!=k)&&null!=g){var m=W.pageYOffset;g=g.getAttribute("data-com");if(null==g||1!=g)g=0;var p=$("newc"+b),q=p.innerHTML;Fc22(p);G7=30;l={uploadfileform:"upload_file"+b,url:"processa-commento-post/",parametri:[["pref",b],["pcommento",b64e(h)],["pac",g],["pr",l]],callback:function(a){G7=
  143. 0;p.innerHTML=q;h.value="";if(null!=a.html){var g=$("boxcommenti"+b);null!=g&&(Fc12(g,a.html,"o"),e=$("p_commento"+b),null!=a.ncom&&(Fc12($("ncom_p"+b)," Commenti: "+a.ncom,"i"),g=$("comcontainer_p"+b),0==a.ncom?cla(g,"n"):clr(g,"n")),W.scrollTo(0,m-(f-e.offsetTop)),Fc134(b))}}};Fc0(l)}}}
  144. function Fc161(){clearTimeout(G17);G17=setTimeout(function(){var a=$("ssuggest"),b=$("stext"),e=$("sqc");null!=e&&(e.value=parseInt(e.value)+1);null!=b&&""!=b.value.trim()&&null!=e?(b={url:"api/internal/search-suggest/",parametri:[["txt",b.value.trim()],["nq",e.value]],callback:function(b){if(null!=b.nq&&b.nq==e.value)if(null!=a&&Fc12(a,"","i"),b=b.ricerca,null!=b){var f=b.length;if(0<f)for(var h=0;h<f;h++){var k=D.createElement("span");Fc12(k,
  145. b[h].search,"i");k.setAttribute("data-a","url,/cerca/"+b[h].url+"/");a.appendChild(k)}}else null!=a&&Fc12(a,"","i")}},G17=Date.now(),Fc0(b)):null!=a&&Fc12(a,"","i")},220)}function fbn_switchEmoji(a){var b=$("emoji"),e=$("smiles"),f=$("temoji"),g=$("tsmiles");clr(f,"sel");clr(g,"sel");cla(b,"n");cla(e,"n");1==a?(clr(b,"n"),cla(f,"sel")):2==a&&(clr(e,"n"),cla(g,"sel"))}
  146. function Fc97(a,b){var e=$(a);if(null!=e){var f=e.selectionStart,g=e.selectionEnd;if("b"==b)var h="[B]",k="[/B]";else"i"==b?(h="[I]",k="[/I]"):"u"==b&&(h="[U]",k="[/U]");k=e.value.substring(0,f)+h+e.value.substring(f,g)+k+e.value.substring(g);e.value=k;e.focus();e.selectionStart=f+h.length;e.selectionEnd=g+h.length}}
  147. function Fc98(a,b){if(""!=a)if("request"==b){var e={url:"black-list-dialog/",parametri:[["nick",a]]};Fc61(e)}else if("unlock"==b||"lock"==b)e={url:"lock"==b?"black-list-blocca/":"black-list-sblocca/",parametri:[["nick",a]],callback:function(a){Fc30()}},Fc0(e)}
  148. function Fc167(){var a=$("usersblockdialog"),b=$("dialogfeed"),e=$("qcounter"),f=$("userselected");null!=e&&(e.value=parseInt(e.value)+1);null!=b&&""!=b.value.trim()&&null!=f&&null!=e?(b={url:"dialog-cerca-utenti/",parametri:[["txt",b.value.trim()],["nq",e.value]],callback:function(b){if(null!=b.nq&&b.nq==e.value)if(null!=a&&Fc12(a,"","i"),b=b.utenti,null!=b){var g=b.length;if(0<g)for(var k=0;k<g;k++){var l=D.createElement("div");l.id="d-utente"+b[k].id;l.className="utente";Fc12(l,
  149. "<img src='"+b[k].img+"' /><div class='nick'>"+b[k].nick+"</div>","i");l.onclick=function(a){a=$qsa("#usersblockdialog .utente");for(var b=0;b<a.length;b++)a[b].className="utente";this.className="utente selected";a=this.id.substr(8);b=$("dialogbutton1");if(""!=a){if(f.value=a,null!=b){var e=$("actionselected").value;b.setAttribute("data-a","setutente,"+e+","+a);b.className="button black"}}else null!=b&&(b.className="button disabled")};a.appendChild(l)}}else null!=a&&Fc12(a,"<p class='f12'>Nessun Utente trovato corrispondente ai tuoi criteri di ricerca.</p>",
  150. "i")}},Fc0(b)):null!=a&&Fc12(a,"","i")}function Fc157(){$("areafloat").classList.contains("n")||Fc158()}function fbn_writePostBoxRefresh(){Fc0({url:"api/internal/refresh-writepost-box/",parametri:[],callback:function(a){null!=a.html&&($("writepostbox").outerHTML=a.html)}})};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement