PageSourceSearch

https://networks365.net/assets/n365-home-sync.js

js networks365.net collected 2026-10-08 21:02:08 UTC 2,497 bytes, 7 lines download raw bytes

1/*!
2 * n365-home-sync.js — refreshes the "News & events" section on index.html
3 * from data/newsroom.json and data/events.json (the same sources used by
4 * newsroom.html and events.html). Static seed HTML renders instantly; this
5 * script overlays the current top 4 items when data is available.
6 */
7!function(){"use strict";if(window.fetch){var e={press:"Press release",product:"Product announcement",award:"Award",event:"Event"},n={webinar:"Webinar",workshop:"Workshop",training:"Training",roadshow:"Roadshow"},t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],a=document.querySelector(".ne-list");a&&fetch("data/newsroom.json",{cache:"no-store"}).then(function(e){return e.ok?e.json():null}).then(function(n){var r=n&&n.articles;if(r&&r.length){var i=r.slice(0,4).map(function(n){return'<a class="ne-item" href="'+s(n.url||"#")+'"><div class="ne-date">'+s((a=n.date,(r=/^(\d{4})-(\d{2})-(\d{2})/.exec(a||""))?+r[3]+" "+t[+r[2]-1]+" "+r[1]:""))+'</div><div><span class="ne-cat">'+s(e[n.type]||"News")+"</span><h3>"+s(n.title)+'</h3>
7<p class="ne-desc">'+s(n.brief||"")+"</p></div>"+(n.image?'<div class="ne-thumb"><img src="'+s(n.image)+'" alt="'+s(n.title||"Network365 news")+'" loading="lazy"></div>':"")+"</a>";var a,r}).join("");a.innerHTML=i}}).catch(function(){});var r=document.querySelector(".ne-evlist");r&&fetch("data/events.json",{cache:"no-store"}).then(function(e){return e.ok?e.json():null}).then(function(e){var t=e&&e.events;if(t&&t.length){var a=t.filter(function(e){return"upcoming"===e.when}).sort(function(e,n){return e.date_iso>n.date_iso?1:-1}).slice(0,4);if(a.length){var i=a.map(function(e){var t,a=e.loc||("Online"===e.fmt?"Online":"Bangkok");return'<a class="ne-event" href="'+s(e.url||"#")+'"><div class="ne-evdate"><span class="d">'+s(e.d)+'</span><span class="m">'+s((t=e.mo)?t.charAt(0)+t.slice(1,3).toLowerCase():"")+'</span></div><div class="ne-evbody"><div class="ne-evtop"><span class="ne-evtype">'+s(n[e.type]||e.type)+'</span><span class="ne-evloc"><svg width="12" height="12" viewBox="0 0 24 24" fill="none"><path d="M12 21s7-5.5 7-11a7 7 0 10-14 0c0 5.5 7 11 7 11z" stroke="currentColor" stroke-width="1.8"/><circle cx="12" cy="10" r="2.4" stroke="currentColor" stroke-width="1.8"/></svg> '+s(a)+"</span></div><h3>"+s(e.title)+"</h3></div></a>"}).join("");r.innerHTML=i}}}).catch(function(){})}function s(e){return String(null==e?"":e).replace(/[&<>"]/g,function(e){return{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"}[e]})}}();

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.