aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-12-20 17:41:40 -0800
committerAdam Soltys <[email protected]>2022-12-20 17:41:40 -0800
commit268d71cb57ff19382ff8834ca3406dda2f79343e (patch)
tree2cb012b7f74f0947f9b03304d62c4604ab79fdfd /src/lib/utils.js
parent70208aaa216a147f2f1d43a42a5fc8e1f4be767f (diff)
downloadcoinos-ui-268d71cb57ff19382ff8834ca3406dda2f79343e.tar.gz
coinos-ui-268d71cb57ff19382ff8834ca3406dda2f79343e.zip
new profile page
Diffstat (limited to 'src/lib/utils.js')
-rw-r--r--src/lib/utils.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js
index bd428160..02c318b6 100644
--- a/src/lib/utils.js
+++ b/src/lib/utils.js
@@ -8,6 +8,9 @@ export function scroll(section) {
}
const base = browser ? '' : PUBLIC_COINOS_URL;
+export const runner = (k) => {
+ return Math.round((parseInt(k[0], 16) - 1) / 15 * 7) + 1 + '.webp';
+};
export const g = (url, fetch, headers) =>
fetch(base + url, { headers })