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