From 22c09e9d060eae401b0da066e524f3fc3064f25b Mon Sep 17 00:00:00 2001 From: synan798 Date: Tue, 10 Dec 2024 11:15:21 +0100 Subject: [PATCH] added levelbar --- layouts/HeaderFooterView.vue | 2 +- pages/index.vue | 67 +++++++++++++++++++++++------------- 2 files changed, 45 insertions(+), 24 deletions(-) diff --git a/layouts/HeaderFooterView.vue b/layouts/HeaderFooterView.vue index 9137d55..233ff0e 100644 --- a/layouts/HeaderFooterView.vue +++ b/layouts/HeaderFooterView.vue @@ -8,7 +8,7 @@
-
+
diff --git a/pages/index.vue b/pages/index.vue index 99296ea..b84dbc6 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -2,78 +2,99 @@ import HeaderFooterView from "~/layouts/HeaderFooterView.vue"; import { UserViewType } from "@/types/components/users.view" +const { user } = useUser() + useUser().fetchUser(); // loading user state just in case +function setLevelbar(newValue: number) { + const levelbar = document.getElementById('levelbar') + if (levelbar) { + levelbar.style.width = newValue + "%" + } +} +