Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1.  
  2. // dodatek odejmujący wyczerpanie by Świrek Robotnik
  3.  
  4.  
  5. const button_wycz = document.createElement('button_wycz');
  6. button_wycz.innerHTML = 'Odbierz wyczerpanie';
  7.  
  8. const bodyy = document.getElementsByTagName('bodyy')[0];
  9. bodyy.appendChild(button_wycz);
  10.  
  11. button_wycz.addEventListener ('click', function() {
  12. _g(`clan&a=skills_use&name=timeTickets&opt=2`);
  13. });
  14.  
  15. $('button_wycz').hover(function(){
  16. $(this).css("background-color", "violet");
  17. }, function(){
  18. $(this).css("background-color", "green");
  19. });
  20. $('button_wycz').css("background-color", "green");
  21. $('button_wycz').css('border', 'none');
  22. $('button_wycz').css('color', 'white');
  23. $('button_wycz').css('padding', '15px', '32px');
  24. $('button_wycz').css('text-align', 'center');
  25. $('button_wycz').css('text-decoration', 'none');
  26. $('button_wycz').css('display', 'inline-block');
  27. $('button_wycz').css('font-size', '16px');
  28. $('button_wycz').css('margin', '4px', '2px');
  29. $('button_wycz').css('cursor', 'pointer');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement