Skip to content

Commit

Permalink
Update file.html
Browse files Browse the repository at this point in the history
  • Loading branch information
inventionpro authored Mar 2, 2024
1 parent 1d0d597 commit 4d31bf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user/file.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<button id="SB" onclick="Fsav()" style="font-size:18px;position:fixed;bottom:0;right:12px;display:none;">Save</button>
<script>
const params = new URLSearchParams(window.location.search);
document.getElementById('Bupload').href = '/upload?id='+params.get('id')+'&dir=/'+params.get('file');
document.getElementById('Bupload').href = '/user/upload?id='+params.get('id')+'&dir=/'+params.get('file');
document.getElementById('KP').innerHTML = `<a href="/server?id=${params.get('id')}">server</a>/${params.get('file').split('/').slice(0,params.get('file').split('/').length-1).map(r=>{return `<a href="/file?id=${params.get('id')}&file=${params.get('file').split(r)[0]}${r}&f=false">${r}</a>`}).join('/')}/${params.get('file').split('/').slice(-1)[0]}`.replace('//','/');
function fe(name) {
modal = name;
Expand All @@ -59,7 +59,7 @@
document.getElementById('cont').innerHTML = f.map(o => {
o = o.attributes;
return `<p class="file">
<a style="color:#fff;text-decoration:none;cursor:pointer;" href="/file?id=${params.get('id')}&file=${params.get('file')}/${o.name}&f=${o.is_file}">
<a style="color:#fff;text-decoration:none;cursor:pointer;" href="/user/file?id=${params.get('id')}&file=${params.get('file')}/${o.name}&f=${o.is_file}">
${o.is_file ? file_type(o.mimetype, o.name) : '<i class="fa-solid fa-folder"></i>'} ${o.name}${o.is_file ? ` - ${formatBytes(o.size)}` : ''}
</a>
<i onclick="fe('${o.name}')" style="float:right;margin-right:5px;padding:2px 8px;background:#888;border-radius:0.25rem;" class="fa-solid fa-ellipsis-vertical"></i>
Expand Down

0 comments on commit 4d31bf1

Please sign in to comment.