PageSourceSearch

https://www.rugbydump.com/js/load-js?bundle=article&ver=04.11.2025

js rugbydump.com collected 2026-10-02 11:05:55 UTC 37,231 bytes, 1 lines download raw bytes

1DOM = {url: "",mobile: false,tablet: false,xhttp: false,toggleClass: function (t,c){document.querySelector(t).classList.toggle(c);},removeClass: function (t,c){const items = document.querySelectorAll(t);items.forEach(function(elem) {elem.classList.remove(c);});},addClass: function (t,c){document.querySelector(t).classList.add(c);},click: function (t,f){const items = document.querySelectorAll(t);items.forEach(function(elem) {elem.addEventListener("click",f);});},shuffle : function (t){return t;},change: function (t,f){document.querySelector(t).addEventListener("change",f);},ajax: function (u,d,t,f,m){if(DOM.xhttp){DOM.xhttp.close();}d.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(t,DOM.url + u, true);const form = new FormData();for(let i in d){form.set(i,d[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;},text : function (t,v){if(v === undefined){return document.querySelector(t).innerText;}document.querySelector(t).innerText = v;},dd : function (){const items = document.querySelectorAll(".drop-down");items.forEach(function(elem) {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){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){return document.querySelector(t).getAttribute(a);},rv : function (){},visible : function (t){const element = document.querySelector(t);return element.getBoundingClientRect().width > 0;},val : function (t,v){if(v === undefined){return document.querySelector(t).value;}document.querySelector(t).value = v;},submit : function (t){document.querySelector(t).submit();},validateEmail:function (address) {const reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;return reg.test(address);},scroll : function (v){window.scrollTo({top:v, left: 0, behavior: 'smooth'});},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=/";}};!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");
vendor: 5,660 bytes, line 1
1if(!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);
1if(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:{});Forms = {init : function(){const items = document.querySelectorAll(".checkbox");items.forEach(function(elem) {elem.addEventListener("click",function (e){elem.classList.toggle("selected");elem.querySelector("input").value = elem.classList.contains("selected") ? "1" : "0";});elem.addEventListener("touchstart",function (e){elem.classList.toggle("selected");elem.querySelector("input").value = elem.classList.contains("selected") ? "1" : "0";});});},shareFacebook : function(){FB.ui({method: 'share',href: window.location.href}, function(response){});},shareTwitter : function(text){if(!text){text = $("title").text();}window.open("http://twitter.com/share?text=" + text + "&url=" + window.location.href,"","width=500, height=300");},shareEmail : function(link,title){let valid = true;const yourEmail = document.querySelector(".your-email");const theirEmail = document.querySelector(".friends-email");const btn = document.querySelector(".send-btn");theirEmail.classList.remove("error");yourEmail.classList.remove("error");const sender = yourEmail.value;const recipient = theirEmail.value;if(!Forms.validateEmail(sender)){valid = false;yourEmail.classList.add("error");}if(!Forms.validateEmail(recipient)){valid = false;theirEmail.classList.add("error");}if(!valid) return;btn.style.display = "none";DOM.ajax("email-share",{sender:sender,recipient:recipient,link:link,title:title},"post","json",function(data){if(data.success){document.querySelector("#share-email-popup-form").style.display = "none";document.querySelector("#share-email-popup-thanks").style.display = "block";setTimeout(function (){document.querySelector(".share-email-popup").classList.remove("show");document.querySelector("#share-email-popup-form").style.display = "block";document.querySelector("#share-email-popup-thanks").style.display = "node";btn.style.display = "block";},3000);} else {document.querySelector("#share-email-popup-form").style.display = "none";document.querySelector("#share-email-popup-error").style.display = "block";setTimeout(function (){document.querySelector(".share-email-popup").classList.remove("show");document.querySelector("#share-email-popup-form").style.display = "none";document.querySelector("#share-email-popup-error").style.display = "block";btn.style.display = "block";},3000);}});},validateEmail:function (address) {const reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;return reg.test(address);}};HeaderView = {keywords:0,baseUrl:"",init : function(){const items = document.querySelectorAll(".drop-down");items.forEach(function (elem) {elem.addEventListener('open', function (e) {DOM.addClass("header", "dropdown-is-open");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) {DOM.removeClass("header", "dropdown-is-open");elem.classList.remove("open");elem.removeEventListener("mousedown", () => { });window.removeEventListener("mousedown", () => { });}, false);const label = elem.querySelector(".label");if(label !== null){label.addEventListener("click", function (){items.forEach(function (oElem) {oElem.dispatchEvent(new Event('close'));});elem.dispatchEvent(new Event('open'));});}});const searchItems = document.querySelectorAll(".search");
1searchItems.forEach(function (elem) {elem.addEventListener("open",function (){elem.addEventListener("mousedown",function (ev){ev.stopPropagation();});window.addEventListener("mousedown",function (ev){elem.dispatchEvent(new Event("close"));});DOM.addClass("body","open-search");});elem.addEventListener("close",function (){elem.removeEventListener("mousedown",function (ev){ev.stopPropagation();});window.removeEventListener("mousedown",function (ev){elem.dispatchEvent(new Event("close"));});DOM.removeClass("body","open-search");});const icon = elem.querySelector(".icon");const keywords = elem.querySelector(".keywords");icon.addEventListener("click",function (e){elem.dispatchEvent(new Event("open"));keywords.focus();});keywords.addEventListener("keyup",function (e){if(e.keyCode === 13){HeaderView.search(keywords.value);}});});window.addEventListener("hashchange", HeaderView.locationHashChanged, false);},search:function(value){if(HeaderView.searching) return;HeaderView.searching = true;window.location.href = HeaderView.baseUrl + "search/" + encodeURIComponent(value);},locationHashChanged : function() {switch(location.hash){case "#user-login":HeaderView.showLogin();location.hash = "open";break;case "#user-signup":HeaderView.showRegister();location.hash = "open";break;case "#open":break;default:HeaderView.closeAllForms();break;}},showLogin:function(){HeaderView.closeAllForms();DOM.addClass(".login-register-box","login");},showRegister:function(){HeaderView.closeAllForms();DOM.addClass(".login-register-box","register");},showRegisterThanks:function(){HeaderView.closeAllForms();DOM.addClass(".login-register-box","register-thanks");if(DOM.visible("#under-or-equal-to-767")){DOM.scroll(800);}},hideRegisterLogin : function (){location.hash = "";},closeAllForms : function (){document.querySelector(".login-register-box").classList.remove("login","register","register-thanks")}};LoginRegisterView = {init: function(key){LoginRegisterView.recaptchClientKey = key;DOM.click("#bnt-register", LoginRegisterView.register);DOM.click("#bnt-login",LoginRegisterView.login);},login : function(){if(LoginRegisterView.validateLogin()){grecaptcha.ready(function() {grecaptcha.execute(LoginRegisterView.recaptchClientKey, {action: 'submit'}).then(function(token) {DOM.val("#login-token",token);DOM.submit("#login-form");});});}},register : function(){if(LoginRegisterView.validateRegistration()){grecaptcha.ready(function() {grecaptcha.execute(LoginRegisterView.recaptchClientKey, {action: 'submit'}).then(function(token) {DOM.val("#register-token",token);DOM.submit("#register-form");});});}},validateRegistration : function(){let valid = true;DOM.removeClass(".error","error");if(DOM.val("#comment-register-firstname") == ""){valid = false;DOM.addClass("#comment-register-firstname","error");}if(DOM.val("#comment-register-lastname") == ""){valid = false;DOM.addClass("#comment-register-lastname","error");}if(DOM.val("#comment-register-username") == ""){valid = false;DOM.addClass("#comment-register-username","error");}if(!DOM.validateEmail(DOM.val("#comment-register-email"))){valid = false;DOM.addClass("#comment-register-email","error");}if(DOM.val("#comment-register-password") == ""){valid = false;DOM.addClass("#comment-register-password","error");}if(DOM.val("#comment-register-password") != DOM.val("#comment-register-password-2") || DOM.val("#comment-register-password-2") == ""){valid = false;DOM.addClass("#comment-register-password-2","error");}return valid;},validateLogin : function(){let valid = true;DOM.removeClass(".error","error");if(DOM.val("#comment-username") == ""){valid = false;DOM.addClass("#comment-username","error");}if(DOM.val("#comment-password") == ""){valid = false;DOM.addClass("#comment-password","error");}return valid;}};CountBannerView = {name:"CountBannerView",enableCounter:1,enableSeconds:1,sec:0,min:0,hour:0,day:0,intervalID:0,init : function (){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);}}},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);$(".lions-countdown").addClass("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;}};ArticleView = {name:"ArticleView",recaptchClientKey:"",iframes:0,post:0,tags:"",init : function(key) {ArticleView.iframes = [];const items = document.querySelectorAll(".article-content iframe");items.forEach(function (elem, index, parent){if(elem.getAttribute("id") === "reddit-embed"){elem.parentElement.classList.add("reddit-iframe");}else{elem.parentElement.classList.add("iframe");}});DOM.ajax("update-post-view",{post:ArticleView.post,tags:ArticleView.tags},"post");}};BCPlaylist = {ready:0,id:0,serverUrl:0,container:0,embedContainer:0,videoContainer:0,videoPlayer:0,videos:0,index:0,player:0,playing:0,allowFixedVideo:1,init : function (){BCPlaylist.container = document.querySelector("#brightcove-embedded-container");BCPlaylist.container.innerHTML = BCPlaylist.initHtml();BCPlaylist.embedContainer = document.querySelector("#brightcove-embedded-scroll-player-container");BCPlaylist.videoContainer = document.querySelector("#brightcove-embedded-container");BCPlaylist.videoPlayer = document.querySelector("#brightcove-embedded-container .embedded-video");DOM.click("#brightcove-embedded-container .embedded-video .video-player-close", BCPlaylist.unStickVideo);if(BCPlaylist.container.dataset.videos !== null && BCPlaylist.container.dataset.videos !== undefined){if(BCPlaylist.container.dataset.videos !== ''){BCPlaylist.videos = JSON.parse(BCPlaylist.container.dataset.videos);BCPlaylist.videos = DOM.shuffle(BCPlaylist.videos);BCPlaylist.id = BCPlaylist.videos[0];BCPlaylist.ready = 1;window.bcPlayers.push(BCPlaylist);}}},bcPlayersStart: function (){BCPlaylist.start();},unStickVideo: function () {BCPlaylist.allowFixedVideo = 0;BCPlaylist.pause();BCPlaylist.playing = 0;BCPlaylist.videoContainer.classList.remove("fixed-in", "in");setTimeout(function () {BCPlaylist.videoContainer.classList.remove("fixed", "fixed-new");}, 500);},start : function (){BCPlaylist.embedContainer.innerHTML = BCPlaylist.embedVideo();bc(document.getElementById("brightcove-embedded-video"));videojs("brightcove-embedded-video").on('ended',function(){BCPlaylist.index++;if(BCPlaylist.index === BCPlaylist.videos.length){BCPlaylist.index = 0;}BCPlaylist.id = BCPlaylist.videos[BCPlaylist.index];BCPlaylist.start();});videojs("brightcove-embedded-video").on('pause',function(){BCPlaylist.playing = 0;});videojs("brightcove-embedded-video").on('play',function(e){BCPlaylist.playing = 1;});videojs("brightcove-embedded-video").on('loadedmetadata',function(){BCPlaylist.currentVideo = this.catalog.data;BCPlaylist.addVideoCopy();});},play : function (){if(!BCPlaylist.playing && BCPlaylist.player){BCPlaylist.player.play();}},pause : function (){if(BCPlaylist.playing && BCPlaylist.player){BCPlaylist.player.pause();}},embedVideo: function (){return '<video id="brightcove-embedded-video" data-video-id="'+BCPlaylist.id+'" playsinline="true" width="100%" height="100%" muted="true" data-account="5446914862001" data-embed="default" data-application-id class="video-js" controls></video>';},initHtml: function (){return '' +'<div class="embedded-video">' +'<img class="image" src="https://eu-cdn.rugbypass.com/images/video-player/spacer-new.png" alt="Video Spacer" width="100%">' +'<div class="gradient top "></div>' +'<div class="embedded-copy"></div>
1' +'<div id="brightcove-embedded-scroll-player-container"></div>' +'<div class="video-player-close"><div class="cross"></div></div>' +'</div>' +'<div class="embedded-video-spacer">' +'<img class="image" src="https://eu-cdn.rugbypass.com/images/video-player/spacer-new.png" alt="Video Spacer" width="100%">' +'</div>' +'<div class="embedded-copy"></div>';},addVideoCopy : function (){document.querySelectorAll("#brightcove-embedded-container .embedded-copy").forEach(function (ele, index){ele.innerHTML = '<div>' + BCPlaylist.currentVideo.name + '</div><span class="read-story">' + (BCPlaylist.currentVideo.link === null ? "" : BCPlaylist.currentVideo.link.text + '</span><a href="' + BCPlaylist.currentVideo.link.url + '" class="link-box"></a>');});},checkIfVideoInView: function () {if (BCPlaylist.isScrolledIntoView()) {BCPlaylist.play();} else {if (!BCPlaylist.videoContainer.classList.contains("fixed-new") && !BCPlaylist.videoContainer.classList.contains("fixed")) {BCPlaylist.pause();} else {BCPlaylist.play();}if (document.body.classList.contains("no-scroll-video") || UserView.hasAccess === 1) {BCPlaylist.pause();}}},isScrolledIntoView: function () {const rect = BCPlaylist.videoContainer.getBoundingClientRect();BCPlaylist.videoContainer.classList.remove("fixed-new");BCPlaylist.videoContainer.classList.remove("in");if (rect.bottom < 0 && BCPlaylist.allowFixedVideo === 1) {if (UserView.hasAccess === 1) {return false;}if (!document.body.classList.contains("no-scroll-video")) {if (document.querySelector("#green-fixed-nav-single")) {if (!BCPlaylist.videoPlayer.classList.contains("plus-nav") && document.querySelector("#green-fixed-nav-single").classList.contains("plus")) {BCPlaylist.videoPlayer.classList.add("plus-nav");}}if (!BCPlaylist.videoContainer.classList.contains("fixed")) {BCPlaylist.videoContainer.classList.add("fixed");setTimeout(function () {BCPlaylist.videoContainer.classList.add("fixed-in");}, 50);}}return false;} else {if (!document.body.classList.contains("no-scroll-video")) {if (BCPlaylist.videoContainer.classList.contains("fixed")) {BCPlaylist.videoContainer.classList.remove("fixed-in");setTimeout(function () {BCPlaylist.videoContainer.classList.remove("fixed");}, 500);}}}return rect.top < window.innerHeight;}};function VideoPlayer(id,index,ap,hasEs,tags,date){var id,videoId,index,videoPlayer,videoContainer,player,playerId,autoPlay,isHomeFeatured,allowPlay,scrollMin,videoScrollSpacer,videoPlayerTop,videoPlayerHeight,fixFromBottom,endScreen,endScreenVideos,endScreenSet,hasEndScreen,tags,date,autoPlayIndex,autoPlaySet,isAdPlaying;this.id = id;this.videoId = id;this.player = 0;this.playerPlayed = 0;this.videoPlayerTop = 0;this.isHomeFeatured = 0;this.endScreen = 0;this.endScreenSet = 0;this.autoPlayIndex = 0;this.autoPlaySet = 0;this.hasEndScreen = hasEs;this.tags = tags;this.date = date;this.allowPlay = 1;this.isAdPlaying = false;this.fixFromBottom = 1;this.autoPlay = ap;var userAddPlayer = true;this.playerId = "tO1Ng4lZZ1";this.index = index;this.videoPlayer = document.querySelector("#video-player-" + id);this.videoContainer =document.querySelector("#video-player-container-" + id);this.endScreen = this.videoPlayer.querySelector(".end-screen");this.endScreenVideos = this.videoPlayer.querySelector(".end-screen-videos");this.scrollMin = this.videoPlayer.getAttribute("data-scroll-min") == "1";var $scope = this;this.videoPlayer.querySelector(".video-player-click").addEventListener("click",function(){if(!$scope.autoPlay){$scope.playVideo();}});this.videoPlayer.querySelector(".video-player-close").addEventListener("click",function(){$scope.closeVideo();});if(this.scrollMin){this.videoScrollSpacer = document.querySelector("#video-scroll-min-spacer-" + id);window.addEventListener("scroll",function (){$scope.watchScollMin();});window.addEventListener("resize",function (){$scope.watchScollResize();});}window.bcPlayers.push(this);}VideoPlayer.prototype.bcPlayersStart = function(){this.playVideo();};VideoPlayer.prototype.watchScollResize = function(){if(this.videoPlayer.classList.contains("fixed")){this.videoPlayer.style.right = "20px";this.videoPlayer.style.bottom = "20px";}else{this.videoPlayerHeight = this.videoPlayer.height;}};VideoPlayer.prototype.animateScrollMin = function(){this.videoPlayer.style.bottom = "20px";};VideoPlayer.prototype.watchScollMin = function(){if(this.videoPlayer.classList.contains("fixed-closed") || !this.videoPlayer.height) return;const st = window.scrollY;const rect = this.videoPlayer.getBoundingClientRect();
1if(!this.videoPlayerTop){this.videoPlayerTop = rect.top;this.videoPlayerHeight = this.videoPlayer.height;}if(st - 100 > this.videoPlayerTop + this.videoPlayerHeight){if(!this.videoPlayer.classList.contains("fixed")){this.videoPlayer.classList.add("fixed");this.animateScrollMin();this.videoScrollSpacer.classList.add("fixed");}}else{if(this.videoPlayer.classList.contains("fixed")) {this.videoPlayer.style.top = "";this.videoPlayer.classList.remove("fixed un-fixing");}}};VideoPlayer.prototype.stopVideo = function(){if(this.player){if(this.isAdPlaying){this.player.ima3.adPlayer.pause();}else{this.player.pause();}}};VideoPlayer.prototype.closeVideo = function(){this.stopVideo();this.videoPlayer.classList.remove("fixed");this.videoScrollSpacer.classList.remove("fixed");};VideoPlayer.prototype.playVideo = function(){if(this.playerPlayed) return;this.videoContainer.innerHTML = this.videoEmbed();this.videoPlayer.classList.add("playing");console.log(this.videoId);const $scope = this;bc(document.getElementById("video-player-embed-"+this.videoId));videojs("video-player-embed-"+this.videoId).on('loadedmetadata',function(){$scope.player = this;if($scope.allowPlay){$scope.player.muted(true);$scope.player.play();$scope.playerPlayed = 1;}if($scope.hasEndScreen && !$scope.endScreenSet){$scope.loadEndScreen();$scope.endScreenSet = 1;}});videojs("video-player-embed-"+this.videoId).on('ready',function(){});videojs("video-player-embed-"+this.videoId).on('play',function(){$scope.videoPlayer.classList.remove("fixed-closed");});videojs("video-player-embed-"+this.videoId).on(["ads-ad-started","pause","ads-ad-ended","ima3-complete","ima3-started","ads-ad-skipped","adserror","ads-allpods-completed"],function(e) {$scope.player = this;if (e.type == "ads-ad-started" || e.type == "ima3-started") {$scope.isAdPlaying = true;$scope.player.ima3.adPlayer.on('play',function(){});} else {$scope.isAdPlaying = false;}});if($scope.hasEndScreen){videojs("video-player-embed-"+this.videoId).on('ended',function(){$scope.player = this;if($scope.autoPlaySet){$scope.autoPlayIndex++;if($scope.autoPlayIndex < 12){$scope.playeNextAutoPlayVideo();}else{$scope.endScreen.classList.add("show");}}else{$scope.endScreen.classList.add("show");}});}};VideoPlayer.prototype.videoEmbed = function(){return '<video-js id="video-player-embed-'+this.videoId+'" muted="true" data-video-id="'+this.videoId+'" data-account="5446914862001" data-player="tO1Ng4lZZ1" playsinline data-embed="default" data-application-id class="video-js" controls></video-js>';};VideoPlayer.prototype.loadEndScreen = function(){var $scope = this;$.ajax({type: 'POST',url: DOM.url + 'getTags.php',data:{tags:$scope.tags,date:$scope.date},datatype: 'json',success: function(data){var items = JSON.parse(data);var l = items.length;var n = 0;var s = 0;for (var i = 0; i < l; i++) {if(s && items[i]['images']['thumbnail']){$scope.endScreenVideos.append('<div data-id="'+items[i]['id']+'" data-index="'+n+'" class="end-screen-item"><div class="end-screen-item-image" style="background: url(' + items[i]['images']['thumbnail']['src'] + ');background-size: cover;"></div><div class="title">' + items[i]['name'] + '</div></div>');n++;}if(n == 12){break;}if(parseInt(items[i]['id']) == parseInt($scope.videoId)){s = 1;}}if(n < 12){var n = 0;$scope.endScreenVideos.html("");for (var i = 0; i < l; i++) {if(parseInt(items[i]['id']) != parseInt($scope.videoId) && items[i]['images']['thumbnail']){$scope.endScreenVideos.append('<div data-id="'+items[i]['id']+'" data-index="'+n+'" class="end-screen-item"><div class="end-screen-item-image" style="background: url(' + items[i]['images']['thumbnail']['src'] + ');background-size: cover;"></div><div class="title">' + items[i]['name'] + '</div></div>');n++;}if(n == 12){break;}}}$scope.endScreen.querySelector(".end-screen-item").addEventListener("click",function(){$scope.playEndScreenVideo(this.getAttribute("data-id"));});$scope.endScreen.querySelector(".auto-play-next").addEventListener("click",function(){$scope.autoPlayEndSrreen();});$scope.endScreen.querySelector(".vjs-social-share-link").addEventListener("click",function(e){e.preventDefault();window.open(this.getAttribute("href"),"","toolbar=no,width=550, height=350");});},xhrFields: {onprogress: function(e) {}},error: function (xhr, ajaxOptions, thrownError) {console.log('ERROR');console.log(xhr.responseText);console.log(thrownError);}});};VideoPlayer.prototype.playEndScreenVideo = function(id){;this.playerPlayed = 0;this.videoId = id;this.playVideo();this.endScreen.removeClass("show");};VideoPlayer.prototype.autoPlayEndSrreen = function(){this.autoPlaySet = 1;this.playeNextAutoPlayVideo();};VideoPlayer.prototype.playeNextAutoPlayVideo = function(){this.playEndScreenVideo(this.endScreen.querySelector(".end-screen-item[data-index='"+this.autoPlayIndex+"']").getAttribute("data-id"));};BrightCoveEmbeddedScrollVideo = {videoPlaying:0,videoPlayer:0,videoPlayerContainer:0,videoContainer:0,allowFixedVideo:1,videoId:1,player:1,isAdPlaying:0,init : function(id,old){BrightCoveEmbeddedScrollVideo.videoId = id;BrightCoveEmbeddedScrollVideo.videoPlaying = false;BrightCoveEmbeddedScrollVideo.videoPlayer = document.querySelector("#brightcove-embedded-container .embedded-video");BrightCoveEmbeddedScrollVideo.videoPlayerContainer = document.querySelector("#brightcove-embedded-scroll-player
1-container");BrightCoveEmbeddedScrollVideo.videoContainer =document.querySelector("#brightcove-embedded-container");const pItems = BrightCoveEmbeddedScrollVideo.videoPlayer.querySelectorAll("p");pItems.forEach(function (elem,index){elem.remove();});DOM.click("#brightcove-embedded-container .embedded-video .video-player-close",BrightCoveEmbeddedScrollVideo.unStickVideo);window.bcPlayers.push(BrightCoveEmbeddedScrollVideo)},bcPlayersStart : function (){BrightCoveEmbeddedScrollVideo.setVideo();window.addEventListener("scroll",function (){BrightCoveEmbeddedScrollVideo.checkIfVideoInView();});},setVideo : function(){BrightCoveEmbeddedScrollVideo.videoPlayerContainer.innerHTML = BrightCoveEmbeddedScrollVideo.videoEmbed();bc(document.getElementById("brightcove-embedded-video"));videojs("brightcove-embedded-video").on('loadedmetadata',function(){BrightCoveEmbeddedScrollVideo.player = this;BrightCoveEmbeddedScrollVideo.player.muted(true);});videojs("brightcove-embedded-video").on('ready',function(){BrightCoveEmbeddedScrollVideo.player = this;});videojs("brightcove-embedded-video").on('play',function(){BrightCoveEmbeddedScrollVideo.allowFixedVideo = 1;});videojs("brightcove-embedded-video").on('ended',function(){});videojs("brightcove-embedded-video").on(["ads-ad-started","pause","ads-ad-ended","ima3-complete","ima3-started","ads-ad-skipped","adserror","ads-allpods-completed"],function(e) {console.log(e.type);if (e.type == "ads-ad-started" || e.type == "ima3-started") {BrightCoveEmbeddedScrollVideo.isAdPlaying = true;BrightCoveEmbeddedScrollVideo.player.ima3.adPlayer.on('play',function(){BrightCoveEmbeddedScrollVideo.allowFixedVideo = 1;});} else {BrightCoveEmbeddedScrollVideo.isAdPlaying = false;}});},videoEmbed:function(){return '<video-js id="brightcove-embedded-video" muted="true" data-video-id="'+BrightCoveEmbeddedScrollVideo.videoId+'" data-account="5446914862001" data-player="yGBvl5dn" playsinline data-embed="default" data-application-id class="video-js" controls></video-js>';},unStickVideo : function(){BrightCoveEmbeddedScrollVideo.allowFixedVideo = 0;BrightCoveEmbeddedScrollVideo.stopVideo();BrightCoveEmbeddedScrollVideo.videoPlaying = false;BrightCoveEmbeddedScrollVideo.videoContainer.classList.remove("fixed-in");setTimeout(function (){BrightCoveEmbeddedScrollVideo.videoContainer.classList.remove("fixed");},500);},stopVideo:function() {BrightCoveEmbeddedScrollVideo.pauseVideo();},playVideo:function() {if(BrightCoveEmbeddedScrollVideo.isAdPlaying){BrightCoveEmbeddedScrollVideo.player.ima3.adPlayer.play();}else{BrightCoveEmbeddedScrollVideo.player.play();}},pauseVideo:function() {if(BrightCoveEmbeddedScrollVideo.isAdPlaying){BrightCoveEmbeddedScrollVideo.player.ima3.adPlayer.pause();}else{BrightCoveEmbeddedScrollVideo.player.pause();}},checkIfVideoInView:function() {if (BrightCoveEmbeddedScrollVideo.isScrolledIntoView()) {if(!BrightCoveEmbeddedScrollVideo.videoPlaying){BrightCoveEmbeddedScrollVideo.videoPlaying = true;BrightCoveEmbeddedScrollVideo.playVideo();}}},isScrolledIntoView : function() {const rect = BrightCoveEmbeddedScrollVideo.videoContainer.getBoundingClientRect();if(window.scrollY < 100) return false;if(BrightCoveEmbeddedScrollVideo.allowFixedVideo){if(rect.bottom < 0 || (BrightCoveEmbeddedScrollVideo.videoPlaying && rect.top > window.innerHeight)){if(!BrightCoveEmbeddedScrollVideo.videoContainer.classList.contains("fixed")){BrightCoveEmbeddedScrollVideo.videoContainer.classList.add("fixed");setTimeout(function (){BrightCoveEmbeddedScrollVideo.videoContainer.classList.add("fixed-in");},50);}return true;}else{if(BrightCoveEmbeddedScrollVideo.videoContainer.classList.contains("fixed")) {BrightCoveEmbeddedScrollVideo.videoContainer.classList.remove("fixed-in");setTimeout(function (){BrightCoveEmbeddedScrollVideo.videoContainer.classList.remove("fixed");},500);}}}else{return false;}const docViewBottom = window.scrollY + window.innerHeight;return (rect.bottom >= window.scrollY &&rect.top <= docViewBottom &&rect.bottom <= docViewBottom &&rect.top >= window.scrollY);}};

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.