PageSourceSearch

https://caot.ca/common/bootstrap/plugins/tableResponsive.min.js?v=a3e64cd7e34e0d97a2c91221ba93fe759dbde252

js caot.ca collected 2026-09-24 09:16:03 UTC 5,645 bytes, 1 lines download raw bytes

1window.addEventListener("DOMContentLoaded",function(){const t={attributes:!0,childList:!0,subtree:!0,characterData:!1},e=new Set,l=[];let o,i;const n=new MutationObserver(function(l,o){let i=!1;const n=new Set;for(let t of l)if("childList"===t.type){for(let e of t.addedNodes)if(1===e.nodeType&&(e.classList.contains("card")||e.querySelector(".card, .table-responsive"))){i=!0;break}}else if("attributes"===t.type){let e=t.target;if(("TH"===e.nodeName||"TABLE"===e.nodeName||"style"===t.attributeName||"class"===t.attributeName)&&!e.closest("thead.cloned")){let t=e.closest(".table[table-init]");t&&n.add(t)}}n.size>0&&(o.disconnect(),n.forEach(s),e.forEach(function(l){l.isConnected?o.observe(l,t):e.delete(l)})),i&&r()});function r(){const o=document.querySelectorAll("div.table-responsive"),i=document.querySelector(".fixed-top, .topnav"),r=null!=i?i.clientHeight:0;o.forEach(function(o,i){let s=o.querySelector("table");if(!s)return;let a=o.closest("#data")||o;e.add(a),n.observe(a,t);let c=o.previousElementSibling;if(!c||!c.classList.contains("scroll")){c=document.createElement("div"),c.classList.add("scroll-"+i,"scroll","mb-1"),c.style.overflowX="auto",c.style.position="relative",c.style.width=getComputedStyle(o).width;let t=document.createElement("div");t.classList.add("scroll-content-"+i,"scroll-content"),t.style.width=getComputedStyle(s).width,t.style.height="15px",c.append(t),o.before(c),o.addEventListener("scroll",function(t){c.scroll(t.target.scrollLeft,0)}),c.addEventListener("scroll",function(t){o.scroll(t.target.scrollLeft,0)}),o.style.position="relative",/Android|iPhone/i.test(navigator.userAgent)||"function"!=typeof PerfectScrollbar||(new PerfectScrollbar(c,{minScrollbarLength:10,swipeEasing:!0,suppressScrollY:!0}),new PerfectScrollbar(o,{swipeEasing:!0,minScrollbarLength:10,suppressScrollY:!0}))}let d=s.querySelector("thead");if(null!=d){if(null==s.getAttribute("table-init")){d.querySelectorAll("th").forEach(function(t,e){let l=parseFloat(getComputedStyle(t).paddingBottom)+parseFloat(getComputedStyle(t).paddingTop);t.setAttribute("data-original-width",getComputedStyle(t).width),t.setAttribute("data-original-height",getComputedStyle(t).height),t.setAttribute("data-original-lineHeight",t.clientHeight-l),t.setAttribute("data-index",e)});let t=d.cloneNode(!0);t.setAttribute("cloned-"+i,"cloned"),t.classList.add("cloned"),t.querySelectorAll("th").forEach(function(t){t.style.width=t.getAttribute("data-original-width"),t.style.height=t.getAttribute("data-original-height"),t.style.lineHeight=t.getAttribute("data-original-lineHeight")+"px","none"!==t.style.display&&(t.style.display="inline-block")});let e=t.querySelector("tr");e&&e.childNodes.forEach(function(t){3===t.nodeType&&"\n"===t.nodeValue&&t.remove()}),t.style.display="none",s.setAttribute("table-init","true"),s.append(t),o.addEventListener("scroll",function(e){t.scroll(e.target.scrollLeft,0)}),l.push({table:s,clone:t,container:o,scrollWrap:c,offsetTop:r})}o.querySelectorAll('[data-bs-toggle="dropdown"]').forEach(function(t){null==t.getAttribute("data-tr-bound")&&(t.setAttribute("data-tr-bound","true"),t.addEventListener("show.bs.dropdown",t=>{o.style.setProperty("overflow-x","initial","important"),o.style.setProperty("overflow-y","initial","important")}),t.addEventListener("hide.bs.dropdown",t=>{o.style.setProperty("overflow-x","auto"),o.style.setProperty("overflow-y","auto")}))});let t=s.querySelectorAll('tr > td:first-child input[type="checkbox"]');s.querySelectorAll('thead tr > th:first-child input[type="checkbox"]').forEach(function(t){null==t.getAttribute("data-tr-bound")&&(t.setAttribute("data-tr-bound","true"),t.addEventListener("change",function(t){s.querySelectorAll("tbody > tr").forEach(function(e){t.target.checked?e.classList.add("selected"):e.classList.remove("selected")})}))}),t.forEach(function(t){null==t.getAttribute("data-tr-bound")&&(t.setAttribute("data-tr-bound","true"),t.addEventListener("change",function(t){t.target.checked?t.target.closest("tr").classList.add("selected"):t.target.closest("tr").classList.remove("selected")}))})}})}document.addEventListener("scroll",function(){clearTimeout(o),o=setTimeout(function(){for(let t=l.length-1;t>=0;t--){let e=l[t];if(!e.table.isConnected){l.splice(t,1);continue}let o=e.table,i=e.clone,n=e.container,r=e.scrollWrap,s=e.offsetTop;if(o.getBoundingClientRect().top-s<0&&o.getBoundingClientRect().bottom-s>0){r.style.position="fixed",r.style.zIndex=999,r.style.top=s+"px";let t=r.getBoundingClientRect().height/3;i.style.display="block",i.style.position="fixed",i.style.width=getComputedStyle(n).width,i.style.top=parseFloat(s)+parseFloat(t)+"px",i.style.overflowX="hidden",i.style.zIndex=998,i.scroll(n.scrollLeft,0)}else r.style.position="relative",r.style.top="0",i.removeAttribute("style"),i.style.display="none"}},5)}),window.addEventListener("resize",function(){clearTimeout(i),i=setTimeout(function(){for(let t=l.length-1;t>=0;t--){let e=l[t];e.table.isConnected?(e.clone.style.width=getComputedStyle(e.container).width,e.scrollWrap.style.width=getComputedStyle(e.container).width):l.splice(t,1)}},50)});const s=function(t){let e=t.closest(".table-responsive");
1if(!e)return;let l=e.previousElementSibling;if(l&&l.classList.contains("scroll")){let e=l.querySelector(".scroll-content");e&&(e.style.width=getComputedStyle(t).width)}let o=t.querySelector("thead.cloned"),i=t.querySelector("thead");if(o&&i&&o!==i){let t=o.querySelectorAll("th");i.querySelectorAll("th").forEach(function(e,l){t[l]&&("none"===getComputedStyle(e).display?t[l].style.display="none":(t[l].style.display="inline-block",t[l].style.width=getComputedStyle(e).width))})}};r()});

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.