"1"
Bootstrap 3.0.0 Snippet by z531

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container-fluid" style="background-color:#e8e8e8"> <div class="field" align="left"> <h3>Upload your images</h3> <input type="file" id="files" name="files[]" multiple /> </div> <div class="field"> <h2>Deliverables</h2> </div> <div class="row" id="deliverables"> </div><!-- End container --> </div>
/**** BASE ****/ body { color: #888; } a { color: #03a1d1; text-decoration: none!important; } /**** LAYOUT ****/ .list-inline>li { padding: 0 10px 0 0; } /**** MODULE ****/ .bgc-fff { background-color: #fff!important; } .box-shad { -webkit-box-shadow: 1px 1px 0 rgba(0,0,0,.2); box-shadow: 1px 1px 0 rgba(0,0,0,.2); } /* Padding - Margins */ .pad5 { padding: 5px!important; } .bm5 { margin-bottom: 5px!important; } /* Color */ .clr-535353 { color: #535353; } /**** MEDIA QUERIES ****/ @media only screen and (max-width: 991px) { #deliverables .deliverable { padding: 5px!important; } #deliverables .property-listing a { margin: 0; } #deliverables .deliverable .media-body { padding: 10px; } } @media only screen and (min-width: 992px) { #deliverables .deliverable img { max-width: 180px; } }
$(function() { $("#files").on("change", function(e) { var fileReader = new FileReader(); fileReader.onload = (function(e) { $('<div class="col-sm-12"><div class="bgc-fff pad5 box-shad bm5 deliverable"><div class="media">' + '<a class="pull-left" href="#" target="_parent">' + '<img alt="image" width="80px" class="img-responsive" src="' + e.target.result +'"></a><div class="clearfix visible-sm"></div>' + '<div class="media-body fnt-smaller"><h4 class="media-heading"><a href="#" target="_parent">' + 'Deliverable # something' + '</a></h4></div></div></div></div>').insertAfter("#deliverables"); $(".remove").click(function(){ $(this).parent(".deliverable").remove(); }); }); fileReader.readAsDataURL(e.target.files[0] ); }); });

Related: See More


Questions / Comments: