update
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
</div>
|
||||
<script src="js/socket.io.js"></script>
|
||||
<script src="js/siofu-client.js"></script>
|
||||
<script src="/js/script.js"></script>
|
||||
<script>
|
||||
var selectedFiles = [];
|
||||
|
||||
@@ -44,15 +45,6 @@
|
||||
updateFileList();
|
||||
}
|
||||
|
||||
function shortString(str, maxlen = 13) {
|
||||
if (str.length > maxlen) {
|
||||
shortstr = str.slice(0, (maxlen - 3) / 2) + "..." + str.slice(-(maxlen - 3) / 2);
|
||||
} else {
|
||||
shortstr = str;
|
||||
}
|
||||
return shortstr;
|
||||
}
|
||||
|
||||
function updateFileList(maxlen = 30) {
|
||||
filelist = document.getElementsByClassName("filelist")[0];
|
||||
filelist.innerHTML = "";
|
||||
|
||||
Reference in New Issue
Block a user