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