PageSourceSearch

https://eu-cdn.rugbypass.com/js/load-js?bundle=app&ver=24.09.2026

js rugbypass.com collected 2026-10-01 10:34:06 UTC 68,129 bytes, 1 lines download raw bytes

vendor: 7,862 bytes, line 1
1!function(e){var t=function(u,D,f){"use strict";var k,H;if(function(){var e;var t={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125};H=u.lazySizesConfig||u.lazysizesConfig||{};for(e in t){if(!(e in H)){H[e]=t[e]}}}(),!D||!D.getElementsByClassName){return{init:function(){},cfg:H,noSupport:true}}var O=D.documentElement,i=u.HTMLPictureElement,P="addEventListener",$="getAttribute",q=u[P].bind(u),I=u.setTimeout,U=u.requestAnimationFrame||I,o=u.requestIdleCallback,j=/^picture$/i,r=["load","error","lazyincluded","_lazyloaded"],a={},G=Array.prototype.forEach,J=function(e,t){if(!a[t]){a[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")}return a[t].test(e[$]("class")||"")&&a[t]},K=function(e,t){if(!J(e,t)){e.setAttribute("class",(e[$]("class")||"").trim()+" "+t)}},Q=function(e,t){var a;if(a=J(e,t)){e.setAttribute("class",(e[$]("class")||"").replace(a," "))}},V=function(t,a,e){var i=e?P:"removeEventListener";if(e){V(t,a)}r.forEach(function(e){t[i](e,a)})},X=function(e,t,a,i,r){var n=D.createEvent("Event");if(!a){a={}}a.instance=k;n.initEvent(t,!i,!r);n.detail=a;e.dispatchEvent(n);return n},Y=function(e,t){var a;if(!i&&(a=u.picturefill||H.pf)){if(t&&t.src&&!e[$]("srcset")){e.setAttribute("srcset",t.src)}a({reevaluate:true,elements:[e]})}else if(t&&t.src){e.src=t.src}},Z=function(e,t){return(getComputedStyle(e,null)||{})[t]},s=function(e,t,a){a=a||e.offsetWidth;while(a<H.minSize&&t&&!e._lazysizesWidth){a=t.offsetWidth;t=t.parentNode}return a},ee=function(){var a,i;var t=[];var r=[];var n=t;var s=function(){var e=n;n=t.length?r:t;a=true;i=false;while(e.length){e.shift()()}a=false};var e=function(e,t){if(a&&!t){e.apply(this,arguments)}else{n.push(e);if(!i){i=true;(D.hidden?I:U)(s)}}};e._lsFlush=s;return e}(),te=function(a,e){return e?function(){ee(a)}:function(){var e=this;var t=arguments;ee(function(){a.apply(e,t)})}},ae=function(e){var a;var i=0;var r=H.throttleDelay;var n=H.ricTimeout;var t=function(){a=false;i=f.now();e()};var s=o&&n>49?function(){o(t,{timeout:n});if(n!==H.ricTimeout){n=H.ricTimeout}}:te(function(){I(t)},true);return function(e){var t;if(e=e===true){n=33}if(a){return}a=true;t=r-(f.now()-i);if(t<0){t=0}if(e||t<9){s()}else{I(s,t)}}},ie=function(e){var t,a;var i=99;var r=function(){t=null;e()};var n=function(){var e=f.now()-a;if(e<i){I(n,i-e)}else{(o||r)(r)}};return function(){a=f.now();if(!t){t=I(n,i)}}},e=function(){var v,m,c,h,e;var y,z,g,p,C,b,A;var n=/^img$/i;var d=/^iframe$/i;var E="onscroll"in u&&!/(gle|ing)bot/.test(navigator.userAgent);var _=0;var w=0;var M=0;var N=-1;var L=function(e){M--;if(!e||M<0||!e.target){M=0}};var x=function(e){if(A==null){A=Z(D.body,"visibility")=="hidden"}return A||!(Z(e.parentNode,"visibility")=="hidden"&&Z(e,"visibility")=="hidden")};var W=function(e,t){var a;var i=e;var r=x(e);g-=t;b+=t;p-=t;C+=t;while(r&&(i=i.offsetParent)&&i!=D.body&&i!=O){r=(Z(i,"opacity")||1)>0;if(r&&Z(i,"overflow")!="visible"){a=i.getBoundingClientRect();r=C>a.left&&p<a.right&&b>a.top-1&&g<a.bottom+1}}return r};var t=function(){var e,t,a,i,r,n,s,o,l,u,f,c;var d=k.elements;if((h=H.loadMode)&&M<8&&(e=d.length)){t=0;N++;for(;t<e;t++){if(!d[t]||d[t]._lazyRace){continue}if(!E||k.prematureUnveil&&k.prematureUnveil(d[t])){R(d[t]);continue}if(!(o=d[t][$]("data-expand"))||!(n=o*1)){n=w}if(!u){u=!H.expand||H.expand<1?O.clientHeight>500&&O.clientWidth>500?500:370:H.expand;k._defEx=u;f=u*H.expFactor;c=H.hFac;A=null;if(w<f&&M<1&&N>2&&h>2&&!D.hidden){w=f;N=0}else if(h>1&&N>1&&M<6){w=u}else{w=_}}if(l!==n){y=innerWidth+n*c;z=innerHeight+n;s=n*-1;l=n}a=d[t].getBoundingClientRect();if((b=a.bottom)>=s&&(g=a.top)<=z&&(C=a.right)>=s*c&&(p=a.left)<=y&&(b||C||p||g)&&(H.loadHidden||x(d[t]))&&(m&&M<3&&!o&&(h<3||N<4)||W(d[t],n))){R(d[t]);r=true;if(M>9){break}}else if(!r&&m&&!i&&M<4&&N<4&&h>2&&(v[0]||H.preloadAfterLoad)&&(v[0]||!o&&(b||C||p||g||d[t][$](H.sizesAttr)!="auto"))){i=v[0]||d[t]}}if(i&&!r){R(i)}}};var a=ae(t);var S=function(e){var t=e.target;if(t._lazyCache){delete t._lazyCache;return}L(e);K(t,H.loadedClass);Q(t,H.loadingClass);V(t,B);X(t,"lazyloaded")};var i=te(S);var B=function(e){i({target:e.target})};var T=function(e,t){var a=e.getAttribute("data-load-mode")||H.iframeLoadMode;if(a==0){e.contentWindow.location.replace(t)}else if(a==1){e.src=t}};var F=function(e){var t;var a=e[$](H.srcsetAttr);if(t=H.customMedia[e[$]("data-media")||e[$]("media")]){e.setAttribute("media",t)}if(a){e.setAttribute("srcset",a)}};var s=te(function(t,e,a,i,r){var n,s,o,l,u,f;if(!(u=X(t,"lazybeforeunveil",e)).defaultPrevented){if(i){if(a){K(t,H.autosizesClass)}else{t.setAttribute("sizes",i)}}s=t[$](H.srcsetAttr);n=t[$](H.srcAttr);if(r){o=t.parentNode;l=o&&j.test(o.nodeName||"")}f=e.firesLoad||"src"in t&&(s||n||l);u={target:t};K(t,H.loadingClass);if(f){clearTimeout(c);c=I(L,2500);V(t,B,true)}if(l){G.call(o.getElementsByTagName("source"),F)}if(s){t.setAttribute("srcset",s)}else if(n&&!l){if(d.test(t.nodeName)){T(t,n)}else{t.src=n}}if(r&&(s||l)){Y(t,{src:n})}}if(t._lazyRace){delete t._lazyRace}Q(t,H.lazyClass);ee(function(){var e=t.complete&&t.naturalWidth>1;if(!f||e){if(e){K(t,H.fastLoadedClass)}S(u);t._lazyCache=true;I(function(){if("_lazyCache"in t){delete t._lazyCache}},9)}if(t.loading=="lazy"){M--}},true)});var R=function(e){if(e._lazyRace){return}var t;var a=n.test(e.nodeName);var i=a&&(e[$](H.sizesAttr)||e[$]("sizes"));var r=i=="auto";if((r||!m)&&a&&(e[$]("src")||e.srcset)&&!e.complete&&!J(e,H.errorClass)&&J(e,H.lazyClass)){return}t=X(e,"lazyunveilread").detail;if(r){re.updateElem(e,true,e.offsetWidth)}e._lazyRace=true;M++;s(e,t,r,i,a)};var r=ie(function(){H.loadMode=3;a()});var o=function(){if(H.loadMode==3){H.loadMode=2}r()};var l=function(){if(m){return}if(f.now()-e<999){I(l,999);return}m=true;H.loadMode=3;a();q("scroll",o,true)};return{_:function(){e=f.now();k.elements=D.getElementsByClassName(H.lazyClass);v=D.getElementsByClassName(H.lazyClass+" "+H.preloadClass);q("scroll",a,true);q("resize",a,true);q("pageshow",function(e){if(e.persisted){var t=D.querySelectorAll("."+H.loadingClass);if(t.length&&t.forEach){U(function(){t.forEach(function(e){if(e.complete){R(e)}})})}}});if(u.MutationObserver){new MutationObserver(a).observe(O,{childList:true,subtree:true,attributes:true})}else{O[P]("DOMNodeInserted",a,true);O[P]("DOMAttrModified",a,true);setInterval(a,999)}q("hashchange",a,true);["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){D[P](e,a,true)});if(/d$|^c/.test(D.readyState)){l()}else{q("load",l);D[P]("DOMContentLoaded",a);I(l,2e4)}if(k.elements.length){t();ee._lsFlush()}else{a()}},checkElems:a,unveil:R,_aLSL:o}}(),re=function(){var a;var n=te(function(e,t,a,i){var r,n,s;e._lazysizesWidth=i;i+="px";e.setAttribute("sizes",i);if(j.test(t.nodeName||"")){r=t.getElementsByTagName("source");for(n=0,s=r.length;n<s;n++){r[n].setAttribute("sizes",i)}}if(!a.detail.dataAttr){Y(e,a.detail)}});var i=function(e,t,a){var i;var r=e.parentNode;if(r){a=s(e,r,a);i=X(e,"lazybeforesizes",{width:a,dataAttr:!!t});if(!i.defaultPrevented){a=i.detail.width;if(a&&a!==e._lazysizesWidth){n(e,r,i,a)}}}};var e=function(){var e;var t=a.length;if(t){e=0;for(;e<t;e++){i(a[e])}}};var t=ie(e);return{_:function(){a=D.getElementsByClassName(H.autosizesClass);q("resize",t)},checkElems:t,updateElem:i}}(),t=function(){if(!t.i&&D.getElementsByClassName){t.i=true;re._();e._()}};return I(function(){H.init&&t()}),k={cfg:H,autoSizer:re,loader:e,init:t,uP:Y,aC:K,rC:Q,hC:J,fire:X,gW:s,rAF:ee}}(e,e.document,Date);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:{});
1DOM = {url: "",mobile: false,tablet: false,xhttp: false,toggleClass: function (t,c){document.querySelector(t).classList.toggle(c);},removeClass: function (t,c){const ele = document.querySelector(t);if(ele !== null){document.querySelector(t).classList.remove(c);}},addClass: function (t,c){const ele = document.querySelector(t);if(ele !== null) {document.querySelector(t).classList.add(c);}},click: function (t,f){const ele = document.querySelector(t);if(ele !== null) {document.querySelector(t).addEventListener("click", f);}},change: function (t,f){const ele = document.querySelector(t);if(ele !== null){ele.addEventListener("change",f);}},text : function (t,v){if(v === undefined){return document.querySelector(t).innerText;}document.querySelector(t).innerText = v;},shuffle : function (t){return t;},ele : function (t){return document.querySelector(t);},visible : function (t){const ele = document.querySelector(t);if(ele){return ele.offsetWidth > 0 || ele.offsetHeight > 0;}return false;},ajax: function (url,data,method,f,m){data.isContent = 1;DOM.xhttp = new XMLHttpRequest();DOM.xhttp.onreadystatechange = function() {if (this.readyState == 4 && this.status == 200) {DOM.xhttp = false;if(f === "json"){m.call(this,JSON.parse(this.responseText))}else{m.call(this,this.responseText)}}};DOM.xhttp.open(method,DOM.url + url, true);const form = new FormData();for(let i in data){form.set(i,data[i]);}DOM.xhttp.send(form);},ajaxBinary: function (url,data,method,m){data.isContent = 1;DOM.xhttp = new XMLHttpRequest();DOM.xhttp.onreadystatechange = function() {if (this.readyState == 4 && this.status == 200) {DOM.xhttp = false;m.call(this,this.response)}};DOM.xhttp.open(method,DOM.url + url, true);const form = new FormData();for(let i in data){form.set(i,data[i]);}DOM.xhttp.send(form);},ap : function (t,v){document.querySelector(t).innerHTML = document.querySelector(t).innerHTML + v;},html : function (t,v){document.querySelector(t).innerHTML = v;},pageBack : function(){if(document.referrer.indexOf(DOM.url) > -1){window.history.back();}else{window.location.href = DOM.url}},dd : function (){const items = document.querySelectorAll(".drop-down");items.forEach(function(elem, index) {if(elem.classList.contains("disabled")) return;elem.setAttribute("data-id",'');elem.addEventListener('open', function (e) {elem.classList.add("open");elem.addEventListener("mousedown",function (e){e.stopPropagation();});window.addEventListener("mousedown",function (e){elem.dispatchEvent(new Event('close'));});}, false);elem.addEventListener('close', function (e) {elem.classList.remove("open");elem.removeEventListener("mousedown",DOM.rv);window.removeEventListener("mousedown",DOM.rv);}, false);const label = elem.querySelector(".label");label.addEventListener("click",function (e){if(elem.classList.contains("open")){elem.dispatchEvent(new Event('close'));}else{elem.dispatchEvent(new Event('open'));}});const li = elem.querySelector("ul").querySelectorAll("li");li.forEach(function(liElm) {liElm.addEventListener("click",function (e){elem.setAttribute("data-id",liElm.getAttribute("data-id"));label.innerHTML = liElm.innerHTML;elem.dispatchEvent(new Event('close'));elem.dispatchEvent(new Event('change'));});});});},attr : function (t,a){const ele = document.querySelector(t);return ele === null ? "" : document.querySelector(t).getAttribute(a);},show : function (t){const item = document.querySelector(t);if(item){item.style.display = "block";}},hide : function (t){const item = document.querySelector(t);if(item){item.style.display = "none";}},rv : function (){},scrollTo : function (top){window.scrollTo({left: 0, top: top, behavior: 'smooth'})},setInnerHTML : function (elm, html){elm.innerHTML = html;
1Array.from(elm.querySelectorAll("script")).forEach( oldScript => {const newScript = document.createElement("script");Array.from(oldScript.attributes).forEach( attr => newScript.setAttribute(attr.name, attr.value) );newScript.appendChild(document.createTextNode(oldScript.innerHTML));oldScript.parentNode.replaceChild(newScript, oldScript);});},browser : function (){return "";},getCookie: function (cname) {let name = cname + "=";let decodedCookie = decodeURIComponent(document.cookie);let ca = decodedCookie.split(';');for(let i = 0; i <ca.length; i++) {let c = ca[i];while (c.charAt(0) == ' ') {c = c.substring(1);}if (c.indexOf(name) == 0) {return c.substring(name.length, c.length);}}return "";},setCookie: function (cname, cvalue){document.cookie = cname + "=" + cvalue + ";path=/";},setCookieExp: function(cname, cvalue, exhours) {const d = new Date();d.setTime(d.getTime() + (exhours*100*3600));let expires = "expires="+ d.toUTCString();document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";}};BannerController = {init : function(){if(!Model.isMobile){if($("#snack_ldb").length){var observer = new MutationObserver(BannerController.onTopBanner);observer.observe(document.getElementById('snack_ldb'), {childList: true, subtree: true });}}},onTopBanner : function(mutationsList, observer){for(var mutation in mutationsList) { if (mutationsList[mutation].type === 'childList') {switch($("#snack_ldb").height()){case 250:$("#snack_ldb").attr("class","ad-container header-size size-250");$("#snack_ldb").siblings(".header-ad").attr("class","header-ad size-250");break;case "90":$("#snack_ldb").attr("class","ad-container header-size size-90");$("#snack_ldb").siblings(".header-ad").attr("class","header-ad size-90");break;}}}}};SearchView = {name:"SearchView",intervalId:0,index:0,navindex:0,searchInput:0,searchResults:0,placeHolders:0,isLoading:0,value:0,timeoutId:0,selectedItem:0,searchIconFrame:13,searchIconFrameWidth:22,searchFadeTimeout:0,searchResultTimeout:0,searchIconAnimationInterval:0,init: function(){SearchView.searchSprite = document.querySelector(".search-sprite");SearchView.searchInput = document.querySelector("#search-keywords");SearchView.searchResults = document.querySelector("#search-results-list");SearchView.placeHolders = ["Teams","Players","Tournaments","Games","Articles"];SearchView.searchInput.addEventListener("keyup",SearchView.search);SearchView.searchInput.addEventListener("input", function(e) {DOM.text(".search-line",SearchView.searchInput.value);});},search : function(e){switch(e.keyCode){case 13:if(SearchView.searchResults.querySelectorAll("li.selected a").length){window.location.href = SearchView.searchResults.querySelector("li.selected a").getAttribute("href");}return;case 40:SearchView.down();return;case 38:SearchView.up();return;}DOM.addClass("#search-preloader","transition-in");clearTimeout(SearchView.searchResultTimeout);DOM.removeClass("#search-results-list","transition-in");SearchView.value = SearchView.searchInput.value;if(SearchView.value.length > 1){clearTimeout(SearchView.timeoutId);SearchView.loadSearch();}else{DOM.removeClass("#search-preloader","transition-in");SearchView.isLoading = 0;SearchView.searchResults.innerHTML = "";}},loadSearch : function(){SearchView.isLoading = 1;SearchView.searchResults.innerHTML = "";SearchView.navindex = 0;DOM.ajax("search",{keyword:SearchView.value},"POST",'json',function(data){DOM.removeClass("#search-preloader","transition-in");clearTimeout(SearchView.searchResultTimeout);SearchView.searchResultTimeout = setTimeout(function () {DOM.addClass("#search-results-list","transition-in");}, 200);let sel = "selected";let n = 0;let html = "";for(let i in data.results){html += SearchView.listItem(data.results[i],sel,n);sel = '';n++;}if(n === 0 && data.possibles.length){for(let i in data.possibles){html += SearchView.possibleItem(data.possibles[i],sel,n);sel = '';n++;}}html += SearchView.newsItem(SearchView.value,sel,n);SearchView.searchResults.innerHTML = html;SearchView.setSelectedItem();document.querySelectorAll(".search-result-item").forEach(function (item, index){item.addEventListener("mouseover",function (){ if(!item.classList.contains("selected")){ item.classList.add("selected"); }});item.addEventListener("mouseout",function (){if(item.classList.contains("selected")){item.classList.remove("selected");}});});SearchView.isLoading = 0;},);},listItem : function(result,sel,n){return '<li class="search-result-item '+sel+' '+result.type+'" data-index="'+n+'"><a href="'+result.link+'"><span class="name">
1'+result.name+'</span><span class="meaning">'+result.meaning+'</span></a></li>';},possibleItem : function(result,sel,n){return '<li class="search-result-item '+sel+' '+result.value.type+'" data-index="'+n+'"><a href="'+result.value.link+'"><span class="name">'+result.label+'</span></a></li>';},newsItem : function(value,sel,n){return '<li class="search-result-item news '+sel+'" data-index="'+n+'"><a href="'+DOM.url + 'search/?s='+ value +'"><span class="name news">Search Rugbypass for ' + SearchView.value.substr(0,12) +'</span><span class="meaning">News</span></a></li>';},openSearch : function(){SearchView.init();SearchView.dealWithPreloader();clearTimeout(SearchView.searchFadeTimeout);DOM.removeClass('body','show-menu');DOM.addClass('body','search');DOM.show(".search-container");SearchView.toggleSearchIcon(true);clearInterval(SearchView.intervalId);SearchView.index = 0;SearchView.searchInput.setAttribute("placeholder","");setTimeout(function(){SearchView.setPlaceHolder();SearchView.intervalId = setInterval(SearchView.setPlaceHolder,4000);},500);SearchView.searchInput.focus();},dealWithPreloader : function () {DOM.removeClass("#search-preloader","transition-in");clearTimeout(SearchView.searchResultTimeout);DOM.addClass("#search-results-list","transition-in");},closeSearch : function(){SearchView.toggleSearchIcon(false);clearTimeout(SearchView.searchFadeTimeout);SearchView.searchFadeTimeout = setTimeout(function () {DOM.removeClass('body','search');DOM.removeClass(".close-search-btn","allow-hover");DOM.hide(".search-container");}, 400);SearchView.index = 0;clearInterval(SearchView.intervalId);SearchView.insertPlaceHolder();},toggleSearchIcon : function (toClose) {SearchView.dealWithPreloader();if(toClose){DOM.addClass(".search-sprite","close");} else {setTimeout(function (){DOM.removeClass(".search-sprite","close");}, 500);}},setPlaceHolder : function(){SearchView.index++;if(SearchView.index === SearchView.placeHolders.length){SearchView.index = 0;}SearchView.insertPlaceHolder();},insertPlaceHolder : function(){try{const word = SearchView.placeHolders[SearchView.index];let i = 0;let finalWord = "";const interval = setInterval(function(){finalWord += word[i];SearchView.searchInput.setAttribute("placeholder",finalWord);i++;if(i === word.length){clearInterval(interval);}},100);}catch (e){}},down : function() {const l = document.querySelectorAll(".search-result-item").length;if(!l) return;if(SearchView.navindex === l-1) return;SearchView.navindex++;DOM.removeClass(".search-result-item.selected","selected");SearchView.setSelectedItem();SearchView.selectedItem.classList.add("selected");},up : function() {const l = document.querySelectorAll(".search-result-item").length;if(!l) return;if(SearchView.navindex === 0) return;SearchView.navindex--;DOM.removeClass(".search-result-item.selected","selected");SearchView.setSelectedItem();SearchView.selectedItem.classList.add("selected");},setSelectedItem : function(){SearchView.selectedItem = document.querySelector(".search-result-item[data-index='"+SearchView.navindex+"']");},news : function(){},update : function(note){}};SiteSearch = {app:0,init : function(url,tz){const {createApp} = Vue;SiteSearch.app = createApp({data() {return {xhttp:false,url:url,tz:tz,cachedData:false,dataCached:false,searchOpen:false,keyword:"",tabIndex:0,searchResults:0,rptvResults:0,newsResults:0,matchesResults:0,noMatchResults:false,noRPTVResults:false,noNewsResults:false,sections:["All","Teams","Tournaments","Players","Matches","RPTV","News"]}},methods: {open(){this.searchOpen = true;if(!this.dataCached){this.ajax("cache");}},close(){this.searchOpen = false;setTimeout(()=>{DOM.removeClass('body','search');},800);},selectTab(i){if(i !== this.tabIndex){this.tabIndex = i;if(this.tabIndex === 4 && this.matchesResults === 0){this.ajax("matches");}if(this.tabIndex === 5 && this.rptvResults === 0){this.ajax("rptv");}if(this.tabIndex === 6 && this.newsResults === 0){this.ajax("news");}}},searchCache(){if(this.keyword.length > 2){this.noNewsResults = false;this.noMatchResults = false;this.noRPTVResults = false;this.tabIndex = 0;this.newsResults = 0;this.matchesResults = 0;this.rptvResults = 0;this.searchResults = {teams:this.filterData(this.cachedData.teams),players:this.filterData(this.cachedData.players),tournaments:this.filterData(this.cachedData.tournaments)};this.hasResults = true;}else{this.hasResults = false;}},filterData(list){let results = [];list.forEach((item,i) =>{let name = item.n.toLowerCase();if(name.indexOf(this.keyword.trim().toLowerCase()) > -1){results.push(item);}});return results;},ajax(path){if(this.xhttp){this.xhttp.abort();}this.xhttp = new XMLHttpRequest();let query = "";switch (path){case "news":case "matches":case "rptv":query = "?s=" + this.keyword + "&tz=" + this.tz;break;}this.xhttp.onreadystatechange = () => {if (this.xhttp.readyState === 4 && this.xhttp.status === 200) {let result = JSON.parse(this.xhttp.responseText);
1switch (path){case "cache":this.cachedData = result;this.dataCached = true;break;case "news":this.newsResults = result.news;this.noNewsResults = result.news.length === 0;break;case "matches":this.matchesResults = result.matches;this.noMatchResults = result.matches.length === 0;break;case "rptv":this.rptvResults = result.rptv;this.noRPTVResults = result.rptv.length === 0;break;}this.xhttp = false;}};this.xhttp.open("GET",this.url + "site-search/" + path + query, true);this.xhttp.send();},clear(){this.keyword = "";this.hasResults = false;this.noNewsResults = false;this.noMatchResults = false;this.noRPTVResults = false;this.matchesResults = 0;this.rptvResults = 0;this.newsResults = 0;this.tabIndex = 0;this.searchResults = {teams:[],players:[],tournaments:[]};},matchLink(game){return DOM.url + "live/" + game.u + "/?g=" + game.id;},teamLink(team){return DOM.url + "teams/" + team.u + "/";},playerLink(player){return DOM.url + "players/" + player.u + "/";},compLink(comp){return DOM.url + comp.u + "/";},newsLink(article){return DOM.url + (article.p ? "plus" : "news") + "/" + article.u + "/";},rptvLink(item){switch (item.t){case "LIVE":return "https://rugbypass.tv/live/" + item.id;default:return "https://rugbypass.tv/video/" + item.id;}},img(path,w){let parts = path.split("?");if(parts.length > 1){return "https://eu-cdn.rugbypass.com/webp-images/" + parts[0] + ".webp?maxw=" + w + "&" + parts[1];}return "https://eu-cdn.rugbypass.com/webp-images/" + path + ".webp?maxw=" + w}},mounted(){}}).mount("#site-search");},openSearch : function(){DOM.removeClass('body','show-menu');DOM.addClass('body','search');setTimeout(()=>{SiteSearch.app.open();},10);}};SiteSearchView = {app:0,init : function(url,tz,lang){const {createApp} = Vue;SiteSearchView.app = createApp({data() {return {cndVar:"5",xhttp:false,lang:lang,url:url,tz:tz,isSafari:false,loading:false,cachedData:false,dataCached:false,searchOpen:false,hasFilter:false,isTopSearch:false,keyword:"",type:"",filterIndex:0,filterTotal:0,tabIndex:0,tabId:0,selectedTab:0,filterResults:0,searchResults:0,hasResults:false,resultsType:0,fixtures:[],results:[],topResults:[],items:[],allTeams:[],allItems:[],allPlayers:[],allMatches:[],allRPTV:[],allNews:[],transInId:0,transInIndex:0,sections:["All","Teams","Tournaments","Players","Matches","RPTV","News"],position:0,}},methods: {open(){document.querySelector("body").classList.add("search-open");this.searchOpen = true;this.focusInput();if(!this.dataCached){this.ajax("cache");}},focusInput(){this.$nextTick(()=>{document.querySelector("#search-keyword").focus();});},close(){document.querySelector("body").classList.remove("search-open");this.searchOpen = false;setTimeout(()=>{DOM.removeClass('body','search');this.clear();},800);},selectTab(i){if(i === -1){i = 0;}if(i === this.searchResults.menu.length){i = this.searchResults.menu.length-1;}if(i !== this.tabIndex){this.tabIndex = i;this.filterIndex = 0;this.selectedTab = this.searchResults.menu[i];this.transInIndex = 0;document.querySelector(".results").scrollTop = 0;this.transIn();}},menuDisabled(item){switch (item.id){case "teams":return this.searchResults.teams.length === 0;case "players":return this.searchResults.players.length === 0;case "rptv":return this.searchResults.rptv.length === 0;case "news":return this.searchResults.news.length === 0;case "matches":return this.searchResults.matches.length === 0;case "tournaments":return this.searchResults.tournaments.length === 0;default:return false;}},searchCode(event){try {switch (event.keyCode){case 27:this.clear();break;case 40:this.filterIndex++;if(this.filterIndex === this.filterTotal){this.filterIndex = this.filterTotal - 1;}this.checkResultVisibility();break;case 38:this.filterIndex--;if(this.filterIndex === -1){this.filterIndex = 0;}this.checkResultVisibility();break;case 13:this.triggerFilter();break;default:this.filterIndex = 0;break;}}catch (e){}},searchFilter(event){try {switch (event.keyCode){case 27:case 40:case 38:case 13:return;}}catch (e){}this.keyword = document.querySelector("#search-keyword").value;if(this.keyword.length > 1){this.hasResults = false;this.tabIndex = 0;this.loading = false;this.filterResults = {teams:this.filterTeams(this.cachedData.teams),players:this.filterPlayers(this.cachedData.players),tournaments:this.filterData(this.cachedData.tournaments)};this.setFilteredTotal();this.hasFilter = true;this.isTopSearch = false;}else{this.hasFilter = false;if(this.keyword === ""){this.setTopSearch();}}},setFilteredTotal(){this.filterTotal = this.filterResults.teams.length + this.filterResults.players.length + this.filterResults.tournaments.length;},triggerFilter(){let items = [];
1this.filterResults.tournaments.forEach((item,i)=>{item.type = 'comp';items.push(item);});this.filterResults.teams.forEach((item,i)=>{item.type = 'team';items.push(item);});this.filterResults.players.forEach((item,i)=>{item.type = 'player';items.push(item);});this.selectFilter(items[this.filterIndex],items[this.filterIndex].type);},filterTeams(list){let results = [];list.forEach((item,i) =>{let name = item.n.toLowerCase();let h1 = item.h1.toLowerCase();let kw = item.k.toLowerCase();if(name.search(this.keyword.toLowerCase()) > -1 || h1.search(this.keyword.toLowerCase()) > -1 || this.checkKeyWords(kw)){results.push(item);}});return results;},filterPlayers(list){let results = [];list.forEach((item,i) =>{let name = item.n.toLowerCase();let kw = item.k.toLowerCase();if(name.search(this.keyword.toLowerCase()) > -1 || this.checkKeyWords(kw)){results.push(item);}});return results;},checkKeyWords(k){let valid = false;if(k !== ""){let a = k.split(",");a.forEach((item,i)=>{if(item.search(this.keyword.toLowerCase()) > -1){valid = true;}});}return valid;},filterData(list){let results = [];list.forEach((item,i) =>{let name = item.n.toLowerCase();if(name.search(this.keyword.toLowerCase()) > -1){results.push(item);}});return results;},resultName(){switch (this.type){case "comp":return this.searchResults.tournament.n;case "team":return this.searchResults.team.n;case "player":return this.searchResults.player.n;}return "";},ajax(path){if(this.xhttp){this.xhttp.abort();}this.loading = true;this.xhttp = new XMLHttpRequest();let query = "";let bz2 = "";let date = new Date();let dateStr = date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()+"-"+date.getHours();switch (path){case "cache":query = "?date="+dateStr+"-"+date.getMinutes() + "&ver=" + this.cndVar;break;case "search":query = "?t=" + this.type + "&i=" + this.id + "&tz=" + this.tz + "&bz2=" + bz2 + "&date="+dateStr + "&ver=" + this.cndVar + "&lang=" + this.lang;break;}this.xhttp.onreadystatechange = () => {if (this.xhttp.readyState === 4 && this.xhttp.status === 200) {let result = JSON.parse(this.xhttp.responseText);if(result.success){switch (path){case "cache":this.cachedData = result;this.dataCached = true;this.setTopSearch();break;case "search":this.searchResults = result.result;this.selectedTab = this.searchResults.menu[0];this.$nextTick(() => {this.setAllList();this.tabIndex = 0;this.filterIndex = 0;this.hasResults = true;this.hasFilter = false;this.keyword = "";this.setMatches();this.focusInput();this.transInIndex = 0;this.transIn();let name = "";switch (this.type){case "player":name = this.searchResults.player.n;break;case "team":name = this.searchResults.team.n;break;case "comp":name = this.searchResults.tournament.n;break;}
1DOM.ajax("count-search",{type:this.type,id:this.id,name:name},"post");});break;}}this.xhttp = false;this.loading = false;}};this.xhttp.open("GET",this.url + "site-search/" + path + query, true);this.xhttp.send();},setTopSearch(){this.filterResults = {teams:[],players:[],tournaments:[]};this.cachedData.top.forEach((item,i) =>{switch(item.type){case "comp":this.filterResults.tournaments.push(this.getItem(item.id,this.cachedData.tournaments));break;case "team":this.filterResults.teams.push(this.getItem(item.id,this.cachedData.teams));break;case "player":this.filterResults.players.push(this.getItem(item.id,this.cachedData.players));break;}});this.hasFilter = true;this.isTopSearch = true;this.setFilteredTotal();},getItem(id,items){let result = 0;items.forEach((item,i) =>{if(parseInt(item.id) === parseInt(id)){result = item;}});return result;},setAllList(){this.allItems = [];switch (this.type){case "player":this.addThreeItems("player",this.searchResults.players);this.addThreeItems("team",this.searchResults.teams);this.addThreeItems("tournament",this.searchResults.tournaments);this.addThreeFixtures("match",this.searchResults.matches);this.addThreeItems("news",this.searchResults.news);this.addThreeItems("rptv",this.searchResults.rptv);break;case "team":this.addThreeItems("team",this.searchResults.teams);this.addThreeItems("tournament",this.searchResults.tournaments);this.addThreeItems("player",this.searchResults.players);this.addThreeFixtures("match",this.searchResults.matches);this.addThreeItems("news",this.searchResults.news);this.addThreeItems("rptv",this.searchResults.rptv);break;case "comp":this.addThreeItems("tournament",this.searchResults.tournaments);this.addThreeItems("team",this.searchResults.teams);this.addThreeItems("player",this.searchResults.players);this.addThreeFixtures("match",this.searchResults.matches);this.addThreeItems("news",this.searchResults.news);this.addThreeItems("rptv",this.searchResults.rptv);break;}this.setOut();},setIsIn(list,value){let results = [];list.forEach((item,i) => {item.isIn = value;results.push(item)});return results;},addThreeItems(type,list){let items = list.slice(0,3);items.forEach(item => {item.type = type;this.allItems.push(item);});},addThreeFixtures(type,list){console.clear();let matches = [];let items = list.slice();while (matches.length < 3 && items.length > 0){let item = items.pop();if(item.s === 0){matches.push(item);}}if(matches.length === 0){matches = list.slice(0,3);}matches.forEach(item => {item.type = type;this.allItems.push(item);});},setResultType(i){this.resultsType = i;this.transInIndex = 0;this.transIn();},getThumb(url){return url.split("original").join("350x197");},setOut(){this.setIsIn(this.allItems,false);this.setIsIn(this.searchResults.teams,false);this.setIsIn(this.searchResults.players,false);this.setIsIn(this.searchResults.tournaments,false);this.setIsIn(this.searchResults.news,false);this.setIsIn(this.searchResults.rptv,false);},transIn(){clearInterval(this.transInId);this.setOut();this.$nextTick(() => {this.$nextTick(() => {this.setResultScroll(0);this.filterIndex = 0;console.log("transIn",this.selectedTab.id);this.transInId = setInterval(()=>{if(this.selectedTab.id === 'all'){if(this.allItems[this.transInIndex] !== undefined){this.allItems[this.transInIndex].isIn = true;this.transInIndex++;this.filterTotal = this.allItems.length;if(this.transInIndex === this.allItems.length){clearInterval(this.transInId);}}else{clearInterval(this.transInId);}}if(this.selectedTab.id === 'teams'){if(this.searchResults.teams[this.transInIndex] !== undefined){this.searchResults.teams[this.transInIndex].isIn = true;this.transInIndex++;this.filterTotal = this.searchResults.teams.length;if(this.transInIndex === this.searchResults.teams.length){clearInterval(this.transInId);}}else{clearInterval(this.transInId);}}if(this.selectedTab.id === 'players'){if(this.searchResults.players[this.transInIndex] !== undefined){this.searchResults.players[this.transInIndex].isIn = true;this.transInIndex++;this.filterTotal = this.searchResults.players.length;if(this.transInIndex === this.searchResults.players.length){clearInterval(this.transInId);}}else{clearInterval(this.transInId);}}if(this.selectedTab.id === 'tournaments'){if(this.searchResults.tournaments[this.transInIndex] !== undefined){this.searchResults.tournaments[this.transInIndex].isIn = true;this.transInIndex++;this.filterTotal = this.searchResults.tournaments.length;if(this.transInIndex === this.searchResults.tournaments.length){clearInterval(this.transInId);}}else{clearInterval(this.transInId);}}if(this.selectedTab.id === 'news'){if(this.searchResults.news[this.transInIndex] !== undefined){this.searchResults.news[this.transInIndex].isIn = true;this.transInIndex++;this.filterTotal = this.searchResults.news.length;if(this.transInIndex === this.searchResults.news.length){clearInterval(this.transInId);}}else{clearInterval(this.transInId);}}if(this.selectedTab.id === 'rptv'){if(this.searchResults.rptv[this.transInIndex] !== undefined){this.searchResults.rptv[this.transInIndex].isIn = true;this.transInIndex++;this.filterTotal = this.searchResults.rptv.length;if(this.transInIndex === this.searchResults.rptv.length){clearInterval(this.transInId);}}else{clearInterval(this.transInId);}}if(this.selectedTab.id === 'matches'){if(this.resultsType === 0){if(this.fixtures[this.transInIndex] !== undefined){this.fixtures[this.transInIndex].isIn = true;this.transInIndex++;this.filterTotal = this.fixtures.length;if(this.transInIndex === this.fixtures.length){clearInterval(this.transInId);}}else{clearInterval(this.transInId);}}if(this.resultsType === 1){if(this.results[this.transInIndex] !== undefined){this.results[this.transInIndex].isIn = true;this.transInIndex++;this.filterTotal = this.results.length;if(this.transInIndex === this.results.length){clearInterval(this.transInId);}}else{clearInterval(this.transInId);}}}},80);});});},setMatches(){this.resultsType = 0;this.results = [];this.fixtures = [];if(this.searchResults.matches !== undefined){this.searchResults.matches.forEac
1h((item,i)=>{if(item.s === 1){this.results.push(item);}else{this.fixtures.push(item);}});}this.results.sort((a,b)=>{if(a.e === b.e) return 0;return a.e > b.e ? -1 : 1;});this.fixtures.sort((a,b)=>{if(a.e === b.e) return 0;return a.e < b.e ? -1 : 1;});if(this.fixtures.length === 0 && this.results.length > 0){this.resultsType = 1;}},clear(){this.keyword = "";this.hasResults = false;this.hasFilter = false;this.tabIndex = 0;this.setTopSearch();this.$nextTick(()=>{this.focusInput();});},selectFilter(item,type){this.keyword = item.n;this.type = type;this.id = item.id;this.hasFilter = false;this.ajax("search");},matchLink(game){return DOM.url + "live/" + game.u + "/?g=" + game.id;},teamLink(team){return DOM.url + "teams/" + team.u + "/";},playerLink(player){return DOM.url + "players/" + player.u + "/";},compLink(comp){return DOM.url + comp.u + "/";},newsLink(article){return DOM.url + (article.p ? "plus" : "news") + "/" + article.u + "/";},rptvLink(item){switch (item.t){case "LIVE":return "https://rugbypass.tv/live/" + item.id;default:return "https://rugbypass.tv/video/" + item.id;}},img(path,w){let parts = path.split("?");if(parts.length > 1){return "https://eu-cdn.rugbypass.com/webp-images/" + parts[0] + ".webp?maxw=" + w + "&" + parts[1];}return "https://eu-cdn.rugbypass.com/webp-images/" + path + ".webp?maxw=" + w},resultsCode(event){if(this.hasResults){event.preventDefault();switch (event.keyCode){case 27:this.clear();break;case 40:this.filterIndex++;if(this.filterIndex === this.filterTotal){this.filterIndex = this.filterTotal - 1;}this.checkResultVisibility();break;case 38:this.filterIndex--;if(this.filterIndex === -1){this.filterIndex = 0;}this.checkResultVisibility();break;case 39:let n = this.tabIndex + 1;let l = this.searchResults.menu.length - 1;while (this.menuDisabled(this.searchResults.menu[n]) && n < l){n++;}if(n === l && this.menuDisabled(this.searchResults.menu[n])){n = 0;}this.selectTab(n);break;case 37:let m = this.tabIndex - 1;if(m === -1){m = this.searchResults.menu.length - 1;}while (this.menuDisabled(this.searchResults.menu[m]) && m > -1){m--;}this.selectTab(m);break;case 13:this.triggerResult();break;}}},checkResultVisibility(){let results = document.querySelector(".site-search .results");let rect = results.getBoundingClientRect();let bnd = null;let top = 0;if(this.selectedTab.id === 'rptv'){let items = document.querySelectorAll(".site-search .results .rptv-results .group .list > div");bnd = items[this.filterIndex].getBoundingClientRect();top = bnd.top - rect.top;}else{let items = document.querySelectorAll(".site-search .results > div");bnd = items[this.filterIndex].getBoundingClientRect();top = bnd.top - rect.top;}if(bnd !== null){if(top + bnd.height > rect.height){let scrollY = results.scrollTop + Math.abs(top - rect.height) + bnd.height;this.setResultScroll(scrollY);}if(top < 0){let scrollY = results.scrollTop + top - bnd.height;this.setResultScroll(scrollY);}}},setResultScroll(scrollY){document.querySelector(".site-search .results").scrollTo(0,scrollY);},triggerResult(){let ele = null;if(this.selectedTab.id === 'rptv'){let items = document.querySelectorAll(".site-search .results .rptv-results .group .list > div");ele = items[this.filterIndex];}else{let items = document.querySelectorAll(".site-search .results > div");ele = items[this.filterIndex];}if(ele !== null){let a = ele.querySelector(".link-box");if(a !== null){a.click();}}},isMobile(){let userAgent = navigator.userAgent || navigator.vendor || window.opera;if (/windows phone/i.test(userAgent)) {return true}if (/android/i.test(userAgent)) {return true}if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {return true}return false;}},mounted(){this.url = "https://eu-cdn.rugbypass.com/";window.addEventListener("keydown",(e)=> {this.resultsCode(e);});this.isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);}}).mount("#site-search");},openSearch : function(){DOM.removeClass('body','show-menu');DOM.addClass('body','search');setTimeout(()=>{SiteSearchView.app.open();},10);}};CountBannerView = {name:"CountBannerView",enableCounter:1,enableSeconds:1,sec:0,min:0,hour:0,day:0,intervalID:0,body:0,header:0,init : function (){CountBannerView.body = document.querySelector("body");CountBannerView.header = document.querySelector("header");CountBannerView.min = parseInt(DOM.text("#count-min"));CountBannerView.hour = parseInt(DOM.text("#count-hour"));CountBannerView.day = parseInt(DOM.text("#count-day"));CountBannerView.sec = parseInt(DOM.text("#count-sec"));if(CountBannerView.enableCounter){if(CountBannerView.enableSeconds) {CountBannerView.intervalID = setInterval(CountBannerView.countDownSeconds, 1000);}else{CountBannerView.intervalID = setInterval(CountBannerView.countDown, 60000);}}window.addEventListener("scroll",function (e){CountBannerView.scroll(window.scrollY);})},countDownSeconds : function (){CountBannerView.sec--;if(CountBannerView.sec === -1){CountBannerView.sec = 59;CountBannerView.countDown();}
1DOM.text("#count-min",CountBannerView.setTwoDigit(CountBannerView.min));DOM.text("#count-hour",CountBannerView.setTwoDigit(CountBannerView.hour));DOM.text("#count-day",CountBannerView.setTwoDigit(CountBannerView.day));DOM.text("#count-sec",CountBannerView.setTwoDigit(CountBannerView.sec));},countDown : function (){CountBannerView.min--;if(CountBannerView.min === -1){CountBannerView.min = 59;if (CountBannerView.day === 0 && CountBannerView.hour === 0){CountBannerView.min = 0;clearInterval(CountBannerView.intervalID);DOM.addClass(".lions-countdown","no-count-down");}else{CountBannerView.hour--;}if(CountBannerView.hour === -1){CountBannerView.hour = 23;if (CountBannerView.day === 0){CountBannerView.hour = 0;}CountBannerView.day--;if(CountBannerView.day === -1){CountBannerView.day = 0;}}}DOM.text("#count-min",CountBannerView.setTwoDigit(CountBannerView.min));DOM.text("#count-hour",CountBannerView.setTwoDigit(CountBannerView.hour));DOM.text("#count-day",CountBannerView.setTwoDigit(CountBannerView.day));DOM.text("#count-sec",CountBannerView.setTwoDigit(CountBannerView.sec));},setTwoDigit : function (value){return value < 10 ? "0" + value : value;},scroll: function (st){if(!CountBannerView.body.classList.contains("hide-notice") && !CountBannerView.body.classList.contains("countdown-banner")) return;const maxTop = DOM.visible("#under-or-equal-to-1200") ? 168 : 120;CountBannerView.header.style.top = Math.max(-maxTop,-st) + "px";}};MainHeaderView = {name:"MainHeaderView",menuOn:false,openMenuTimeout:0,isMobileMenu:0,initialized:0,body:0,login:0,scrollY:0,setScrollY:0,init : function (){if(MainHeaderView.initialized) return;MainHeaderView.initialized = 1;MainHeaderView.body = document.querySelector("body");document.querySelectorAll(".expand-menu").forEach(function (item, index){item.addEventListener("open",function (){MainHeaderView.closeAllDropdowns();item.classList.add("open");item.addEventListener("mousedown",function (e){e.stopPropagation();});window.addEventListener("mousedown",function (){item.dispatchEvent(new Event('close'));});});item.addEventListener("close",function (){item.classList.remove("open");item.removeEventListener("mousedown",function (e){e.stopPropagation();});window.removeEventListener("mousedown",function (){item.dispatchEvent(new Event('close'));});});item.querySelector(".label").addEventListener("click",function (e){if(item.classList.contains("open")){item.dispatchEvent(new Event('close'));}else{item.dispatchEvent(new Event('open'));}});if(item.querySelector(".title") !== null){item.querySelector(".title").addEventListener("click",function (e){item.dispatchEvent(new Event('close'));});}});MainHeaderView.resize();document.querySelectorAll("#tournaments-list li").forEach(function (item, index){item.addEventListener("mouseover",function (){if(MainHeaderView.isMobileMenu) return;const teamMenu = item.querySelector(".team-menu");if(teamMenu){document.querySelector("#tournaments-list-bg").classList.add("show");teamMenu.classList.add("show");console.log("Over 3");}});item.addEventListener("mouseout",function (){if(MainHeaderView.isMobileMenu) return;const teamMenu = item.querySelector(".team-menu");if(teamMenu){teamMenu.classList.remove("show");document.querySelector("#tournaments-list-bg").classList.remove("show");}});});if(document.querySelector("header .close-notice")) {document.querySelector("header .close-notice").addEventListener("click", function () {MainHeaderView.body.classList.add("hide-notice");MainHeaderView.body.classList.remove("countdown-banner");DOM.ajax("hide-notice", {}, "post", "html", function () {});});}window.addEventListener("resize",MainHeaderView.resize);window.addEventListener("scroll",MainHeaderView.scroll);window.addEventListener("hashchange", MainHeaderView.locationHashChanged, false);if(MainHeaderView.login){const userMenu = document.querySelector("#user-menu");userMenu.addEventListener("open",function (){userMenu.classList.add("open");userMenu.addEventListener("mousedown",function (e){e.stopPropagation();});window.addEventListener("mousedown",function (){userMenu.dispatchEvent(new Event('close'));});});userMenu.addEventListener("close",function (){userMenu.classList.remove("open");userMenu.removeEventListener("mousedown",function (e){e.stopPropagation();});window.removeEventListener("mousedown",function (){userMenu.dispatchEvent(new Event('close'));});});userMenu.addEventListener("click",function (){userMenu.dispatchEvent(new Event('open'));});}},locationHashChanged: function () {switch(location.hash){case "#user-login":UserView.scrollToComments = 1;UserView.toggleLogin();location.hash = "#n";break;}},closeAllDropdowns : function () {document.querySelectorAll(".expand-menu").forEach(function (item, index){item.dispatchEvent(new Event('close'));});},showTeamMenu: function (uri) {document.querySelector("#team_" + uri).classList.toggle("expand");},toggleMobileAccountBox : function () {document.querySelector("#mobile-account-box").classList.toggle("show");},toggleBurgerMenu : function () {GATracking.sendEvent('Interaction','burger_menu','burger_menu','1');
1if(MainHeaderView.menuOn){MainHeaderView.closeMenu();}else{MainHeaderView.openMenu();}},openMenu : function(){if(!MainHeaderView.menuOn){window.scrollTo({top:0, left: 0, behavior: 'smooth'});MainHeaderView.body.classList.add("show-menu");DOM.hide("#m-bg");DOM.hide("#content");DOM.hide("#footer");MainHeaderView.menuOn = true;}},closeMenu : function(){if(MainHeaderView.menuOn){MainHeaderView.body.classList.remove("show-menu");DOM.show("#m-bg");DOM.show("#content");DOM.show("#footer");document.querySelectorAll(".dropdown").forEach(function (item, index){item.classList.remove("open");});MainHeaderView.menuOn = false;}},scroll : function (){MainHeaderView.scrollY = window.scrollY;},resize : function (){MainHeaderView.isMobileMenu = DOM.visible("#under-or-equal-to-990");}};GlobalView = {validateEmail:function (address) {const reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;return reg.test(address);},shareFacebook : function(){GATracking.sendDataLayerEvent('shareFacebook');FB.ui({method: 'share',href: window.location.href}, function(response){});},shareTwitter : function(text){GATracking.sendDataLayerEvent('shareTwitter');if(!text){text = document.querySelector("title").innerText;}window.open("http://twitter.com/intent/tweet?text=" + text + "&url=" + window.location.href,"","width=500, height=300");},shareLinkedIn : function(title,summary){window.open("https://www.linkedin.com/shareArticle?mini=true&url="+window.location.href+"&title="+title+"&summary"+summary+"=&source=","","width=500, height=300");},shareWhatsApp : function(title){GATracking.sendDataLayerEvent('shareWhatsApp');window.open("https://wa.me/?text="+encodeURIComponent(title + " - " + window.location.href),"","width=500, height=300");},sharePinInterest : function(media,description){GATracking.sendDataLayerEvent('sharePinInterest');window.open("https://pinterest.com/pin/create/button/?url="+window.location.href+"&media=" + media + "&description=" + description,"","width=500, height=300");},shareMessenger : function(){GATracking.sendDataLayerEvent('shareMessenger');window.open('fb-messenger://share?link=' + encodeURIComponent(window.location.href) + '&app_id=' + encodeURIComponent(1472967632714342),"","width=500, height=300");},copyToClipboard : function(){GATracking.sendDataLayerEvent('copyToClipboard');const copyTextarea = document.querySelector('.js-copytextarea');copyTextarea.select();try {const successful = document.execCommand('copy');const msg = successful ? 'successful' : 'unsuccessful';if(successful){copyTextarea.parentElement.querySelector(".clipboard").classList.add("show");setTimeout(function (){copyTextarea.parentElement.querySelector(".clipboard").classList.remove("show");},2000);}} catch (err) {}},modalCopyToClipboard : function(){GATracking.sendDataLayerEvent('copyToClipboard');const copyTextarea = document.querySelector('.js-copytextarea');copyTextarea.select();try {const successful = document.execCommand('copy');const msg = successful ? 'successful' : 'unsuccessful';if(successful){document.querySelector("#article-share-modal-clipboard").innerHTML = "Link copied";setTimeout(function (){document.querySelector("#article-share-modal-clipboard").innerHTML = "Copy link";},2000);}} catch (err) {}},wikiCopyToClipboard : function(){const copyTextarea = document.querySelector('.js-copytextarea');copyTextarea.select();try {const successful = document.execCommand('copy');const msg = successful ? 'successful' : 'unsuccessful';if(successful){copyTextarea.parentElement.querySelector(".clipboard").classList.add("show");setTimeout(function (){copyTextarea.parentElement.querySelector(".clipboard").classList.remove("show");},2000);}} catch (err) {}},mobileShare : function(title){if (navigator.share) {GATracking.sendDataLayerEvent('shareMobile');navigator.share({title: 'RugbyPass News',text: title,url: window.location.href});}},showShareModal(){let modal = document.querySelector('.article-share-modal');if(modal !== null){modal.classList.add('show');}},closeShareModal(){let modal = document.querySelector('.article-share-modal');if(modal !== null){modal.classList.remove('show');}}};MegaMenuView = {body:0,header:0,nav:0,key:0,isMobile:0,eventState:0,megaTimeout:0,currentSt:0,lastCheckedSt:0,upScrollCount:0,isMatchCentre:0,init : function (){MegaMenuView.body = document.querySelector("body");MegaMenuView.header = document.querySelector("header");MegaMenuView.nav = document.querySelector("header nav");MegaMenuView.isMatchCentre = MegaMenuView.body.classList.contains("match-center");if(MegaMenuView.isMatchCentre){MegaMenuView.body.classList.add("animate");}MegaMenuView.setEvents();document.querySelectorAll(".account-select-box").forEach(function (ele, index){ele.addEventListener("open",function (){ele.classList.add("open");ele.addEventListener(MegaMenuView.isMobile ? "touchstart" : "mousedown",function (e){e.stopPropagation();});window.addEventListener(MegaMenuView.isMobile ? "touchstart" : "mousedown",function (){ele.dispatchEvent(new Event('close'));});});ele.addEventListener("close",function (){ele.classList.remove("open");ele.removeEventListener(MegaMenuView.isMobile ? "touchstart" :"mou
1sedown",function (e){e.stopPropagation();});window.removeEventListener(MegaMenuView.isMobile ? "touchstart" :"mousedown",function (){ele.dispatchEvent(new Event('close'));});});ele.addEventListener(MegaMenuView.isMobile ? "touchstart" : "click",function (){if(ele.classList.contains("open")){ele.dispatchEvent(new Event('close'));}else{ele.dispatchEvent(new Event('open'));}});});window.addEventListener("hashchange", MegaMenuView.locationHashChanged, false);window.addEventListener("message", function (event){if(event.data.action !== undefined){switch (event.data.action){case "mailchimp-banner":grecaptcha.ready(function() {grecaptcha.execute(MegaMenuView.key, {action: 'submit'}).then(function(token) {DOM.ajax("mailchimp-popup",{email:event.data.email, token: token},"POST","json",function (data){if(data.success){event.source.postMessage(data,event.origin);}});});});break;}}}, false);},locationHashChanged: function () {switch(location.hash){case "#user-login":UserView.scrollToComments = 1;UserView.toggleLogin();location.hash = "#n";break;}},showEditionPopup : function (){const edition = document.querySelector(".geo-toggle-mobile");if(edition){edition.classList.add("show");}},closeEditionPopup : function (){const edition = document.querySelector(".geo-toggle-mobile");if(edition){edition.classList.remove("show");}},resize : function (){},setEvents : function (){document.querySelectorAll("header nav .main-menu > li").forEach(function (item, index){if(!item.classList.contains("no-mega")) {item.addEventListener(MegaMenuView.isMobile ? "touchstart" : "mouseover", function (e) {if (!DOM.visible("#under-or-equal-to-1150")) {clearTimeout(MegaMenuView.megaTimeout);MegaMenuView.megaTimeout = setTimeout(function () {MegaMenuView.expandMegaMenuItem(item);}, 200);}});item.addEventListener(MegaMenuView.isMobile ? "touchend" : "mouseleave", function () {if (!DOM.visible("#under-or-equal-to-1150")) {clearTimeout(MegaMenuView.megaTimeout);MegaMenuView.megaTimeout = setTimeout(function () {MegaMenuView.contractMegaMenuItem(item);}, 800);}});item.addEventListener(MegaMenuView.isMobile ? "touchstart" : "mousedown", function () {if (DOM.visible("#under-or-equal-to-1150")) {MegaMenuView.closeOthers(item);item.classList.add("show");MegaMenuView.body.classList.add("show-mega");let dmenu = document.querySelector('.d-menu');dmenu.setAttribute("data-selected", item.getAttribute('data-index'));MegaMenuView.body.classList.remove("cropped");MegaMenuView.body.classList.add("fade-out-menu");}});const backTitle = item.querySelector(".mega-menu .back-title");if (backTitle !== null) {backTitle.addEventListener(MegaMenuView.isMobile ? "touchstart" : "click", function () {MegaMenuView.body.classList.remove("show-mega");let dmenu = document.querySelector('.d-menu');dmenu.setAttribute("data-selected", "-1");setTimeout(function () {item.classList.remove("show");MegaMenuView.body.classList.add("cropped");MegaMenuView.body.classList.remove("fade-out-menu");}, 200);});}if (item.querySelector(".mega-menu .bg") !== null) {item.querySelector(".mega-menu .bg").addEventListener(MegaMenuView.isMobile ? "touchstart" : "mousedown", function () {clearTimeout(MegaMenuView.megaTimeout);MegaMenuView.body.classList.remove("show-mega");let dmenu = document.querySelector('.d-menu');dmenu.setAttribute("data-selected", "-1");setTimeout(function () {item.classList.remove("show");MegaMenuView.body.classList.add("cropped");MegaMenuView.body.classList.remove("fade-out-menu");MegaMenuView.body.classList.remove("show-mega");document.querySelectorAll(".main-menu li").forEach(function (item, index) {item.classList.remove("show");});}, 200);});}}if(item.classList.contains("small-menu")) {item.addEventListener(MegaMenuView.isMobile ? "touchstart" : "mouseover", function (e) {if (!DOM.visible("#under-or-equal-to-1150")) {item.classList.add("show");}});item.addEventListener(MegaMenuView.isMobile ? "touchend" : "mouseleave", function () {if (!DOM.visible("#under-or-equal-to-1150")) {item.classList.remove("show");}});item.addEventListener(MegaMenuView.isMobile ? "touchstart" : "mousedown", function (e) {if (DOM.visible("#under-or-equal-to-1150")) {item.classList.add("show");}});const backTitle = item.querySelector(".back-title");if (backTitle !== null) {backTitle.addEventListener(MegaMenuView.isMobile ? "touchstart" : "click", function () {item.classList.remove("show");});}}});window.addEventListener("scroll",MegaMenuView.scroll);},megaLazy : function (){document.querySelectorAll(".mega-lazy").forEach(function (ele, index){ele.classList.add("lazy");ele.classList.remove("mega-lazy");});},expandMegaMenuItem : function (item) {MegaMenuView.closeOthers(item);item.classList.add("show");MegaMenuView.body.classList.add("show-mega");MegaMenuView.megaLazy();let itemH = item.querySelector('.mega-menu .menu-container').offsetHeight;document.querySelector("#mega-menu-bg").style.maxHeight = (itemH + 116) + "px";document.querySelectorAll(".mega-menu").forEach(function (ele, index){ele.style.maxHeight = (itemH) + "px";});},contractMegaMenuItem : function (item) {document.querySelectorAll(".main-menu li").forEach(function (item, index){item.classList.remove("show");});MegaMenuView.body.classList.remove("show-mega");},scroll : function () {var st = window.pageYOffset;if(MegaMenuView.isMatchCentre){MegaMenuView.closeOthers();MegaMenuView.body.classList.remove("show-mega");}else{if(st > MegaMenuView.lastCheckedSt){MegaMenuView.body.classList.add("hide-header");MegaMenuView.upScrollCount = 0;} else {MegaMenuView.upScrollCount += (MegaMenuView.lastCheckedSt - st);if(MegaMenuView.upScrollCount > 90){MegaMenuView.body.classList.remove("hide-header");} else {MegaMenuView.body.classList.add("hide-header");}}if(st < 150){MegaMenuView.body.classList.remove("hide-header");}MegaMenuView.lastCheckedSt = st;}},closeOthers : function (){document.querySelectorAll(".main-menu li").forEach(function (item, index){item.classList.remove("show");});},toggleBurgerMenu : function () {if(MegaMenuView.menuOn){MegaMenuView.closeMenu();}else{MegaMenuView.openMenu();}},openMenu : function(){if(!MegaMenuView.menuOn){MegaMenuView.currentSt = window.pageYOffset;let dmenu2 = document.querySelector('.d-menu');dmenu2.setAttribute("data-selected","-1");
1window.scrollTo({top:0, left: 0, behavior: 'smooth'});MegaMenuView.body.classList.add("show-menu");MegaMenuView.body.classList.remove("show-mega");MegaMenuView.body.classList.add("cropped");MegaMenuView.body.classList.remove("fade-out-menu");MegaMenuView.body.classList.remove("hide-header");MegaMenuView.megaLazy();let extra = 137;let mainDiv = document.querySelector('main');mainDiv.style.top = (-MegaMenuView.currentSt + extra) + "px";DOM.hide("#m-bg");DOM.hide("#content");DOM.hide("#footer");MegaMenuView.menuOn = true;document.querySelectorAll(".main-menu li").forEach(function (item, index){item.classList.remove("show");});}},closeMenu : function(){if(MegaMenuView.menuOn){let mainDiv = document.querySelector('main');mainDiv.style.top = "0px";MegaMenuView.body.classList.remove("show-menu");MegaMenuView.body.classList.remove("show-mega");MegaMenuView.body.classList.remove("hide-header");DOM.show("#m-bg");DOM.show("#content");DOM.show("#footer");MegaMenuView.menuOn = false;window.scrollTo(0,MegaMenuView.currentSt);}},closeRWCBanner : function(){DOM.ajax("close-rwc-banner",{},"post","html",function (){document.querySelector(".wrwc-footer").classList.add("closed");});},navigateEdition : function (url,code){GATracking.sendEvent('Interaction','edition_pick','edition_pick','1');DOM.ajax("geo-toggle",{code:code},"post","html",function (){window.location.href = url;});}};HeaderView = {body:0,mcAdd:0,megaTimeout:0,scrollY:0,isMatchCentre:0,upScrollCount:0,lastCheckedSt:0,selected:0,blockShow:0,init : function (){HeaderView.body = document.querySelector("body");HeaderView.mcAdd = document.querySelector(".mc-banner");if(HeaderView.body.classList.contains("match-center")){HeaderView.body.classList.add("animate");}HeaderView.setEvents();},scroll : function () {let st = window.scrollY;if(HeaderView.isMatchCentre){HeaderView.closeOthers();HeaderView.body.classList.remove("show-mega");}else{if(st > HeaderView.lastCheckedSt){HeaderView.body.classList.add("hide-header");HeaderView.upScrollCount = 0;} else {HeaderView.upScrollCount += (HeaderView.lastCheckedSt - st);if(HeaderView.upScrollCount > 90){if(HeaderView.blockShow === 0){HeaderView.body.classList.remove("hide-header");}} else {HeaderView.body.classList.add("hide-header");}}if(st < 150){if(HeaderView.blockShow === 0){HeaderView.body.classList.remove("hide-header");}}HeaderView.lastCheckedSt = st;}if(HeaderView.mcAdd !== null){if(window.scrollY > 250) {HeaderView.mcAdd.classList.remove("out");}else{HeaderView.mcAdd.classList.add("out");}}},setEvents : function (){HeaderView.selected = [];document.querySelectorAll(".menu-item.selected").forEach(function (item, index){HeaderView.selected.push(item);});let userName = document.querySelector(".user-name .label");if(userName !== null){userName.addEventListener(MegaMenuView.isMobile ? "touchstart" : "mousedown", function (e) {document.querySelector(".user-name .account-box").classList.toggle("show");e.stopPropagation();});document.querySelector(".user-name .account-box").addEventListener(MegaMenuView.isMobile ? "touchstart" : "mousedown", function (e) {e.stopPropagation();});window.addEventListener(MegaMenuView.isMobile ? "touchstart" : "mousedown", function () {document.querySelector(".user-name .account-box").classList.remove("show");});}document.querySelectorAll(".desktop-nav .menu-item").forEach(function (item, index){if(!item.classList.contains("no-mega")) {item.addEventListener(DOM.isMobile ? "touchstart" : "mouseover", function (e) {HeaderView.selected.forEach(function (node, i){if(node !== item){node.classList.remove("selected");}});if (!DOM.visible("#under-or-equal-to-1150")) {clearTimeout(HeaderView.megaTimeout);HeaderView.megaTimeout = setTimeout(function () {HeaderView.expandMegaMenuItem(item);}, 100);}});item.addEventListener(DOM.isMobile ? "touchend" : "mouseleave", function () {if (!DOM.visible("#under-or-equal-to-1150")) {clearTimeout(HeaderView.megaTimeout);HeaderView.megaTimeout = setTimeout(function () {HeaderView.contractMegaMenuItem(item);HeaderView.selected.forEach(function (node, i){node.classList.add("selected");});}, 800);}});item.querySelector(".menu-label").addEventListener(MegaMenuView.isMobile ? "touchstart" : "mousedown", function () {if (DOM.visible("#under-or-equal-to-1150")) {HeaderView.closeOthers(item);HeaderView.megaLazy();item.classList.add("show");HeaderView.body.classList.add("show-mega");}});const backTitle = item.querySelector(".mega-menu .back-title");if (backTitle !== null) {backTitle.addEventListener(MegaMenuView.isMobile ? "touchstart" : "click", function () {HeaderView.body.classList.remove("show-mega");setTimeout(function () {item.classList.remove("show");}, 200);});}}
1else{item.addEventListener(DOM.isMobile ? "touchstart" : "mouseover", function (e) {if (!DOM.visible("#under-or-equal-to-1150")) {HeaderView.closeOthers();HeaderView.body.classList.remove("show-mega");clearTimeout(HeaderView.megaTimeout);HeaderView.selected.forEach(function (node, i){if(node !== item){node.classList.remove("selected");}});}});item.addEventListener(DOM.isMobile ? "touchend" : "mouseleave", function () {if (!DOM.visible("#under-or-equal-to-1150")) {HeaderView.selected.forEach(function (node, i){node.classList.add("selected");});}});}if(item.classList.contains("small-menu")) {item.addEventListener(MegaMenuView.isMobile ? "touchstart" : "mouseover", function (e) {if (!DOM.visible("#under-or-equal-to-1150")) {item.classList.add("show");}});item.addEventListener(MegaMenuView.isMobile ? "touchend" : "mouseleave", function () {if (!DOM.visible("#under-or-equal-to-1150")) {item.classList.remove("show");}});item.addEventListener(MegaMenuView.isMobile ? "touchstart" : "mousedown", function (e) {if (DOM.visible("#under-or-equal-to-1150")) {item.classList.add("show");}});const backTitle = item.querySelector(".back-title");if (backTitle !== null) {backTitle.addEventListener(MegaMenuView.isMobile ? "touchstart" : "click", function () {item.classList.remove("show");});}}});window.addEventListener("scroll",HeaderView.scroll);window.addEventListener("resize",HeaderView.resize);},resize : function (){if(HeaderView.body.classList.contains("show-menu") && !DOM.visible("#under-or-equal-to-1023")){HeaderView.body.classList.remove("show-menu");DOM.show("main");DOM.show("#footer");}},expandMegaMenuItem : function (item) {HeaderView.closeOthers();item.classList.add("show");HeaderView.body.classList.add("show-mega");HeaderView.megaLazy();let itemH = item.querySelector('.mega-menu .menu-container').offsetHeight;document.querySelector(".mega-bg").style.maxHeight = (itemH + 119) + "px";document.querySelectorAll(".mega-menu").forEach(function (ele, index){ele.style.maxHeight = (itemH) + "px";});},contractMegaMenuItem : function (item) {document.querySelectorAll(".desktop-nav .menu-item").forEach(function (item, index){item.classList.remove("show");});HeaderView.body.classList.remove("show-mega");},closeOthers : function (){document.querySelectorAll(".desktop-nav .menu-item").forEach(function (item, index){item.classList.remove("show");});},megaLazy : function (){document.querySelectorAll(".mega-lazy").forEach(function (ele, index){ele.classList.add("lazy");ele.classList.remove("mega-lazy");});},showEditionPopup : function (){const edition = document.querySelector(".geo-toggle-mobile");if(edition){edition.classList.add("show");}},toggleBurgerMenu : function () {HeaderView.closeOthers();if(HeaderView.body.classList.contains("show-menu")){HeaderView.body.classList.remove("show-menu");HeaderView.body.classList.remove("show-mega");DOM.show("main");DOM.show("#footer");window.scrollTo(0,HeaderView.scrollY);}else{HeaderView.body.classList.add("show-menu");HeaderView.scrollY = window.scrollY;window.scrollTo({top:0, left: 0, behavior: 'smooth'});DOM.hide("main");DOM.hide("#footer");}}};GATracking = {sendDataLayerEvent : function(event) {try{if(dataLayer !== null){dataLayer.push({'event':event});}}catch(e){}},sendEvent : function (category,action,label,value){if(dataLayer !== null) {dataLayer.push({'event': 'shareFacebook'});}},getName : function (){const trackers = ga.getAll();trackers.forEach(function (item, index){console.log(item.get('trackingId'));if(item.get('trackingId') === "UA-42069532-13"){console.log("Selected: " + item.get('trackingId'));return item.get('name');}});return trackers[0].get('name');},testTrack : function (){ga('create', 'UA-42069532-13');ga(function(tracker) {ga(tracker.get("name") + '.send', 'event', {'eventCategory': 'articles','eventAction': 'next-article','eventLabel': 'Next Article','eventValue': 1});});}};LinkRefractor = {init : function (){document.querySelectorAll("a").forEach(function (ele, index){let url = ele.getAttribute("href");if(url !== null){if(url.indexOf("https://rugbypass.tv") === 0 || url.indexOf("http://rugbypass.tv") === 0 || url.indexOf("https://www.rugbypass.tv") === 0 || url.indexOf("http://www.rugbypass.tv") === 0){let a = url.split("?");if(a.length === 1){ele.setAttribute("href",url + "?utm_source=rugbypass.com&utm_medium=referral&utm_campaign=RPTV&utm_content=acquisition&esrefid=e7c1f8c4-ad04-41e6-b3a6-647efa7501c0");}}}});}};UserView = {uid:0,ssoLoginUrl:0,useSSOLogin:0,loginInterval:0,ssoLogin: function (){window.location.href = UserView.ssoLoginUrl;},closeSSOLogin: function (){document.querySelector(".sso-login").classList.remove("show");clearInterval(UserView.loginInterval);},register : function (){UserView.ssoLogin();},toggleLogin : function (){UserView.ssoLogin();},};SSOLogin = {init: function (){if(window.location.hash) {let parts = window.location.hash.split("=");if(parts.shift() === "#id_token"){let value = parts.join("");console.log(value);}}}};AddServer = {device:"Desktop",iu: function (){switch (AddServer.device){case "iOS":return "/6428571,91282419/RugbyPass-Video-iOS&description_url=rugbypass.com&tfcd=0&npa=0&sz=640x480&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=";case "Android":return "/6428571,91282419/RugbyPass-Video-Android&description_url=rugbypass.com&tfcd=0&npa=0&sz=640x480&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator="}return "/6428571,91282419/RugbyPass-Video-Desktop&description_url=rugbypass.com&tfcd=0&npa=0&sz=640x480&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=";},url: function (){return "https://pubads.g.doubleclick.net/gampad/ads?iu=" + AddServer.iu();}};PageViewTracking = {completed:[],send: function(type,id,path) {let key = type + "-" + id;if(PageViewTracking.completed[key] !== 1) {PageViewTracking.completed[key] = 1;const xhttp = new XMLHttpRequest();
1xhttp.open("get",DOM.url + 'api/tracking/' +type + "/" + id + "/" + path, true);const form = new FormData();xhttp.send(form);}}};function MailchimpPopup(id,key){this.key = key;this.form = document.querySelector("#" + id);this.thnks = this.form.querySelector(".thanks");this.token = this.form.querySelector("input[name='token']");this.email = this.form.querySelector("input[name='email']");this.btn = this.form.querySelector(".btn");const scope = this;this.form.querySelector(".btn").addEventListener("click",function (){scope.submit();});this.form.querySelector(".btn").addEventListener("touchstart",function (){scope.submit();});}MailchimpPopup.prototype.submit = function (){if(GlobalView.validateEmail(this.email.value)){const scope = this;this.btn.classList.add("sending");grecaptcha.ready(function() {grecaptcha.execute(scope.key, {action: 'submit'}).then(function(token) {DOM.ajax("mailchimp-popup",{email: scope.email.value, token: token},"POST","json",function (data){ if(data.success){ scope.form.classList.add("sent"); scope.btn.classList.remove("sending"); scope.email.value = ""; }});});});}};AppView = {comp:[],init : function (){let width = 0;document.querySelectorAll(".icons-scroller img").forEach(function (ele){width += ele.offsetWidth + 50;});document.querySelector(".icons-scroller").style.width = width + 'px';window.addEventListener("scroll",()=>{AppView.scroll()});},scroll: ()=>{document.querySelectorAll(".transition").forEach(function (ele){if(ele.getBoundingClientRect().top < window.innerHeight - 100){ele.classList.remove("transition");ele.classList.add("transition-in");}});}};

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.