diff --git a/system/CSS/css.php b/system/CSS/css.php
index f745c11..a19363c 100644
--- a/system/CSS/css.php
+++ b/system/CSS/css.php
@@ -1,7 +1,7 @@
\n";
+foreach(glob(__DIR__."/*.css") as $style) {
+ // if(strpos($style, "old") !== false) continue;
+ $style = ".".str_replace($ROOT, "", $style);
+ echo "\n";
}
?>
\ No newline at end of file
diff --git a/system/CSS/dark.css b/system/CSS/dark.css
index c16db5f..52d1c2c 100644
--- a/system/CSS/dark.css
+++ b/system/CSS/dark.css
@@ -23,6 +23,10 @@ body.dark {
background-color: #303030;
}
+.dark .btn {
+ border-color: white;
+}
+
.dark #explorer.ssh div.file {
color: #00af00;
@@ -48,4 +52,4 @@ body.dark {
.dark .bar.error .slider {
background-color: darkred;
-}
\ No newline at end of file
+}
diff --git a/system/CSS/list.css b/system/CSS/list.css
index b416591..0837f1f 100644
--- a/system/CSS/list.css
+++ b/system/CSS/list.css
@@ -23,18 +23,27 @@ ul li span {
ul li .btn {
border-left: 1px solid black;
display: block;
- max-height: 3.5vw;
- max-width: 3.5vw;
- padding: 1%;
+ max-height: 100%;
+ max-width: 1.1em;
+ padding: 0.1em;
+ width: 100%;
}
+/*ul li .btn::after {
+ content: "";
+ display: block;
+ padding-top: 100%;
+}*/
+
ul li svg {
display: block;
height: 100%;
+ width: 100%;
}
ul li.menu {
flex-wrap: nowrap;
+ white-space: nowrap;
word-break: keep-all;
-}
\ No newline at end of file
+}
diff --git a/system/JS/js.php b/system/JS/js.php
index b90da86..ccce941 100644
--- a/system/JS/js.php
+++ b/system/JS/js.php
@@ -1,6 +1,6 @@
\n";
+foreach(glob(__DIR__."/*.js") as $script) {
+ $script = ".".str_replace($ROOT, "", $script);
+ echo "\n";
}
?>
\ No newline at end of file
diff --git a/system/JS/nav.js b/system/JS/nav.js
index 16ac09b..d6cfb23 100644
--- a/system/JS/nav.js
+++ b/system/JS/nav.js
@@ -3,7 +3,7 @@ const Explorer = {
this.elem = elem;
this.path = path;
},
- to: async function(dir = 0) {
+ to: async function(dir = 0, abs = false) {
if(dir == -1) {
this.path = this.path.split("/");
this.path.pop();
@@ -11,8 +11,12 @@ const Explorer = {
this.path = this.path.join("/") + "/";
if(this.path[0] !== "/") this.path = "/" + this.path;
} else if(dir !== 0) {
- dir = dir.innerText;
- this.path += dir + "/";
+ if(typeof dir == "object") dir = dir.innerText;
+ if(abs) {
+ this.path = dir;
+ } else {
+ this.path += dir + "/";
+ }
}
let paths = await request({
@@ -48,7 +52,7 @@ const Explorer = {
this.rename(false, elem, "add");
},
rename: function(e, elem, action = false) {
- if(elem.tagName == "BUTTON") elem = elem.parentNode.firstElementChild;
+ if(elem.classList.contains("btn")) elem = elem.parentNode.firstElementChild;
let that = this;
let oldName = elem.innerText;
elem.onblur = function() {
@@ -87,7 +91,7 @@ const Explorer = {
if(e) e.preventDefault();
},
remove: function(elem) {
- if(elem.tagName == "BUTTON") elem = elem.parentNode;
+ if(elem.classList.contains("btn")) elem = elem.parentNode;
if(!confirm("Do you really want to delete \""+elem.innerText+"\" ?")) return;
let path = elem.innerText;
request({
diff --git a/system/JS/script.js b/system/JS/script.js
index bc2797a..4f9ca46 100644
--- a/system/JS/script.js
+++ b/system/JS/script.js
@@ -19,8 +19,7 @@ window.onload = function() {
window.onhashchange = function() {
let hash = location.hash.substr(1);
- let elem = document.getElementById("path");
- elem.innerText = hash;
+ Explorer.to(hash, true);
}
function Textcopy(txt) {
diff --git a/system/PHP/modify.php b/system/PHP/modify.php
index 5cff78c..099e15f 100644
--- a/system/PHP/modify.php
+++ b/system/PHP/modify.php
@@ -14,7 +14,7 @@ function add($fof) {
]);
}
-function renameFoF($old, $new) {
+function renamePath($old, $new) {
$oldpath = filterpath($old["path"]);
$oldpath = fullpath($oldpath);
diff --git a/system/conf.php b/system/conf.php
index c8e6dbe..e79a2d5 100644
--- a/system/conf.php
+++ b/system/conf.php
@@ -1,3 +1,4 @@
\ No newline at end of file