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