animate navigation list and logo

- move search main into right-sidebar > search
-
This commit is contained in:
geoffrey45
2022-05-25 16:36:04 +03:00
parent 99533b2baa
commit a99ea78118
14 changed files with 82 additions and 32 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ function getElem(id: string, type: string) {
}
}
function formatSeconds(seconds: number) {
function formatSeconds(seconds: number, long?: boolean) {
// check if there are arguments
const date = new Date(seconds * 1000);
@@ -48,7 +48,7 @@ function formatSeconds(seconds: number) {
let _mm = mm < 10 ? `0${mm}` : mm;
let _ss = ss < 10 ? `0${ss}` : ss;
if (arguments[1]) {
if (long == true) {
if (hh === 1) {
_hh = hh + " Hour";
} else {