PageSourceSearch

https://networks365.net/assets/article365.js

js networks365.net collected 2026-10-08 21:02:09 UTC 2,169 bytes, 1 lines download raw bytes

1!function(){"use strict";var t,e=document,n=e.documentElement,r=e.body,a=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,i="n365_lang",o=[].slice.call(e.querySelectorAll(".lang-toggle button[data-set]"));function l(t){t="en"===t?"en":"th",n.setAttribute("data-lang",t),n.setAttribute("lang",t),o.forEach(function(e){var n=e.getAttribute("data-set")===t;e.classList.toggle("on",n),e.setAttribute("aria-pressed",n?"true":"false")});var a=r.getAttribute("en"===t?"data-title-en":"data-title-th");a&&(e.title=a)}try{t=localStorage.getItem(i)}catch(t){}l(t||"th"),o.forEach(function(t){t.addEventListener("click",function(){var e=t.getAttribute("data-set");l(e);try{localStorage.setItem(i,e)}catch(t){}})});var c=e.querySelector(".read-bar");if(c){var s=!1,u=function(){var t=n.scrollHeight-n.clientHeight,e=t>0?(n.scrollTop||r.scrollTop)/t:0;c.style.width=100*Math.max(0,Math.min(1,e))+"%",s=!1},d=function(){s||(s=!0,requestAnimationFrame(u))};window.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d,{passive:!0}),u()}var f=[].slice.call(e.querySelectorAll(".reveal"));if(f.length)if(a||!("IntersectionObserver"in window))f.forEach(function(t){t.classList.add("in")});else{var h=new IntersectionObserver(function(t){t.forEach(function(t){t.isIntersecting&&(t.target.classList.add("in"),h.unobserve(t.target))})},{threshold:.12,rootMargin:"0px 0px -8% 0px"});f.forEach(function(t){h.observe(t)})}var v=[].slice.call(e.querySelectorAll('.toc a[href^="#"]'));if(v.length){var g=v.map(function(t){var n=t.getAttribute("href").slice(1);return{link:t,el:e.getElementById(n)}}).filter(function(t){return t.el});g.forEach(function(t){t.link.addEventListener("click",function(e){e.preventDefault(),t.el.scrollIntoView({behavior:a?"auto":"smooth",block:"start"}),history.replaceState&&history.replaceState(null,"","#"+t.el.id)})});var m=!1,p=function(){var t=(n.scrollTop||r.scrollTop)+120,e=g[0];g.forEach(function(n){n.el.offsetTop<=t&&(e=n)}),v.forEach(function(t){t.classList.toggle("active",e&&t===e.link)}),m=!1};window.addEventListener("scroll",function(){m||(m=!0,requestAnimationFrame(p))},{passive:!0}),p()}}();

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.