diff --git a/frontend/vanilla/html/userprofile.html b/frontend/vanilla/html/userprofile.html index f3b68ab..f20607f 100644 --- a/frontend/vanilla/html/userprofile.html +++ b/frontend/vanilla/html/userprofile.html @@ -10,12 +10,12 @@
Profile Picture -

John Doe

-

Web Developer

+

Name Surname

+

Web Developer

About Me

-

I am a passionate web developer with experience in HTML, CSS, and JavaScript. I enjoy creating responsive and user-friendly websites.

+

I am a passionate web developer with experience in HTML, CSS, and JavaScript. I enjoy creating responsive and user-friendly websites.

Experience

@@ -37,9 +37,61 @@
+ + + + + + diff --git a/frontend/vanilla/js/utils.js b/frontend/vanilla/js/utils.js new file mode 100644 index 0000000..cd756ca --- /dev/null +++ b/frontend/vanilla/js/utils.js @@ -0,0 +1,11 @@ +function getCookie(name) { + const cookies = document.cookie.split(';'); + for (let i = 0; i < cookies.length; i++) { + const cookie = cookies[i].trim(); + const [cookieName, cookieValue] = cookie.split('='); + if (cookieName === name) { + return decodeURIComponent(cookieValue); + } + } + return null; +} \ No newline at end of file