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