Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

Behavior

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.

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:

Screenshot

Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                <!-- including bootstrap.css  to style buttons...-->

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">



<html>
<br>description: <a href="https://jsfiddle.net/alexjamesbrown/2nzL9f7g/"> https://jsfiddle.net/alexjamesbrown/2nzL9f7g/ </a>(modified by adding previews...)<br>
  
<div class="container">
        <!-- The file upload form used as target for the file upload widget -->
        <form id="fileupload" action="#" method="POST" enctype="multipart/form-data">

            <div class="row files" id="files1">
                <h2>Files 1</h2>
                <span class="btn btn-default btn-file">
                    Browse 
					<input type="file" name="files1" multiple />
                </span>
                <br />
                <ul class="fileList"></ul>
            </div>

            <div class="row files" id="files2">
                <h2>Files 2</h2>
                <span class="btn btn-default btn-file">
                    Browse  <input type="file" name="files2" multiple />
                </span>
                <br />
                <ul class="fileList"></ul>
            </div>

            <div class="row files" id="files3">
                <h2>Files 2</h2>
                <span class="btn btn-default btn-file">
                    Browse  <input type="file" name="files3" multiple />
                </span>
                <br />
                <ul class="fileList"></ul>
            </div>

            <br />
            <br />

            <div class="row">
                <button type="x" id="uploadBtn" class="btn primary start">Start upload</button>
            </div>

            <br>
            <div class="row">
                <div class="span16">

                    <table class="zebra-striped"><tbody class="files"></tbody></table>
                </div>
            </div>
        </form>
    </div>
</html>
              
            
!

CSS

              
                body {
    padding: 20px;
}

