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