top: 90px;
bottom: 51px;
overflow-y: auto;
+ padding: 0 15px;
+ }
+
+ #elements:empty:before {
+ display: block;
+ content: "Upuść pliki tutaj";
+ position: absolute;
+ left: 0;
+ right: 0;
+ border: dashed 3px #bbb;
+ border-radius: 6px;
+ text-align: center;
+ font-size: 28px;
+ padding: 140px;
+ margin: 15px;
+ background: white;
+ overflow: hidden;
+ opacity: 0.5;
+ }
+
+ #drop-overlay {
+ display: none;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 90px;
+ border: dashed 3px #bbb;
+ border-radius: 6px;
+ text-align: center;
+ font-size: 28px;
+ padding: 140px;
+ margin: 15px;
+ background: white;
+ overflow: hidden;
+ opacity: 0.5;
+ }
+
+ #drop-overlay.in {
+ display: block;
}
#elements .item .text {
<input id="files" type="file" name="files" multiple>
</form>
-<div id="elements" class="container-fluid">
-</div>
+<div id="elements"></div>
+
+<div id="drop-overlay" class="fade">Upuść pliki tutaj</div>
<footer class="navbar navbar-default navbar-fixed-bottom">
<div class="container-fluid">
if ($('#files').fileupload('active'))
return 'Nie zakończono przesyłania wszystkich plików, czy chcesz kontynuować?';
});
+
+ $(window).on('dragenter dragleave drop', function(e) {
+ $('#drop-overlay').toggleClass('in');
+ })
+
});
</script>