mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
detail page enhancements
This commit is contained in:
parent
7348edef90
commit
50654e4a8f
4 changed files with 43 additions and 18 deletions
|
@ -685,13 +685,15 @@ function ticks_to_human(str) {
|
|||
|
||||
var in_seconds = (str / 10000000);
|
||||
var hours = Math.floor(in_seconds/3600);
|
||||
var minutes = '0'+Math.floor((in_seconds-(hours*3600))/60);
|
||||
var minutes = Math.floor((in_seconds-(hours*3600))/60);
|
||||
var seconds = '0'+Math.round(in_seconds-(hours*3600)-(minutes*60));
|
||||
|
||||
var time = '';
|
||||
|
||||
if (hours > 0) time += hours+":";
|
||||
time += minutes.substr(-2) + ":" +seconds.substr(-2);
|
||||
if (minutes < 10 && hours == 0) time += minutes;
|
||||
else time += ('0'+minutes).substr(-2);
|
||||
time += ":" + seconds.substr(-2);
|
||||
|
||||
return time;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue