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 <noreply@anthropic.com>
This commit is contained in:
@@ -177,6 +177,6 @@ function tail(extra) {
|
||||
+ '<p class="disc">© ' + 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.</p>'
|
||||
// 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)
|
||||
+ '</div>' + (extra || '') + SPOT_JS + '<script src="https://polhunter.com/embed.js" data-slots="3" data-selector=".card" async></script><script src="/assets/chat.js?v=1" defer></script></body></html>';
|
||||
+ '</div>' + (extra || '') + SPOT_JS + '<script src="https://polhunter.com/embed.js" data-slots="3" data-selector=".card" async></script><script src="/assets/chat.js?v=hide1" defer></script></body></html>';
|
||||
}
|
||||
module.exports = { SITE, esc, head, tail, OG, V, ZONES, spot, personalize, memberLinks, proCta, MEMBER_HOST };
|
||||
|
||||
@@ -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)}
|
||||
|
||||
@@ -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 = '<button id="scBtn" type="button" aria-label="Ask a question" aria-expanded="false">'
|
||||
|
||||
Reference in New Issue
Block a user