Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en-us">
- <head>
- <title>SUPER NOVA</title>
- <!-- for-mobile-apps -->
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <!-- //for-mobile-apps -->
- <!-- Authored by: Lionel Mertens on June 12, 2019 for all to enjoy -->
- <!-- Just clip and paste this text to a text editor and save it with the extension .html. And run it in your Chrome Browser. It should work. -->
- <style>
- /*-- start of calculator styles --*/
- /* reset css */
- html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
- margin: 0;
- padding: 0;
- border: 0;
- font-size: 100%;
- font: inherit;
- vertical-align: baseline
- }
- article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block }
- body { line-height: 1 }
- ol, ul { list-style: none }
- blockquote, q { quotes: none }
- blockquote:before, blockquote:after, q:before, q:after {
- content: '';
- content: none
- }
- table {
- border-collapse: collapse;
- border-spacing: 0
- }
- a { text-decoration: none; }
- body{background:none;
- background-color:#535353;
- text:align:center;
- margin:0;
- }
- p{margin:4px 0 0 0;padding:0;
- }
- body {
- margin:0 calc(50% - 164px);
- background-color:#820000;
- overflow-x:hidden;
- overflow-y:hidden;
- }
- #space {
- position:absolute;
- width:310px;
- height:100%;
- background-color:#000;
- margin-left:10px;
- padding-top:.5%;
- }
- #corridor {
- position:relative;
- height:98%;
- width:296px;
- margin:auto;
- background-color:#000;
- border-left: 1px solid #000;
- border-right: 1px solid #000;
- z-index:2;
- }
- #starz1,
- #starz2,
- #starz3,
- #starz4,
- #starz5,
- #starz6,
- #starz7,
- #starz8 {
- position:absolute;
- width:.25px;
- height:.25px;
- background-color:#FFF;
- border:1px solid #DDD;
- top:0;
- z-index:3;
- }
- #starz9,
- #starz10,
- #starz11,
- #starz12,
- #starz13,
- #starz14,
- #starz15,
- #starz16 {
- position:absolute;
- width:1.5px;
- height:1.5px;
- background-color:#FFF;
- border:1px solid #DDD;
- top:0;
- z-index:3;
- }
- #starter {
- position:absolute;
- bottom:2%;
- display:block;
- margin:5px calc(50% - 60px);
- width:120px;
- text-align:center;
- background-color:#008080;
- border:1px solid #008080;
- border-radius:3px;
- padding:2px 0;
- color:#FFF;
- font-family: 'Arial', Helvetica, Sans-Serif;
- font-size:12px;
- font-weight:700;
- text-decoration:none;
- letter-spacing:2px;
- box-shadow:0px 0px 2px 2px cyan;
- z-index:6;
- }
- #starter:hover {color:cyan;}
- #starter:active {
- box-shadow:0px 0px 3px 3px cyan, 0px 0px 2px 2px lime;
- color:#FFF;}
- #holder {
- position:absolute;
- top:-100px;
- margin:25% calc(50% - 55px);
- width:110px;
- height:110px;
- background-color:gold;
- z-index:4;
- display:none;
- }
- #cont {
- position:relative;
- margin:5px;
- height:100px;
- width:100px;
- background-color:cyan;
- }
- .fraame {
- position:absolute;
- height:100px;
- width:100px;
- border-radius:2%;
- }
- #fraame1 {
- background-color:cyan;
- transform:rotate(0deg);
- }
- #fraame2 {
- background-color:aqua;
- transform:rotate(22.5deg);
- }
- #fraame3 {
- background-color:Turquoise;
- transform:rotate(45deg);
- }
- #fraame4 {
- background-color:DarkTurquoise;
- transform:rotate(67.5deg);
- }
- #fraame5 {
- height:98px;
- width:98px;
- background-color:gold;
- border:1px solid white;
- border-radius:50%;
- background:gold;
- background:-moz-linear-gradient(top, gold 0%, yellow 100%);
- background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, gold), color-stop(100%, yellow));
- background:-webkit-linear-gradient(top, gold 0%, yellow 100%);
- background:-o-linear-gradient(top, gold 0%, yellow 100%);
- background:-ms-linear-gradient(top, gold 0%, yellow 100%);
- background:linear-gradient(to bottom, gold 0%, yellow 100%);
- /*filter:progid:DXImageTransform.Mic.social_icrosoft.gradient(startColorstr='gold', endColorstr='yellow', GradientType=0);*/
- margin:0;
- }
- </style>
- <script>
- screenHeight = screen.availHeight;
- travel = screen.availHeight - 125;
- turn = 0;
- novaY = -100;
- rotation = 0;
- widHeight = 100;
- d = new Array (1,1,-1,-1,1,-1,-1,1,0,1,1,0);
- p = new Array (0,0,0,0,0,0,0,0,0,0,0,0);
- /* BEGIN FUNCTION LIST */
- function setStarz(){
- for(num = 1; num < 17;num++){
- var r = randomize(0,travel);
- var randLeft = randomize(2,293);
- var s = 'starz' + num;
- setProperty(s,'left',randLeft+'px');
- var b = 'matrix(1,0,0,1,0,'+r+') rotate(45deg)';
- styleTransform(s,b);
- deezPlay(s,1);
- }
- stopTwinkle = setInterval(twinkleStarz,000444);
- document.getElementById('starter').addEventListener('click',finale);
- document.getElementById('starter').innerHTML='SHOW NOVA';
- }
- function twinkleStarz(){
- var r = randomize(1,17);
- var s = 'starz' + r;
- var d = randomize(.25, 1.5);
- var p = d + 'px';
- setProperty(s,'height',p);
- setProperty(s,'width',p);
- }
- function reFresh(){window.location.reload(false);}
- function Dstruct(){
- document.getElementById('starter').removeEventListener('click',Dstruct);
- document.getElementById('starter').addEventListener('click',reFresh);
- document.getElementById('starter').innerHTML='REFRESH';
- stopDerbis = setInterval(derbis,00001);
- function derbis(){
- widHeight = widHeight - 1;
- if(widHeight <= 0){
- clearInterval(derbis);
- clearInterval(stopSpin);var b = -310;
- transBack('holder',b);
- }
- var f = 1;
- for(i = 0;i < d.length;i = i + 2){
- var n = 'fraame' + f;
- var x = p[i];
- var y = p[i+1];
- setProperty(n,'width',widHeight+'px');
- setProperty(n,'height',widHeight+'px');
- setProperty('cont','width',widHeight+'px');
- setProperty('cont','height',widHeight+'px');
- setProperty('holder','width',widHeight+'px');
- setProperty('holder','height',widHeight+'px');
- var r = 'matrix(1,0,0,1,'+x+','+y+')';
- styleTransform(n,r);
- p[i] = p[i] + d[i];
- p[i+1] = p[i+1] + d[i+1];
- var f = f + 1;
- }
- }
- }
- function styleTransform(ID,TRANS){
- document.getElementById(ID).style.transform=TRANS;
- }
- function randomize(min, max){
- return Math.floor(Math.random() * (max - min)) + min;
- }
- function finale(){
- document.getElementById('starter').removeEventListener('click',finale);
- document.getElementById('starter').addEventListener('click',Dstruct);
- document.getElementById('starter').innerHTML='DESTRUCT';
- deezPlay('holder',1);
- stopSpin = setInterval(spinWheel,003);
- }
- function spinWheel(){
- var r = 'matrix(1,0,0,1,0,'+novaY+')rotate('+turn+'deg)';
- styleTransform('holder',r);
- if(turn < 360){turn = turn + 3;}
- else{turn = 0;}
- if(novaY < 260){novaY++;}
- }
- function setProperty(ID,ATT,VAL) {
- document.getElementById(ID).style.setProperty(ATT,VAL);
- }
- function deezPlay(ID,TOG) {
- if(TOG == 0){var VAL = 'none';}
- else{var VAL = 'block';}
- document.getElementById(ID).style.setProperty('display',VAL);
- }
- function transBack(ID,TRANS){
- setProperty(ID,'display','none');
- var t = 'matrix(1,0,0,1,0,'+TRANS+')';
- styleTransform(ID,t);
- }
- </script>
- </head>
- <body onload="setStarz()">
- <div id="space">
- <div id="corridor">
- <button id="starter"></button>
- <script>
- for(i = 1;i < 17;i++){
- document.write('<span id="starz'+i+'"> <\/span>');
- }
- </script>
- <div id="holder">
- <div id="cont">
- <script>
- for(t = 1;t < 6;t++){
- document.write('<div class="fraame" id="fraame'+t+'"><\/div>');
- }
- </script>
- </div>
- </div>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment