y2kcarrds

aiura uwu ai fourth embed

Jun 20th, 2022
668
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. <style type="text/css">* {cursor: url(https://cur.cursors-4u.net/cursors/cur-9/cur838.cur), auto !important;}</style><a href="https://www.cursors-4u.com/cursor/2011/11/10/small-cute-brilliant-rose-color-pointer.html" target="_blank" title="Small Cute Brilliant Rose Color Pointer"></a>
  2.  
  3. <script>
  4.  
  5. var b = document.body;
  6. var imgurl = "https://tomomi.crd.co/assets/images/gallery01/8dbceca4.gif?v=4a676966";
  7. var size = [20, 30];
  8. function rand(min, max)
  9. {
  10. return Math.floor(Math.random() * (max - min + 1) + min)
  11. }
  12. function getSize()
  13. {
  14. return rand(size[0], size[1]);
  15. }
  16. function lerp(a,b,f)
  17. {
  18. return (b-a)*f+a;
  19. }
  20. function heart(x,y)
  21. {
  22. var s = getSize();
  23. x -= s/2;
  24. y -= s/2;
  25. x = Math.floor(x) + rand(-5, 5);
  26. y = Math.floor(y) + rand(-5, 5);
  27. var fx = x + rand(-40, 40);
  28. var fy = y + rand(-40, 40);
  29. var i = document.createElement("img");
  30. i.src = imgurl;
  31. i.style = `pointer-events: none; position: fixed; width: ${s}px; left: ${x}px; top: ${y}px; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; z-index: 1000000;`;
  32. b.appendChild(i);
  33. var f = 0;
  34. var interval;
  35. interval = setInterval(function() {
  36. var _x = Math.floor(lerp(x, fx, f));
  37. var _y = Math.floor(lerp(y, fy, f));
  38. i.style = `pointer-events: none; position: fixed; width: ${s}px; left: ${_x}px; top: ${_y}px; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; z-index: 1000000;`;
  39. i.style.opacity = 1-f;
  40. f += 0.01;
  41. if (f > 1)
  42. {
  43. clearInterval(interval);
  44. b.removeChild(i);
  45. }
  46. }, 10);
  47. }
  48. function bro(x,y)
  49. {
  50. for (var i = 0; i < 5; i++)
  51. {
  52. heart(x,y);
  53. }
  54. }
  55. b.addEventListener("click", function(event){
  56. var x = event.clientX;
  57. var y = event.clientY;
  58. bro(x,y);
  59. });
  60.  
  61. </script>
Advertisement
Add Comment
Please, Sign In to add comment