diff --git a/css/style.css b/css/style.css index 8849789..12b2185 100644 --- a/css/style.css +++ b/css/style.css @@ -20,6 +20,7 @@ ul { ul:nth-child(1) { padding: 1em 1em; + position: absolute; } li:hover { @@ -39,7 +40,7 @@ li::before { } .caret-down::before { - transform: rotate(90deg); + transform: rotate(90deg); } .nested { display: none; @@ -72,6 +73,7 @@ aside { grid-area: aside; overflow-y: scroll; margin-right: 2px solid #c3c3c3; + position: relative; } footer { @@ -84,3 +86,14 @@ footer { sub { display: block; } + +.loading { + position: absolute; + z-index: 5; + display: none; + background-color: rgba(0, 0, 0, 0.438); + width: 100%; + height: 100%; + justify-items: center; + align-items: center; +} diff --git a/img/arrow-down.svg b/img/arrow-down.svg deleted file mode 100644 index f2feed0..0000000 --- a/img/arrow-down.svg +++ /dev/null @@ -1,114 +0,0 @@ - -image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/img/loading.gif b/img/loading.gif new file mode 100644 index 0000000..bc5497e Binary files /dev/null and b/img/loading.gif differ diff --git a/index.php b/index.php index 0eb2436..ba54c66 100644 --- a/index.php +++ b/index.php @@ -22,6 +22,9 @@ +
+ loading +
diff --git a/js/controller.js b/js/controller.js index 3695e5d..f41cd83 100644 --- a/js/controller.js +++ b/js/controller.js @@ -19,8 +19,11 @@ class Controller { cloneRep(repurl) { var that = this; + var loading = document.getElementsByClassName("loading")[0]; + loading.style.display = "grid"; this.model.cloneRep().then( function (value) { + loading.style.removeProperty("display"); that.redrawDirTree(that.view); }, function (error) {}