mixue

cr jiiwng

May 11th, 2023 (edited)
622
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.69 KB | None | 0 0
  1. * PLEASE CREDIT JIIWNG WHEN REMAKING *
  2.  
  3. --- TOP CONTAINER ---
  4. #elementID > .wrapper {
  5. height: 1.5em;
  6. width: 20em;
  7. border-radius: 1em;
  8. border: 1px solid #aaa;
  9. backdrop-filter: blur(3px);
  10. }
  11.  
  12. --- LINKS TEXT ---
  13. @font-face {
  14. font-family: windows;
  15. src: url(https://dl.dropbox.com/s/cn0l1yjacta4whv/W95FA.otf);
  16. }
  17.  
  18. #elementID {
  19. font-family: windows;
  20. top: 0.9em;
  21. }
  22.  
  23. #elementID a {
  24. text-decoration: none;
  25. padding: 0.4em 1em 0.4em 1em;
  26. background-image: linear-gradient(180deg, #EACFFF75, #ffffff);
  27. margin-right: 1em;
  28. border: 1px solid #aaa;
  29. border-radius: 1em;
  30. }
  31.  
  32. --- MAIN CONTAINER ---
  33. #elementID > .wrapper {
  34. height: 8.5em;
  35. backdrop-filter: blur(3px);
  36. }
  37.  
  38. --- IMAGE ---
  39. #elementID .frame {
  40. position: relative;
  41. top: -0.95em;
  42. }
  43.  
  44. --- MAIN INFO TEXTS ---
  45. \s
  46. **name** *@username* info info info info info **cr jiiwng**
  47.  
  48. `_scroll for more info!_`
  49.  
  50. --- SCROLLBOX ---
  51. #elementID {
  52. font-family: windows;
  53. padding-right: 1em;
  54. height: 13.4em;
  55. top: 0em;
  56. overflow: auto;
  57. padding-bottom: 1em;
  58. }
  59.  
  60. #elementID code {
  61. font-family: windows;
  62. }
  63.  
  64. --- BACKGROUND ---
  65.  
  66. <script type="text/javascript">
  67. // <![CDATA[
  68. var colour="#C491AD"; // what colour are the blobs
  69. var speed=66; // speed of animation, lower is faster
  70. var blobs=10; // how many blobs are in the jar
  71. var charc='✩' // a blob - can be changed to charc='hello' or charc='*' for a different effect
  72.  
  73. /***************************\
  74. * Blobs in a Jar Effect *
  75. * (c)2012 mf2fm web-design *
  76. * http://www.mf2fm.com/rv *
  77. * DON'T EDIT BELOW THIS BOX *
  78. \***************************/
  79.  
  80. window.onload=fill_the_jar;
  81. var div;
  82. var xpos=new Array();
  83. var ypos=new Array();
  84. var zpos=new Array();
  85. var dx=new Array();
  86. var dy=new Array();
  87. var dz=new Array();
  88. var blob=new Array();
  89. var swide=800;
  90. var shigh=600;
  91. function fill_the_jar() {
  92. var i, dvs;
  93. div=document.createElement('div');
  94. dvs=div.style;
  95. dvs.position='fixed';
  96. dvs.left='0px';
  97. dvs.top='0px';
  98. dvs.width='1px';
  99. dvs.height='1px';
  100. document.body.appendChild(div);
  101. set_width();
  102. for (i=0; i<blobs; i++) {
  103. add_blob(i);
  104. jamjar(i);
  105. }
  106. }
  107.  
  108. function add_blob(ref) {
  109. var dv, sy;
  110. dv=document.createElement('div');
  111. dv.appendChild(document.createTextNode(charc));
  112. sy=dv.style;
  113. sy.position='absolute';
  114. sy.textAlign="center";
  115. if (navigator.appName=="Microsoft Internet Explorer") {
  116. sy.fontSize="10px";
  117. sy.width="100px";
  118. sy.height="100px";
  119. sy.paddingTop="40px";
  120. sy.color=colour;
  121. }
  122. else sy.color='rgba(0,0,0,0)';
  123. ypos[ref]=Math.floor(shigh*Math.random());
  124. dy[ref]=(0.5+Math.random())*(Math.random()>.5?2:-2);
  125. xpos[ref]=Math.floor(swide*Math.random());
  126. dx[ref]=(0.5+Math.random())*(Math.random()>.5?2:-2);
  127. zpos[ref]=Math.random()*20;
  128. dz[ref]=(0.5+Math.random())*(Math.random()>.5?.5:-.5);
  129. blob[ref]=dv;
  130. div.appendChild(blob[ref]);
  131. set_blob(ref);
  132. }
  133. function rejig(ref, xy) {
  134. if (xy=='y') {
  135. dx[ref]=(0.5+Math.random())*sign(dx[ref]);
  136. dy[ref]=(0.5+Math.random())*-sign(dy[ref]);
  137. }
  138. else {
  139. dx[ref]=(0.5+Math.random())*-sign(dx[ref]);
  140. dy[ref]=(0.5+Math.random())*sign(dy[ref]);
  141. }
  142. }
  143. function sign(a) {
  144. if (a<0) return (-2);
  145. else if (a>0) return (2);
  146. else return (0);
  147. }
  148. function set_blob(ref) {
  149. var sy;
  150. sy=blob[ref].style;
  151. sy.top=ypos[ref]+'px';
  152. sy.left=xpos[ref]+'px';
  153. if (navigator.appName=="Microsoft Internet Explorer") {
  154. sy.filter="glow(color="+colour+",strength="+zpos[ref]+")";
  155. sy.fontSize=30-zpos[ref]+"px";
  156. }
  157. else {
  158. sy.textShadow=colour+' 0px 0px '+zpos[ref]+'px';
  159. sy.fontSize=40+zpos[ref]+'px';
  160. }
  161. }
  162. function jamjar(ref) {
  163. if (ypos[ref]+dy[ref]<-50 || ypos[ref]+dy[ref]>shigh) rejig(ref, 'y');
  164. ypos[ref]+=dy[ref];
  165. if (xpos[ref]+dx[ref]<-50 || xpos[ref]+dx[ref]>swide) rejig(ref, 'x');
  166. xpos[ref]+=dx[ref];
  167. if (zpos[ref]+dz[ref]<0 || zpos[ref]+dz[ref]>20) dz[ref]=-dz[ref];
  168. zpos[ref]+=dz[ref];
  169. set_blob(ref);
  170. setTimeout("jamjar("+ref+")", speed);
  171. }
  172.  
  173. window.onresize=set_width;
  174. function set_width() {
  175. var sw_min=999999;
  176. var sh_min=999999;
  177. if (document.documentElement && document.documentElement.clientWidth) {
  178. if (document.documentElement.clientWidth>0) sw_min=document.documentElement.clientWidth;
  179. if (document.documentElement.clientHeight>0) sh_min=document.documentElement.clientHeight;
  180. }
  181. if (typeof(self.innerWidth)!="undefined" && self.innerWidth) {
  182. if (self.innerWidth>0 && self.innerWidth<sw_min) sw_min=self.innerWidth;
  183. if (self.innerHeight>0 && self.innerHeight<sh_min) sh_min=self.innerHeight;
  184. }
  185. if (document.body.clientWidth) {
  186. if (document.body.clientWidth>0 && document.body.clientWidth<sw_min) sw_min=document.body.clientWidth;
  187. if (document.body.clientHeight>0 && document.body.clientHeight<sh_min) sh_min=document.body.clientHeight;
  188. }
  189. if (sw_min==999999 || sh_min==999999) {
  190. sw_min=800;
  191. sh_min=600;
  192. }
  193. swide=sw_min;
  194. shigh=sh_min;
  195. }
  196. // ]]>
  197. </script>
Advertisement
Add Comment
Please, Sign In to add comment