diff --git a/src/components/LiveStatus.svelte b/src/components/LiveStatus.svelte
index 4204a8f..0e7e712 100644
--- a/src/components/LiveStatus.svelte
+++ b/src/components/LiveStatus.svelte
@@ -15,6 +15,7 @@
? `https://raw.githubusercontent.com`
: apiBaseUrl;
const graphsBaseUrl = `${userContentBaseUrl}/${owner}/${repo}/master/graphs`;
+ let form = null;
let selected = "week";
@@ -35,7 +36,15 @@
handleError(error);
}
loading = false;
+ if (form) form.classList.remove("changed");
});
+
+ const changed = () => {
+ if (form) {
+ form.classList.add("changed");
+ setTimeout(() => form.classList.remove("changed"), 500);
+ }
+ };
-
+
@@ -102,10 +149,16 @@
{site.name}
- {@html config.i18n.overallUptime.replace(/\$UPTIME/g, selected === 'day' ? site.uptimeDay : selected === 'week' ? site.uptimeWeek : selected === 'month' ? site.uptimeMonth : selected === 'year' ? site.uptimeYear : site.uptime)}
+ {@html config.i18n.overallUptime.split('$UPTIME')[0]}
+ {selected === 'day' ? site.uptimeDay : selected === 'week' ? site.uptimeWeek : selected === 'month' ? site.uptimeMonth : selected === 'year' ? site.uptimeYear : site.uptime}
+ {@html config.i18n.overallUptime.split('$UPTIME')[1]}
- {@html config.i18n.averageResponseTime.replace(/\$TIME/g, selected === 'day' ? site.timeDay : selected === 'week' ? site.timeWeek : selected === 'month' ? site.timeMonth : selected === 'year' ? site.timeYear : site.time)}
+ {@html config.i18n.averageResponseTime.split('$TIME')[0]}
+ {selected === 'day' ? site.timeDay : selected === 'week' ? site.timeWeek : selected === 'month' ? site.timeMonth : selected === 'year' ? site.timeYear : site.time}
+ {@html config.i18n.averageResponseTime.split('$TIME')[1]}
{/each}