1window.document.onkeydown = function(e) { 2 if (!e) { 3 e = event; 4 } 5 if (e.keyCode == 27) { 6 lightbox_close(); 7 } 8} 9 10/*HTML MP4 Video*/ 11function mp4_lightbox_open(postid, autoplayhtm) { 12 document.getElementById('pfv_vvideo_lightbox_'+postid).style.display = 'block'; 13 document.getElementById('pfv_video_fadelayout_'+postid).style.display = 'block'; 14 if(autoplayhtm == 1){ 15 var contro = document.getElementById('pfv_htmlvideo_'+postid); 16 contro.controls = true; 17 contro.play(); 18 } 19} 20function mp4_lightbox_close(postid) { 21 document.getElementById('pfv_vvideo_lightbox_'+postid).style.display = 'none'; 22 document.getElementById('pfv_video_fadelayout_'+postid).style.display = 'none'; 23 var cotrlpause = document.getElementById('pfv_htmlvideo_'+postid); 24 cotrlpause.controls = true; 25 cotrlpause.pause(); 26} 27 28/*Youtube Lightbox open*/ 29 30function ytube_lightbox_open(postid, ytubautoplay) { 31 var lightBoxVideo = document.getElementById("pfviframeVideo_"+postid); 32 //window.scrollTo(0, 0); 33 document.getElementById('pfv_vvideo_lightbox_'+postid).style.display = 'block'; 34 document.getElementById('pfv_video_fadelayout_'+postid).style.display = 'block'; 35 if(ytubautoplay == 1){ 36 var symbol = jQuery("#pfviframeVideo_"+postid)[0].src.indexOf("?") > -1 ? "&" : "?"; 37 jQuery("#pfviframeVideo_"+postid)[0].src += symbol + "autoplay=1"; 38 } 39 // Remove hash from URL 40 setTimeout(function() { 41 var url = window.location.href; 42 if (url.indexOf('#') > -1) { 43 var cleanUrl = url.split('#')[0]; 44 history.replaceState(null, null, cleanUrl); 45 } 46 }, 100); // Delay to ensure the popup has time to open 47} 48 49function ytube_lightbox_close(postid) { 50 document.getElementById('pfv_vvideo_lightbox_'+postid).style.display = 'none'; 51 document.getElementById('pfv_video_fadelayout_'+postid).style.display = 'none'; 52 var testvar = jQuery("#pfviframeVideo_"+postid).attr('src'); 53 var arr=testvar.split('?'); 54 jQuery("#pfviframeVideo_"+postid).attr('src',arr[0]); 55} 56 57/*Vimeo Video*/ 58 59function vmio_lightbox_open(postid, vmioautoplay) { 60 var vimlightBoxVideo = document.getElementById("pfviframeVideo_"+postid); 61 //window.scrollTo(0, 0); 62 document.getElementById('pfv_vvideo_lightbox_'+postid).style.display = 'block'; 63 document.getElementById('pfv_video_fadelayout_'+postid).style.display = 'block'; 64 65 if(vmioautoplay == 1){ 66 var symbol = jQuery("#pfviframeVideo_"+postid)[0].src.indexOf("?") > -1 ? "&" : "?"; 67 jQuery("#pfviframeVideo_"+postid)[0].src += symbol + "autoplay=1"; 68 } 69 // Remove hash from URL 70 setTimeout(function() { 71 var url = window.location.href; 72 if (url.indexOf('#') > -1) { 73 var cleanUrl = url.split('#')[0]; 74 history.replaceState(null, null, cleanUrl); 75 } 76 }, 100); // Delay to ensure the popup has time to open 77} 78function vmio_lightbox_close(postid) { 79 document.getElementById('pfv_vvideo_lightbox_'+postid).style.display = 'none'; 80 document.getElementById('pfv_video_fadelayout_'+postid).style.display = 'none'; 81 var testvar = jQuery("#pfviframeVideo_"+postid).attr('src'); 82 var arr=testvar.split('?'); 83 jQuery("#pfviframeVideo_"+postid).attr('src',arr[0]); 84} 85 86 87jQuery(document).ready(function(){ 88 jQuery('.blog').find('.modelpup > a').attr('href', 'javascript:void(0)'); 89 jQuery('.blog').find('.pfv_vidBox').parent().attr('href', 'javascript:void(0)'); 90});
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.