Guest User

Untitled

a guest
Mar 24th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. $(document).ready(function() {
  2. whiteRabbit();
  3. madHatter();
  4. marchHare();
  5.  
  6. function whiteRabbit() {
  7. var stopwatch;
  8. drinkMe();
  9. }
  10.  
  11. function drinkMe() {
  12. stopwatch = setTimeout(function() { $('#Alice').addClass('gardenPath'); }, 500);
  13. }
  14.  
  15. function eatMe() {
  16. clearTimeout(stopwatch);
  17. $('#Alice').removeClass('gardenPath');
  18. }
  19.  
  20. function madHatter() {
  21. $('.links__fastlane').hover( eatMe, drinkMe );
  22. $('.links__fastlane').focus( eatMe );
  23. $('.links__fastlane').blur( drinkMe );
  24. $('.links__custom').hover( eatMe, drinkMe );
  25. $('.links__custom').focus( eatMe );
  26. $('.links__custom').blur( drinkMe );
  27. }
  28.  
  29. function marchHare() {
  30. var mirror = $('#Haiga');
  31. var teacup = $('.progress__percentage');
  32. var disposition = $(mirror).val();
  33. var earlGrey = disposition / 10000 * 100;
  34. $(teacup).text(earlGrey+'%');
  35. }
  36. });
Add Comment
Please, Sign In to add comment