mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-14 10:00:53 +00:00
4.0.0-rc7
* Added: Initial support for Chat on Videos. Please note that moderation features are not currently available when FFZ features for Chat on Videos are enabled. There is a setting to disable custom FFZ rendering which makes moderation tools accessible. More work has also been done on getting custom viewer cards ready.
This commit is contained in:
parent
99ba52d4ad
commit
5a7a4f3ea9
25 changed files with 679 additions and 62 deletions
|
@ -21,4 +21,15 @@ export function duration_to_string(elapsed, separate_days, days_only, no_hours,
|
|||
(!no_hours || days || hours) ? `${days && hours < 10 ? '0' : ''}${hours}:` : ''
|
||||
}${minutes < 10 ? '0' : ''}${minutes}${
|
||||
no_seconds ? '' : `:${seconds < 10 ? '0' : ''}${seconds}`}`;
|
||||
}
|
||||
|
||||
|
||||
export function print_duration(seconds) {
|
||||
let minutes = Math.floor(seconds / 60),
|
||||
hours = Math.floor(minutes / 60);
|
||||
|
||||
minutes %= 60;
|
||||
seconds %= 60;
|
||||
|
||||
return `${hours > 0 ? `${hours}:${minutes < 10 ? '0' : ''}` : ''}${minutes}:${seconds < 10 ? '0' : ''}${seconds}`;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue