PageSourceSearch

https://cbaalbany.org/wp-content/plugins/sheetdb/assets/js/sheetdb-handlebars-1.2.6.js?ver=1788283288

js cbaalbany.org collected 2026-10-02 11:00:02 UTC 5,182 bytes, 1 lines download raw bytes

1document.addEventListener("DOMContentLoaded",sheetdb_upd);var sheetdb_template_cache=[],sheetdb_template_slots_cache=[],sheetdb_items=[],sheetdb_slots=[];function sheetdb_upd(){var t=document.querySelectorAll("[data-sheetdb-url]"),e=t.length,s=function(t,s){sheetdb_template_cache[t]||(sheetdb_template_cache[t]=s.innerHTML);var r=s.dataset.sheetdbSearch,a=s.dataset.sheetdbLimit,o=s.dataset.sheetdbOffset,n=s.dataset.sheetdbSortBy,d=s.dataset.sheetdbSortOrder,c=s.dataset.sheetdbSortMethod,i=s.dataset.sheetdbSortDateFormat,l=s.dataset.sheetdbGroupBy,h=s.dataset.sheetdbGroupByWithCount,u=s.dataset.sheetdbSearchMode,b=s.dataset.sheetdbSheet,m=s.dataset.sheetdbNotFoundMessage,p=!1;slot=s.dataset.sheetdbSave,slot&&!sheetdb_slots[slot]&&(sheetdb_slots[slot]=[]);var f=r;if(s.dataset.sheetdbQueryString){var _=new URLSearchParams(window.location.search),v=s.dataset.sheetdbQueryString.split(",");let t=0;v.forEach((e=>{let s=_.get(e),r=e+"="+s;null!=s&&t++,f?f+="&"+r:f=r})),0===t&&(p=!0)}var g=s.dataset.sheetdbUrl;f&&(g=g.endsWith("/")?g:g+"/",u&&"or"==u.toLowerCase()?g+="search_or":g+="search"),s.style.display="none",completed=0,sheetdbMakeSlotTemplateCache(),sheetdbFetchData({URL:g,search:f,limit:a,offset:o,sort_by:n,sort_order:d,sort_method:c,sort_date_format:i,group_by:l,group_by_with_count:h,sheet:b,slot:slot,skip_sheetdb_request:p}).then((function(r){data=r.response,slot=r.current_slot,sheetdb_items[t]=data,completed++;for(var a=[],o=0;o<data.length;o++)a.push(sheetdb_template_cache[t]);var n=[],d=a.map((function(t,e){return n.push(data[e]),sheetdbInterpolateString(t,data[e])}));if(slot)for(var c in n)sheetdb_slots[slot][c],n.hasOwnProperty(c)&&(sheetdb_slots[slot][c]=n[c]);if(s.innerHTML=d.join(""),s.style.display="",0===r.response.length&&m){var i=document.createElement("p");i.textContent=m,s.appendChild(i)}s.dispatchEvent(new CustomEvent("sheetdb-downloaded")),e==completed&&(sheetdbUpdateSlots(),window.dispatchEvent(new CustomEvent("sheetdb-downloaded")))})).catch((function(t){throw new Error(t)}))};for(let e,r=0;e=t[r];r++)if(null!==e.getAttribute("lazy-loading")){new IntersectionObserver((function(t,a){t.forEach((t=>{t.isIntersecting&&(a.unobserve(t.target),s(r,e))}))}),{root:null,rootMargin:"100px",threshold:.01}).observe(e)}else s(r,e)}function sheetdbFetchData(t){if(1==t.skip_sheetdb_request)return new Promise((function(t,e){return t({response:[]})}));var e=t.URL,s=t.search,r=t.limit,a=t.offset,o=t.sort_by,n=t.sort_order,d=t.sort_method,c=t.sort_date_format,i=t.group_by,l=t.group_by_with_count,h=t.sheet,u=slot,b=[h?"sheet=".concat(h):"",o?"sort_by=".concat(o):"",n?"sort_order=".concat(n):"",d?"sort_method=".concat(d):"",c?"sort_date_format=".concat(c):"",i?"group_by=".concat(i):"",l?"group_by_with_count=".concat(l):"",r?"limit=".concat(r):"",a?"offset=".concat(a):"",s?"".concat(s):""];b=b.filter((function(t){return""!=t}));var m="".concat(e);return(o||n||d||c||i||l||r||a||s||h)&&(m=e.includes("?")?"".concat(e,"&").concat(b.join("&")):"".concat(e,"?").concat(b.join("&"))),new Promise((function(t,e){fetch(m).then((function(t){return t.json()})).then((function(e){return t({response:e,current_slot:u})})).catch((function(t){return e(t)}))}))}function sheetdbEscapeHtml(t){return String(t).replace(/[&<>"'\/]/g,(function(t){return{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"}[t]||t}))}function sheetdbSanitizeUrl(t){var e=String(null==t?"":t),s=e.trim().toLowerCase();return 0===s.indexOf("javascript:")||0===s.indexOf("data:")||0===s.indexOf("vbscript:")?"#":e}function sheetdbSanitizeHtml(t){var e=String(null==t?"":t),s=document.createElement("template");s.innerHTML=e;var r=new Set(["script","iframe","object","embed","applet","link","meta","base","form","input","button","select","option","style","textarea","svg","math","template"]),a=new Set(["href","src","xlink:href","action","formaction","poster","background"]);function o(t){if(1!==t.nodeType)8!==t.nodeType||t.remove();else{var e=t.tagName?t.tagName.toLowerCase():"";if(r.has(e))return void t.remove();for(var s=t.attributes.length-1;s>=0;s--){var n=t.attributes[s],d=n.name.toLowerCase(),c=n.value;0!==d.indexOf("on")&&"srcdoc"!==d&&"style"!==d?a.has(d)&&t.setAttribute(n.name,sheetdbSanitizeUrl(c)):t.removeAttribute(n.name)}for(var i=t.firstChild;i;){var l=i.nextSibling;o(i),i=l}}}for(var n=s.content.firstChild;n;){var d=n.nextSibling;o(n),n=d}return s.innerHTML}function sheetdbInterpolateString(t,e){return t.replace(/{{\s*(?:(html)\s*:\s
1*)?([^{}]+)\s*}}/g,(function(t,s,r){var a=e[r&&r.trim?r.trim():r],o=null==a?"":String(a);return"html"===s?sheetdbSanitizeHtml(o):sheetdbEscapeHtml(o)}))}function sheetdbMakeSlotTemplateCache(){for(var t,e=document.querySelectorAll("[data-sheetdb-slot]"),s=0;t=e[s];s++)sheetdb_template_slots_cache[s]||(sheetdb_template_slots_cache[s]=t.innerHTML)}function sheetdbUpdateSlots(){for(var t,e=document.querySelectorAll("[data-sheetdb-slot]"),s=0;t=e[s];s++){for(var r=t.dataset.sheetdbSlot,a=[],o=0;o<sheetdb_slots[r].length;o++)a.push(sheetdb_template_slots_cache[s]);var n=a.map((function(t,e){return sheetdbInterpolateString(t,sheetdb_slots[r][e])}));t.innerHTML=n.join(""),t.style.display=""}}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.