From 6dc43b87fa228303a5757b3142b9866e62dee141 Mon Sep 17 00:00:00 2001 From: Subhajit-2023-44 Date: Sun, 10 Nov 2024 00:37:22 +0530 Subject: [PATCH] done --- src/index.html | 31 +++- src/profileedit.html | 342 +++++++++++++++++++++++++++++++++++++++++++ src/testp.html | 87 ++++++----- src/testp.js | 73 ++++----- 4 files changed, 452 insertions(+), 81 deletions(-) create mode 100644 src/profileedit.html diff --git a/src/index.html b/src/index.html index f878683..12a9f74 100644 --- a/src/index.html +++ b/src/index.html @@ -1146,10 +1146,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);