cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

            
              <header>
  <div class="logo">ORGANIZATION</div>
  <ul>
    <li>Help</li>
    <li class="active">Dashboard</li>
    <li>My Profile</li>
  </ul>
</header>

<section id="wrapper">
  <nav>
    <ul>
      <li class="active tooltiper" data-tooltip="My documents"><i class="fa fa-folder-open-o" aria-hidden="true"></i></li>
      <li class="tooltiper disabled" data-tooltip="Available soon"><i class="fa fa-times" aria-hidden="true"></i></li>
      <li class="tooltiper disabled" data-tooltip="Available soon"><i class="fa fa-times" aria-hidden="true"></i></li>
    </ul>
  </nav>
  <div class="main">
    <h1>My documents</h1>
    <div class="input-wrap"><input id="searchbar" type="search" placeholder="Search a file..." /><i class="fa fa-search" aria-hidden="true"></i></div>
    <div class="left">
      <div class="top-droppable folder tooltiper tooltiper-up" data-tooltip="0 file" id="folder1"><i class="fa fa-folder" aria-hidden="true"></i><i class="fa fa-check" aria-hidden="true"></i><p>Folder 1</p></div>
      <div class="top-droppable folder tooltiper tooltiper-up" data-tooltip="0 file" id="folder2"><i class="fa fa-folder" aria-hidden="true"></i><i class="fa fa-check" aria-hidden="true"></i><p>Folder 2</p></div>
      <div class="top-droppable folder tooltiper tooltiper-up" data-tooltip="0 file" id="folder3"><i class="fa fa-folder" aria-hidden="true"></i><i class="fa fa-check" aria-hidden="true"></i><p>Folder 3</p></div>
      <div class="top-droppable folder tooltiper tooltiper-up" data-tooltip="0 file" id="folder4"><i class="fa fa-folder" aria-hidden="true"></i><i class="fa fa-check" aria-hidden="true"></i><p>Folder 4</p></div>
      <div class="top-droppable folder tooltiper tooltiper-up" data-tooltip="0 file" id="folder5"><i class="fa fa-folder" aria-hidden="true"></i><i class="fa fa-check" aria-hidden="true"></i><p>Folder 5</p></div>
    </div>
  </div>
  <div class="right">
    <div class="input-select-wrap">
      <div class="fileUpload">
        <span>+</span><p>Add your files</p>
      </div>
      <input id='fileSelect' multiple name='fileSelect' type='file'>
    </div>
    <div id='draggableFile'>
      <span>Drop your files here<br/><span>You can drop your files here to add them to your documents</span></span>
    </div>
    <div id='result'></div>
  </div>
  
  <div class="top-droppable folder-content easeout2 closed" id="folder1-content">
    <div class="close-folder-content"><i class="fa fa-times" aria-hidden="true"></i></div>
    <h2><i class="fa fa-folder" aria-hidden="true"></i><span>Folder 1</span></h2>
  </div>
  
  <div class="top-droppable folder-content easeout2 closed" id="folder2-content">
    <div class="close-folder-content"><i class="fa fa-times" aria-hidden="true"></i></div>
    <h2><i class="fa fa-folder" aria-hidden="true"></i><span>Folder 2</span></h2>
  </div>
  
  <div class="top-droppable folder-content easeout2 closed" id="folder3-content">
    <div class="close-folder-content"><i class="fa fa-times" aria-hidden="true"></i></div>
    <h2><i class="fa fa-folder" aria-hidden="true"></i><span>Folder 3</span></h2>
  </div>
  
  <div class="top-droppable folder-content easeout2 closed" id="folder4-content">
    <div class="close-folder-content"><i class="fa fa-times" aria-hidden="true"></i></div>
    <h2><i class="fa fa-folder" aria-hidden="true"></i><span>Folder 4</span></h2>
  </div>
  
  <div class="top-droppable folder-content easeout2 closed" id="folder5-content">
    <div class="close-folder-content"><i class="fa fa-times" aria-hidden="true"></i></div>
    <h2><i class="fa fa-folder" aria-hidden="true"></i><span>Folder 5</span></h2>
  </div>
</section>


            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,700');
* {
  margin: 0;
  padding: 0;
  outline: none;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
  color: #111;
  background: transparent;
  border: none;
}

body {
  background: url(http://www.thomaspodgro.com/pen/hero-bg.jpg) no-repeat top left;
  background-size: cover;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  min-height: 100vh;
}

#wrapper {
  padding: 50px;
  padding-top: 100px;
  padding-right: 100px;
}

