Guest User

Butthurtizator

a guest
Oct 8th, 2014
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. function butthurtizator(butthurt) {
  2. var ls = butthurt;
  3. var c = prompt("Введите строчку. Для завершения нажмите Отмена");
  4. if (c)
  5. ls.push(c), butthurtizator(ls);
  6. else
  7. bugurt = ls;
  8. }
  9.  
  10. document.onkeydown = function (event) {
  11. if (event.which == 73 && event.ctrlKey) {
  12. butthurtizator([]);
  13. var te = "[b]";
  14. for (var i = 0; i < bugurt.length; i++) {
  15. te += bugurt[i].toUpperCase() + "\n@\n";
  16. }
  17. te = te.slice(0, -3);
  18. te += "[/b]";
  19. document.getElementById("shampoo").value += te;
  20. }
  21.  
  22. };
Advertisement
Add Comment
Please, Sign In to add comment