You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-26 21:53:54 +01:00
js?
This commit is contained in:
@@ -241,7 +241,8 @@
|
||||
function formatTime(s){
|
||||
s = Number(s||0);
|
||||
const h = Math.floor(s/3600), m = Math.floor((s%3600)/60), sec = Math.floor(s%60);
|
||||
return [h,m,sec].map(x => String(x).padStart(2,'0')).join(":");
|
||||
if(h != 0) return [h,m,sec].map(x => String(x).padStart(2,'0')).join(":");
|
||||
else return [m,sec].map(x => String(x).padStart(2,'0')).join(":");
|
||||
}
|
||||
|
||||
function renderPlaylist(){
|
||||
|
||||
Reference in New Issue
Block a user