h1,
h2,
h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  height: 100px;
  line-height: 100px;
  padding: 0 100px;
  z-index: 999;
}

header .logo {
  float: left;
  display: inline-block;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  background: #f95536;
  line-height: initial;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px;
}

header ul {
  float: right;
  display: inline-block;
}

header ul li {
  float: left;
  display: inline-block;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-left: 40px;
  letter-spacing: 1px;
}

header ul li.active {
  color: #f95536;
}

nav {
  position: fixed;
  top: 100px;
  left: 0;
  height: calc(100vh - 100px);
  width: 100px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.7);
}

nav ul {
  position: relative;
  width: 100%;
}

nav ul li {
  height: 120px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  width: 100%;
  text-align: center;
  line-height: 120px;
  cursor: pointer;
}

nav ul li.active {
  border-bottom: none;
  background: #f95536;
}

nav ul li.disabled:hover {
  background: rgba(0, 0, 0, 0.2);
  cursor: not-allowed;
}

nav ul li i.fa {
  color: #fff;
  font-size: 30px;
}

.main {
  width: 60%;
  float: left;
  margin-left: 100px;
  margin-top: 50px;
}

.left {
  position: relative;
  margin-top: 30px;
}

.right {
  width: 25%;
  float: right;
  background: #fff;
  padding: 30px;
  height: 70vh;
  min-height: 500px;
  position: relative;
  border-radius: 8px;
  margin-top: 50px;
  margin-bottom: 10vh;
}

.right:after,
.left:after {
  content: "";
  display: table;
  clear: both;
}

h1 {
  font-size: 50px;
  font-weight: 300;
  margin-bottom: 30px;
}

.input-wrap {
  position: relative;
}

.input-wrap i {
  position: absolute;
  right: 40px;
  background: #fff;
  top: 50%;
  transform: translateY(-50%);
  color: #333;
}

#searchbar {
  display: block;
  background: #fff;
  border-radius: 8px;
  width: 100%;
  padding: 20px 40px;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: #333;
}

#searchbar::-webkit-input-placeholder {
  color: #b9b9b9;
}

#searchbar::-moz-placeholder {
  color: #b9b9b9;
}

#searchbar:-ms-input-placeholder {
  color: #b9b9b9;
}

#searchbar:-moz-placeholder {
  color: #b9b9b9;
}

.item {
  cursor: -webkit-grab;
  margin-right: 10px;
  margin-bottom: 20px;
  padding: 0 0 20px 20px;
  display: block;
  border-bottom: 1px solid #ccc;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  transition: 0.3s width ease-out, 0.3s height ease-out;
}

.item i {
  margin-right: 10px;
}

.item i,
.item p {
  display: inline-block;
  vertical-align: middle;
}

.item p {
  line-height: 1.2;
  word-break: break-all;
  width: calc(100% - 50px);
}

.is-dropped {
  transform: scale(0);
  transition: 0.2s all ease-out;
}

.folder {
  float: left;
  width: 150px;
  height: 150px;
  background: rgba(0, 0, 0, 0.0);
  margin-right: 10px;
  position: relative;
  transition: 0.2s background-color ease-out;
  text-align: center;
}

.folder i.fa-folder {
  height: 90px;
  width: 100%;
  line-height: 100px;
  margin: 10px auto;
  font-size: 90px;
  transition: 0.2s all ease-out;
}

.folder i.fa-check {
  color: #fff;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  text-align: center;
  line-height: 60px;
  position: absolute;
  left: 0;
  right: 0;
  top: 34px;
  margin: auto;
  pointer-events: none;
  transform: scale(0);
  opacity: 0;
  font-size: 24px;
}

.folder.item-dropped i.fa-check {
  animation: animateValidation 1s linear;
}

@keyframes animateValidation {
  0% {
    transform: scale(1.5);
    opacity: 0;
  }
  40%,
  80% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

.folder p {
  font-weight: 300;
  cursor: default;
  opacity: 0.5;
  transition: 0.2s all ease-out;
}

.folder:hover .fa-folder {
  transform: scale(1.1) !important;
}
.folder:hover p {
  transform: translateY(6px);
  opacity: 1;
}
#folder1 i.fa-folder,
#folder1-content h2 .fa-folder {
  color: #eb4141;
}

#folder2 i.fa-folder,
#folder2-content h2 .fa-folder {
  color: #4bc97a;
}

#folder3 i.fa-folder,
#folder3-content h2 .fa-folder {
  color: #6fdbeb;
}

#folder4 i.fa-folder,
#folder4-content h2 .fa-folder {
  color: #eeca4e;
}

#folder5 i.fa-folder,
#folder5-content h2 .fa-folder {
  color: #5b5b5b;
}

.tooltiper {
  position: relative;
  z-index: 3;
}

.tooltiper .tooltip {
  min-width: 110px;
  position: absolute;
  font-size: 0.7rem;
  text-align: left;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  display: block;
  top: 50%;
  left: 120px;
  transform: translateY(-50%) scale(0);
  line-height: 1.4em;
  opacity: 0;
  transform-origin: left;
  transition: transform 0.2s ease-out, opacity 0.1s ease-out 0.1s;
}

.tooltiper-up .tooltip {
  min-width: 0;
  position: absolute;
  font-size: 0.7rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  display: inline-block;
  top: -20px;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  line-height: 1.4em;
  opacity: 0;
  transform-origin: bottom;
}

.tooltiper:hover .tooltip {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  transition: transform 0.2s ease-out, opacity 0.1s ease-out;
}

.tooltiper-up:hover .tooltip {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.2s ease-out, opacity 0.1s ease-out;
}

.tooltiper .tooltip:after {
  right: 100%;
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.tooltiper .tooltip:after {
  border-color: transparent;
  border-right-color: rgba(0, 0, 0, 0.7);
  border-width: 4px;
  margin-top: -4px;
}

.tooltiper-up .tooltip:after {
  border-width: 7px 7px 0 7px;
  border-color: rgba(0, 0, 0, 0.7) transparent transparent transparent;
  right: 0;
  left: 0;
  margin: 0 auto;
  top: 100%;
}

.folder-content {
  display: none;
  position: absolute;
  height: 420px;
  width: 1012px;
  background: rgba(255, 255, 255, 0.9);
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  left: 150px;
  top: 315px;
  border-radius: 8px;
  padding: 30px;
}

.folder-content h2 {
  font-size: 21px;
  padding-bottom: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid #ccc;
  cursor: default;
}

.folder-content h2 i {
  margin-right: 10px;
}

.easeout2 {
  transition: 0.2s all ease-out;
}

.folder-content.closed {
  transform: scale(0.8);
  opacity: 0;
}

.close-folder-content {
  position: absolute;
  right: 20px;
  top: 20px;
  background: #f3f3f3;
  padding: 5px 10px;
  border-radius: 5px;
}

.close-folder-content,
.close-folder-content i {
  transition: 0.16s all ease-out;
}

.close-folder-content:hover {
  background: #f95536;
}

.close-folder-content:hover i {
  color: #fff;
}

.folder-content .file {
  float: left;
  margin-right: 20px;
  bottom: 20px;
  text-align: center;
  padding: 20px;
}

.folder-content p {
  font-size: 14px;
}

.folder-content .file i {
  font-size: 36px;
  margin-bottom: 15px;
}

.ui-draggable-dragging {
  z-index: 999;
}

.input-select-wrap {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  width: 250px;
  height: 70px;
  line-height: 70px;
  margin: 0 auto;
  text-align: center;
  transition: 0.3s all ease-out;
}

#fileSelect {
  color: transparent;
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: block;
  cursor: pointer;
}

#fileSelect::-webkit-file-upload-button {
  visibility: hidden;
}

.fileUpload {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.fileUpload span {
  background: #f95536;
  opacity: 0.8;
  height: 40px;
  width: 40px;
  line-height: 40px;
  color: #fff;
  text-align: center;
  border-radius: 50%;
  display: inline-block;
  font-size: 24px;
  vertical-align: middle;
  margin-right: 10px;
  transition: 0.3s all ease-out;
}

.fileUpload p {
  display: inline-block;
  font-weight: 400;
  vertical-align: middle;
  line-height: 30px;
  height: 30px;
  font-size: 18px;
  transition: 0.3s all ease-out;
}

.fileUpload p:after {
  content: "Add up to 5GB";
  display: block;
  height: 0;
  font-weight: 400;
  text-align: left;
  color: #999;
  line-height: 10px;
  font-size: 14px;
  margin-top: 5px;
  opacity: 0;
  transition: 0.3s all ease-out;
  transform: translateY(-18px);
}

.input-select-wrap:hover .fileUpload p:after {
  opacity: 1;
  height: 10px;
  transform: translateY(0);
}

.input-select-wrap:hover .fileUpload p {
  height: 50px;
}

.input-select-wrap:hover .fileUpload span {
  opacity: 1;
}

#draggableFile {
  width: 100%;
  color: #FFF;
  position: fixed;
  top: 0;
  left: 0;
  text-align: center;
  opacity: 0;
  background: rgba(249, 85, 54, 0.7);
  height: 0;
  transition: 0.6s opacity ease-out, 0s height linear 0.6s;
  z-index: 3;
}

.visible #draggableFile {
  opacity: 1;
  height: 100vh;
  transition: 0.6s opacity ease-out;
}

#draggableFile > span {
  display: block;
  font-size: 30px;
  position: fixed;
  text-align: center;
  width: 100%;
  top: 50%;
  height: 0;
  transform: translateY(-50%);
  color: #fff;
  pointer-events: none;
}

#draggableFile > span > span {
  font-size: 16px;
  opacity: 0.7;
  font-weight: 300;
  color: #fff;
}

#myForm #result {
  background-color: #999;
  padding: 10px;
  border-radius: 10px;
  color: #222;
  margin-right: 30px;
  margin-left: 30px;
  border: 2px solid #000;
  display: none
}
            
          
!
            
              var fileSelect = document.getElementById("fileSelect"),
  draggableFile = document.getElementById("draggableFile"),
  result = document.getElementById("result"),
  wrapper = document.getElementById("wrapper");
xhr = new XMLHttpRequest();
if (window.File && window.FileList && window.FileReader) {
  function setupReader(file, handler) {
    var reader = new FileReader();
    reader.onloadend = handler;
    reader.readAsDataURL(file);
  }

  function overFile(e) {
    e.stopPropagation();
    e.preventDefault();
    wrapper.className = "visible";
  }

  function endFile(e) {
    e.stopPropagation();
    e.preventDefault();
    wrapper.className = "";
  }

  function dropFile(e) {
    e.stopPropagation();
    e.preventDefault();
    var files = e.target.files || e.dataTransfer.files;
    for (var i = 0; i < files.length; i++) {
      var eachFile = files[i],
        type = eachFile.type == "" || eachFile.type == null
          ? eachFile.name.split(".")[1]
          : eachFile.type;
      setupReader(eachFile, function(e) {
        $("#result").append('<div class="item"><i class="fa fa-file-o" aria-hidden="true"></i><p>'+eachFile.name +'</p></div>');
      });
    }
    result.style.display = "block";
    wrapper.className = "";
    $(".input-select-wrap").css({
      bottom: "30px",
      top: "inherit",
      transform: "none"
    });

    setTimeout(function() {
      $(".item").draggable({
        revert: true,
        start: function() {
          $(".folder").css({
            "background-color": "rgba(0,0,0,0.05)"
          });
          $(this).css({
            display: "inline-block"
          });
        },
        stop: function() {
          $(".folder").css({
            "background-color": "rgba(0,0,0,0)"
          });
          $(this).css({
            display: "block"
          });
        },
        drag: function(event, ui) {
          $(this).css("z-index", "999");
        }
      });
    }, 300);
  }

  if (xhr.upload) {
    wrapper.addEventListener("dragover", overFile);
    wrapper.addEventListener("dragenter", overFile);
    draggableFile.addEventListener("dragleave", endFile);
    draggableFile.addEventListener("drop", dropFile);
    fileSelect.addEventListener("change", dropFile);
  }
}

