mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-06 05:30:05 +00:00
Websocket 实时拉取
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
/**
|
||||
* Converts a long string of bytes into a readable format e.g KB, MB, GB, TB, YB
|
||||
*
|
||||
* @param {Int} num The number of bytes.
|
||||
*/
|
||||
function readableBytes(bytes) {
|
||||
var i = Math.floor(Math.log(bytes) / Math.log(1024)),
|
||||
sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
|
||||
|
||||
return (bytes / Math.pow(1024, i)).toFixed(2) * 1 + ' ' + sizes[i];
|
||||
}
|
||||
|
||||
const confirmBtn = $('.mini.confirm.modal .positive.button')
|
||||
|
||||
function showConfirm(title, content, callFn, extData) {
|
||||
|
||||
Reference in New Issue
Block a user