diff options
Diffstat (limited to 'module/web/media/js/funktions.js')
-rw-r--r-- | module/web/media/js/funktions.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/module/web/media/js/funktions.js b/module/web/media/js/funktions.js deleted file mode 100644 index ed1471595..000000000 --- a/module/web/media/js/funktions.js +++ /dev/null @@ -1,16 +0,0 @@ -// JavaScript Document
-function SecToRightTime(sek)
-{
- vreturn = sek > 86400 ? sprintf('%d Tag%s ', sek / 86400, Math.floor(sek / 86400) != 1 ? 'e':'') : '';
- vreturn += sprintf('%02d:%02d:%02d', sek / 3600 % 24, sek / 60 % 60, sek % 60 );
- return vreturn;
-}
-
-function HumanFileSize(size)
-{
- var filesizename = new Array("KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB");
- var loga = Math.log(size)/Math.log(1024);
- var i = Math.floor(loga);
- var a = Math.pow(1024, i);
- return Math.round( size / a , 2) + " " + filesizename[i];
-}
\ No newline at end of file |