summaryrefslogtreecommitdiff
path: root/assets/logo
diff options
context:
space:
mode:
Diffstat (limited to 'assets/logo')
-rw-r--r--assets/logo/banner.js32
-rw-r--r--assets/logo/custom.css4
2 files changed, 11 insertions, 25 deletions
diff --git a/assets/logo/banner.js b/assets/logo/banner.js
index 38a88aa..3f41912 100644
--- a/assets/logo/banner.js
+++ b/assets/logo/banner.js
@@ -6,11 +6,7 @@ function timeAgo(time) {
time = new Date(time).getTime();
}
- let periods = ["sec.", "mn.", "hr.", "d.", "wk.", "mo.", "y.", "ages"];
-
- if (bannerFrench) {
- periods = ["sec.", "min.", "h.", "j.", "sem.", "mois", "an.", "des années"];
- }
+ let periods = ["sec", "min", "hr", "d", "wk", "mo", "y", "ages"];
let lengths = ["60", "60", "24", "7", "4.35", "12", "100"];
@@ -20,22 +16,12 @@ function timeAgo(time) {
let tense;
let period;
- if (bannerFrench) {
- if (difference <= 10 && difference >= 0) {
- return "à l'instant";
- } else if (difference > 0) {
- tense = "il y a";
- } else {
- tense = "dans";
- }
+ if (difference <= 10 && difference >= 0) {
+ return "now";
+ } else if (difference > 0) {
+ tense = "ago";
} else {
- if (difference <= 10 && difference >= 0) {
- return "now";
- } else if (difference > 0) {
- tense = "ago";
- } else {
- tense = "later";
- }
+ tense = "later";
}
let j;
@@ -48,11 +34,7 @@ function timeAgo(time) {
period = periods[j];
- if (bannerFrench) {
- return `${tense} ${difference} ${period}`;
- } else {
- return `${difference} ${period} ${tense}`;
- }
+ return `${difference} ${period} ${tense}`;
}
async function refreshBanner(_, french) {
diff --git a/assets/logo/custom.css b/assets/logo/custom.css
index 4237274..adde95f 100644
--- a/assets/logo/custom.css
+++ b/assets/logo/custom.css
@@ -1,3 +1,7 @@
+img {
+ image-rendering: pixelated !important;
+}
+
#admin-page {
margin-left: 32px;
}