css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


Save Automatically?

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <div class="wrapper">
	<h2>Selected file <br /><strong>max 20,000 bytes</strong></h2>
		<input type="file" id="resume" style="display:none">
	<div class="bx-file">
		<a id="ancla" href="javascript:void(0);">Search file</a>
		<span class="text-faq">No selected file</span>
		<span class="text_notice_red">max limite 20000 bytes</span>
		<span class="text_notice_green">OK</span>
<span class="mysite">Junio Marques | front-end developer Ecommerce - my site: <a  href="http://juniomarques.com" target="black">juniomarques.com</a></span>

              * {
	box-sizing: border-box;
	font-family: arial;
.wrapper {
 	margin: 60px auto;
 	width: 600px;
	height: auto;
	padding: 40px;
	border: 1px solid #cccccc;
	transition: all 0.3s cubic-bezier(0.63, -0.33, 1, 0.16);
	&:hover {
		box-shadow: 0 4px 40px -10px #000000;
		transform: translateY(-8px);
	h2 {
		font-size: 30px;
		font-weight: 900;
		text-transform: uppercase;
		letter-spacing: 4px;
		color: #909090;
		margin: 0 0 20px 0;
		line-height: 22px;
		strong {
			font-size: 16px;
.bx-file {
 	position: relative;
	display: inline-block;
	a {
		font-size: 16px;
		font-weight: 900;
		text-transform: uppercase;
		padding:5px 10px;
		margin-right: 10px;
	.text-faq {
		display: inline-block;
		margin-top: 40px;
		padding: 4px 8px;
		transition: background-color 0.3s cubic-bezier(0, 0.7, 0, 1.31);
	.text-noticeRed {
		background-color: red;
		color: #ffffff;
	.text-noticeGreen {
		background-color: #70E770;
		color: #ffffff;
	.text_notice_green {
		position: absolute;
		background: #ffffff;
		box-shadow: 0 -5px 6px #525151;
		border-radius: 5px;
		bottom: 30px;
		height: 0;
		transition: all 0.3s cubic-bezier(0, 0.7, 0, 1.31);
	.text_notice_red {
		@extend .text_notice_green;
	.text_notice_visible {
		width: auto;
		padding: 10px;
		height: auto;
.mysite {

              var Filemanager = function() {
	// MY OBJ
	var myFile = {};
	// variables 
	var 	input = document.getElementById('resume'),
	    	ancla = document.getElementById('ancla');
	// forzar click en input file
	ancla.addEventListener('click', resumeClick, false);
	function resumeClick() {
	// Instancia MY OBJ
	myFile.varChange = function() {
		var	bxFile    = document.querySelectorAll('.bx-file')[0],
			textFaq   = bxFile.getElementsByClassName('text-faq')[0],
			textRed   = bxFile.getElementsByClassName('text_notice_red')[0],
			textGreen = bxFile.getElementsByClassName('text_notice_green')[0],
			tagSpan   = bxFile.getElementsByTagName('span')[0];
		* LLamar noticeSize() 
		* cuando cambie el valor del input file
		* y pasar datos del file a funcción
		input.onchange = function() {
				var	sizeFile   = input.files[0].size,
					nameFile   = input.value,
					nameReduce = nameFile.split("fakepath"),
					namePrint  = nameReduce[1];
			noticeSize(sizeFile, namePrint);
		// function p/imprimir msg c/valores del file
		function noticeSize(sizeFile, namePrint) {
			if(sizeFile>20000) {
				textRed.className="text_notice_red text_notice_visible";
				textFaq.className='text-faq text-noticeRed';
				}, 3000);
			}else { 
				textFaq.className='text-faq text-noticeGreen'; 
				textGreen.className="text_notice_green text_notice_visible";
				}, 3000);
			tagSpan.innerHTML = namePrint + ' - size ' + sizeFile + ' bytes';
	return myFile;
var myFile = Filemanager();



🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................