$(document).ready(function() {
  var targetFolder;
  var folderID;
  var zIndex;

  $(".folder").droppable({
    accept: ".item, .file",
    over: function(event, ui) {
      $(this).find("i.fa-file").css({
        transform: "scale(1.1)",
        opacity: "0.5"
      });
      $(this).find("p").css({
        opacity: "0.5"
      });
      $(this).css({
        background: "rgba(0,0,0,0.0)",
        border: "1px solid rgba(0,0,0,0.1)"
      });
      targetFolder = $(".ui-droppable-hover").attr("id") + "-content";
      folderID = $(".ui-droppable-hover").attr("id");
    },
    out: function(event, ui) {
      $(this).find("i.fa-file").css({
        transform: "scale(1)",
        opacity: "1"
      });
      $(this).find("p").css({
        opacity: "1"
      });
      $(this).css({
        background: "rgba(0,0,0,0.05)",
        border: "1px solid rgba(0,0,0,0)"
      });
    },
    drop: function() {
      dropItemToFolder(targetFolder, folderID);
      updateFilesNumbers();
    }
  });

  $(".left").sortable({
    revert: true
  });

  $(".folder-content").droppable({
    drop: function() {
      var eLtarget = $(this).attr("id");
      var eLFolder = $(this).attr("id").slice(0, -8);
      if (!$(".ui-draggable-dragging").hasClass(eLtarget + "-item")) {
        dropItemToFolder(eLtarget, eLFolder);
        updateFilesNumbers();
      }
    }
  });
  var eLfolderindex;
  var draggieWindow = $(".folder-content").draggabilly();
  draggieWindow.on("dragStart", function(event, pointer) {
    (zIndex = $(".folder-content")
      .map(function() {
        return $(this).css("z-index");
      })
      .get()), (currentzIndex = Math.max.apply(null, zIndex));
    $(this).css({
      display: "block",
      "z-index": currentzIndex + 1
    });
  });
  $(".folder-content").resizable({
    minWidth: 250,
    minHeight: 150,
    start: function(event, ui) {
      $(".folder-content").draggabilly("disable");
    },
    stop: function(event, ui) {
      $(".folder-content").draggabilly("enable");
    }
  });
  $(".top-droppable").topDroppable({
	    drop: function (e, ui) {
	       console.log("dropped into " + $(this).attr('id'));
	    }
	});

  $(".close-folder-content").click(function() {
    var eLfolder = $(this).parent();
    eLfolder.addClass("easeout2").addClass("closed");
    setTimeout(function() {
      eLfolder.css("display", "none");
    }, 300);
  });

  $(".folder").dblclick(function() {
    (zIndex = $(".folder-content")
      .map(function() {
        return $(this).css("z-index");
      })
      .get()), (currentzIndex = Math.max.apply(null, zIndex));

    var eLfolder = $(this).attr("id");

    $("#" + eLfolder + "-content").css({
      display: "block",
      "z-index": currentzIndex + 1
    });
    setTimeout(function() {
      $("#" + eLfolder + "-content").addClass("easeout2").removeClass("closed");
    }, 5);
    setTimeout(function() {
      $("#" + eLfolder + "-content").removeClass("easeout2");
    }, 300);
  });

  toolTiper();
});

function toolTiper() {
  $(".tooltiper").each(function() {
    var eLcontent = $(this).attr("data-tooltip"),
      eLtop = $(this).position().top,
      eLleft = $(this).position().left;
    $(this).append('<span class="tooltip">' + eLcontent + "</span>");
  });
}

function dragTheFiles() {
  setTimeout(function() {
    $(".file").draggable({
      revert: true,
      start: function() {
        $(".folder-content").draggabilly("disable");
        $(".folder").css({
          "background-color": "rgba(0,0,0,0.05)"
        });
        $(this).css({
          "background-color": "rgba(0,0,0,0.02)"
        });
      },
      stop: function() {
        $(".folder-content").draggabilly("enable");
        $(".folder").css({
          "background-color": "rgba(0,0,0,0)"
        });
        $(this).css({
          "background-color": "rgba(0,0,0,0.0)"
        });
      },
      drag: function(event, ui) {
        $(this).css({
          "z-index": "999"
        });
      }
    });
  }, 300);
}

function dropItemToFolder(target, folderid) {
  $(".ui-draggable-dragging").draggable({
    revert: false
  });
  $(".ui-draggable-dragging").addClass("is-dropped");
  $("#" + folderid).addClass("item-dropped");
  $(".folder").css({
    background: "rgba(0,0,0,0.05)",
    border: "1px solid rgba(0,0,0,0)"
  });
  $(".folder .fa-folder").css({
    transform: "scale(1)",
    opacity: "1"
  });
  $(".folder p").css({
    opacity: "1"
  });
  setTimeout(function() {
    $(".is-dropped").appendTo("#" + target);
    $(".is-dropped").removeClass().addClass(target + "-item").addClass("file");
    $("." + target + "-item").draggable("destroy");
    $("." + target + "-item").css({
      left: "0",
      top: "0"
    });
  }, 300);
  setTimeout(function() {
    $("#" + folderid).removeClass("item-dropped");
  }, 1000);
  dragTheFiles();
}


function updateFilesNumbers() {
  setTimeout(function(){
    $('.folder-content').each(function(){
      var eLFolder = $(this).attr("id").slice(0, -8);
      var filesCount = $(this).find('.file').length;
      $('#'+eLFolder).find('.tooltip').html(filesCount+' file(s)');
    });
  },300);
}
            
          
!
999px
🕑 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 ..................

Console