diff --git a/themes/material/app.js b/themes/material/app.js
index e4be093..30b2fa1 100644
--- a/themes/material/app.js
+++ b/themes/material/app.js
@@ -72,7 +72,7 @@ function list(path){
修改时间
- expand_more
+ expand_more
大小
@@ -144,7 +144,7 @@ function list_files(path,files){
});
}
var ext = p.split('.').pop();
- if("|html|php|css|go|java|js|json|txt|sh|md|mp4|bmp|jpg|jpeg|png|gif|m4a|mp3|wav|ogg|webm|avi|".indexOf(`|${ext}|`) >= 0){
+ if("|html|php|css|go|java|js|json|txt|sh|md|mp4|bmp|jpg|jpeg|png|gif|webp|m4a|mp3|wav|ogg|webm|avi|rm|rmvb|mov|wmv|asf|ts|flv|".indexOf(`|${ext}|`) >= 0){
p += "?a=view";
c += " view";
}
@@ -186,11 +186,11 @@ function file(path){
return file_code(path);
}
- if("|mp4|webm|mpg|mpeg|mkv|".indexOf(`|${ext}|`) >= 0){
+ if("|mp4|webm|mpg|mpeg|".indexOf(`|${ext}|`) >= 0){
return file_video(path);
}
- if("|avi|rm|rmvb|mov|wmv|asf|ts|flv|".indexOf(`|${ext}|`) >= 0){
+ if("|avi|rm|rmvb|mov|wmv|asf|ts|flv|mkv|".indexOf(`|${ext}|`) >= 0){
return file_dpvideo(path);
}
@@ -198,7 +198,7 @@ function file(path){
return file_audio(path);
}
- if("|bmp|jpg|jpeg|png|gif|".indexOf(`|${ext}|`) >= 0){
+ if("|bmp|jpg|jpeg|png|gif|webp|".indexOf(`|${ext}|`) >= 0){
return file_image(path);
}
}
@@ -256,7 +256,7 @@ function file_code(path){
});
}
-// 文件展示 视频 |mp4|webm|avi|
+// 文件展示 视频 |mp4|webm|mpg|mpeg|
function file_video(path){
var url = window.location.origin + path;
var content = `
@@ -272,8 +272,8 @@ function file_video(path){
-
-
+
+
file_download
@@ -281,7 +281,7 @@ function file_video(path){
$('#content').html(content);
}
-// 文件展示 视频 |avi|rm|rmvb|mov|wmv|asf|ts|flv|
+// 文件展示 视频 |avi|rm|rmvb|mov|wmv|asf|ts|flv|mkv|
function file_dpvideo(path){
var url = window.location.origin + path;
var content = `
@@ -296,7 +296,7 @@ function file_dpvideo(path){
-
+
@@ -333,7 +333,7 @@ function file_audio(path){
@@ -360,7 +360,7 @@ function file_image(path){
-
+