Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is where the Java box starts
- const STAR_DATA = generateStarData();
- function createStar({x, y}, index, debug) {
- const starInstance = document.createElementNS("http://www.w3.org/2000/svg", 'g');
- starInstance.classList.add('star-instance');
- starInstance.setAttribute('transform', `translate(${x} ${y})`);
- const radius = debug ? 10 : 1;
- const starReference = document.createElementNS("http://www.w3.org/2000/svg", 'circle');
- starReference.setAttribute('r', radius);
- starReference.classList.add('star');
- const delay = index * 100 + 500 * Math.random();
- const duration = 3000 + Math.random() * 4000;
- const brightness = 0.7 + Math.random() * 0.3;
- starReference.style.setProperty('--star-animation-delay', `${delay}ms`);
- starReference.style.setProperty('--star-animation-duration', `${duration}ms`);
- starReference.style.setProperty('--star-animation-glow-duration', `10000ms`);
- starReference.style.setProperty('--star-brightness', `${brightness}`);
- starInstance.appendChild(starReference);
- return starInstance;
- }
- function createNightSky({container, debug, starReference}) {
- STAR_DATA.forEach((data, index) => {
- const star = createStar(data, index, debug);
- container.appendChild(star);
- })
- }
- const starGroup = document.getElementById('starGroup');
- createNightSky({container: starGroup, data: STAR_DATA});
- // this is here to make the actual code more accessible- will be avaialble at the top through hoisting
- function generateStarData() {
- return [ {
- "x": 1596.973448245577,
- "y": 578.4171532781027
- },
- {
- "x": 624.1864228031227,
- "y": 227.26089443712394
- },
- {
- "x": 195.53121286639285,
- "y": 830.2913557403084
- },
- {
- "x": 654.6718140243884,
- "y": 357.55987380696473
- },
- {
- "x": 1270.262628273585,
- "y": 556.1937909655104
- },
- {
- "x": 1874.1099861074613,
- "y": 537.8371896254555
- },
- {
- "x": 227.66702184447672,
- "y": 933.5058204022108
- },
- {
- "x": 849.1452025050253,
- "y": 753.8239408253662
- },
- {
- "x": 162.39455177885364,
- "y": 371.44565705415175
- },
- {
- "x": 536.8391119975487,
- "y": 471.438417884515
- },
- {
- "x": 1700.8735348500447,
- "y": 811.1546053915013
- },
- {
- "x": 1313.5764431918108,
- "y": 177.0490832716154
- },
- {
- "x": 1380.7843468122915,
- "y": 705.8869453492149
- },
- {
- "x": 1611.2247060049194,
- "y": 121.86836681480617
- },
- {
- "x": 416.4980895593402,
- "y": 100.97360726285487
- },
- {
- "x": 1605.3045718862004,
- "y": 568.3522232795161
- },
- {
- "x": 1872.2274578638203,
- "y": 353.43127251104664
- },
- {
- "x": 609.8554307846044,
- "y": 933.4880549032565
- },
- {
- "x": 738.2998430349312,
- "y": 586.219408066047
- },
- {
- "x": 218.99173543432494,
- "y": 990.9343797547301
- },
- {
- "x": 1731.2780427178832,
- "y": 288.2617875993787
- },
- {
- "x": 536.515464451623,
- "y": 704.4454412867656
- },
- {
- "x": 1231.5398910809145,
- "y": 932.9406357890622
- },
- {
- "x": 1767.7240418782917,
- "y": 377.4978308404437
- },
- {
- "x": 60.763730956239215,
- "y": 180.0428524529891
- },
- {
- "x": 504.66745458498474,
- "y": 822.3694625674929
- },
- {
- "x": 190.57438689705154,
- "y": 850.4664376865585
- },
- {
- "x": 1226.602311895454,
- "y": 166.00523960305534
- },
- {
- "x": 28.252940020621065,
- "y": 95.72025749659052
- },
- {
- "x": 776.7402174706963,
- "y": 182.0857667170639
- },
- {
- "x": 1661.4365255203802,
- "y": 9.199715819379062
- },
- {
- "x": 1791.3643331034255,
- "y": 137.16432244657108
- },
- {
- "x": 264.2306334627267,
- "y": 179.96747301355498
- },
- {
- "x": 144.12707359609112,
- "y": 419.5856575392614
- },
- {
- "x": 1562.3921330416733,
- "y": 727.132203970914
- },
- {
- "x": 1477.836836260912,
- "y": 772.3942484736992
- },
- {
- "x": 740.0053875532842,
- "y": 808.3813934419943
- },
- {
- "x": 1791.0710885194505,
- "y": 786.1241026349015
- },
- {
- "x": 645.5653888153922,
- "y": 736.4977734546056
- },
- {
- "x": 1384.4168196732044,
- "y": 829.9732607536924
- },
- {
- "x": 163.6915577740048,
- "y": 387.589934948666
- },
- {
- "x": 1030.752807909637,
- "y": 986.8638306532176
- },
- {
- "x": 1547.5697556980297,
- "y": 738.4827189459013
- },
- {
- "x": 911.6204926165387,
- "y": 288.19639143783735
- },
- {
- "x": 436.2726947153002,
- "y": 156.52925590335153
- },
- {
- "x": 470.90493070521467,
- "y": 508.3648167337842
- },
- {
- "x": 570.7832681150248,
- "y": 90.46864903266116
- },
- {
- "x": 286.4828739132141,
- "y": 331.890507980424
- },
- {
- "x": 839.1294725722154,
- "y": 459.50407507204005
- },
- {
- "x": 918.5794503208701,
- "y": 382.36947443013645
- },
- {
- "x": 978.32693336608,
- "y": 233.22793996980872
- },
- {
- "x": 1942.6378792746775,
- "y": 775.2262931872873
- },
- {
- "x": 183.57275380766546,
- "y": 490.23746673496936
- },
- {
- "x": 1870.1346895593947,
- "y": 5.340554080379922
- },
- {
- "x": 77.8455233825599,
- "y": 991.3432482687949
- },
- {
- "x": 1150.8916475486242,
- "y": 734.8173445629565
- },
- {
- "x": 1267.778063245026,
- "y": 76.46690911117871
- },
- {
- "x": 412.5649555878659,
- "y": 388.8894946239125
- },
- {
- "x": 1963.9488881788552,
- "y": 332.86133487469607
- },
- {
- "x": 558.0428440555471,
- "y": 555.534536568679
- },
- {
- "x": 1800.204256032283,
- "y": 606.9161588457371
- },
- {
- "x": 446.76135290536666,
- "y": 184.04218476261437
- },
- {
- "x": 722.4139720353855,
- "y": 166.0382370352249
- },
- {
- "x": 385.7923791367068,
- "y": 522.5903196230092
- },
- {
- "x": 280.86655197312814,
- "y": 306.91336158262294
- },
- {
- "x": 929.575833643574,
- "y": 276.84878095307374
- },
- {
- "x": 1576.1257876455063,
- "y": 642.0639364621978
- },
- {
- "x": 272.42012120065783,
- "y": 303.4312556623606
- },
- {
- "x": 1308.241904521537,
- "y": 777.277639109069
- },
- {
- "x": 1798.34651340239,
- "y": 728.9710737899151
- },
- {
- "x": 1034.1455081792458,
- "y": 866.6111552206579
- },
- {
- "x": 191.3789885191175,
- "y": 26.837480326682428
- },
- {
- "x": 267.4427480940049,
- "y": 435.20349308803463
- },
- {
- "x": 169.5951738454462,
- "y": 16.116964765581223
- },
- {
- "x": 1304.4617878663903,
- "y": 300.4144440678036
- },
- {
- "x": 1057.5827335967429,
- "y": 423.5485979150542
- },
- {
- "x": 914.283134053933,
- "y": 79.1276015573803
- },
- {
- "x": 1514.105232679034,
- "y": 4.439816438432498
- },
- {
- "x": 1440.5716820429939,
- "y": 757.3441195933785
- },
- {
- "x": 301.8884359195071,
- "y": 879.0979664055392
- }]
- };
- // This is where the Java box ends
- /* This is where the CSS box starts */
- .stars {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- }
- body {
- margin: 0;
- background-color: #202840;
- background-repeat: repeat;
- overflow: hidden;
- }
- #btnDebug {
- position: fixed;
- z-index:1;
- top: 10px;
- left: 10px;
- }
- .star {
- fill: white;
- animation: pulse var(--star-animation-duration, 1000ms) infinite backwards,
- glowing var(--star-animation-glow-duration, 1000ms) infinite alternate backwards;
- animation-delay: var(--star-animation-delay, 0);
- }
- #starGroup {
- --dur: 100ms;
- }
- @keyframes pulse {
- 0% {
- transform: scale3d(1, 1, 1);
- }
- 30% {
- transform: scale3d(1.2, 1.2, 1.2);
- }
- 70% {
- transform: scale3d(0.2, 0.2, 0.2);
- }
- 100% {
- transform: scale3d(1, 1, 1);
- }
- }
- .statbox1 {
- position: relative;
- border: 4px solid #3E010A;
- width: 75px;
- top: -529px;
- left: 106px;
- height: 390px;
- outline: px dashed #fff;
- outline-offset: -10px;
- background-image: linear-gradient(to top, rgba(123, 133, 204), rgba(80, 111, 172));
- font-family: 'Aldrich';
- color: #000;
- font-size: 12px;
- overflow: auto;
- text-align: center;
- padding: 10px;
- }
- .statbox2 {
- position: relative;
- border: 4px solid #3E010A;
- width: 75px;
- bottom: 959px;
- left: 206px;
- height: 390px;
- outline: px dashed #fff;
- outline-offset: -10px;
- background-image: linear-gradient(to top, rgba(123, 133, 204), rgba(80, 111, 172));
- font-family: 'Aldrich';
- color: #000;
- font-size: 10px;
- overflow: auto;
- text-align: center;
- padding: 10px;
- }
- .statbox3 {
- position: relative;
- border: 4px solid #3E010A;
- width: 75px;
- top: -1365px;
- left: 306px;
- height: 390px;
- outline: px dashed #fff;
- outline-offset: -10px;
- background-image: linear-gradient(to top, rgba(123, 133, 204), rgba(80, 111, 172));
- font-family: 'Aldrich';
- color: #000;
- font-size: 11px;
- overflow: hidden;
- text-align: center;
- padding: 10px;
- }
- .statbox4 {
- position: relative;
- border: 4px solid #3E010A;
- width: 75px;
- top: -1795px;
- left: 406px;
- height: 390px;
- outline: px dashed #fff;
- outline-offset: -10px;
- background-image: linear-gradient(to top, rgba(123, 133, 204), rgba(80, 111, 172));
- font-family: 'Aldrich';
- color: #000;
- font-size: 11px;
- overflow: hidden;
- text-align: center;
- padding: 10px;
- }
- .element::-webkit-scrollbar { width: 0 !important }
- ::-webkit-scrollbar {
- width: 0px;
- height: 0px;
- background:#3E010A;
- }
- ::-webkit-scrollbar-thumb {
- background-color:#3E010A;
- -webkit-border-radius: 0px;
- border-radius: 0px;
- }
- #name {
- z-index: 40;
- position: absolute;
- left: -150px;
- top: -5px;
- margin: auto;
- background: #999;
- width: 700px;
- font-family: 'Aldrich';
- font-size: 80px;
- background: url(https://media.giphy.com/media/3ohzdVKKcOOUQfcQWk/giphy.gif) 110px 260px repeat;
- -webkit-text-fill-color: transparent;
- -webkit-background-clip: text;
- display: block;
- text-align: center;
- letter-spacing: 6px;
- -webkit-transition: opacity 2s linear;
- }
- #quote {
- z-index: 40;
- position: absolute;
- left: 170px;
- top: 530px;
- margin: auto;
- background: #999;
- width: 700px;
- font-family: 'Aldrich';
- font-size: 50px;
- background: url(https://media.giphy.com/media/3ohzdVKKcOOUQfcQWk/giphy.gif) 145px 260px repeat;
- -webkit-text-fill-color: transparent;
- -webkit-background-clip: text;
- display: block;
- text-align: center;
- letter-spacing: 6px;
- -webkit-transition: opacity 2s linear;
- }
- hr {
- border: 0;
- height: 1px;
- background-image: linear-gradient(to right, rgba(0, 0, 0, 0), #000, rgba(1, 0, 0, 0));
- }
- .tooltip {
- position: relative;
- display: inline-block;
- border-bottom: px solid black;
- }
- .tooltip .tooltiptext {
- visibility: hidden;
- width: 70px;
- font-family: Aldrich;
- font-size: 12px;
- background-color: #202840;
- color: #fff;
- text-align: center;
- border-radius: 6px;
- padding: 5px 0;
- position: absolute;
- z-index: 1;
- bottom: 100%;
- left: 50%;
- margin-left: -35px;
- }
- .tooltip .tooltiptext::after {
- content: "";
- position: absolute;
- top: 100%;
- left: 50%;
- margin-left: -5px;
- border-width: 5px;
- border-style: solid;
- border-color: #202840 transparent transparent transparent;
- }
- .tooltip:hover .tooltiptext {
- visibility: visible;
- }
- /* Start http://www.cursors-4u.com */ * {cursor: url(http://cur.cursors-4u.net/cursors/cur-2/cur121.cur), auto !important;} /* End http://www.cursors-4u.com */
- audio {
- width: 100px;
- height: 54px;
- opacity: 0;
- border: 4px solid #3E010A;
- top: 459px;
- }
- .image {
- background-image: url(https://cdn.discordapp.com/attachments/580312013889339393/656644084026310665/finished.png);
- background-size: 35%;
- position:absolute;
- bottom: 90px;
- left: 50px;
- width: 750px;
- height: 460px;
- filter: brightness(100%) saturate(120%) contrast(60%);
- border: 4px solid #3E010A;
- outline: 0px solid #fff;
- outline-offset: -10px;
- background-repeat: no-repeat;
- background-position: bottom right;
- /* This is where the CSS box ends */
- <!-- This is where the HTML box starts -->
- <link href='https://fonts.googleapis.com/css?family=Aldrich' rel='stylesheet'>
- <link href='https://fonts.googleapis.com/css?family=Aldrich' rel='stylesheet'>
- <div id="name">Queen</div>
- <div id="quote"><b>look to the stars...</b></div>
- <svg id="svgCanvas" viewbox="0 0 2000 1000" preserveaspectratio="xMinYMin slice" width="100%" height="100%" >
- <g id="starGroup"></g>
- </svg>
- <div class="image"></div>
- <div class= "statbox1"><br>Name
- <hr>
- Age
- <hr>
- Species
- <hr>
- Gender
- <hr>
- Orientation
- <hr>
- Paramour
- <hr>
- Occupation
- <hr>
- Rank
- <hr>
- Height
- <hr>
- Weight
- <hr>
- Alignment
- <hr>
- Ability
- <hr>
- Held Item
- <hr>
- Trainer
- <hr>
- ▼ ▼<br><br>
- <u>Moveset</u><p>
- Move 1<br>
- Move 2<br>
- Move 3<br>
- Move 4 <br>
- Move 5 <br>
- Move 6<p>
- <div id="button"style = " position: absolute; font-size: 15px; color: #7783C9;background-color: #202840;top: 5=459px; left: 34px; border: 2px solid #202840; border-radius: 50%; width: 20px;">♫</div>
- <audio src="https://www.dropbox.com/s/7ufxoqzk7xeckxe/09%20Swing%21%20Pendulum%20of%20Souls.mp3?dl=1" controls=""> <embed src="/music/good_enough.mp3" width="50" height="90" loop="false" ="false"=""> </audio>
- </div>
- <div class= "statbox2"><b>HISTORY</b></u><hr>Ever has man coveted knowledge, and none more so than that of his fate. Thus did he labor to master the skill of foresight—but initial efforts bore little fruit. That is, until he looked to the stars above, which foretell the coming seasons, and learned to read the heavens.Though this gift is known today as astrology, some have found ways to not only read the stars, but to write their movements as well.<p> By attuning their l energies to that of constellations, they learned to wield magicks with heretofore unseen properties. Thus was astromancy born—a new form of magick which grants its users power over fate. Employing a star globe and divining deck in their miraculous deeds, fortune always smiles upon these masters of arcana.<p>
- Kalypso is but one of the few who have learned such magic, said to be blessed by Cosmog of Alola, their dedication to perfecting this craft knows very few limits. Still in it's infancy, the one known as Kalypso only seeks to further unlock the mysteries of this magic and to harness it's full potential. Seated within the Magician's Court, seated as Queen of Hearts in the Scala Reale, Kalypso seeks to share this new craft with others who seek to seize control of fate.</div>
- <div class= "statbox3"><b>ALLIES</b><hr><br><br>
- <a target="_blank" href="https://www.youtube.com/watch?v=hB8S6oKjiw8"><div class="tooltip"><img src="https://media.giphy.com/media/GDp7LycxkT3LG/giphy.gif" alt="" width="40" height="49" /><span class="tooltiptext">Hover blurb</span></a></div>
- <a target="_blank" href="https://www.youtube.com/watch?v=hB8S6oKjiw8"><div class="tooltip"><img src="https://media.giphy.com/media/GDp7LycxkT3LG/giphy.gif" alt="" width="40" height="49" /><span class="tooltiptext">Hover blurb</span></a></div>
- <a target="_blank" href="https://www.youtube.com/watch?v=hB8S6oKjiw8"><div class="tooltip"><img src="https://media.giphy.com/media/GDp7LycxkT3LG/giphy.gif" alt="" width="40" height="49" /><span class="tooltiptext">Hover blurb<br>
- </span></a></div>
- <a target="_blank" href="https://www.youtube.com/watch?v=hB8S6oKjiw8"><div class="tooltip"><img src="https://media.giphy.com/media/GDp7LycxkT3LG/giphy.gif" alt="" width="40" height="49" /><span class="tooltiptext">Hover blurb</span></a></div>
- <a target="_blank" href="https://www.youtube.com/watch?v=hB8S6oKjiw8"><div class="tooltip"><img src="https://media.giphy.com/media/GDp7LycxkT3LG/giphy.gif" alt="" width="40" height="49" /><span class="tooltiptext">Hover blurb</span></div>
- <div class="tooltip"><img src="https://media.giphy.com/media/GDp7LycxkT3LG/giphy.gif" alt="" width="40" height="49" /><span class="tooltiptext">Hover blurb</span></a></div><br><br>
- </div>
- <div class= "statbox4"><b>OOC</b><hr><br>
- 01. OOC rule one here<p>
- 02. OOC rule two here<p>
- 03. OOC rule three here<p>
- 04. OOC rule four here<p>
- 05. OOC rule five here<p>
- 06. OOC rule six here<p>
- 07. OOC rule seven here<p>
- 08. OOC rule eight here<p>
- 09. OOC rule nine here<p>
- 10. OOC rule ten here
- <!-- Please don't remove credit! -->
- <a target="_blank" href="https://roleplay.chat/profile.php?user=none"><div class="tooltip">Credit<span class="tooltiptext">Coded by none.<br>
- Say less. Care more.</span></a>
- </div>
- <!-- This is where the HTML box ends -->
Add Comment
Please, Sign In to add comment