Advertisement
dollzito

🪀 crd tuto: misc embed

Feb 2nd, 2023
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.28 KB | None | 0 0
  1. <style>
  2. html {
  3. overflow: scroll;
  4. overflow-x: hidden;
  5. }
  6.  
  7. ::-webkit-scrollbar {
  8. width: 0;
  9. background: transparent;
  10. }
  11.  
  12. ::-webkit-scrollbar-thumb {
  13. background: transparent;
  14. }
  15.  
  16. ::selection {
  17. color: #FF95CD;
  18. background: transparent;
  19. }
  20. </style>
  21.  
  22. <style type="text/css">* {
  23. cursor: url(https://cur.cursors-4u.net/cursors/cur-9/cur818.cur), auto !important;
  24. }
  25. </style>
  26.  
  27. <a href="https://www.cursors-4u.com/cursor/2011/11/10/small-pink-outline-pointer.html" target="_blank" title="Small Pink Outline Pointer"></a>
  28.  
  29. <script>
  30. var b = document.body;
  31. var imgurl = "https://tomomi.neocities.org/pixeles/129.gif";
  32. var size = [10, 20];
  33. function rand(min, max)
  34. {
  35. return Math.floor(Math.random() * (max - min + 1) + min)
  36. }
  37. function getSize()
  38. {
  39. return rand(size[0], size[1]);
  40. }
  41. function lerp(a,b,f)
  42. {
  43. return (b-a)*f+a;
  44. }
  45. function heart(x,y)
  46. {
  47. var s = getSize();
  48. x -= s/2;
  49. y -= s/2;
  50. x = Math.floor(x) + rand(-5, 5);
  51. y = Math.floor(y) + rand(-5, 5);
  52. var fx = x + rand(-40, 40);
  53. var fy = y + rand(-40, 40);
  54. var i = document.createElement("img");
  55. i.src = imgurl;
  56. 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;`;
  57. b.appendChild(i);
  58. var f = 0;
  59. var interval;
  60. interval = setInterval(function() {
  61. var _x = Math.floor(lerp(x, fx, f));
  62. var _y = Math.floor(lerp(y, fy, f));
  63. 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;`;
  64. i.style.opacity = 1-f;
  65. f += 0.01;
  66. if (f > 1)
  67. {
  68. clearInterval(interval);
  69. b.removeChild(i);
  70. }
  71. }, 10);
  72. }
  73. function bro(x,y)
  74. {
  75. for (var i = 0; i < 5; i++)
  76. {
  77. heart(x,y);
  78. }
  79. }
  80. b.addEventListener("click", function(event){
  81. var x = event.clientX;
  82. var y = event.clientY;
  83. bro(x,y);
  84. });
  85. </script>
  86.  
  87. <script type="text/javascript">
  88. // <![CDATA[
  89. var colours=new Array("#FFC0E2", "#FFC0E2", "#FFA4D6", "#FFA4D6", "#FFE5F4"); // colours for top, right, bottom and left borders and background of bubbles
  90. var bubbles=66; // how many bubbles are moving at any given time
  91. var over_or_under="over"; // set to "over" for bubbles to always be on top, or "under" to allow them to float behind other objects
  92.  
  93. /****************************
  94. * JavaScript Bubble Bath *
  95. *(c)2010-13 mf2fm web-design*
  96. * http://www.mf2fm.com/rv *
  97. * DON'T EDIT BELOW THIS BOX *
  98. ****************************/
  99.  
  100. var swide=800;
  101. var shigh=600;
  102. var bubb=new Array();
  103. var bubbx=new Array();
  104. var bubby=new Array();
  105. var bubbs=new Array();
  106. var boddie;
  107. var ie_version=(navigator.appVersion.indexOf("MSIE")!=-1)?parseFloat(navigator.appVersion.split("MSIE")[1]):false;
  108.  
  109. function addLoadEvent(funky) {
  110. var oldonload=window.onload;
  111. if (typeof(oldonload)!='function') window.onload=funky;
  112. else window.onload=function() {
  113. if (oldonload) oldonload();
  114. funky();
  115. }
  116. }
  117.  
  118. addLoadEvent(bubba);
  119.  
  120. function bubba() { if (document.getElementById) {
  121. var i, rats, div;
  122. boddie=document.createElement("div");
  123. boddie.style.position="fixed";
  124. boddie.style.top="0px";
  125. boddie.style.left="0px";
  126. boddie.style.overflow="visible";
  127. boddie.style.width="1px";
  128. boddie.style.height="1px";
  129. boddie.style.backgroundColor="transparent";
  130. boddie.style.zIndex="0";
  131. document.body.appendChild(boddie);
  132. set_width();
  133. for (i=0; i<bubbles; i++) {
  134. rats=createDiv("3px", "3px");
  135.  
  136. div=createDiv("auto", "auto");
  137. rats.appendChild(div);
  138. div=div.style;
  139. div.top="1px";
  140. div.left="0px";
  141. div.bottom="1px";
  142. div.right="0px";
  143. div.borderLeft="1px solid "+colours[3];
  144. div.borderRight="1px solid "+colours[1];
  145.  
  146. div=createDiv("auto", "auto");
  147. rats.appendChild(div);
  148. div=div.style;
  149. div.top="0px";
  150. div.left="1px";
  151. div.right="1px";
  152. div.bottom="0px"
  153. div.borderTop="1px solid "+colours[0];
  154. div.borderBottom="1px solid "+colours[2];
  155.  
  156. div=createDiv("auto", "auto");
  157. rats.appendChild(div);
  158. div=div.style;
  159. div.left="1px";
  160. div.right="1px";
  161. div.bottom="1px";
  162. div.top="1px";
  163. div.backgroundColor=colours[4];
  164. if (ie_version && ie_version<10) div.filter="alpha(opacity=50)";
  165. else div.opacity=0.5;
  166.  
  167. boddie.appendChild(rats);
  168. bubb[i]=rats.style;
  169. bubb[i].zIndex=(over_or_under=="over")?"1001":"0";
  170. }
  171. bubble();
  172. }}
  173.  
  174. function bubble() {
  175. var c;
  176. for (c=0; c<bubbles; c++) if (!bubby[c] && Math.random()<0.333) {
  177. bubb[c].left=(bubbx[c]=Math.floor(swide/6+Math.random()*swide/1.5)-10)+"px";
  178. bubb[c].top=(bubby[c]=shigh)+"px";
  179. bubb[c].width="3px";
  180. bubb[c].height="3px"
  181. bubb[c].visibility="visible";
  182. bubbs[c]=3;
  183. break;
  184. }
  185. for (c=0; c<bubbles; c++) if (bubby[c]) update_bubb(c);
  186. setTimeout("bubble()", 40);
  187. }
  188.  
  189. function update_bubb(i) {
  190. if (bubby[i]) {
  191. bubby[i]-=bubbs[i]/2+i%2;
  192. bubbx[i]+=(i%5-2)/5;
  193. if (bubby[i]>0 && bubbx[i]>0 && bubbx[i]<swide) {
  194. if (Math.random()<bubbs[i]/shigh*2 && bubbs[i]++<8) {
  195. bubb[i].width=bubbs[i]+"px";
  196. bubb[i].height=bubbs[i]+"px";
  197. }
  198. bubb[i].top=bubby[i]+"px";
  199. bubb[i].left=bubbx[i]+"px";
  200. }
  201. else {
  202. bubb[i].visibility="hidden";
  203. bubby[i]=0;
  204. return;
  205. }
  206. }
  207. }
  208.  
  209. window.onresize=set_width;
  210. function set_width() {
  211. var sw_min=999999;
  212. var sh_min=999999;
  213. if (document.documentElement && document.documentElement.clientWidth) {
  214. if (document.documentElement.clientWidth>0) sw_min=document.documentElement.clientWidth;
  215. if (document.documentElement.clientHeight>0) sh_min=document.documentElement.clientHeight;
  216. }
  217. if (typeof(self.innerWidth)=='number' && self.innerWidth) {
  218. if (self.innerWidth>0 && self.innerWidth<sw_min) sw_min=self.innerWidth;
  219. if (self.innerHeight>0 && self.innerHeight<sh_min) sh_min=self.innerHeight;
  220. }
  221. if (document.body.clientWidth) {
  222. if (document.body.clientWidth>0 && document.body.clientWidth<sw_min) sw_min=document.body.clientWidth;
  223. if (document.body.clientHeight>0 && document.body.clientHeight<sh_min) sh_min=document.body.clientHeight;
  224. }
  225. if (sw_min==999999 || sh_min==999999) {
  226. sw_min=800;
  227. sh_min=600;
  228. }
  229. swide=sw_min;
  230. shigh=sh_min;
  231. }
  232.  
  233. function createDiv(height, width) {
  234. var div=document.createElement("div");
  235. div.style.position="absolute";
  236. div.style.height=height;
  237. div.style.width=width;
  238. div.style.overflow="hidden";
  239. div.style.backgroundColor="transparent";
  240. return (div);
  241. }
  242. // ]]>
  243. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement