1var galleryArray=$('.video-gallery-item');var galArrayIndex;if(galleryArray!==''){$(document).keydown(function(e){var arrayChecker=$('.video-gallery-item');var activeCheck=arrayChecker.filter('.active-gallery-video');activeCheck=arrayChecker.index(activeCheck);if(activeCheck!=-1){if(e.keyCode==37){checkGalArray('left');} 2if(e.keyCode==39){checkGalArray('right');}}});$('body').on('click','.nav-gal-left',function(){checkVidGalArray('left');});$('body').on('click','.nav-gal-right',function(){checkVidGalArray('right');});} 3function checkVidGalArray(moveSide){galleryArray=$('.video-gallery-item');var currentItem=galleryArray.filter('.active-gallery-video');var currentIndex=galleryArray.index(currentItem);for(galArrayIndex=0;galArrayIndex<galleryArray.length;++galArrayIndex){var curVal=$(galleryArray[galArrayIndex]);} 4if(moveSide=='left'){$('.active-gallery-video').removeClass('active-gallery-video');currentIndex=currentIndex-1;if(currentIndex<0){currentIndex=(galleryArray.length-1);} 5$(galleryArray[currentIndex]).addClass('active-gallery-video');var newHTML=galleryArray[currentIndex];var newVideo=$(newHTML).find('iframe').attr('src');$('.popup-box-video').find('iframe').attr('src',newVideo);} 6if(moveSide=='right'){$('.active-gallery-video').removeClass('active-gallery-video');currentIndex=currentIndex+1;if(currentIndex>(galleryArray.length-1)){currentIndex=0;} 7$(galleryArray[currentIndex]).addClass('active-gallery-video');var newHTML=galleryArray[currentIndex];var newVideo=$(newHTML).find('iframe').attr('src');$('.popup-box-video').find('iframe').attr('src',newVideo);}} 8$('body').on('click','.gallery-video, .gallery-overlay',function(){var currentVideo=$(this).parent().find('iframe');currentVideo=currentVideo.attr('src');if(currentVideo!=''&&typeof(currentVideo)!='undefined'){if(currentVideo.match('^https://www.youtube.com/')||currentVideo.match('^https://www.youtu.be/')){currentVideo=currentVideo+'?autoplay=1';} 9else{currentVideo=currentVideo+'?autoplay=1';} 10$(this).parent().addClass('active-gallery-video');$(this).parents('.odd-even-row').find('.popup-box-video').find('iframe').attr('src',currentVideo);$(this).parents('.odd-even-row').find('.popup-box-video').fadeIn(150);$('.gallery-true-video').css('transform','scale(1)');}});$('body').on('touchstart click','.popup-box-video',function(e){if(!$(e.target).children().hasClass('close-video-box')){} 11else{$('.gallery-true-video').css('transform','scale(0.1)');$('.popup-box-video').fadeOut(100);$('.true-video').attr('src','');$('.active-gallery-video').removeClass('active-gallery-video');}});
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.