diff options
author | Rafael Marçalo <raroma09@gmail.com> | 2022-10-23 02:31:39 +0100 |
---|---|---|
committer | Rafael Marçalo <raroma09@gmail.com> | 2022-10-23 02:31:39 +0100 |
commit | 2d85011451abb47bd0debc199e0faf5e0abd58f0 (patch) | |
tree | 77946a9337ba852579e86de7cd6071004716aca5 /server/js/template.js | |
parent | 7ff1d8299574dd142ea38091e28ad5c2941b2427 (diff) |
Fixing some minor details
Diffstat (limited to 'server/js/template.js')
-rw-r--r-- | server/js/template.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/server/js/template.js b/server/js/template.js index a11ec66..803d0c0 100644 --- a/server/js/template.js +++ b/server/js/template.js @@ -45,9 +45,9 @@ function getDate(date) let d = dateObj.getUTCDate(); let mm; let dd; - if (m < 10) mm = '0' + m + if (m < 10) mm = '0' + m; else mm = m; - if (d < 10) dd = '0' + d + if (d < 10) dd = '0' + d; else dd = d; return dateObj.getUTCFullYear() + '-' + mm + '-' + dd; } @@ -56,8 +56,7 @@ function getCategory(cat) { let category = ""; - if (cat > 100 && cat < 200) - { + if (cat > 100 && cat < 200) { category = "audio"; } else if (cat > 200 && cat < 300) { category = "video"; |