Guest User

Untitled

a guest
Jul 16th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. var usuario = $('#log_us').val();
  2.  
  3. function unescape2(m){
  4. m=unescape(m);
  5. m=m.replace(/</g,'<');
  6. m=m.replace(/>/g,'>');
  7.  
  8. m=m.replace(/!code(.*)/ig, function(m, gg) {
  9. if (gg == "" ) return m;
  10. else return "<div style="font-family:monospace; color:#fff; display:inline-block; padding:4px; background-color:#000;">" + gg + "</div>";
  11. });
  12.  
  13. m=m.replace(/!anc(.*)/ig, function(m, gg) {
  14. if (gg == "" ) return m;
  15. else return "<div class="anunciacion oficial">" + gg + "</div>"
  16. });
  17.  
  18. m=m.replace(/#meneo(.*)/ig,function(m,gg){
  19. if(gg=='') return m;
  20. return "<div style='display:inline-block;' class='shke'>"+gg+"</div>"
  21. });
  22.  
  23. m=m.replace(/#uppi(.*)/ig,function(m,gg){
  24. if(gg=='') return m;
  25. return "<div style='-webkit-transform:rotate(-180deg); -moz-transform:rotate(-180deg); -o-transform:rotate(-180deg); transform:rotate(-180deg); display:inline-block;'>"+gg+"</div>"
  26. });
  27.  
  28. return m ;
  29. }
Add Comment
Please, Sign In to add comment