Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. $(function () {
  2. $('[data-toggle="tooltip"]').tooltip();
  3. });
  4.  
  5. var smalldogscount = 0;
  6. var borkscountpsur = 0;
  7. var fixed = 0;
  8. var borkscount = 0;
  9.  
  10. function Bork() {
  11. borkscount++;
  12. }
  13.  
  14. function SDB() {
  15. if (borkscount >= 10) {
  16. borkscount -= 10;
  17. smalldogscount++;
  18. borkscountpsur += .3;
  19. setInterval(function () {
  20. borkscount++;
  21. }, 3000);
  22. } else {
  23. }
  24. }
  25.  
  26. setInterval(function () {
  27. if (borkscount > 0) {
  28. document.getElementById("borks").innerHTML = borkscount + " Borks";
  29. }
  30. if (smalldogscount > 0) {
  31. document.getElementById("SDB").innerHTML = "Small Dogs x" + smalldogscount;
  32. }
  33. if (borkscountpsur > 0) {
  34. fixed = borkscountpsur.toFixed(1);
  35. document.getElementById("BCA").innerHTML = "+" + fixed + " Borks per second";
  36. }
  37. }, 100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement