yt.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. $(function () {
  2. var timer;
  3. var fadeInBuffer = false;
  4. $(document).mousemove(function () {
  5. if (!fadeInBuffer) {
  6. if (timer) {
  7. //console.log("clearTimer");
  8. clearTimeout(timer);
  9. timer = 0;
  10. }
  11. //console.log("fadeIn");
  12. $('.fade-object').fadeIn();
  13. $('html').css({
  14. cursor: ''
  15. });
  16. } else {
  17. fadeInBuffer = false;
  18. }
  19. timer = setTimeout(function () {
  20. //console.log("fadeout");
  21. $('.fade-object').fadeOut()
  22. $('html').css({
  23. cursor: 'url(), auto'
  24. });
  25. fadeInBuffer = true;
  26. }, 5000)
  27. });
  28. });
  29. function Q(id)
  30. {
  31. return document.querySelector(id);
  32. }
  33. Q("#go").onload=function()
  34. {
  35. if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) )
  36. {
  37. //window.location.replace('');
  38. console.log("celular3");
  39. Q("#pl-player").style.display='block';
  40. lb.obj = new lb.player();
  41. }
  42. else
  43. {
  44. Q("#pl-player").style.display='block';
  45. lb.obj = new lb.player();
  46. }
  47. }