\n `:`\n
\n No preview available\n
\n `}\n \n \n \n `,t.appendChild(o),i.appendChild(t)}))}async function b(){if(s||g>=8)return;s=!0,c&&(c.textContent="Loading...",c.disabled=!0);const t=r.length,o=Math.min(20,a.length-t),l=a.slice(t,t+o);if(console.log("COLOR PAGE - Client-side loading:",{alreadyLoaded:t,nextBatchSize:o,attemptingToLoad:l.length,totalAvailableForColor:a.length}),l.length>0){const t=new Map;r.forEach((e=>t.set(e.id,!0)));const o=l.filter((e=>!t.has(e.id)));o.length!==l.length&&console.warn(`Found ${l.length-o.length} duplicate sites that were filtered out`),o.length>0?(m(o),r.push(...o),g=r.length,console.log(`Added ${o.length} sites (now showing ${g}/8)`),p&&(p.textContent=g.toString()),c&&(g>=8?(c.style.display="none",console.log("Reached end of content for this color")):(c.textContent=`Load more (${g} / 8)`,c.disabled=!1)),n&&e.length{o>=e.length&&t.remove()}))}r=[...e],g=r.length,p&&(p.textContent=g.toString()),c&&(c.textContent=`Load more (${g} / 8)`,g<8?(c.style.display="block",c.disabled=!1):c.style.display="none"),n&&(n.style.display="none"),window.scrollTo({top:0,behavior:"smooth"}),d()}function f(){!function(){try{const t=localStorage.getItem(`cssline-color-state-${o}`);if(t){const{siteCount:o,scrollY:a}=JSON.parse(t);o>e.length&&(l=a,n&&(n.style.display="block"))}}catch(e){console.error("Error restoring state:",e)}}(),c&&c.addEventListener("click",b),n&&n.addEventListener("click",h),l>0&&(window.scrollTo(0,l),l=0),document.querySelectorAll('a[href^="/go/"]').forEach((e=>{e.addEventListener("click",d)}));try{const e=sessionStorage.getItem("previousSiteForTagOrColorPage");if(e){const t=JSON.parse(e),o=document.querySelector('nav a[href="/"][data-astro-prefetch]');if(o&&t.title&&t.slug){const e=o.parentElement;if(e){const a=document.getElementById("color-page-back-to-previous-site-link");a&&a.parentElement===e&&e.removeChild(a);const r=document.getElementById("color-page-back-link-separator");r&&r.parentElement===e&&e.removeChild(r);const s=document.createElement("a");s.id="color-page-back-to-previous-site-link",s.href=`/go/${t.slug}`,s.setAttribute("data-astro-prefetch",""),s.className="text-sm sm:text-base",s.setAttribute("aria-label",`Go back to ${t.title}`);const l=document.createElement("span");l.setAttribute("aria-hidden","true"),l.textContent=" 👉";const i=document.createElement("span");i.className="underline hover:decoration-wavy hover:text-cssline",i.textContent=`Back to ${t.title}`,s.appendChild(i),s.appendChild(l);const c=document.createElement("span");c.id="color-page-back-link-separator",c.className="mx-2 text-gray-400",c.textContent="|",c.setAttribute("aria-hidden","true"),o.nextSibling?(e.insertBefore(c,o.nextSibling),e.insertBefore(s,c.nextSibling)):(e.appendChild(c),e.appendChild(s)),e.style.display="flex",e.style.alignItems="center",e.style.gap="0.5rem",sessionStorage.removeItem("previousSiteForTagOrColorPage")}}}}catch(e){console.error("Error creating back link for color page:",e)}}p&&(p.textContent=g.toString()),c&&g>=8&&(c.style.display="none"),"complete"===document.readyState||"interactive"===document.readyState?f():document.addEventListener("DOMContentLoaded",f),document.addEventListener("astro:page-load",(()=>{const e=[...t];if(r=e.slice(0,20),g=r.length,i&&(i.innerHTML="",m(r)),p&&(p.textContent=g.toString()),c&&(g>=8?c.style.display="none":(c.style.display="block",c.textContent=`Load more (${g} / 8)`,c.disabled=!1),c.removeEventListener("click",b),c.addEventListener("click",b)),n){JSON.parse(localStorage.getItem(`cssline-color-state-${o}`)||"{}").siteCount>r.length?n.style.display="block":n.style.display="none",n.removeEventListener("click",h),n.addEventListener("click",h)}document.querySelectorAll('a[href^="/go/"]').forEach((e=>{e.removeEventListener("click",d),e.addEventListener("click",d)})),f()})),window.addEventListener("beforeunload",d)}()