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