diff --git a/src/index.html b/src/index.html index 98b6013..b7c8fe0 100644 --- a/src/index.html +++ b/src/index.html @@ -1150,10 +1150,33 @@

Follow Us

Our Contributors - - - Profile Icon - + + + + Profile Icon + + + + + + diff --git a/src/profileedit.html b/src/profileedit.html new file mode 100644 index 0000000..acf0213 --- /dev/null +++ b/src/profileedit.html @@ -0,0 +1,342 @@ + + + + + + + + Edit Profile + + + + + + + + + +
+
+ + + Home + + +

Edit Profile

+
+ +
+

Select Avatar

+
+ + + + + +
+
+ +
+

Edit Details

+ + + + +
+ +
+ + + + + + \ No newline at end of file diff --git a/src/testp.html b/src/testp.html index 793df7b..b035d50 100644 --- a/src/testp.html +++ b/src/testp.html @@ -4,14 +4,10 @@ - - - Profile Page - @@ -19,88 +15,109 @@
- -

Your Profile

+

Your Profile

-
- Profile Image + + Profile Image
-

Skylar Reed

-

Email: skylar.reed@example.com

-

Phone: +987 654 3210

-

Joined: October 31, 2024

-

About Me: Hello!🙋🏻‍♂️ Feel free to reach out to me at skylar.reed@example.com 😎

-

Last active: 31/10/2024, 11:12 PM

- + +

Skylar Reed

+

Email: skylar.reed@example.com

+

Phone: +987 654 3210

+

About Me: Hello!🙋🏻‍♂️ Feel free to reach out to me at skylar.reed@example.com 😎

+

Joined: October 31, 2024

+

Last active:

-
+ -
-
+
-

Account Details

-

Address

-

789 Pine Lane, Austin, TX 73301

- +

Friends List

+

27 friends online

+

Change Password

-

*********63

- +

*****63

+

Privacy Settings

Visibility Status: Public

- + +

Recent Activity

Updated profile information

- + +
-
-

Notifications

Your profile has been updated successfully!

-
- -
-

Your ticket has been successfully booked! Confirmation number: 71381.

- +

Joshef Roy has sent you a friend request. Accept or decline?

-
+
+ + - diff --git a/src/testp.js b/src/testp.js index b87495b..20eb213 100644 --- a/src/testp.js +++ b/src/testp.js @@ -1,45 +1,34 @@ // Get current timestamp const getCurrentTimestamp = () => { - - return new Date().getTime(); - - }; - - - // Store last active timestamp in LocalStorage - const storeLastActive = () => { - - const lastActive = getCurrentTimestamp(); - localStorage.setItem('lastActive', lastActive); - - }; - - - // Get last active timestamp from LocalStorage - const getLastActive = () => { - - return localStorage.getItem('lastActive'); - - }; - - - // Update last active timestamp on page load and interaction - document.addEventListener('DOMContentLoaded', storeLastActive); - document.addEventListener('click', storeLastActive); - document.addEventListener('scroll', storeLastActive); - document.addEventListener('keydown', storeLastActive); - - // Example usage: - const displayLastActive = () => { - - const lastActive = getLastActive(); - const formattedTime = new Date(parseInt(lastActive)).toLocaleString(); - document.getElementById('last-active').innerHTML = `Last active: ${formattedTime}`; - - - }; - - - displayLastActive(); - + return new Date().getTime(); +}; + +// Store last active timestamp in LocalStorage +const storeLastActive = () => { + const lastActive = getCurrentTimestamp(); + localStorage.setItem('lastActive', lastActive); +}; + +// Get last active timestamp from LocalStorage +const getLastActive = () => { + return localStorage.getItem('lastActive'); +}; + +// Update last active timestamp on page load and interaction +document.addEventListener('DOMContentLoaded', storeLastActive); +document.addEventListener('click', storeLastActive); +document.addEventListener('scroll', storeLastActive); +document.addEventListener('keydown', storeLastActive); + +// Example usage: +const displayLastActive = () => { + const lastActive = getLastActive(); + if (lastActive) { + const formattedTime = new Date(parseInt(lastActive)).toLocaleString(); + document.getElementById('last-active').innerHTML = `Last active: ${formattedTime}`; // Corrected string interpolation + } +}; + +// Display the last active time on page load +document.addEventListener('DOMContentLoaded', displayLastActive);