diff --git a/static/js/base.js b/static/js/base.js index d47160f..6eae6ef 100644 --- a/static/js/base.js +++ b/static/js/base.js @@ -124,61 +124,4 @@ const $$ = selector => Array.from(document.querySelector(selector)); resetCardMultiselectState(); } }); - - // Expose tradeOfferCard globally if not already defined. - if (!window.tradeOfferCard) { - window.tradeOfferCard = function() { - return { - flipped: false, - show_back: false, - collapsed: false, - /* - * flipWithCollapse() now applies the height transition directly on the visible card face. - * It measures the current face (front or back) and the target face's height, - * then animates the current face's height change before toggling the flip. - * - * Make sure your template markup includes: - * - x-ref="front" on the front card face - * - x-ref="back" on the back card face - */ - flipWithCollapse() { - // Determine the currently visible face and the target face. - const currentFace = this.flipped ? this.$refs.back : this.$refs.front; - const targetFace = this.flipped ? this.$refs.front : this.$refs.back; - const container = this.$refs.container; - - // Temporarily force target face to display to measure its height. - const originalHeight = targetFace.style.height; - const originalDisplay = targetFace.style.display; - const originalPosition = targetFace.style.position; - const originalVisibility = targetFace.style.visibility; - targetFace.style.height = 'auto'; - targetFace.style.display = 'block'; - targetFace.style.position = 'absolute'; - targetFace.style.visibility = 'hidden'; - const targetHeight = targetFace.offsetHeight + 18; - targetFace.style.height = originalHeight; - targetFace.style.display = originalDisplay; - targetFace.style.position = originalPosition; - targetFace.style.visibility = originalVisibility; - - container.setAttribute('x-collapse.duration.500ms.min.' + targetHeight + 'px', ''); - this.collapsed = true; - setTimeout(() => { - this.show_back = this.flipped; - this.flipped = !this.flipped; - setTimeout(() => { - this.show_back = !this.show_back; - }, 250) - setTimeout(() => { - this.collapsed = false; - setTimeout(() => { - container.removeAttribute('x-collapse.duration.500ms.min.' + targetHeight + 'px'); - }, 550); - }, 550); - }, 550); - } - } - }; - } })(); \ No newline at end of file diff --git a/theme/templates/account/dashboard.html b/theme/templates/account/dashboard.html index 9dd5ad8..17938c5 100644 --- a/theme/templates/account/dashboard.html +++ b/theme/templates/account/dashboard.html @@ -107,9 +107,8 @@ {% if gravatar_profile %}
Gravatar (Globally Recognized Avatar) is a free service that links your email address to a profile picture and, optionally, a profile. Many websites, including this one, use Gravatar to display your avatar and profile automatically.
+Gravatar (Globally Recognized Avatar) is a free service that links your email address to a profile picture. Many websites, including this one, use Gravatar to display your preferred avatar automatically.
If you've set up a Gravatar, your profile picture will appear here whenever you use your email on supported sites. When someone hovers over or clicks on your avatar, your Gravatar profile will also appear if you have one. If you don't have a Gravatar yet, you'll see a default image instead.
+If you've set up a Gravatar, your profile picture will appear here whenever you use your email on supported sites. If you don't have a Gravatar yet, you'll see a default image instead.
Gravatar is completely optional, opt-in, and prioritizes your security and privacy. Your email is never shared and only a hashed version is sent to Gravatar, protecting your identity while ensuring that your email address is not exposed to bots or scrapers. Your personal data remains secure, and you maintain full control over your public profile.
+Gravatar is completely optional, opt-in, and prioritizes your security and privacy. Your email is never visible to anyone and only a hashed version is shown on the page and sent to Gravatar, protecting your identity while ensuring that your email address is not exposed to bots or scrapers.
Go to Gravatar.com to set up or change your avatar or profile. Your updates will appear here once saved!
+Go to Gravatar.com to set up or change your avatar. Your updates will appear here once saved!