From b6e020e025e76707ea36b6fddf422e21c4192a14 Mon Sep 17 00:00:00 2001 From: martbost Date: Sun, 15 Nov 2026 13:57:26 -0600 Subject: [PATCH] Chat widget would not close (Marty 2026-11-15): #scPanel's display:flex beat the hidden attribute and Stack POL has no global [hidden] rule; add #scPanel[hidden]{display:none}. chat.css?v=20261115e, chat.js?v=hide1 Co-Authored-By: Claude Opus 5.5 --- layout.js | 2 +- public/assets/chat.css | 2 ++ public/assets/chat.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/layout.js b/layout.js index ec05047..e4a39e7 100644 --- a/layout.js +++ b/layout.js @@ -177,6 +177,6 @@ function tail(extra) { + '

© ' + year + ' Stack POL by TrustClickz, 615 Green Valley Drive, Moody, AL 35004. Part of the Crypto Team Build Network. Stack POL shows payouts; it does not hold, invest or pay out anyone\'s money.

' // PolHunter mission (Marty 2026-11-10): silent unless a hunter arrives with their own #ph token; the code lands on one of the // program cards (3 slots, which one rotates per hunter per day) - + '' + (extra || '') + SPOT_JS + ''; + + '' + (extra || '') + SPOT_JS + ''; } module.exports = { SITE, esc, head, tail, OG, V, ZONES, spot, personalize, memberLinks, proCta, MEMBER_HOST }; diff --git a/public/assets/chat.css b/public/assets/chat.css index dc879b6..70b62e1 100644 --- a/public/assets/chat.css +++ b/public/assets/chat.css @@ -7,6 +7,8 @@ #scBtn{width:58px;height:58px;border-radius:18px;border:0;cursor:pointer;background:var(--sc-gold);color:#160b02;display:flex;align-items:center;justify-content:center;box-shadow:0 5px 0 var(--sc-gold-d),0 14px 30px rgba(255,194,75,.2)} #scBtn:focus-visible{outline:2px solid var(--sc-violet-hi);outline-offset:4px} #scChat.open #scBtn{background:var(--sc-violet);color:#fff;box-shadow:0 5px 0 #4b2394} +/* the panel sets display:flex, which would beat the hidden attribute: closing must win */ +#scPanel[hidden]{display:none} #scPanel{position:absolute;right:0;bottom:76px;width:370px;max-width:calc(100vw - 32px);height:540px;max-height:calc(100vh - 110px);display:flex;flex-direction:column; background:var(--sc-bg);color:var(--sc-ink);border:1px solid var(--sc-line);border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.55);overflow:hidden} .sc-head{display:flex;align-items:flex-start;gap:10px;padding:14px 16px;background:linear-gradient(135deg,rgba(130,71,229,.35),rgba(19,12,36,0) 75%),var(--sc-bg2);border-bottom:1px solid var(--sc-line)} diff --git a/public/assets/chat.js b/public/assets/chat.js index 26b7b0e..9f7386e 100644 --- a/public/assets/chat.js +++ b/public/assets/chat.js @@ -5,7 +5,7 @@ (function () { if (window.__siteChat || /^\/admin/.test(location.pathname)) return; window.__siteChat = 1; - var css = document.createElement('link'); css.rel = 'stylesheet'; css.href = '/assets/chat.css?v=20261115d'; document.head.appendChild(css); + var css = document.createElement('link'); css.rel = 'stylesheet'; css.href = '/assets/chat.css?v=20261115e'; document.head.appendChild(css); var NAME = 'this site', TOPICS = []; var root = document.createElement('div'); root.id = 'scChat'; root.innerHTML = '