| Server IP : 5.129.245.98 / Your IP : 216.73.217.98 Web Server : Apache/2.4.66 (Debian) System : Linux 1b8c17c336b9 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/themes/rehub-theme/js/ |
Upload File : |
/*Lazy load video*/
const lazyvid = document.getElementsByClassName('rh_lazy_load_video');
if(lazyvid.length){
function updateVideo() {
let id = this.dataset.videoid;
let width = this.dataset.width;
let height = this.dataset.height;
let hoster = this.dataset.hoster;
this.classList.add("video-container");
this.classList.remove("rh_videothumb_link");
this.classList.remove("cursorpointer");
if(hoster=='vimeo'){
this.innerHTML =
'<iframe src="//player.vimeo.com/video/'
+ id
+ '?autoplay=1&autopause=0" width="'+width+'" height="'+height+'" frameborder="0" allowfullscreen></iframe>';
}else if(hoster=='youtube'){
this.innerHTML =
'<iframe src="//www.youtube.com/embed/'
+ id
+ '?modestbranding=1&autoplay=1" width="'+width+'" height="'+height+'" frameborder="0" allowfullscreen></iframe>';
}
}
for (i = 0; i < lazyvid.length; i++) {
lazyvid[i].addEventListener("click", updateVideo);
}
}