1function getTimezoneOffset() { 2 return new Date().getTimezoneOffset(); 3} 4 5function getTimezone() { 6 return Intl.DateTimeFormat().resolvedOptions().timeZone; 7} 8 9function scrollToView(id) { 10 if (document.getElementById(id)) { 11 var top = document.getElementById(id).offsetTop - document.getElementById("nav").offsetHeight; 12 if (!document.getElementById("nav").classList.contains("fixed")) 13 top = top - 100; 14 window.scrollTo({ left: 0, top: top, behavior: 'smooth' }); 15 } 16} 17 18var currentTarget; 19function setupVideo(target, url) { 20 if (currentTarget) 21 jwplayer(currentTarget).remove(); 22 23 if (url) { 24 currentTarget = target; 25 jwplayer(currentTarget).setup({ 26 "playlist": url.concat("?sources=hls&default_source_fallback=true"), 27 "width": "100%", 28 "aspectratio": "16:9", 29 "autoPause": { 30 "viewability": true, 31 } 32 }); 33 } 34 35 //scrollToView(target); 36}
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.