/g,">"):"",n=e=>(e<10?"0":"")+e,a=e=>{const t=document.getElementById(e);return t?t.innerHTML:null},r=(e,n)=>e.replace(/{{{(\w+)}}}/g,((e,t)=>n[t]||"")).replace(/{{(\w+)}}/g,((e,a)=>t(n[a])||"")),o=e=>((e=new Date)=>`${e.getFullYear()}-${n(e.getMonth()+1)}-${n(e.getDate())}`)(new Date(Date.parse(e))),c=async()=>{const n=parseInt(document.location.hash.slice(1)||1,10),{meta:{current_page:c,total_pages:l},data:s}=await(async e=>window.fetch?(await fetch("https://omegalogic.corisu.net/api/guestbook"+(e?`?${e}`:""))).json():{meta:{},data:[]})(n);history.state||(history.replaceState({page:n},"",1===n?document.location.href.replace(/#.*$/,""):`#${n}`),window.scrollTo(0,0)),(e=>{const t=a("entry");if(!t)return;const n=document.getElementById("entries");n.innerHTML="",e.forEach((e=>{n.innerHTML+=r(t,e)}))})((n=>n.map((({color:n,datetime:a,name:r,message:c,reply:l,reply_datetime:s})=>({color:n?parseInt(n,10):0,date:o(a),message:e(t(c)),name:r,reply:e(t(l)),replyDate:s?o(s):""}))))(s)),(({current_page:e,total_pages:t})=>{const n=a("page");if(!n)return;const o=document.getElementById("pages");o.innerHTML="";for(let e=1;e<=t;e++)o.innerHTML+=r(n,{page:e})})({current_page:c,total_pages:l})};const l=e=>{const t=e.content.cloneNode(!0);if(!t)return null;const n=t.firstElementChild;return n?(e.parentNode.replaceChild(n,e),n):null},s=(...e)=>{document.documentElement.classList.add("js"),Promise.all([()=>document.querySelectorAll("template.inplace").forEach(l),...e].map((e=>new Promise((t=>e(t)))))).then()};((...e)=>{"interactive"===document.readyState?s(...e):document.addEventListener("DOMContentLoaded",(()=>s(...e)))})((async()=>{document.getElementById("entries")&&document.getElementById("pages")&&(await(async()=>{window.addEventListener("hashchange",c),c()})(),(()=>{if(document.querySelector('input[name="color"]:checked'))return;const e=document.querySelectorAll('input[name="color"]');e.length&&(e[Math.floor(Math.random()*e.length)].checked=!0)})())}))}()OMEGALOGICGuestbookNameColourBlackBlueGreenRedMagentaCyanYellowGreyMessageSubmitLoading . . .JavaScript is required to view entries. ¯\_(ツ)_/¯{{name}}{{{message}}}{{page}}
Loading . . .
JavaScript is required to view entries. ¯\_(ツ)_/¯
{{{message}}}