.btn-file {
    position: relative;
    overflow: hidden;
}

    .btn-file input[type=file] {
        position: absolute;
        top: 0;
        right: 0;
        min-width: 100%;
        min-height: 100%;
        font-size: 100px;
        text-align: right;
        filter: alpha(opacity=0);
        opacity: 0;
        outline: none;
        background: white;
        cursor: inherit;
        display: block;
    }

  .tile {
    position: relative;
    float: center;
    width: 33.333%;
    height: 100%;
    overflow: hidden;
	transition: all .5s ease-in-out;
  }
  
	/*img:hover {*/
  .tile:hover:not(.no_zoom){
		box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
		-webkit-transform: scale(4);
		-moz-transform: scale(4);
		-o-transform: scale(4);
		-ms-transform: scale(4);
		transform: scale(4);
		z-index: 999999;
		align: center;
		
		/*reverse image*/
		/*
			-webkit-transform: scaleX(-1);
			transform: scaleX(-1);
		*/		
		
  }
  .photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: transform .5s ease-out;
  }
  .txt {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 10%;
    left: 0;
    font-family: 'Roboto Slab', serif;
    font-size: 9px;
    line-height: 12px;
    text-align: center;
    cursor: default;
	background: linear-gradient(to bottom,
		#FFFFFF 0%, 	#000000 6.25%,
		#FFFFFF 12.5%, 	#000000 18.75%,
		#FFFFFF 25%, 	#000000 31.25%,
		#FFFFFF 37.5%, 	#000000 43.75%,
		#FFFFFF 50%, 	#000000 56.25%,
		#FFFFFF 62.5%, 	#000000 68.75%,
		#FFFFFF 75%, 	#000000 81.25%,
		#FFFFFF 87.5%, 	#000000 100%
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
  }

/*css remove button near the preview*/
.remove_img_preview {
    position:relative;
    top:-64px;
    right:0px;
    background:red;
    color:white;
    border-radius:50px;
    font-size:0.9em;
    padding: 0 0.3em 0;
    text-align:center;
    cursor:pointer;
}
.remove_img_preview:before {
    content: "×";
}

/*styling list items alignment -----> description here*/
.fill {display: inline-block; vertical-align:middle;														/*divs inside list item*/			}
ul.fileList {list-style-type: none; 																		/*no display bullets in list*/		}
ul.fileList li { margin:0 1px 1px 0; border:/*0px*/ 1px solid #ccc; 										/*paddin for list items*/			}
ul.fileList li .removelink { line-height: 64px; width:64px; height:64px; background:#fff; text-align:left; 	/*div for remove link*/				}
ul.fileList li .img { width:64px; height:64px; background:#aaa; text-align:right; 							/*div with preview image*/			}
ul.fileList li .text { padding-left: 32px;  border: /*1px*/ 0px solid #4CAF50; 								/*div with file info*/				}
              
            
!

JS

              
                
//some alert pictures, base64 encoded
	//yellow (!)
//var base64_warning_picture = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAH9UlEQVR4Ae1beWw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aXRm7xsgHo9rjMaF2fIWwEnQ5y0B6OPn/GhZAc6/hvoUWDIK8CGuWq3CaDTajfV8+Eqn05BIJODoCDWK6VPPoskBdDodKJVKe5McDoLvk8kEzs/PdYvCnID0GTCfz6FcLu+Jf59svV4H9t3hfZPpNmkFNBoNYN8UdqJisRjk8/kdjEqlAt1ud9febDYhGo2aLlx0QFoBj4+Pot+d+JOTE2BfgCCXyyntw+FQsSkMUgB8gSM2n88nzL0H33q9VtopDNJboFgsfqip3W4r7aFQSLEpDNIK+EjQcrmEWq2m/JRKpRSbwrAcwP39PfDlL99OT08hk8lQ6Fb6sBQAH/sfHh52yfBRoVAo7D0PlCxNNCwFwIdFsV1cXMDxMX069D0KxewoJj18+sv+FPHuFzrTUgDilRd/90e9BhCI0SsPineCIjktx0gkgtJkaQVoEWh0DOlE6N/kb29vlabLy0vFpjQOvgIOHgDqgcFLUz4EKW9Qgr4O/haQAAiqzNZdyAqw9eUhSA5dAWzh8ocgL01daMkNDaDVav3UlB1BkJbcXNi8WCe/ksnkF/Y5K8yWsOiJFLY/Nf78yrO8flxdXX0bj8c9NTHCR4sADwv+zPYA27XEi76NPPK/7SzZzsX/NvLE8lySgCQgCUgC/zOBv/l/ASW1Lqh4AAAAAElFTkSuQmCC";

	//No image,
	//full size - here: https://www.classify24.com/wp-content/uploads/2017/03/no-image.png
	//cropped and resized, using https://ezgif.com/crop
	//and converted to base64
//var base64_warning_picture = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAIg0lEQVR4Ae2b6VIjNxDH5QNfYDCHuUmy2aSSt0pVKg+SF8unfMgrbCrJbpbTxmAbYwO+0z+NZTQGm7nMkgJV4ZnRSK3uv7pbGnUT++33P4bqFZf4K5Zdi/4GwJsGvHIE3kzglSuAetOANw145Qi8mcArVwCVDApAvz9Qg+EgaPdI+8XjcZWUvyAfNb4BGAwGqnRZU5Xqler1+pEKEpTYwkJSba0V1OZ6QcViMV9kfANwWqmqT8cl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VMlIEIBHjxNDDqw4sAqdWFNsoDQxcASLlwlEiiQpsEpNgVNYCjyDAAADmTMt3lw50EKLlx0/Api4tCHNWDah4tQZS0MCATIkDFTaFKjXWExeiqGxdSnIr2gNKgixwaGYgRoIGt2QpELaggwoGE0qIEBTFmSrEmTgIhbhu4OFGE4ay28sAjRkCIw7kIFiAm8QD3xgAmuGgQraHrEbi+xbygIfuACwp7DmWGs3rPks8GesNidieXEFlgbqWIBabHhCWvMDCrFk0I7VAoNAFAIDy2DBGICA17DZEq+so2DgWNTLxhw6i93gjA0TJuRmyLW8+/fw48sXCdLs+I/zGwYEACH5BAkCALEALAAAAABAAEAAAAj/AGMJHEiwoMGDCBMqXMiwocOHECNKnEixosWLGDNq3Mixo8ePIEOKHEmypMmTKFOqXMmypcuXMGPKnEmzps2bOHPq3Mmzp8+fQIMKHUq0qNGjSJMqXUrzAEECR7jwIBCLR9OndmId+KCVIICvX1c6HUhARayyXQeGDfvRQosXSSoYHCsQLVq6scCy5SggVoMafgEXxGvXLOELiBOA9CHkLCGLg/wAaNAD5N/AFt0irixQLwCHYDsPKPgCow/FLTjn1fvwAgKBPrx+3jvxAGIxjwYqiPAiD4XWND7HHiigr4DPHRtQcPt7YGmrCFMDGN55NnKOjCcTbPBDoNmDClxTOY81YMAC8x6Vx5LTfP3AEwkP0BhPkjeX9k4aM2xx4aR69gSVFksMBhFAg0DhKVbSbnDJxdSDEJYUEAA7";

	
function getReadableFileSizeString(fileSizeInBytes) {
    var i = -1;
    var byteUnits = ['KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
    do {
        fileSizeInBytes = fileSizeInBytes / 1024;
        i++;
    } while (fileSizeInBytes > 1024);

    return Math.max(fileSizeInBytes, 0.1).toFixed(1) + byteUnits[i];
}

function append_result(file_URLs, id){
	$("#"+id).children(".fileList").append(file_URLs.join(""));
	load_backgrounds();	//YEAP! finally this working...
}


var scale = 2;	//scale background image in preview on hover

$.fn.fileUploader = function (filesToUpload, sectionIdentifier) {
    var fileIdCounter = 0;

    this.closest(".files").change(function (evt) {
		
		var count = 0;
		var fileIdCounter = 0+filesToUpload.length;						//start file id in list is 0 + previous filesToUpload array length
		
		count=count+parseInt(evt.target.files.length);
		var total = parseInt(evt.target.files.length);
		/*
		if (parseInt($fileUpload.get(0).files.length) > 6 || count>5) {
			alert("You can only upload a maximum of 5 files");
			count=count-parseInt($fileUpload.get(0).files.length);
			evt.preventDefault();
			evt.stopPropagation();
			return false;
		}
		*/
		var files = evt.target.files;
		
		var result = [];
		var current = 0;
		for (var i = 0, f; f = files[i]; i++) {
            fileIdCounter++;									//add element in list
            var file = evt.target.files[i];						//current file
            var fileId = sectionIdentifier + fileIdCounter;		//id for element

            filesToUpload.push({
				number: fileIdCounter,
                id: fileId,
                file: file
            });

			var sq_side = 64;
			
	//skip if not imaege
	//		if (!f.type.match('image.*')) {
	//			//console.log('not image');
	//			current++;
	//			continue;
	//		}

			var reader = new FileReader();
			reader.onerror = function(e){
	//			console.error("Error reading file! code " + event.target.error.code);
			};
			reader.onprogress = function (e) {
	//			console.log('update progress function');
				loaded = false;
			};
			reader.onabort = function (e) {
	//			alert('File read cancelled');
				loaded = false;
			};
			reader.onloadstart = function (e) {
	//			console.log('reader.onloadstart function');
			};
			reader.onload = (function (theFile) {
				return function (e) {
					//search LAST index in array where is current filename
					for(index = filesToUpload.length-1; index>=0; index--){
						if(escape(filesToUpload[index].file.name)==escape(theFile.name)){
							break;
						}
					}
					//index+1 - index for element
					var removeLink = "<div class=\"fill removelink\"><a class=\"removeFile\" href=\"#\" data-fileid=\"" + (sectionIdentifier+(index+1)) + "\">Remove</a></div>";	//link to remove element...

					if (!theFile.type.match('image.*')) {
						console.log(escape(theFile.name)+" not a picture. Don't zoom...");
						//push file item
						result.push(
								"<li>", removeLink, "&nbsp;&nbsp;",
								//preview
								'<div class="fill img">'+
									'<div class="tile no_zoom" data-scale="1"'+
											'style="'+
												'display: inline-block;'+
												'border: 1px solid #ddd;'+'width: '+sq_side+'px;'+
												'height: '+sq_side+'px'+
											'"'+
											'data-image="'+base64_warning_picture+'"'+
										'title="Not a picture. PNG/RarJPEG allowed...'+
									'">'+ //end div
									'</div>'+
								'<span class="remove_img_preview"></span>'+
								'</div>'
								//end preview
							, 	'<div class="fill text"><strong>', escape(theFile.name), "</strong> - ", theFile.size, " bytes"+
								' ('+ getReadableFileSizeString(theFile.size)+').'+"</div></li> "
						);
						//end push file item
					}
					else{
						//push file item
						result.push(
								"<li>", removeLink, "&nbsp;&nbsp;",
								//preview
								'<div class="fill img">'+
									'<a href="'+e.target.result+'" target="_blank">'+
										'<div class="tile" data-scale="'+scale+'" style="display: inline-block; border: 1px solid #ddd; width: '+sq_side+'px; height: '+sq_side+'px" data-image="'+e.target.result+'">'+
										'<div class="txt"><div class="x">'+ getReadableFileSizeString(theFile.size) +'</div></div></div>'+
									'</a>'+
								'<span class="remove_img_preview"></span>'+
								'</div>'
								//end preview
							, 	'<div class="fill text"><strong>', escape(theFile.name), "</strong> - ", theFile.size, " bytes"+
								' ('+ getReadableFileSizeString(theFile.size)+').'+"</div></li>"
						);
						//end push file item
					}

					file_URLs = result;
					current++;	//number of file loaded

					if(current==total){
						append_result(file_URLs, sectionIdentifier);
					}
				};
			})(f);

			reader.readAsDataURL(f);
		}

        //reset the input to null - nice little chrome bug!
        evt.target.value = null;
    });

    $(this).on("click", ".removeFile", function (e) {
        e.preventDefault();

        var fileId = $(this).parent().children("a").data("fileid");

        // loop through the files array and check if the name of that file matches FileName
        // and get the index of the match
        for (var i = 0; i < filesToUpload.length; ++i) {
            if (filesToUpload[i].id === fileId){
                filesToUpload.splice(i, 1);
			}
        }

        $(this).parent('div').parent('li').remove();
		load_backgrounds();	//update backgrounds for previews div...
	});

    this.clear = function () {
        for (var i = 0; i < filesToUpload.length; ++i) {
            if (filesToUpload[i].id.indexOf(sectionIdentifier) >= 0)
                filesToUpload.splice(i, 1);
        }

        $(this).children(".fileList").empty();
    }

    return this;
};
	
(function () {
    var filesToUpload = [];

    var files1Uploader = $("#files1").fileUploader(filesToUpload, "files1");
    var files2Uploader = $("#files2").fileUploader(filesToUpload, "files2");
    var files3Uploader = $("#files3").fileUploader(filesToUpload, "files3");

    $("#uploadBtn").click(function (e) {
        e.preventDefault();

        var formData = new FormData();

        for (var i = 0, len = filesToUpload.length; i < len; i++) {
            formData.append("files", filesToUpload[i].file);
        }

        $.ajax({
            url: "http://127.0.0.1:12345/folder",
            data: formData,
            processData: false,
            contentType: false,
            type: "POST",
            success: function (data) {

				console.log("try to upload filesToUpload: ");
				for(x=0;x<filesToUpload.length;x++){
					console.log('filesToUpload['+x+'].file.name: ', escape(filesToUpload[x].fi
              
            
!
999px
What's a functional programmer's favorite animal? A lamb, duh!

Console