Advertisement
hallowimg

smitten

Dec 27th, 2020
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.91 KB | None | 0 0
  1. function tooltip() {
  2. var title = $(this).attr("title");
  3. $(this).removeAttr("title");
  4.  
  5. this.TooltipMessage = $("<div/>", {class: "tooltipMessage", style: "display: none;"});
  6. this.TooltipMessage.html("<span>" + title + "</span>");
  7. $("body").append(this.TooltipMessage);
  8.  
  9.  
  10. if ($(this).hasClass("tooltipLeft")) {
  11. this.TooltipMessage.addClass("left");
  12. }
  13.  
  14. $(this).hover(tooltipFadeIn, tooltipFadeOut);
  15. $(this).mousemove(tooltipMousemove);
  16. }
  17.  
  18. function tooltipFadeIn() {
  19. this.TooltipMessage.stop(true, false).fadeIn();
  20. }
  21.  
  22. function tooltipFadeOut() {
  23. this.TooltipMessage.stop(true, false).fadeOut();
  24. }
  25.  
  26. function tooltipMousemove(e) {
  27. var offset = {
  28. left: e.pageX,
  29. top: e.pageY + 5
  30. };
  31.  
  32. if (this.TooltipMessage.hasClass("left")) {
  33. offset.left -= this.TooltipMessage.width() + 10;
  34. } else {
  35. offset.left -= 100;
  36.  
  37. }
  38. this.TooltipMessage.offset(offset);
  39. }
  40.  
  41. $(function (e) {
  42. $(".tooltip").each(tooltip);
  43. });
  44.  
  45. window.onload = function() {
  46. document.addEventListener("contextmenu", function(e){
  47. e.preventDefault();
  48. }, false);
  49. document.addEventListener("keydown", function(e) {
  50. //document.onkeydown = function(e) {
  51. // "I" key
  52. if (e.ctrlKey && e.shiftKey && e.keyCode == 73) {
  53. disabledEvent(e);
  54. }
  55. // "J" key
  56. if (e.ctrlKey && e.shiftKey && e.keyCode == 74) {
  57. disabledEvent(e);
  58. }
  59. // "S" key + macOS
  60. if (e.keyCode == 83 && (navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey)) {
  61. disabledEvent(e);
  62. }
  63. // "U" key
  64. if (e.ctrlKey && e.keyCode == 85) {
  65. disabledEvent(e);
  66. }
  67. // "F12" key
  68. if (event.keyCode == 123) {
  69. disabledEvent(e);
  70. }
  71. }, false);
  72. function disabledEvent(e){
  73. if (e.stopPropagation){
  74. e.stopPropagation();
  75. } else if (window.event){
  76. window.event.cancelBubble = true;
  77. }
  78. e.preventDefault();
  79. return false;
  80. }};
  81.  
  82. $("img").mousedown(function(){
  83. return false;
  84. });
  85.  
  86. -----------------------------------------------------------------------------------------------
  87.  
  88. @import url('https://fonts.googleapis.com/css?family=Cookie|Pacifico');
  89. @import url('https://fonts.googleapis.com/css?family=Mukta|Overpass|Quicksand|Ubuntu');
  90. @import url('https://fonts.googleapis.com/css?family=Didact+Gothic|Gamja+Flower|Jua|Muli|Tenali+Ramakrishna');
  91.  
  92. body{
  93. background-image:url('https://www.transparenttextures.com/patterns/wet-snow.png');
  94. background-color: #FFC3E2;
  95. background-repeat:repeat;
  96. overflow:auto;
  97. }
  98.  
  99. ::-webkit-scrollbar {display: none}
  100.  
  101. h1{
  102. color:#0028BF;
  103. font-family: 'Pacifico', sans-serif;
  104. }
  105.  
  106. hr {
  107. border:0;
  108. margin-bottom:5px;
  109. width:90%;
  110. height:1px;
  111. -moz-box-sizing:border-box;
  112. box-sizing:border-box;
  113. background-color:#000;
  114. }
  115. a{
  116. color:#FFF
  117. filter: drop-shadow(.1vh .1vh .1vh #FF80D4);
  118. text-decoration: none;
  119.  
  120. }
  121.  
  122. b{
  123. color:#FFF;
  124. filter: drop-shadow(.1vh .1vh .1vh #FF80D4);
  125. }
  126.  
  127. .hlw img {
  128. top: 40vh;
  129. left: 20vh;
  130. position: absolute;
  131. height: 60vh;
  132. width:60vh;
  133. overflow:auto;
  134. filter: drop-shadow(.5vh .5vh .5vh #C2A3FF);
  135.  
  136. }
  137.  
  138. .warn img {
  139. top: 60vh;
  140. left: 10vh;
  141. position: absolute;
  142. height: 10vh;
  143. width:25vh;
  144. overflow:auto;
  145. border-style: solid;
  146. border-color:#FFF;
  147. }
  148.  
  149. .aaa img {
  150. top: 40vh;
  151. left: 10vh;
  152. position: absolute;
  153. height: 12vh;
  154. width:23vh;
  155. overflow:auto;
  156. border-style: solid;
  157. border-color:#FFF;
  158. }
  159.  
  160. .bbb img {
  161. top: 80vh;
  162. left: 10vh;
  163. position: absolute;
  164. height: 12vh;
  165. width:25vh;
  166. overflow:auto;
  167. border-style: solid;
  168. border-color:#FFF;
  169. }
  170.  
  171. .stats {
  172. position:absolute;
  173. padding: 1px;
  174. font-family: 'Text';
  175. font-size:20px;
  176. color:#CAADFF;
  177. text-align:justify;
  178. font-weight:bold;
  179. line-height:24px;
  180. height:20vh;
  181. width:41vh;
  182. left:80vh;
  183. top: 65vh;
  184. overflow: auto;
  185. filter: drop-shadow(.1vh .1vh .1vh #FFF);
  186. }
  187.  
  188.  
  189. .title{
  190. color:#FF80D4;
  191. font-family: 'Title';
  192. font-size:30vh;
  193. top:15vh;
  194. width:50vh;
  195. left:12vh;
  196. position: absolute;
  197. z-index:5;
  198. letter-spacing:.5px;
  199. filter: drop-shadow(.1vh .1vh .1vh #FFF);
  200. }
  201.  
  202. .credit {
  203. overflow:hidden;
  204. position:fixed;
  205. text-align:justify;
  206. bottom:2vh;
  207. right:2vh;
  208. height:5vh;
  209. width:5vh;
  210. padding:0vh;
  211. opacity: .8;
  212. background-image: url('https://i.imgur.com/Ldl49Wz.png');
  213. background-position:top center;
  214. background-attachment: absolute;
  215. -webkit-background-size: cover;
  216. -moz-background-size: cover;
  217. -o-background-size: cover;
  218. background-size: cover;}
  219.  
  220. div.tooltipMessage {
  221. z-index: 600;
  222. position: absolute;
  223. width: 220px;
  224. font-family: verdana;
  225. font-variant: small-caps;
  226. font-size: 10px;
  227. text-align: justify;
  228. }
  229.  
  230. div.tooltipMessage > span {
  231. display: inline-block;
  232. background: #E9C7FF;
  233. padding: 4px 5px;
  234. color: #FFF;
  235. border: 1px solid #FFF;
  236. border-radius: 5px;
  237. }
  238. div.tooltipMessage.left > span {
  239. float: right;
  240. }
  241.  
  242.  
  243. @font-face {
  244. font-family: "Title";
  245. src: url('https://dl.dropboxusercontent.com/s/fjjqzhvpr9f1yri/Coaster%20Quake%20-%20Personal%20Use.otf?dl=0');
  246. format("truetype");
  247. }
  248.  
  249. @font-face {
  250. font-family: "Text";
  251. src: url('https://dl.dropboxusercontent.com/s/zt2iqlfadpbdy5n/better_phoenix_sample%5B1%5D.ttf?dl=0');
  252. format("truetype");
  253. }
  254.  
  255. -------------------------------------------------------------------------------------------------------------
  256.  
  257. <div class="title">mara!</div>
  258.  
  259. <div class="hlw">
  260. <img src="https://i.imgur.com/UZCoQdU.png">
  261. </div>
  262.  
  263. <div class="warn">
  264. <img src="https://i.imgur.com/t4GUgPJ.png">
  265. </div>
  266.  
  267. <div class="aaa">
  268. <img src="https://i.imgur.com/JtOrSfE.png">
  269. </div>
  270.  
  271. <div class="bbb">
  272. <img src="https://i.imgur.com/Fn0JJII.png">
  273. </div>
  274.  
  275.  
  276. <div class="stats">
  277. succubaby ❤<br>
  278. bubbly but bratty<br>
  279. placeholder<br><br><a class="tooltip" href="https://roleplay.chat/profile.php?user=Smitten" title="Friend here... Eventually!"><b>★</b></a>
  280. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement