update 2020.7.13
This commit is contained in:
+81
-63
@@ -21,8 +21,8 @@
|
||||
<meta name=viewport content="width=device-width,initial-scale=1">
|
||||
<meta name="keywords" content="<!--Keywords-->">
|
||||
<meta name="description" content="<!--Description-->">
|
||||
<link rel="icon" href="<!--base_path-->favicon.ico" type="image/x-icon" />
|
||||
<link rel="shortcut icon" href="<!--base_path-->favicon.ico" type="image/x-icon" />
|
||||
<link rel="icon" href="<!--base_path-->favicon.ico" type="image/x-icon">
|
||||
<link rel="shortcut icon" href="<!--base_path-->favicon.ico" type="image/x-icon">
|
||||
<style type="text/css">
|
||||
body{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:1em;color:#000;background-color:#f7f7f9;<!--BackgroundStart-->background-repeat:no-repeat;background-size:cover;background-attachment:fixed;background-image:url("<!--BackgroundUrl-->");<!--BackgroundEnd-->}
|
||||
a{color:#24292e;cursor:pointer;text-decoration:none}
|
||||
@@ -151,7 +151,7 @@
|
||||
<ion-icon name="arrow-back"></ion-icon>
|
||||
</a>
|
||||
<!--BackArrowEnd-->
|
||||
<h3 class="table-header"><!--Path--></h3>
|
||||
<h3 class="table-header"><!--PathArrayStart--> / <a href="<!--PathArrayLink-->"><!--PathArrayName--></a><!--PathArrayEnd--></h3>
|
||||
</div>
|
||||
<div class="list-body-container">
|
||||
<!--EncryptedStart-->
|
||||
@@ -222,6 +222,7 @@
|
||||
<a onclick="sortby('a');"><!--constStr@File--></a>
|
||||
<!--ShowThumbnailsStart-->
|
||||
|
||||
<label><input type="checkbox" id="originalpic"><!--constStr@OriginalPic--></label>
|
||||
<button onclick="showthumbnails(this);"><!--constStr@ShowThumbnails--></button>
|
||||
<!--ShowThumbnailsEnd-->
|
||||
|
||||
@@ -246,7 +247,7 @@
|
||||
</li>
|
||||
<!--AdminEnd-->
|
||||
<ion-icon name="folder"></ion-icon>
|
||||
<a id="file_a<!--filenum-->" name="filelist" href="<!--FileEncodeReplaceUrl-->/"><!--FileEncodeReplaceName--></a>
|
||||
<a id="file_a<!--filenum-->" name="folderlist" href="<!--FileEncodeReplaceUrl-->/"><!--FileEncodeReplaceName--></a>
|
||||
</td>
|
||||
<td class="updated_at" id="folder_time<!--filenum-->"><!--lastModifiedDateTime--></td>
|
||||
<td class="size" id="folder_size<!--filenum-->"><!--size--></td>
|
||||
@@ -475,11 +476,14 @@
|
||||
function changelanguage(str)
|
||||
{
|
||||
if (str=='Language') str = '';
|
||||
document.cookie='language='+str+'; path=/';
|
||||
var expd = new Date();
|
||||
expd.setTime(expd.getTime()+(2*60*60*1000));
|
||||
var expires = "expires="+expd.toGMTString();
|
||||
document.cookie='language='+str+'; path=/; '+expires;
|
||||
location.href = location.href;
|
||||
}
|
||||
<!--ListStart-->
|
||||
var root = '<!--base_disk_path-->';
|
||||
/*var root = '<!--base_disk_path-->';
|
||||
function path_format(path) {
|
||||
path = '/' + path + '/';
|
||||
while (path.indexOf('//') !== -1) {
|
||||
@@ -499,7 +503,7 @@
|
||||
}
|
||||
e.innerHTML += paths[paths.length - 1];
|
||||
e.innerHTML = e.innerHTML.replace(/\s\/\s$/, '')
|
||||
});
|
||||
});*/
|
||||
<!--IsFileStart-->
|
||||
var $url = document.getElementById('url');
|
||||
if ($url) {
|
||||
@@ -632,29 +636,37 @@
|
||||
<!--ReadmemdEnd-->
|
||||
<!--ShowThumbnailsStart-->
|
||||
function showthumbnails(obj) {
|
||||
images = [<!--ImgExts-->];
|
||||
var files=document.getElementsByName('filelist');
|
||||
for ($i=0;$i<files.length;$i++) {
|
||||
str=files[$i].innerText;
|
||||
if (str.substr(-1)==' ') str=str.substr(0,str.length-1);
|
||||
if (!str) return;
|
||||
if (!str) continue;
|
||||
strarry=str.split('.');
|
||||
ext=strarry[strarry.length-1].toLowerCase();
|
||||
images = [<!--ImgExts-->];
|
||||
if (images.indexOf(ext)>-1) get_thumbnails_url(str, files[$i]);
|
||||
if (images.indexOf(ext)>-1) {
|
||||
if (document.getElementById('originalpic').checked==true) {
|
||||
var url=files[$i].href;
|
||||
url=url.substr(0,url.length-8);
|
||||
files[$i].parentNode.parentNode.innerHTML='<td colspan="3"><img src="'+url+'" alt="'+str+'" onload="if (this.offsetWidth>document.getElementById(\'list-div\').offsetWidth) this.style.width=\'100%\';"></td>';
|
||||
$i--;
|
||||
} else {
|
||||
var nurl=window.location.href;
|
||||
if (nurl.substr(-1)!="/") nurl+="/";
|
||||
var url=nurl+str+'?thumbnails';
|
||||
get_thumbnails_url(url, str, files[$i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
obj.disabled='disabled';
|
||||
}
|
||||
function get_thumbnails_url(str, filea) {
|
||||
if (!str) return;
|
||||
var nurl=window.location.href;
|
||||
if (nurl.substr(-1)!="/") nurl+="/";
|
||||
function get_thumbnails_url(url, name, filea) {
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open("GET", nurl+str+'?thumbnails', true);
|
||||
//xhr.setRequestHeader('x-requested-with','XMLHttpRequest');
|
||||
xhr.open("GET", url, true);
|
||||
xhr.send('');
|
||||
xhr.onload = function(e){
|
||||
if (xhr.status==200) {
|
||||
if (xhr.responseText!='') filea.innerHTML='<img src="'+xhr.responseText+'" alt="'+str+'">';
|
||||
if (xhr.responseText!='') filea.innerHTML='<img src="'+xhr.responseText+'" alt="'+name+'">';
|
||||
} else console.log(xhr.status+'\n'+xhr.responseText);
|
||||
}
|
||||
}
|
||||
@@ -812,20 +824,55 @@
|
||||
tr1.setAttribute('data-to',1);
|
||||
var td1=document.createElement('td');
|
||||
tr1.appendChild(td1);
|
||||
td1.setAttribute('style','width:30%');
|
||||
td1.setAttribute('style','width:30%;word-break:break-word;');
|
||||
td1.setAttribute('id','upfile_td1_'+timea+'_'+i);
|
||||
td1.innerHTML=(file.webkitRelativePath||file.name)+'<br>'+size_format(file.size);
|
||||
var td2=document.createElement('td');
|
||||
tr1.appendChild(td2);
|
||||
td2.setAttribute('id','upfile_td2_'+timea+'_'+i);
|
||||
td2.innerHTML='<!--constStr@GetUploadLink--> ...';
|
||||
if (file.size>100*1024*1024*1024) {
|
||||
td2.innerHTML='<font color="red"><!--constStr@UpFileTooLarge--></font>';
|
||||
uploadbuttonshow();
|
||||
return;
|
||||
}
|
||||
upbigfilename = encodeURIComponent((file.webkitRelativePath||file.name));
|
||||
<!--GuestStart-->
|
||||
function getext(str) {
|
||||
strarry=str.split('.');
|
||||
ext=strarry[strarry.length-1].toLowerCase();
|
||||
var reg = new RegExp(".","g");
|
||||
var a = str.replace(reg,"");
|
||||
if (a == ext) ext = "";
|
||||
else ext = "." + ext;
|
||||
return ext;
|
||||
}
|
||||
var ext = getext(file.webkitRelativePath||file.name);
|
||||
var spark = new SparkMD5.ArrayBuffer();
|
||||
var reader = new FileReader();
|
||||
var chunksize=10*1024*1024;
|
||||
var asize = 0;
|
||||
function readblob(start) {
|
||||
var end=start+chunksize;
|
||||
var blob = file.slice(start,end);
|
||||
reader.readAsArrayBuffer(blob);
|
||||
}
|
||||
readblob(asize);
|
||||
|
||||
reader.onload = function(e){
|
||||
td2.innerHTML='<!--constStr@Calculate--> md5: '+(asize*100/file.size).toFixed(2)+'%';
|
||||
var binary = this.result;
|
||||
spark.append(binary);
|
||||
asize += chunksize;
|
||||
if (asize < file.size) {
|
||||
readblob(asize);
|
||||
} else {
|
||||
var filemd5 = spark.end();
|
||||
td2.innerHTML='md5: '+filemd5;
|
||||
upbigfilename = filemd5+ext;
|
||||
<!--GuestEnd-->
|
||||
td2.innerHTML='<!--constStr@GetUploadLink--> ...';
|
||||
var xhr1 = new XMLHttpRequest();
|
||||
xhr1.open("GET", '?action=upbigfile&upbigfilename='+ encodeURIComponent((file.webkitRelativePath||file.name)) +'&filesize='+ file.size +'&lastModified='+ file.lastModified);
|
||||
xhr1.open("GET", '?action=upbigfile&upbigfilename='+ upbigfilename +'&filesize='+ file.size +'&lastModified='+ file.lastModified);
|
||||
xhr1.setRequestHeader('x-requested-with','XMLHttpRequest');
|
||||
xhr1.send(null);
|
||||
xhr1.onload = function(e){
|
||||
@@ -838,14 +885,23 @@
|
||||
uploadbuttonshow();
|
||||
} else {
|
||||
td2.innerHTML='<!--constStr@UploadStart--> ...';
|
||||
binupfile(file,html['uploadUrl'],timea+'_'+i);
|
||||
binupfile(file,html['uploadUrl'],timea+'_'+i, upbigfilename);
|
||||
}
|
||||
}
|
||||
if (xhr1.status==409) {
|
||||
td2.innerHTML='md5: '+filemd5;
|
||||
tdnum = timea+'_'+i;
|
||||
document.getElementById('upfile_td1_'+tdnum).innerHTML='<div style="color:green"><a href="<!--base_disk_path--><!--Path-->'+upbigfilename+'?preview" id="upfile_a_'+tdnum+'" target="_blank">'+document.getElementById('upfile_td1_'+tdnum).innerHTML+'</a><br><a href="<!--base_disk_path--><!--Path-->'+upbigfilename+'" id="upfile_a1_'+tdnum+'"></a><!--constStr@UploadComplete--><button onclick="CopyAllDownloadUrl(\'#upfile_a1_'+tdnum+'\');" id="upfile_cpbt_'+tdnum+'" <!--AdminStart--> style="display:none"<!--AdminEnd--> ><!--constStr@CopyUrl--></button></div>';
|
||||
}
|
||||
if (i<files.length-1) {
|
||||
i++;
|
||||
getuplink(i);
|
||||
}
|
||||
}
|
||||
<!--GuestStart-->
|
||||
}
|
||||
}
|
||||
<!--GuestEnd-->
|
||||
}
|
||||
}
|
||||
function size_format(num) {
|
||||
@@ -866,7 +922,7 @@
|
||||
}
|
||||
return num.toFixed(2) + ' GB';
|
||||
}
|
||||
function binupfile(file,url,tdnum){
|
||||
function binupfile(file,url,tdnum,filename){
|
||||
var label=document.getElementById('upfile_td2_'+tdnum);
|
||||
var reader = new FileReader();
|
||||
var StartStr='';
|
||||
@@ -887,9 +943,7 @@
|
||||
var a = html['nextExpectedRanges'][0];
|
||||
newstartsize = Number( a.slice(0,a.indexOf("-")) );
|
||||
StartTime = new Date();
|
||||
<!--AdminStart-->
|
||||
asize = newstartsize;
|
||||
<!--AdminEnd-->
|
||||
if (newstartsize==0) {
|
||||
StartStr='<!--constStr@UploadStartAt-->:' +StartTime.toLocaleString()+'<br>' ;
|
||||
} else {
|
||||
@@ -903,19 +957,9 @@
|
||||
reader.readAsArrayBuffer(blob);
|
||||
}
|
||||
readblob(asize);
|
||||
<!--GuestStart-->
|
||||
var spark = new SparkMD5.ArrayBuffer();
|
||||
<!--GuestEnd-->
|
||||
|
||||
reader.onload = function(e){
|
||||
var binary = this.result;
|
||||
<!--GuestStart-->
|
||||
spark.append(binary);
|
||||
if (asize < newstartsize) {
|
||||
asize += chunksize;
|
||||
readblob(asize);
|
||||
return;
|
||||
}
|
||||
<!--GuestEnd-->
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open("PUT", url, true);
|
||||
//xhr.setRequestHeader('x-requested-with','XMLHttpRequest');
|
||||
@@ -936,38 +980,12 @@
|
||||
if (response['size']>0) {
|
||||
// contain size, upload finish. 有size说明是最终返回,上传结束
|
||||
var xhr3 = new XMLHttpRequest();
|
||||
xhr3.open("GET", '?action=del_upload_cache&filelastModified='+file.lastModified+'&filesize='+file.size+'&filename='+encodeURIComponent((file.webkitRelativePath||file.name)));
|
||||
xhr3.open("GET", '?action=del_upload_cache&filelastModified='+file.lastModified+'&filesize='+file.size+'&filename='+filename);
|
||||
xhr3.setRequestHeader('x-requested-with','XMLHttpRequest');
|
||||
xhr3.send(null);
|
||||
xhr3.onload = function(e){
|
||||
console.log(xhr3.responseText+','+xhr3.status);
|
||||
}
|
||||
<!--GuestStart-->
|
||||
var filemd5 = spark.end();
|
||||
var xhr4 = new XMLHttpRequest();
|
||||
xhr4.open("GET", '?action=uploaded_rename&filename='+encodeURIComponent((file.webkitRelativePath||file.name))+'&filemd5='+filemd5);
|
||||
xhr4.setRequestHeader('x-requested-with','XMLHttpRequest');
|
||||
xhr4.send(null);
|
||||
xhr4.onload = function(e){
|
||||
console.log(xhr4.responseText+','+xhr4.status);
|
||||
var filename;
|
||||
//if (xhr4.status==200) filename = JSON.parse(xhr4.responseText)['name'];
|
||||
//if (xhr4.status==409) filename = filemd5 + (file.webkitRelativePath||file.name).substr((file.webkitRelativePath||file.name).indexOf('.'));
|
||||
filename = JSON.parse(xhr4.responseText)['name'];
|
||||
if (filename=='') {
|
||||
alert('<!--constStr@UploadErrorUpAgain-->');
|
||||
uploadbuttonshow();
|
||||
return;
|
||||
}
|
||||
var lasturl = location.href;
|
||||
if (lasturl.substr(lasturl.length-1)!='/') lasturl += '/';
|
||||
lasturl += filename + '?preview';
|
||||
//window.open(lasturl);
|
||||
document.getElementById('upfile_a_'+tdnum).href = lasturl;
|
||||
document.getElementById('upfile_a1_'+tdnum).href = filename;
|
||||
document.getElementById('upfile_cpbt_'+tdnum).style.display = "";
|
||||
}
|
||||
<!--GuestEnd-->
|
||||
EndTime=new Date();
|
||||
MiddleStr = '<!--constStr@EndAt-->:'+EndTime.toLocaleString()+'<br>';
|
||||
if (newstartsize==0) {
|
||||
@@ -995,7 +1013,7 @@
|
||||
xhr.send(binary);
|
||||
}
|
||||
} else {
|
||||
if (window.location.pathname.indexOf('%23')>0||(file.webkitRelativePath||file.name).indexOf('%23')>0) {
|
||||
if (window.location.pathname.indexOf('%23')>0||filename.indexOf('%23')>0) {
|
||||
label.innerHTML='<font color="red"><!--constStr@UploadFail23--></font>';
|
||||
} else {
|
||||
label.innerHTML='<font color="red">'+xhr2.responseText+'</font>';
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,377 @@
|
||||
<!--IconValuesStart-->
|
||||
{
|
||||
"music":"audiotrack",
|
||||
"video":"ondemand_video",
|
||||
"img":"image",
|
||||
"default":"insert_drive_file"
|
||||
}
|
||||
<!--IconValuesEnd-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="<!--constStr@language-->">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no"/>
|
||||
<title><!--Title--></title>
|
||||
<link rel="icon" href="<!--base_path-->favicon.ico" type="image/x-icon">
|
||||
<link rel="shortcut icon" href="<!--base_path-->favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" href="//cdnjs.loli.net/ajax/libs/mdui/0.4.1/css/mdui.css">
|
||||
<style>
|
||||
body{background-color:#f2f5fa;padding-bottom:60px;<!--BackgroundStart-->background-position:center bottom;background-repeat:no-repeat;background-size:cover;background-attachment:fixed;background-image:url("<!--BackgroundUrl-->");<!--BackgroundEnd-->}
|
||||
.nexmoe-item{margin:20px -8px 0!important;padding:15px!important;border-radius:5px;background-color:#fff;-webkit-box-shadow:0 .5em 3em rgba(161,177,204,.4);box-shadow:0 .5em 3em rgba(161,177,204,.4);background-color:#fff}
|
||||
.mdui-img-fluid,.mdui-video-fluid{border-radius:5px;border:1px solid #eee}
|
||||
.mdui-list{padding:0}
|
||||
.mdui-list-item{margin:0!important;border-radius:5px;padding:0 10px 0 5px!important;border:1px solid #eee;margin-bottom:10px!important}
|
||||
.mdui-list-item:last-child{margin-bottom:0!important}
|
||||
.mdui-list-item:first-child{border:none}
|
||||
.mdui-toolbar{width:auto;margin-top:60px!important}
|
||||
.mdui-appbar .mdui-toolbar{height:56px;font-size:16px}
|
||||
.mdui-toolbar>*{padding:0 6px;margin:0 2px;}
|
||||
.mdui-toolbar>.mdui-typo-headline{padding:0 16px 0 0}
|
||||
.mdui-toolbar>i{padding:0}
|
||||
.mdui-toolbar>a{padding:0 16px;line-height:30px;border-radius:30px;border:1px solid #eee;opacity:.87}
|
||||
.mdui-toolbar>a:hover,a.mdui-typo-headline,a.active{opacity:1}
|
||||
.mdui-container{max-width:980px}
|
||||
.mdui-list>.th{background-color:initial}
|
||||
.mdui-list-item>a{width:100%;line-height:48px}
|
||||
.mdui-toolbar>a:last-child{opacity:1;background-color:#1e89f2;color:#ffff}
|
||||
.more-disk{display: inline-block;max-width: 100px;}
|
||||
.more-disk div{
|
||||
list-style:none;
|
||||
position:absolute;display:none;background:#ffffff;border-radius:5px;margin:0 0 0 -10px;/*padding:0 7px;*/color:#205D67;z-index:1;
|
||||
box-shadow: 0 0.5em 3em rgba(161,177,204,.4);
|
||||
}
|
||||
.more-disk:hover div{display:block}
|
||||
.more-disk div li{line-height:normal;padding: 3px 10px;}
|
||||
.more-disk div li a{text-decoration: none; color:rgba(0,0,0,.3);}
|
||||
.more-disk div li a:hover{color:rgba(0,0,0,.87);}
|
||||
.more-disk div li a[now]{color:rgba(0,0,0,1);}
|
||||
@media screen and (max-width:980px){
|
||||
.mdui-list-item .mdui-text-right{display:none}
|
||||
.mdui-container{width:100%!important;margin:0}
|
||||
/*.mdui-toolbar>*{display:none}*/
|
||||
.mdui-toolbar>a:last-child,.mdui-toolbar>.mdui-typo-headline,.mdui-toolbar>i:first-child{display:block}
|
||||
}
|
||||
</style>
|
||||
<!--customCss-->
|
||||
<script src="//cdnjs.loli.net/ajax/libs/mdui/0.4.1/js/mdui.min.js"></script>
|
||||
</head>
|
||||
<body class="mdui-theme-primary-blue-grey mdui-theme-accent-blue">
|
||||
<div class="mdui-container">
|
||||
<div class="mdui-container-fluid">
|
||||
<div class="mdui-toolbar nexmoe-item" id="toolbar">
|
||||
<a href="<!--base_path-->"><!--Sitename--></a>
|
||||
<!--MultiDiskAreaStart-->
|
||||
<i class="mdui-icon material-icons mdui-icon-dark" style="margin:0;">chevron_right</i>
|
||||
<div class="more-disk">
|
||||
<span><!--DiskNameNow--></span>
|
||||
<div>
|
||||
<!--MultiDisksStart-->
|
||||
<li><a href="<!--MultiDisksUrl-->" <!--MultiDisksNow-->><!--MultiDisksName--></a></li>
|
||||
<!--MultiDisksEnd-->
|
||||
</div>
|
||||
</div>
|
||||
<!--MultiDiskAreaEnd-->
|
||||
<!--PathArrayStart-->
|
||||
<i class="mdui-icon material-icons mdui-icon-dark" style="margin:0;">chevron_right</i>
|
||||
<a href="<!--PathArrayLink-->"><!--PathArrayName--></a>
|
||||
<!--PathArrayEnd-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--ListStart-->
|
||||
<div class="mdui-container-fluid">
|
||||
<!--EncryptedStart-->
|
||||
<div class="mdui-col-md-6 mdui-col-offset-md-3">
|
||||
<!--<center><h1 class="mdui-typo-display-2-opacity">这是一个受保护的文件夹,您需要提供访问密码才能查看。</h1></center>-->
|
||||
<form action="" method="post">
|
||||
<div class="mdui-textfield mdui-textfield-floating-label">
|
||||
<i class="mdui-icon material-icons">https</i>
|
||||
<label class="mdui-textfield-label"><!--constStr@InputPassword--></label>
|
||||
<input name="password1" class="mdui-textfield-input" type="password"/>
|
||||
</div>
|
||||
<br>
|
||||
<button type="submit" class="mdui-center mdui-btn mdui-btn-raised mdui-ripple mdui-color-theme">
|
||||
<i class="mdui-icon material-icons">fingerprint</i>
|
||||
<!--constStr@Submit-->
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
<!--EncryptedEnd-->
|
||||
<!--GuestUploadStart-->
|
||||
<!--
|
||||
<div class="nexmoe-item" style="padding: 100px!important;">
|
||||
<div class="mdui-typo-display-3-opacity" style="text-align:center;">OneImages</div>
|
||||
<form action="" method="post" enctype="multipart/form-data">
|
||||
<input class="mdui-center" type="file" style="margin: 50px 0;" name="file" />
|
||||
<div class="mdui-row-xs-3">
|
||||
<div class="mdui-col"></div>
|
||||
<div class="mdui-col">
|
||||
<button class="mdui-btn mdui-btn-block mdui-color-theme-accent mdui-ripple"><!--constStr@Upload--></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
-->
|
||||
<!--GuestUploadEnd-->
|
||||
<!--HeadomfStart-->
|
||||
<div class="mdui-typo mdui-shadow-3" style="padding: 20px;margin: 20px 0">
|
||||
<!--HeadomfContent-->
|
||||
</div>
|
||||
<!--HeadomfEnd-->
|
||||
<!--HeadmdStart-->
|
||||
<div class="mdui-typo mdui-shadow-3 markdown" style="padding: 20px;margin: 20px 0">
|
||||
<!--HeadmdContent-->
|
||||
</div>
|
||||
<!--HeadmdEnd-->
|
||||
<!--IsFileStart-->
|
||||
<!--IsimgFileStart-->
|
||||
<div class="nexmoe-item">
|
||||
<img class="mdui-img-fluid mdui-center" src="<!--FileDownUrl-->"/>
|
||||
</div>
|
||||
<!--IsimgFileEnd-->
|
||||
<!--IstxtFileStart-->
|
||||
<div class="nexmoe-item">
|
||||
<pre id="editor" style="white-space: pre-wrap;"><!--TxtContent--></pre>
|
||||
</div>
|
||||
<!--IstxtFileEnd-->
|
||||
<!--IsmusicFileStart-->
|
||||
<div class="nexmoe-item">
|
||||
<audio class="mdui-center" src="<!--FileDownUrl-->" controls autoplay style="width: 100%;" ></audio>
|
||||
</div>
|
||||
<!--IsmusicFileEnd-->
|
||||
<!--IsofficeFileStart-->
|
||||
<div class="nexmoe-item">
|
||||
<iframe id="office-a" src="https://view.officeapps.live.com/op/view.aspx?src=<!--FileEncodeDownUrl-->" style="width: 100%;height: 800px" frameborder="0"></iframe>
|
||||
</div>
|
||||
<!--IsofficeFileEnd-->
|
||||
<!--IsvideoFileStart-->
|
||||
<link class="dplayer-css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dplayer/dist/DPlayer.min.css">
|
||||
<script src="https://cdn.jsdelivr.net/npm/dplayer/dist/DPlayer.min.js"></script>
|
||||
<div class="nexmoe-item">
|
||||
<div class="mdui-center" id="dplayer"></div>
|
||||
</div>
|
||||
<script>
|
||||
const dp = new DPlayer({
|
||||
container: document.getElementById('dplayer'),
|
||||
lang:'zh-cn',
|
||||
video: {
|
||||
url: '<!--FileDownUrl-->',
|
||||
type: 'auto'
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<!--IsvideoFileEnd-->
|
||||
<!--IsOtherFileStart-->
|
||||
<div class="nexmoe-item"><!--constStr@FileNotSupport--></div>
|
||||
<!--IsOtherFileEnd-->
|
||||
<a href="<!--FileEncodeReplaceUrl-->" class="mdui-fab mdui-fab-fixed mdui-ripple mdui-color-theme-accent"><i class="mdui-icon material-icons">file_download</i></a>
|
||||
<!--IsFileEnd-->
|
||||
<!--IsFolderStart-->
|
||||
<style>
|
||||
.thumb .th{
|
||||
display: none;
|
||||
}
|
||||
.thumb .mdui-text-right{
|
||||
display: none;
|
||||
}
|
||||
.thumb .mdui-list-item a ,.thumb .mdui-list-item {
|
||||
width:217px;
|
||||
height: 230px;
|
||||
float: left;
|
||||
margin: 10px 10px !important;
|
||||
}
|
||||
.thumb .mdui-col-xs-12,.thumb .mdui-col-sm-7{
|
||||
width:100% !important;
|
||||
height:230px;
|
||||
}
|
||||
.thumb .mdui-list-item .mdui-icon{
|
||||
font-size:100px;
|
||||
display: block;
|
||||
margin-top: 40px;
|
||||
color: #7ab5ef;
|
||||
}
|
||||
.thumb .mdui-list-item span{
|
||||
float: left;
|
||||
display: block;
|
||||
text-align: center;
|
||||
width:100%;
|
||||
position: absolute;
|
||||
top: 180px;
|
||||
}
|
||||
</style>
|
||||
<div class="nexmoe-item">
|
||||
|
||||
<div class="mdui-row">
|
||||
<ul class="mdui-list">
|
||||
<li class="mdui-list-item th">
|
||||
<div class="mdui-col-xs-12 mdui-col-sm-7"><!--constStr@File--> <i class="mdui-icon material-icons icon-sort" data-sort="name" data-order="downward">expand_more</i></div>
|
||||
<div class="mdui-col-sm-3 mdui-text-right"><!--constStr@EditTime--> <i class="mdui-icon material-icons icon-sort" data-sort="date" data-order="downward">expand_more</i></div>
|
||||
<div class="mdui-col-sm-2 mdui-text-right"><!--constStr@Size--> <i class="mdui-icon material-icons icon-sort" data-sort="size" data-order="downward">expand_more</i></div>
|
||||
</li>
|
||||
<!--BackArrowStart-->
|
||||
<li class="mdui-list-item mdui-ripple">
|
||||
<a href="<!--BackArrowUrl-->">
|
||||
<div class="mdui-col-xs-12 mdui-col-sm-7">
|
||||
<i class="mdui-icon material-icons">arrow_upward</i>
|
||||
..
|
||||
</div>
|
||||
<div class="mdui-col-sm-3 mdui-text-right"></div>
|
||||
<div class="mdui-col-sm-2 mdui-text-right"></div>
|
||||
</a>
|
||||
</li>
|
||||
<!--BackArrowEnd-->
|
||||
|
||||
<!--FolderListStart-->
|
||||
<li class="mdui-list-item mdui-ripple">
|
||||
<a href="<!--FileEncodeReplaceUrl-->/">
|
||||
<div class="mdui-col-xs-12 mdui-col-sm-7 mdui-text-truncate">
|
||||
<i class="mdui-icon material-icons">folder_open</i>
|
||||
<span><!--FileEncodeReplaceName--></span>
|
||||
</div>
|
||||
<div class="mdui-col-sm-3 mdui-text-right"><!--lastModifiedDateTime--></div>
|
||||
<div class="mdui-col-sm-2 mdui-text-right"><!--size--></div>
|
||||
</a>
|
||||
</li>
|
||||
<!--FolderListEnd-->
|
||||
<!--FileListStart-->
|
||||
<li class="mdui-list-item file mdui-ripple">
|
||||
<a href="<!--FileEncodeReplaceUrl-->?preview" target="_blank">
|
||||
<div class="mdui-col-xs-12 mdui-col-sm-7 mdui-text-truncate">
|
||||
<i class="mdui-icon material-icons"><!--IconValue--></i>
|
||||
<span><!--FileEncodeReplaceName--></span>
|
||||
</div>
|
||||
<div class="mdui-col-sm-3 mdui-text-right"><!--lastModifiedDateTime--></div>
|
||||
<div class="mdui-col-sm-2 mdui-text-right"><!--size--></div>
|
||||
</a>
|
||||
</li>
|
||||
<!--FileListEnd-->
|
||||
|
||||
<!--MorePageStart-->
|
||||
<form action="" method="POST" id="nextpageform">
|
||||
<input type="hidden" id="pagenum" name="pagenum" value="">
|
||||
<li class="mdui-list-item th">
|
||||
<div class="mdui-col-sm-6 mdui-left mdui-text-left">
|
||||
<!--PrePageStart-->
|
||||
<a onclick="nextpage(<!--PrePageNum-->);" class="mdui-btn mdui-btn-raised"><!--constStr@PrePage--></a>
|
||||
<!--PrePageEnd-->
|
||||
<!--NextPageStart-->
|
||||
<a onclick="nextpage(<!--NextPageNum-->);" class="mdui-btn mdui-btn-raised"><!--constStr@NextPage--></a>
|
||||
<!--NextPageEnd-->
|
||||
</div>
|
||||
<div class="mdui-col-sm-6 mdui-right mdui-text-right">
|
||||
<div class="mdui-right mdui-text-right"><span class="mdui-chip-title">Page: <!--MorePageListStart--><!--MorePageListEnd--><!--MorePageListNowStart--><!--PageNum--><!--MorePageListNowEnd-->/<!--MaxPageNum--></span></div>
|
||||
</div>
|
||||
</li>
|
||||
</form>
|
||||
<!--MorePageEnd-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--ReadmemdStart-->
|
||||
<div class="mdui-typo mdui-shadow-3 markdown" style="padding: 20px;margin: 20px 0">
|
||||
<!--ReadmemdContent-->
|
||||
</div>
|
||||
<!--ReadmemdEnd-->
|
||||
<!--FootomfStart-->
|
||||
<div class="mdui-typo mdui-shadow-3" style="padding: 20px;margin: 20px 0">
|
||||
<!--FootomfContent-->
|
||||
</div>
|
||||
<!--FootomfEnd-->
|
||||
</div>
|
||||
<!--ShowThumbnailsStart-->
|
||||
<a href="javascript:thumb();" class="mdui-fab mdui-fab-fixed mdui-ripple mdui-color-theme-accent"><i class="mdui-icon material-icons">format_list_bulleted</i></a>
|
||||
<!--ShowThumbnailsEnd-->
|
||||
<!--IsFolderEnd-->
|
||||
<!--ListEnd-->
|
||||
<!--MdRequireStart--><link rel="stylesheet" href="//unpkg.zhimg.com/github-markdown-css@3.0.1/github-markdown.css">
|
||||
<script type="text/javascript" src="//unpkg.zhimg.com/marked@0.6.2/marked.min.js"></script><!--MdRequireEnd-->
|
||||
<script>
|
||||
<!--MorePageStart-->
|
||||
function nextpage(num) {
|
||||
document.getElementById('pagenum').value=num;
|
||||
document.getElementById('nextpageform').submit();
|
||||
}
|
||||
<!--MorePageEnd-->
|
||||
$ = mdui.JQ;
|
||||
$.fn.extend({
|
||||
sortElements: function (comparator, getSortable) {
|
||||
getSortable = getSortable || function () { return this; };
|
||||
var placements = this.map(function () {
|
||||
var sortElement = getSortable.call(this),
|
||||
parentNode = sortElement.parentNode,
|
||||
nextSibling = parentNode.insertBefore(
|
||||
document.createTextNode(''),
|
||||
sortElement.nextSibling
|
||||
);
|
||||
return function () {
|
||||
parentNode.insertBefore(this, nextSibling);
|
||||
parentNode.removeChild(nextSibling);
|
||||
};
|
||||
});
|
||||
return [].sort.call(this, comparator).each(function (i) {
|
||||
placements[i].call(getSortable.call(this));
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
function downall() {
|
||||
let dl_link_list = Array.from(document.querySelectorAll("li a"))
|
||||
.map(x => x.href) // 所有list中的链接
|
||||
.filter(x => x.slice(-1) != "/"); // 筛选出非文件夹的文件下载链接
|
||||
let blob = new Blob([dl_link_list.join("\r\n")], {
|
||||
type: 'text/plain'
|
||||
}); // 构造Blog对象
|
||||
let a = document.createElement('a'); // 伪造一个a对象
|
||||
a.href = window.URL.createObjectURL(blob); // 构造href属性为Blob对象生成的链接
|
||||
a.download = "folder_download_link.txt"; // 文件名称,你可以根据你的需要构造
|
||||
a.click() // 模拟点击
|
||||
a.remove();
|
||||
}
|
||||
<!--ShowThumbnailsStart-->
|
||||
function thumb(){
|
||||
if($('.mdui-fab i').text() == "apps"){
|
||||
$('.mdui-fab i').text("format_list_bulleted");
|
||||
$('.nexmoe-item').removeClass('thumb');
|
||||
$('.nexmoe-item .mdui-icon').show();
|
||||
$('.nexmoe-item .mdui-list-item').css("background","");
|
||||
}else{
|
||||
$('.mdui-fab i').text("apps");
|
||||
$('.nexmoe-item').addClass('thumb');
|
||||
$('.mdui-col-xs-12 i.mdui-icon').each(function(){
|
||||
if($(this).text() == "image"){
|
||||
var thumbnails = $(this).parent().parent().attr('href');
|
||||
thumbnails = thumbnails.substr(0, thumbnails.length-8)+'?thumbnails&location';
|
||||
$(this).hide();
|
||||
$(this).parent().parent().parent().css("background","url("+thumbnails+") no-repeat center top");
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
<!--ShowThumbnailsEnd-->
|
||||
$(function(){
|
||||
$('.file a').each(function(){
|
||||
$(this).on('click', function () {
|
||||
var form = $('<form target=_blank method=post></form>').attr('action', $(this).attr('href')).get(0);
|
||||
$(document.body).append(form);
|
||||
form.submit();
|
||||
$(form).remove();
|
||||
return false;
|
||||
});
|
||||
});
|
||||
$('.icon-sort').on('click', function () {
|
||||
let sort_type = $(this).attr("data-sort"), sort_order = $(this).attr("data-order");
|
||||
let sort_order_to = (sort_order === "less") ? "more" : "less";
|
||||
$('li[data-sort]').sortElements(function (a, b) {
|
||||
let data_a = $(a).attr("data-sort-" + sort_type), data_b = $(b).attr("data-sort-" + sort_type);
|
||||
let rt = data_a.localeCompare(data_b, undefined, {numeric: true});
|
||||
return (sort_order === "more") ? 0-rt : rt;
|
||||
});
|
||||
$(this).attr("data-order", sort_order_to).text("expand_" + sort_order_to);
|
||||
});
|
||||
});
|
||||
document.querySelectorAll('.markdown').forEach(function (e) {
|
||||
e.innerHTML = marked(e.innerHTML);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,580 @@
|
||||
<!--IconValuesStart-->
|
||||
{
|
||||
"music":"audiotrack",
|
||||
"video":"ondemand_video",
|
||||
"img":"image",
|
||||
"default":"insert_drive_file"
|
||||
}
|
||||
<!--IconValuesEnd-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="<!--constStr@language-->">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no"/>
|
||||
<title><!--Title--></title>
|
||||
<link rel="stylesheet" href="//cdnjs.loli.net/ajax/libs/mdui/0.4.1/css/mdui.css">
|
||||
<script src="//cdnjs.loli.net/ajax/libs/mdui/0.4.1/js/mdui.min.js"></script>
|
||||
<script src="//cdn.bootcss.com/jquery/1.12.3/jquery.min.js"></script>
|
||||
<script src="//cdn.staticfile.org/layer/2.3/layer.js"></script>
|
||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/glightbox/dist/css/glightbox.min.css">
|
||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css">
|
||||
<link rel="icon" href="<!--base_path-->favicon.ico" type="image/x-icon">
|
||||
<link rel="shortcut icon" href="<!--base_path-->favicon.ico" type="image/x-icon">
|
||||
|
||||
<style>
|
||||
body{<!--BackgroundStart-->background-repeat:no-repeat;background-size:cover;background-attachment:fixed;background-image:url("<!--BackgroundUrl-->");<!--BackgroundEnd-->}
|
||||
.mdui-appbar .mdui-toolbar{
|
||||
height:64px;
|
||||
font-size: 15px;
|
||||
}
|
||||
.mdui-toolbar>*{
|
||||
padding: 0 6px;
|
||||
margin: 0 2px;
|
||||
opacity:0.5;
|
||||
}
|
||||
.mdui-toolbar>.mdui-typo-headline{
|
||||
padding: 0 1px 0 0;
|
||||
}
|
||||
.mdui-toolbar>i{
|
||||
padding: 0;
|
||||
}
|
||||
.mdui-toolbar>a:hover,a.mdui-typo-headline,a.active{
|
||||
opacity:1;
|
||||
}
|
||||
.mdui-container{
|
||||
max-width:950px;
|
||||
}
|
||||
.mdui-list-item{
|
||||
-webkit-transition:none;
|
||||
transition:none;
|
||||
}
|
||||
.mdui-list>.th{
|
||||
background-color:initial;
|
||||
}
|
||||
.mdui-list-item>a{
|
||||
width:100%;
|
||||
line-height: 48px
|
||||
}
|
||||
.mdui-list-item{
|
||||
margin: 2px 0px;
|
||||
padding:0;
|
||||
}
|
||||
.mdui-toolbar>a:last-child{
|
||||
opacity:1;
|
||||
}
|
||||
#instantclick-bar {
|
||||
background: white;
|
||||
}
|
||||
.mdui-video-fluid {
|
||||
height: -webkit-fill-available;
|
||||
}
|
||||
.dplayer-video-wrap .dplayer-video {
|
||||
height: -webkit-fill-available !important;
|
||||
}
|
||||
.gslide iframe, .gslide video {
|
||||
height: -webkit-fill-available;
|
||||
}
|
||||
@media screen and (max-width:950px) {
|
||||
.mdui-list-item .mdui-text-right{
|
||||
display: none;
|
||||
}
|
||||
.mdui-container{
|
||||
width:100% !important;
|
||||
margin:0px;
|
||||
}
|
||||
.mdui-toolbar>*{
|
||||
display: none;
|
||||
}
|
||||
.mdui-toolbar>a:last-child,.mdui-toolbar>a:nth-last-of-type(2),.mdui-toolbar>.mdui-typo-headline,.mdui-toolbar>i:first-child,.mdui-toolbar-spacer{
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
.spec-col{padding:.9em;display:flex;align-items:center;white-space:nowrap;flex:1 50%;min-width:225px}
|
||||
.spec-type{font-size:1.35em}
|
||||
.spec-value{font-size:1.25em}
|
||||
.spec-text{float:left}
|
||||
.device-section{padding-top:30px}
|
||||
.spec-device-img{height:auto;height:340px;padding-bottom:30px}
|
||||
#dl-header{margin:0}
|
||||
#dl-section{padding-top:10px}
|
||||
#dl-latest{position:relative;top:50%;transform:translateY(-50%)}
|
||||
</style>
|
||||
</head>
|
||||
<body class=" mdui-appbar-with-toolbar mdui-theme-primary-indigo mdui-theme-accent-pink">
|
||||
<header class="mdui-appbar mdui-appbar-fixed mdui-color-theme mdui-appbar-inset">
|
||||
<div class="mdui-toolbar mdui-color-theme">
|
||||
<span class="mdui-btn mdui-typo-headline mdui-btn-icon mdui-ripple mdui-ripple-white" mdui-drawer="{target: '#main-drawer', swipe: true}" mdui-tooltip="{content: '菜单'}"><i class="mdui-icon material-icons">menu</i></span>
|
||||
<a href="<!--base_path-->" class="mdui-typo-headline"><!--Sitename--></a>
|
||||
<!--PathArrayStart-->
|
||||
<i class="mdui-icon material-icons mdui-icon-dark" style="margin:0;">chevron_right</i>
|
||||
<a href="<!--PathArrayLink-->"><!--PathArrayName--></a>
|
||||
<!--PathArrayEnd-->
|
||||
<div class="mdui-toolbar-spacer"></div>
|
||||
<!--ShowThumbnailsStart-->
|
||||
<a href="javascript:thumb();" id="thumb" class="mdui-btn mdui-btn-icon" mdui-tooltip="{content: '切换显示'}"><i class="mdui-icon material-icons">format_list_bulleted</i></a>
|
||||
<!--ShowThumbnailsEnd-->
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="mdui-drawer mdui-drawer-close mdui-color-indigo-50" id="main-drawer">
|
||||
<div class="mdui-grid-tile">
|
||||
<!--<a><img src="//image.suning.cn/uimg/ZR/share_order/158562104413864293.jpg"/></a>-->
|
||||
<div class="mdui-grid-tile-actions mdui-grid-tile-actions-gradient">
|
||||
<div class="mdui-grid-tile-text">
|
||||
<div class="mdui-grid-tile-title"><!--Title--></div>
|
||||
<div class="mdui-grid-tile-subtitle">OneManager</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mdui-list" mdui-collapse="{accordion: true}">
|
||||
<a href="<!--base_path-->" class="mdui-list-item mdui-ripple">
|
||||
<i class="mdui-list-item-icon mdui-icon material-icons">home</i>
|
||||
<div class="mdui-list-item-content"><!--constStr@Home--></div>
|
||||
</a>
|
||||
<!--MultiDiskAreaStart-->
|
||||
<!--MultiDisksStart-->
|
||||
<a href="<!--MultiDisksUrl-->" class="mdui-list-item mdui-ripple" <!--MultiDisksNow-->>
|
||||
<i class="mdui-list-item-icon mdui-icon material-icons">cloud</i>
|
||||
<div class="mdui-list-item-content"><!--MultiDisksName--></div>
|
||||
</a>
|
||||
<!--MultiDisksEnd-->
|
||||
<!--MultiDiskAreaEnd-->
|
||||
<a href="https://github.com/qkqpttgf/OneManager-php" class="mdui-list-item mdui-ripple">
|
||||
<i class="mdui-list-item-icon mdui-icon material-icons">code</i>
|
||||
<div class="mdui-list-item-content">Github</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--ListStart-->
|
||||
|
||||
<!--EncryptedStart-->
|
||||
<div class="mdui-col-md-6 mdui-col-offset-md-3">
|
||||
<!--<center><h1 class="mdui-typo-display-2-opacity">这是一个受保护的文件夹,您需要提供访问密码才能查看。</h1></center>-->
|
||||
<form action="" method="post">
|
||||
<div class="mdui-textfield mdui-textfield-floating-label">
|
||||
<i class="mdui-icon material-icons">https</i>
|
||||
<label class="mdui-textfield-label"><!--constStr@InputPassword--></label>
|
||||
<input name="password1" class="mdui-textfield-input" type="password"/>
|
||||
</div>
|
||||
<br>
|
||||
<button type="submit" class="mdui-center mdui-btn mdui-btn-raised mdui-ripple mdui-color-theme">
|
||||
<i class="mdui-icon material-icons">fingerprint</i>
|
||||
<!--constStr@Submit-->
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
<!--EncryptedEnd-->
|
||||
<!--GuestUploadStart-->
|
||||
<!--
|
||||
<div class="nexmoe-item" style="padding: 100px!important;">
|
||||
<div class="mdui-typo-display-3-opacity" style="text-align:center;">OneImages</div>
|
||||
<form action="" method="post" enctype="multipart/form-data">
|
||||
<input class="mdui-center" type="file" style="margin: 50px 0;" name="file" />
|
||||
<div class="mdui-row-xs-3">
|
||||
<div class="mdui-col"></div>
|
||||
<div class="mdui-col">
|
||||
<button class="mdui-btn mdui-btn-block mdui-color-theme-accent mdui-ripple"><!--constStr@Upload--></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
-->
|
||||
<!--GuestUploadEnd-->
|
||||
|
||||
<!--IsFileStart-->
|
||||
<div class="mdui-container-fluid">
|
||||
<!--IsimgFileStart-->
|
||||
<div class="nexmoe-item">
|
||||
<img class="mdui-img-fluid mdui-center" src="<!--FileDownUrl-->"/>
|
||||
</div>
|
||||
<!--IsimgFileEnd-->
|
||||
<!--IstxtFileStart-->
|
||||
<div class="nexmoe-item">
|
||||
<pre id="editor" style="white-space: pre-wrap;"><!--TxtContent--></pre>
|
||||
</div>
|
||||
<!--IstxtFileEnd-->
|
||||
<!--IsmusicFileStart-->
|
||||
<div class="nexmoe-item">
|
||||
<audio class="mdui-center" src="<!--FileDownUrl-->" controls autoplay style="width: 100%;" ></audio>
|
||||
</div>
|
||||
<!--IsmusicFileEnd-->
|
||||
<!--IsofficeFileStart-->
|
||||
<div class="nexmoe-item">
|
||||
<iframe id="office-a" src="https://view.officeapps.live.com/op/view.aspx?src=<!--FileEncodeDownUrl-->" style="width: 100%;height: 800px" frameborder="0"></iframe>
|
||||
</div>
|
||||
<!--IsofficeFileEnd-->
|
||||
<!--IsvideoFileStart-->
|
||||
<link class="dplayer-css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dplayer/dist/DPlayer.min.css">
|
||||
<script src="https://cdn.jsdelivr.net/npm/dplayer/dist/DPlayer.min.js"></script>
|
||||
<div class="nexmoe-item">
|
||||
<div class="mdui-center" id="dplayer"></div>
|
||||
</div>
|
||||
<script>
|
||||
const dp = new DPlayer({
|
||||
container: document.getElementById('dplayer'),
|
||||
lang:'zh-cn',
|
||||
video: {
|
||||
url: '<!--FileDownUrl-->',
|
||||
type: 'auto'
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<!--IsvideoFileEnd-->
|
||||
<!--IsOtherFileStart-->
|
||||
<div class="nexmoe-item"><!--constStr@FileNotSupport--></div>
|
||||
<!--IsOtherFileEnd-->
|
||||
</div>
|
||||
<a href="<!--FileEncodeReplaceUrl-->" class="mdui-fab mdui-fab-fixed mdui-ripple mdui-color-theme-accent"><i class="mdui-icon material-icons">file_download</i></a>
|
||||
|
||||
<!--IsFileEnd-->
|
||||
|
||||
<!--IsFolderStart-->
|
||||
<div class="mdui-container">
|
||||
<div class="mdui-container-fluid"></div>
|
||||
<div class="mdui-container-fluid">
|
||||
<!--HeadomfStart-->
|
||||
<div class="mdui-typo mdui-shadow-3" style="padding: 20px;margin: 20px 0">
|
||||
<!--HeadomfContent-->
|
||||
</div>
|
||||
<!--HeadomfEnd-->
|
||||
<!--HeadmdStart-->
|
||||
<div class="mdui-typo mdui-shadow-3 markdown" style="padding: 20px;margin: 20px 0">
|
||||
<!--HeadmdContent-->
|
||||
</div>
|
||||
<!--HeadmdEnd-->
|
||||
<style>
|
||||
.thumb .th{
|
||||
display: none;
|
||||
}
|
||||
.thumb .mdui-text-right{
|
||||
display: none;
|
||||
}
|
||||
.thumb .mdui-list-item a ,.thumb .mdui-list-item {
|
||||
width:213px;
|
||||
height: 230px;
|
||||
float: left;
|
||||
margin: 10px 10px !important;
|
||||
}
|
||||
|
||||
.thumb .mdui-col-xs-12,.thumb .mdui-col-sm-7{
|
||||
width:100% !important;
|
||||
height:230px;
|
||||
}
|
||||
|
||||
.thumb .mdui-list-item .mdui-icon{
|
||||
font-size:100px;
|
||||
display: block;
|
||||
margin-top: 40px;
|
||||
color: #7ab5ef;
|
||||
}
|
||||
.thumb .mdui-list-item span{
|
||||
float: left;
|
||||
display: block;
|
||||
text-align: center;
|
||||
width:100%;
|
||||
position: absolute;
|
||||
top: 180px;
|
||||
}
|
||||
.thumb .forcedownload {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="nexmoe-item">
|
||||
<div class="mdui-row">
|
||||
<ul class="mdui-list">
|
||||
<li class="mdui-list-item th" style="padding-right:36px;">
|
||||
<div class="mdui-col-xs-12 mdui-col-sm-7"><!--constStr@File--> <i class="mdui-icon material-icons icon-sort" data-sort="name" data-order="downward">expand_more</i></div>
|
||||
<div class="mdui-col-sm-3 mdui-text-right"><!--constStr@EditTime--> <i class="mdui-icon material-icons icon-sort" data-sort="date" data-order="downward">expand_more</i></div>
|
||||
<div class="mdui-col-sm-2 mdui-text-right"><!--constStr@Size--> <i class="mdui-icon material-icons icon-sort" data-sort="size" data-order="downward">expand_more</i></div>
|
||||
</li>
|
||||
<!--BackArrowStart-->
|
||||
<li class="mdui-list-item mdui-ripple">
|
||||
<a href="<!--BackArrowUrl-->">
|
||||
<div class="mdui-col-xs-12 mdui-col-sm-7">
|
||||
<i class="mdui-icon material-icons">arrow_upward</i>
|
||||
..
|
||||
</div>
|
||||
<div class="mdui-col-sm-3 mdui-text-right"></div>
|
||||
<div class="mdui-col-sm-2 mdui-text-right"></div>
|
||||
</a>
|
||||
</li>
|
||||
<!--BackArrowEnd-->
|
||||
|
||||
<!--FolderListStart-->
|
||||
<li class="mdui-list-item mdui-ripple" data-sort data-sort-name="<!--FileEncodeReplaceName-->" data-sort-date="<!--lastModifiedDateTime-->" data-sort-size="<!--size-->" style="padding-right:36px;">
|
||||
<a href="<!--FileEncodeReplaceUrl-->/">
|
||||
<div class="mdui-col-xs-12 mdui-col-sm-7 mdui-text-truncate">
|
||||
<i class="mdui-icon material-icons">folder_open</i>
|
||||
<span><!--FileEncodeReplaceName--></span>
|
||||
</div>
|
||||
<div class="mdui-col-sm-3 mdui-text-right"><!--lastModifiedDateTime--></div>
|
||||
<div class="mdui-col-sm-2 mdui-text-right"><!--size--></div>
|
||||
</a>
|
||||
</li>
|
||||
<!--FolderListEnd-->
|
||||
<!--FileListStart-->
|
||||
<li class="mdui-list-item file mdui-ripple" data-sort data-sort-name="<!--FileEncodeReplaceName-->" data-sort-date="<!--lastModifiedDateTime-->" data-sort-size="<!--size-->" data-readypreview="<!--FileExt-->">
|
||||
<a class="<!--FileExtType-->" data-name="<!--FileEncodeReplaceName-->" href="<!--FileEncodeReplaceUrl-->?preview" target="_blank">
|
||||
<!--<?php if(isImage($item['name']) and $_COOKIE["image_mode"] == "1"):?>
|
||||
<img class="mdui-img-fluid" src="<?php echo get_absolute_path($root.$path).rawurlencode($item['name']); ?>">
|
||||
<?php else:?>-->
|
||||
<div class="mdui-col-xs-12 mdui-col-sm-7 mdui-text-truncate">
|
||||
<i class="mdui-icon material-icons"><!--IconValue--></i>
|
||||
<span><!--FileEncodeReplaceName--></span>
|
||||
</div>
|
||||
<div class="mdui-col-sm-3 mdui-text-right"><!--lastModifiedDateTime--></div>
|
||||
<div class="mdui-col-sm-2 mdui-text-right"><!--size--></div>
|
||||
</a>
|
||||
|
||||
<div class="forcedownload " >
|
||||
<a title="<!--constStr@Download-->" href="<!--FileEncodeReplaceUrl-->">
|
||||
<button class="mdui-btn mdui-ripple mdui-btn-icon"><i class="mdui-icon material-icons">file_download</i></button>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<!--FileListEnd-->
|
||||
|
||||
<!--MorePageStart-->
|
||||
<form action="" method="POST" id="nextpageform">
|
||||
<input type="hidden" id="pagenum" name="pagenum" value="">
|
||||
<li class="mdui-list-item th">
|
||||
<div class="mdui-col-sm-6 mdui-left mdui-text-left">
|
||||
<!--PrePageStart-->
|
||||
<a onclick="nextpage(<!--PrePageNum-->);" class="mdui-btn mdui-btn-raised"><!--constStr@PrePage--></a>
|
||||
<!--PrePageEnd-->
|
||||
<!--NextPageStart-->
|
||||
<a onclick="nextpage(<!--NextPageNum-->);" class="mdui-btn mdui-btn-raised"><!--constStr@NextPage--></a>
|
||||
<!--NextPageEnd-->
|
||||
</div>
|
||||
<div class="mdui-col-sm-6 mdui-right mdui-text-right">
|
||||
<div class="mdui-right mdui-text-right"><span class="mdui-chip-title">Page: <!--MorePageListStart--><!--MorePageListEnd--><!--MorePageListNowStart--><!--PageNum--><!--MorePageListNowEnd-->/<!--MaxPageNum--></span></div>
|
||||
</div>
|
||||
</li>
|
||||
</form>
|
||||
<!--MorePageEnd-->
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--ReadmemdStart-->
|
||||
<div class="mdui-typo mdui-shadow-3 markdown" style="padding: 20px;margin: 20px 0">
|
||||
<!--ReadmemdContent-->
|
||||
</div>
|
||||
<!--ReadmemdEnd-->
|
||||
<!--FootomfStart-->
|
||||
<div class="mdui-typo mdui-shadow-3" style="padding: 20px;margin: 20px 0">
|
||||
<!--FootomfContent-->
|
||||
</div>
|
||||
<!--FootomfEnd-->
|
||||
</div>
|
||||
</div>
|
||||
<!--IsFolderEnd-->
|
||||
<!--ListEnd-->
|
||||
<script src="//cdn.jsdelivr.net/gh/mcstudios/glightbox/dist/js/glightbox.min.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script>
|
||||
<!--MdRequireStart--><link rel="stylesheet" href="//unpkg.zhimg.com/github-markdown-css@3.0.1/github-markdown.css">
|
||||
<script type="text/javascript" src="//unpkg.zhimg.com/marked@0.6.2/marked.min.js"></script><!--MdRequireEnd-->
|
||||
<script>
|
||||
<!--MorePageStart-->
|
||||
function nextpage(num) {
|
||||
document.getElementById('pagenum').value=num;
|
||||
document.getElementById('nextpageform').submit();
|
||||
}
|
||||
<!--MorePageEnd-->
|
||||
var $$ = mdui.JQ;
|
||||
$$(function() {
|
||||
$$('.file .iframe').each(function() {
|
||||
$$(this).on('click', function() {
|
||||
url=$$(this).attr('href');
|
||||
//url=url.substr(0,url.length-8);
|
||||
layer.open({
|
||||
type: 2,
|
||||
title: '<a target="_blank" href="'+url+'">'+ $$(this).find('span').text()+'(点击新窗口打开)</a>', //jia,
|
||||
//shadeClose: true,
|
||||
move: false,
|
||||
shade: false,
|
||||
maxmin: true,
|
||||
area: ['100%', '100%'],
|
||||
content: url //le
|
||||
,min: function(layero){
|
||||
//zi;
|
||||
layero.css({top: '90%'})
|
||||
}
|
||||
});
|
||||
return false;
|
||||
});
|
||||
});
|
||||
$('.file .dl').each(function () {
|
||||
$(this).on('click', function () {
|
||||
var form = $('<form target=_blank method=post></form>').attr('action', $(this).attr('href')).get(0);
|
||||
$(document.body).append(form);
|
||||
form.submit();
|
||||
$(form).remove();
|
||||
return false;
|
||||
});
|
||||
});
|
||||
});
|
||||
window.TC=window.TC||{};
|
||||
jQuery(".file .audio").click(function(e){
|
||||
e.preventDefault();
|
||||
TC.preview_audio(this);
|
||||
});
|
||||
TC.preview_audio = function(aud){
|
||||
if(!TC.aplayer){
|
||||
TC.aplayerList=[];
|
||||
jQuery(".file .audio").each(function(){
|
||||
var ext = jQuery(this).data("readypreview");
|
||||
var n = jQuery(this).find("span").text();
|
||||
var l = n.replace("."+ext,".lrc");
|
||||
var la = jQuery('a[data-name="'+l+'"]');
|
||||
var lrc = undefined;
|
||||
if(la.length>0){
|
||||
lrc = la[0].href+"?s";
|
||||
}
|
||||
TC.aplayerList.push({
|
||||
name:n,
|
||||
url:this.href.substr(0,this.href.length-8),
|
||||
artist:" ",
|
||||
lrc:lrc
|
||||
});
|
||||
})
|
||||
jQuery('<div id="aplayer">').appendTo("body");
|
||||
TC.aplayer = new APlayer({
|
||||
container: document.getElementById('aplayer'),
|
||||
fixed: true,
|
||||
audio: TC.aplayerList,
|
||||
lrcType: 3
|
||||
});
|
||||
}
|
||||
var k=-1;
|
||||
for(var i in TC.aplayerList){
|
||||
if(TC.aplayerList[i].name==jQuery(aud).data("name")){
|
||||
k=i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(k>=0){
|
||||
TC.aplayer.list.switch(k);
|
||||
TC.aplayer.play();
|
||||
TC.aplayer.setMode("normal");
|
||||
}
|
||||
}
|
||||
|
||||
$ = mdui.JQ;
|
||||
$.fn.extend({
|
||||
sortElements: function (comparator, getSortable) {
|
||||
getSortable = getSortable || function () { return this; };
|
||||
|
||||
var placements = this.map(function () {
|
||||
var sortElement = getSortable.call(this),
|
||||
parentNode = sortElement.parentNode,
|
||||
nextSibling = parentNode.insertBefore(
|
||||
document.createTextNode(''),
|
||||
sortElement.nextSibling
|
||||
);
|
||||
|
||||
return function () {
|
||||
parentNode.insertBefore(this, nextSibling);
|
||||
parentNode.removeChild(nextSibling);
|
||||
};
|
||||
});
|
||||
|
||||
return [].sort.call(this, comparator).each(function (i) {
|
||||
placements[i].call(getSortable.call(this));
|
||||
});
|
||||
}
|
||||
});
|
||||
var lightbox = GLightbox();
|
||||
function downall() {
|
||||
let dl_link_list = Array.from(document.querySelectorAll("li a"))
|
||||
.map(x => x.href) // 所有list中的链接
|
||||
.filter(x => x.slice(-1) != "/"); // 筛选出非文件夹的文件下载链接
|
||||
|
||||
let blob = new Blob([dl_link_list.join("\r\n")], {
|
||||
type: 'text/plain'
|
||||
}); // 构造Blog对象
|
||||
let a = document.createElement('a'); // 伪造一个a对象
|
||||
a.href = window.URL.createObjectURL(blob); // 构造href属性为Blob对象生成的链接
|
||||
a.download = "folder_download_link.txt"; // 文件名称,你可以根据你的需要构造
|
||||
a.click() // 模拟点击
|
||||
a.remove();
|
||||
}
|
||||
<!--ShowThumbnailsStart-->
|
||||
function thumb(){
|
||||
if($('#thumb i').text() == "apps"){
|
||||
$('#thumb i').text("format_list_bulleted");
|
||||
$('.nexmoe-item').removeClass('thumb');
|
||||
$('.nexmoe-item .mdui-icon').show();
|
||||
$('.nexmoe-item .mdui-list-item').css("background","");
|
||||
}else{
|
||||
$('#thumb i').text("apps");
|
||||
$('.nexmoe-item').addClass('thumb');
|
||||
$('.mdui-col-xs-12 i.mdui-icon').each(function(){
|
||||
//if($(this).text() == "image" || $(this).text() == "ondemand_video"){
|
||||
if($(this).text() == "image"){
|
||||
var thumbnails = $(this).parent().parent().attr('href');
|
||||
//var thumb =(href.indexOf('?') == -1)?'?t=220':'&t=220';
|
||||
thumbnails = thumbnails.substr(0, thumbnails.length-8)+'?thumbnails&location';
|
||||
$(this).hide();
|
||||
//$(this).parent().parent().parent().css("background","url("+href+thumb+") no-repeat center top");
|
||||
$(this).parent().parent().parent().css("background","url("+thumbnails+") no-repeat center top");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
<!--ShowThumbnailsEnd-->
|
||||
$(function(){
|
||||
$('.icon-sort').on('click', function () {
|
||||
let sort_type = $(this).attr("data-sort"), sort_order = $(this).attr("data-order");
|
||||
let sort_order_to = (sort_order === "less") ? "more" : "less";
|
||||
|
||||
$('li[data-sort]').sortElements(function (a, b) {
|
||||
let data_a = $(a).attr("data-sort-" + sort_type), data_b = $(b).attr("data-sort-" + sort_type);
|
||||
let rt = data_a.localeCompare(data_b, undefined, {numeric: true});
|
||||
return (sort_order === "more") ? 0-rt : rt;
|
||||
});
|
||||
|
||||
$(this).attr("data-order", sort_order_to).text("expand_" + sort_order_to);
|
||||
});
|
||||
});
|
||||
|
||||
var ckname='image_mode';
|
||||
function getCookie(name)
|
||||
{
|
||||
var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
|
||||
if(arr=document.cookie.match(reg))
|
||||
return unescape(arr[2]);
|
||||
else
|
||||
return null;
|
||||
}
|
||||
function setCookie(key,value,day){
|
||||
var exp = new Date();
|
||||
exp.setTime(exp.getTime() - 1);
|
||||
var cval=getCookie(key);
|
||||
if(cval!=null)
|
||||
document.cookie= key + "="+cval+";expires="+exp.toGMTString();
|
||||
var date = new Date();
|
||||
var nowDate = date.getDate();
|
||||
date.setDate(nowDate + day);
|
||||
var cookie = key+"="+value+"; expires="+date;
|
||||
document.cookie = cookie;
|
||||
return cookie;
|
||||
}
|
||||
$('#image_view').on('click', function () {
|
||||
if($(this).prop('checked') == true){
|
||||
setCookie(ckname,1,1);
|
||||
window.location.href=window.location.href;
|
||||
}else{
|
||||
setCookie(ckname,0,1);
|
||||
window.location.href=window.location.href;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.markdown').forEach(function (e) {
|
||||
e.innerHTML = marked(e.innerHTML);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
+84
-82
File diff suppressed because one or more lines are too long
@@ -0,0 +1,606 @@
|
||||
<!--IconValuesStart-->
|
||||
{
|
||||
"music":"audiotrack",
|
||||
"video":"ondemand_video",
|
||||
"img":"image",
|
||||
"default":"insert_drive_file"
|
||||
}
|
||||
<!--IconValuesEnd-->
|
||||
<script>
|
||||
var primary_color = "orange";
|
||||
var accent_color = "deep-orange";
|
||||
var bug = 0;
|
||||
</script>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<!--constStr@language-->">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no"/>
|
||||
<title><!--Title--></title>
|
||||
<link rel="stylesheet" href="//cdnjs.loli.net/ajax/libs/mdui/0.4.1/css/mdui.css">
|
||||
<script src="//cdnjs.loli.net/ajax/libs/mdui/0.4.1/js/mdui.min.js"></script>
|
||||
<script src="https://cdn.my-file.cn/mduilw/MDUILW/jquery.min.js"></script>
|
||||
<!--<script src="https://cdn.my-file.cn/mduilw/MDUILW/jquery.pjax.js"></script>-->
|
||||
<script src="//cdn.staticfile.org/layer/2.3/layer.js"></script>
|
||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/glightbox/dist/css/glightbox.min.css">
|
||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css">
|
||||
<link rel="icon" href="<!--base_path-->favicon.ico" type="image/x-icon">
|
||||
<link rel="shortcut icon" href="<!--base_path-->favicon.ico" type="image/x-icon">
|
||||
|
||||
<style>
|
||||
body{
|
||||
<!--BackgroundStart-->
|
||||
background-repeat:no-repeat;
|
||||
background-size:cover;
|
||||
background-attachment:fixed;
|
||||
background-image:url("<!--BackgroundUrl-->");
|
||||
<!--BackgroundEnd-->
|
||||
}
|
||||
.mdui-appbar .mdui-toolbar{
|
||||
height:64px;
|
||||
font-size: 15px;
|
||||
}
|
||||
.mdui-toolbar>*{
|
||||
padding: 0 6px;
|
||||
margin: 0 2px;
|
||||
opacity:0.5;
|
||||
}
|
||||
.mdui-toolbar>.mdui-typo-headline{
|
||||
padding: 0 1px 0 0;
|
||||
}
|
||||
.mdui-toolbar>i{
|
||||
padding: 0;
|
||||
}
|
||||
.mdui-toolbar>a:hover,a.mdui-typo-headline,a.active{
|
||||
opacity:1;
|
||||
}
|
||||
.mdui-container{
|
||||
max-width:950px;
|
||||
}
|
||||
.mdui-list-item{
|
||||
-webkit-transition:none;
|
||||
transition:none;
|
||||
}
|
||||
.mdui-toolbar>a:last-child{
|
||||
opacity:1;
|
||||
}
|
||||
#instantclick-bar {
|
||||
background: white;
|
||||
}
|
||||
.mdui-video-fluid {
|
||||
height: -webkit-fill-available;
|
||||
}
|
||||
.dplayer-video-wrap .dplayer-video {
|
||||
height: -webkit-fill-available !important;
|
||||
}
|
||||
.gslide iframe, .gslide video {
|
||||
height: -webkit-fill-available;
|
||||
}
|
||||
@media screen and (max-width:950px) {
|
||||
.mdui-list-item .mdui-text-right{
|
||||
display: none;
|
||||
}
|
||||
.mdui-container{
|
||||
width:100% !important;
|
||||
margin:0px;
|
||||
}
|
||||
.mdui-toolbar>*{
|
||||
display: none;
|
||||
}
|
||||
.mdui-toolbar>a:last-child,.mdui-toolbar>a:nth-last-of-type(2),.mdui-toolbar>.mdui-typo-headline,.mdui-toolbar>i:first-child,.mdui-toolbar-spacer{
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
.spec-col{padding:.9em;display:flex;align-items:center;white-space:nowrap;flex:1 50%;min-width:225px}
|
||||
.spec-type{font-size:1.35em}
|
||||
.spec-value{font-size:1.25em}
|
||||
.spec-text{float:left}
|
||||
.device-section{padding-top:30px}
|
||||
.spec-device-img{height:auto;height:340px;padding-bottom:30px}
|
||||
#dl-header{margin:0}
|
||||
#dl-section{padding-top:10px}
|
||||
#dl-latest{position:relative;top:50%;transform:translateY(-50%)}
|
||||
</style>
|
||||
</head>
|
||||
<body id="main-body">
|
||||
<header class="mdui-appbar">
|
||||
<div class="mdui-toolbar mdui-color-theme mdui-appbar-inset">
|
||||
<span class="mdui-btn mdui-typo-headline mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#main-drawer', swipe: true}" mdui-tooltip="{content: '菜单'}"><i class="mdui-icon material-icons mdui-text-color-white-icon">menu</i></span>
|
||||
<a href="<!--base_path-->" class="mdui-typo-headline"><!--Sitename--></a>
|
||||
<!--PathArrayStart-->
|
||||
<i class="mdui-icon material-icons mdui-icon-dark" style="margin:0;">chevron_right</i>
|
||||
<a href="<!--PathArrayLink-->"><!--PathArrayName--></a>
|
||||
<!--PathArrayEnd-->
|
||||
<div class="mdui-toolbar-spacer"></div>
|
||||
<!--ShowThumbnailsStart-->
|
||||
<a href="javascript:thumb();" id="thumb" class="mdui-btn mdui-btn-icon mdui-ripple" mdui-tooltip="{content: '切换显示'}"><i class="mdui-icon material-icons">format_list_bulleted</i></a>
|
||||
<!--ShowThumbnailsEnd-->
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="mdui-drawer mdui-drawer-close" id="main-drawer">
|
||||
<div class="mdui-list" mdui-collapse="{accordion: true}">
|
||||
<li class="mdui-list-item mdui-ripple" href="javascript:void(0);" onclick="darkmod_use()">
|
||||
<a class="mdui-list-item-icon mdui-icon material-icons">brightness_4</a>
|
||||
<a class="mdui-list-item-content">深色模式</a>
|
||||
</li>
|
||||
<li class="mdui-list-item mdui-ripple">
|
||||
<a href="<!--base_path-->" class="mdui-list-item-icon mdui-icon material-icons">home</a>
|
||||
<a href="<!--base_path-->" class="mdui-list-item-content"><!--constStr@Home--></a>
|
||||
</li>
|
||||
<!--MultiDiskAreaStart-->
|
||||
<!--MultiDisksStart-->
|
||||
<a href="<!--MultiDisksUrl-->" class="mdui-list-item mdui-ripple" <!--MultiDisksNow-->>
|
||||
<i class="mdui-list-item-icon mdui-icon material-icons">cloud</i>
|
||||
<div class="mdui-list-item-content"><!--MultiDisksName--></div>
|
||||
</a>
|
||||
<!--MultiDisksEnd-->
|
||||
<!--MultiDiskAreaEnd-->
|
||||
<a href="https://github.com/qkqpttgf/OneManager-php" class="mdui-list-item mdui-ripple">
|
||||
<i class="mdui-list-item-icon mdui-icon material-icons">code</i>
|
||||
<div class="mdui-list-item-content">Github</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--ListStart-->
|
||||
|
||||
<!--EncryptedStart-->
|
||||
<div class="mdui-col-md-6 mdui-col-offset-md-3" id="pjax-main">
|
||||
<!--<center><h1 class="mdui-typo-display-2-opacity">这是一个受保护的文件夹,您需要提供访问密码才能查看。</h1></center>-->
|
||||
<form action="" method="post">
|
||||
<div class="mdui-textfield mdui-textfield-floating-label">
|
||||
<i class="mdui-icon material-icons">https</i>
|
||||
<label class="mdui-textfield-label"><!--constStr@InputPassword--></label>
|
||||
<input name="password1" class="mdui-textfield-input" type="password"/>
|
||||
</div>
|
||||
<br>
|
||||
<button type="submit" class="mdui-center mdui-btn mdui-btn-raised mdui-ripple mdui-color-theme">
|
||||
<i class="mdui-icon material-icons">fingerprint</i>
|
||||
<!--constStr@Submit-->
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
<!--EncryptedEnd-->
|
||||
<!--GuestUploadStart-->
|
||||
<!--
|
||||
<div class="nexmoe-item" style="padding: 100px!important;" id="pjax-main">
|
||||
<div class="mdui-typo-display-3-opacity" style="text-align:center;">OneImages</div>
|
||||
<form action="" method="post" enctype="multipart/form-data">
|
||||
<input class="mdui-center" type="file" style="margin: 50px 0;" name="file" />
|
||||
<div class="mdui-row-xs-3">
|
||||
<div class="mdui-col"></div>
|
||||
<div class="mdui-col">
|
||||
<button class="mdui-btn mdui-btn-block mdui-color-theme-accent mdui-ripple"><!--constStr@Upload--></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
-->
|
||||
<!--GuestUploadEnd-->
|
||||
|
||||
<!--IsFileStart-->
|
||||
<div class="mdui-container-fluid" id="pjax-main">
|
||||
<!--IsimgFileStart-->
|
||||
<div class="nexmoe-item">
|
||||
<img class="mdui-img-fluid mdui-center mdui-m-t-5 "src="<!--FileDownUrl-->"/>
|
||||
</div>
|
||||
<!--IsimgFileEnd-->
|
||||
<!--IstxtFileStart-->
|
||||
<div class="nexmoe-item">
|
||||
<pre id="editor" style="white-space: pre-wrap;"><!--TxtContent--></pre>
|
||||
</div>
|
||||
<!--IstxtFileEnd-->
|
||||
<!--IsmusicFileStart-->
|
||||
<div class="nexmoe-item">
|
||||
<audio class="mdui-center" src="<!--FileDownUrl-->" controls autoplay style="width: 100%;" ></audio>
|
||||
</div>
|
||||
<!--IsmusicFileEnd-->
|
||||
<!--IsofficeFileStart-->
|
||||
<div class="nexmoe-item">
|
||||
<iframe id="office-a" src="https://view.officeapps.live.com/op/view.aspx?src=<!--FileEncodeDownUrl-->" style="width: 100%;height: 800px" frameborder="0"></iframe>
|
||||
</div>
|
||||
<!--IsofficeFileEnd-->
|
||||
<!--IsvideoFileStart-->
|
||||
<link class="dplayer-css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dplayer/dist/DPlayer.min.css">
|
||||
<script src="https://cdn.jsdelivr.net/npm/dplayer/dist/DPlayer.min.js"></script>
|
||||
<div class="nexmoe-item mdui-center" style="width: 70%;height:90%;" >
|
||||
<div id="dplayer"></div>
|
||||
</div>
|
||||
<script>
|
||||
const dp = new DPlayer({
|
||||
container: document.getElementById('dplayer'),
|
||||
lang:'zh-cn',
|
||||
video: {
|
||||
url: '<!--FileDownUrl-->',
|
||||
type: 'auto'
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<!--IsvideoFileEnd-->
|
||||
<!--IsOtherFileStart-->
|
||||
<div class="nexmoe-item"><!--constStr@FileNotSupport--></div>
|
||||
<!--IsOtherFileEnd-->
|
||||
</div>
|
||||
<a href="<!--FileEncodeReplaceUrl-->" class="mdui-fab mdui-fab-fixed mdui-ripple mdui-color-theme-accent"><i class="mdui-icon material-icons">file_download</i></a>
|
||||
|
||||
<!--IsFileEnd-->
|
||||
|
||||
<!--IsFolderStart-->
|
||||
<div class="mdui-container">
|
||||
<div class="mdui-container-fluid"></div>
|
||||
<div class="mdui-container-fluid">
|
||||
<!--HeadomfStart-->
|
||||
<div class="mdui-typo mdui-shadow-3" style="padding: 20px;margin: 20px 0">
|
||||
<!--HeadomfContent-->
|
||||
</div>
|
||||
<!--HeadomfEnd-->
|
||||
<!--HeadmdStart-->
|
||||
<div class="mdui-typo mdui-shadow-3" style="padding: 20px;margin: 20px 0">
|
||||
<!--<div class="mdui-chip">
|
||||
<span class="mdui-chip-icon"><i class="mdui-icon material-icons">face</i></span>
|
||||
<span class="mdui-chip-title">HEAD.md</span>
|
||||
</div>-->
|
||||
<!--HeadmdContent-->
|
||||
</div>
|
||||
<!--HeadmdEnd-->
|
||||
<style>
|
||||
.thumb .th{
|
||||
display: none;
|
||||
}
|
||||
.thumb .mdui-text-right{
|
||||
display: none;
|
||||
}
|
||||
.thumb .mdui-list-item a ,.thumb .mdui-list-item {
|
||||
width:213px;
|
||||
height: 230px;
|
||||
float: left;
|
||||
margin: 10px 10px !important;
|
||||
}
|
||||
|
||||
.thumb .mdui-col-xs-12,.thumb .mdui-col-sm-7{
|
||||
width:100% !important;
|
||||
height:230px;
|
||||
}
|
||||
|
||||
.thumb .mdui-list-item .mdui-icon{
|
||||
font-size:100px;
|
||||
display: block;
|
||||
margin-top: 40px;
|
||||
color: #7ab5ef;
|
||||
}
|
||||
.thumb .mdui-list-item span{
|
||||
float: left;
|
||||
display: block;
|
||||
text-align: center;
|
||||
width:100%;
|
||||
position: absolute;
|
||||
top: 180px;
|
||||
}
|
||||
.thumb .forcedownload {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="nexmoe-item">
|
||||
<div class="mdui-row">
|
||||
<ul class="mdui-list">
|
||||
<li class="mdui-list-item th mdui-ripple" style="padding-right:36px;">
|
||||
<div class="mdui-col-xs-12 mdui-col-sm-7"><!--constStr@File--> <i class="mdui-icon material-icons icon-sort" data-sort="name" data-order="downward">expand_more</i></div>
|
||||
<div class="mdui-col-sm-3 mdui-text-right"><!--constStr@EditTime--> <i class="mdui-icon material-icons icon-sort" data-sort="date" data-order="downward">expand_more</i></div>
|
||||
<div class="mdui-col-sm-2 mdui-text-right"><!--constStr@Size--> <i class="mdui-icon material-icons icon-sort" data-sort="size" data-order="downward">expand_more</i></div>
|
||||
</li>
|
||||
<!--BackArrowStart-->
|
||||
<li class="mdui-list-item mdui-ripple">
|
||||
<div class="mdui-row mdui-col-sm-12">
|
||||
<a href="<!--BackArrowUrl-->">
|
||||
<div class="mdui-col-xs-7">
|
||||
<i class="mdui-icon material-icons">arrow_upward</i>
|
||||
..
|
||||
</div>
|
||||
<div class="mdui-col-xs-3 mdui-text-right"></div>
|
||||
<div class="mdui-col-xs-2 mdui-text-right"></div>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<!--BackArrowEnd-->
|
||||
|
||||
<!--FolderListStart-->
|
||||
<li class="mdui-list-item mdui-ripple" data-sort data-sort-name="<!--FileEncodeReplaceName-->" data-sort-date="<!--lastModifiedDateTime-->" data-sort-size="<!--size-->" style="padding-right:36px;">
|
||||
<div class="mdui-row mdui-col-sm-12">
|
||||
<a href="<!--FileEncodeReplaceUrl-->/">
|
||||
<div class="mdui-col-xs-7 mdui-text-truncate">
|
||||
<i class="mdui-icon material-icons">folder_open</i>
|
||||
<span><!--FileEncodeReplaceName--></span>
|
||||
</div>
|
||||
<div class="mdui-col-xs-3 mdui-text-right"><!--lastModifiedDateTime--></div>
|
||||
<div class="mdui-col-xs-2 mdui-text-right"><!--size--></div>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<!--FolderListEnd-->
|
||||
<!--FileListStart-->
|
||||
<li class="mdui-list-item file mdui-ripple" data-sort data-sort-name="<!--FileEncodeReplaceName-->" data-sort-date="<!--lastModifiedDateTime-->" data-sort-size="<!--size-->" data-readypreview="<!--FileExt-->">
|
||||
<a class="<!--FileExtType-->" data-name="<!--FileEncodeReplaceName-->" href="<!--FileEncodeReplaceUrl-->?preview" target="_blank">
|
||||
<!--<?php if(isImage($item['name']) and $_COOKIE["image_mode"] == "1"):?>
|
||||
<img class="mdui-img-fluid" src="<?php echo get_absolute_path($root.$path).rawurlencode($item['name']); ?>">
|
||||
<?php else:?>-->
|
||||
<div class="mdui-row mdui-col-sm-12">
|
||||
<div class="mdui-col-xs-12 mdui-col-sm-7 mdui-text-truncate">
|
||||
<i class="mdui-icon material-icons"><!--IconValue--></i>
|
||||
<span><!--FileEncodeReplaceName--></span>
|
||||
</div>
|
||||
<div class="mdui-col-sm-3 mdui-text-right"><!--lastModifiedDateTime--></div>
|
||||
<div class="mdui-col-sm-2 mdui-text-right"><!--size--></div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="forcedownload " >
|
||||
<a title="<!--constStr@Download-->" href="<!--FileEncodeReplaceUrl-->">
|
||||
<button class="mdui-btn mdui-ripple mdui-btn-icon"><i class="mdui-icon material-icons">file_download</i></button>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<!--FileListEnd-->
|
||||
|
||||
<!--MorePageStart-->
|
||||
<form action="" method="POST" id="nextpageform">
|
||||
<input type="hidden" id="pagenum" name="pagenum" value="">
|
||||
<li class="mdui-list-item th">
|
||||
<div class="mdui-col-sm-6 mdui-left mdui-text-left">
|
||||
<!--PrePageStart-->
|
||||
<a onclick="nextpage(<!--PrePageNum-->);" class="mdui-btn mdui-btn-raised"><!--constStr@PrePage--></a>
|
||||
<!--PrePageEnd-->
|
||||
<!--NextPageStart-->
|
||||
<a onclick="nextpage(<!--NextPageNum-->);" class="mdui-btn mdui-btn-raised"><!--constStr@NextPage--></a>
|
||||
<!--NextPageEnd-->
|
||||
</div>
|
||||
<div class="mdui-col-sm-6 mdui-right mdui-text-right">
|
||||
<div class="mdui-right mdui-text-right"><span class="mdui-chip-title">Page: <!--MorePageListStart--><!--MorePageListEnd--><!--MorePageListNowStart--><!--PageNum--><!--MorePageListNowEnd-->/<!--MaxPageNum--></span></div>
|
||||
</div>
|
||||
</li>
|
||||
</form>
|
||||
<!--MorePageEnd-->
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--ReadmemdStart-->
|
||||
<div class="mdui-typo mdui-shadow-3" style="padding: 20px;margin: 20px 0">
|
||||
<!--<div class="mdui-chip">
|
||||
<span class="mdui-chip-icon"><i class="mdui-icon material-icons">face</i></span>
|
||||
<span class="mdui-chip-title">README.md</span>
|
||||
</div>-->
|
||||
<!--ReadmemdContent-->
|
||||
</div>
|
||||
<!--ReadmemdEnd-->
|
||||
<!--FootomfStart-->
|
||||
<div class="mdui-typo mdui-shadow-3" style="padding: 20px;margin: 20px 0">
|
||||
<!--FootomfContent-->
|
||||
</div>
|
||||
<!--FootomfEnd-->
|
||||
</div>
|
||||
</div>
|
||||
<!--IsFolderEnd-->
|
||||
<!--ListEnd-->
|
||||
|
||||
<script src="//cdn.jsdelivr.net/gh/mcstudios/glightbox/dist/js/glightbox.min.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script>
|
||||
<script>
|
||||
<!--MorePageStart-->
|
||||
function nextpage(num) {
|
||||
document.getElementById('pagenum').value=num;
|
||||
document.getElementById('nextpageform').submit();
|
||||
}
|
||||
<!--MorePageEnd-->
|
||||
var $$ = mdui.JQ;
|
||||
$$(function() {
|
||||
$$('.file .iframe').each(function() {
|
||||
$$(this).on('click', function() {
|
||||
url=$$(this).attr('href');
|
||||
//url=url.substr(0,url.length-8);
|
||||
layer.open({
|
||||
type: 2,
|
||||
title: '<a target="_blank" href="'+url+'">'+ $$(this).find('span').text()+'(点击新窗口打开)</a>', //jia,
|
||||
//shadeClose: true,
|
||||
move: false,
|
||||
shade: false,
|
||||
maxmin: true,
|
||||
area: ['100%', '100%'],
|
||||
content: url //le
|
||||
,min: function(layero){
|
||||
//zi;
|
||||
layero.css({top: '90%'})
|
||||
}
|
||||
});
|
||||
return false;
|
||||
});
|
||||
});
|
||||
$('.file .dl').each(function () {
|
||||
$(this).on('click', function () {
|
||||
var form = $('<form target=_blank method=post></form>').attr('action', $(this).attr('href')).get(0);
|
||||
$(document.body).append(form);
|
||||
form.submit();
|
||||
$(form).remove();
|
||||
return false;
|
||||
});
|
||||
});
|
||||
});
|
||||
window.TC=window.TC||{};
|
||||
jQuery(".file .audio").click(function(e){
|
||||
e.preventDefault();
|
||||
TC.preview_audio(this);
|
||||
});
|
||||
TC.preview_audio = function(aud){
|
||||
if(!TC.aplayer){
|
||||
TC.aplayerList=[];
|
||||
jQuery(".file .audio").each(function(){
|
||||
var ext = jQuery(this).data("readypreview");
|
||||
var n = jQuery(this).find("span").text();
|
||||
var l = n.replace("."+ext,".lrc");
|
||||
var la = jQuery('a[data-name="'+l+'"]');
|
||||
var lrc = undefined;
|
||||
if(la.length>0){
|
||||
lrc = la[0].href+"?s";
|
||||
}
|
||||
TC.aplayerList.push({
|
||||
name:n,
|
||||
url:this.href.substr(0,this.href.length-8),
|
||||
artist:" ",
|
||||
lrc:lrc
|
||||
});
|
||||
})
|
||||
jQuery('<div id="aplayer">').appendTo("body");
|
||||
TC.aplayer = new APlayer({
|
||||
container: document.getElementById('aplayer'),
|
||||
fixed: true,
|
||||
audio: TC.aplayerList,
|
||||
lrcType: 3
|
||||
});
|
||||
}
|
||||
var k=-1;
|
||||
for(var i in TC.aplayerList){
|
||||
if(TC.aplayerList[i].name==jQuery(aud).data("name")){
|
||||
k=i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(k>=0){
|
||||
TC.aplayer.list.switch(k);
|
||||
TC.aplayer.play();
|
||||
TC.aplayer.setMode("normal");
|
||||
}
|
||||
}
|
||||
|
||||
$ = mdui.JQ;
|
||||
$.fn.extend({
|
||||
sortElements: function (comparator, getSortable) {
|
||||
getSortable = getSortable || function () { return this; };
|
||||
|
||||
var placements = this.map(function () {
|
||||
var sortElement = getSortable.call(this),
|
||||
parentNode = sortElement.parentNode,
|
||||
nextSibling = parentNode.insertBefore(
|
||||
document.createTextNode(''),
|
||||
sortElement.nextSibling
|
||||
);
|
||||
|
||||
return function () {
|
||||
parentNode.insertBefore(this, nextSibling);
|
||||
parentNode.removeChild(nextSibling);
|
||||
};
|
||||
});
|
||||
|
||||
return [].sort.call(this, comparator).each(function (i) {
|
||||
placements[i].call(getSortable.call(this));
|
||||
});
|
||||
}
|
||||
});
|
||||
var lightbox = GLightbox();
|
||||
function downall() {
|
||||
let dl_link_list = Array.from(document.querySelectorAll("li a"))
|
||||
.map(x => x.href) // 所有list中的链接
|
||||
.filter(x => x.slice(-1) != "/"); // 筛选出非文件夹的文件下载链接
|
||||
|
||||
let blob = new Blob([dl_link_list.join("\r\n")], {
|
||||
type: 'text/plain'
|
||||
}); // 构造Blog对象
|
||||
let a = document.createElement('a'); // 伪造一个a对象
|
||||
a.href = window.URL.createObjectURL(blob); // 构造href属性为Blob对象生成的链接
|
||||
a.download = "folder_download_link.txt"; // 文件名称,你可以根据你的需要构造
|
||||
a.click() // 模拟点击
|
||||
a.remove();
|
||||
}
|
||||
<!--ShowThumbnailsStart-->
|
||||
function thumb(){
|
||||
if($('#thumb i').text() == "apps"){
|
||||
$('#thumb i').text("format_list_bulleted");
|
||||
$('.nexmoe-item').removeClass('thumb');
|
||||
$('.nexmoe-item .mdui-icon').show();
|
||||
$('.nexmoe-item .mdui-list-item').css("background","");
|
||||
}else{
|
||||
$('#thumb i').text("apps");
|
||||
$('.nexmoe-item').addClass('thumb');
|
||||
$('.mdui-col-xs-12 i.mdui-icon').each(function(){
|
||||
//if($(this).text() == "image" || $(this).text() == "ondemand_video"){
|
||||
if($(this).text() == "image"){
|
||||
var thumbnails = $(this).parent().parent().attr('href');
|
||||
//var thumb =(href.indexOf('?') == -1)?'?t=220':'&t=220';
|
||||
thumbnails = thumbnails.substr(0, thumbnails.length-8)+'?thumbnails&location';
|
||||
$(this).hide();
|
||||
//$(this).parent().parent().parent().css("background","url("+href+thumb+") no-repeat center top");
|
||||
$(this).parent().parent().parent().css("background","url("+thumbnails+") no-repeat center top");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
<!--ShowThumbnailsEnd-->
|
||||
$(function(){
|
||||
|
||||
|
||||
$('.icon-sort').on('click', function () {
|
||||
let sort_type = $(this).attr("data-sort"), sort_order = $(this).attr("data-order");
|
||||
let sort_order_to = (sort_order === "less") ? "more" : "less";
|
||||
|
||||
$('li[data-sort]').sortElements(function (a, b) {
|
||||
let data_a = $(a).attr("data-sort-" + sort_type), data_b = $(b).attr("data-sort-" + sort_type);
|
||||
let rt = data_a.localeCompare(data_b, undefined, {numeric: true});
|
||||
return (sort_order === "more") ? 0-rt : rt;
|
||||
});
|
||||
|
||||
$(this).attr("data-order", sort_order_to).text("expand_" + sort_order_to);
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
var ckname='image_mode';
|
||||
function getCookie(name)
|
||||
{
|
||||
var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
|
||||
if(arr=document.cookie.match(reg))
|
||||
return unescape(arr[2]);
|
||||
else
|
||||
return null;
|
||||
}
|
||||
function setCookie(key,value,day){
|
||||
var exp = new Date();
|
||||
exp.setTime(exp.getTime() - 1);
|
||||
var cval=getCookie(key);
|
||||
if(cval!=null)
|
||||
document.cookie= key + "="+cval+";expires="+exp.toGMTString();
|
||||
var date = new Date();
|
||||
var nowDate = date.getDate();
|
||||
date.setDate(nowDate + day);
|
||||
var cookie = key+"="+value+"; expires="+date;
|
||||
document.cookie = cookie;
|
||||
return cookie;
|
||||
}
|
||||
$('#image_view').on('click', function () {
|
||||
if($(this).prop('checked') == true){
|
||||
setCookie(ckname,1,1);
|
||||
window.location.href=window.location.href;
|
||||
}else{
|
||||
setCookie(ckname,0,1);
|
||||
window.location.href=window.location.href;
|
||||
}
|
||||
});
|
||||
var mainbody = document.getElementById("main-body");
|
||||
var darkmod = 0;
|
||||
var pri_class = "mdui-theme-primary-"+primary_color;
|
||||
var acc_class = "mdui-theme-accent-"+accent_color;
|
||||
mainbody.classList.add(acc_class);
|
||||
mainbody.classList.add(pri_class);
|
||||
if (window.matchMedia('(prefers-color-scheme: dark)').matches)
|
||||
{mainbody.classList.add("mdui-theme-layout-dark");darkmod = 1}
|
||||
function darkmod_use(){
|
||||
if (darkmod == 1){
|
||||
mainbody.classList.remove("mdui-theme-layout-dark");darkmod = 0;
|
||||
} else {
|
||||
mainbody.classList.add("mdui-theme-layout-dark");darkmod = 1;
|
||||
}};
|
||||
//$(document).pjax('a', '#pjax-main' , {fragment:'#pjax-main', timeout:8000});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user