1/* 2You can use this file with your scripts. 3It will not be overwritten when you upgrade solution. 4*/ 5$( document ).ready(function() { 6 var $page = $('html, body'); 7 $('a[href*="#"]').click(function() { 8 $page.animate({ 9 scrollTop: $($.attr(this, 'href')).offset().top - 100 10 }, 400); 11 return false; 12 }); 13 let videoPrev = $('#mainOpenVideo') 14 let videoModal = $('#modal-videos') 15 let videoModalContent = $('#modal-videos .content') 16 let close = $('#modal-videos .close') 17 close.click(function (event){ 18 videoModal.removeClass('active') 19 videoModalContent.empty() 20 }) 21 videoPrev.click(function(event) { 22 event.preventDefault(); 23 let videoSrc = videoPrev.data().video; 24 videoModal.addClass('active') 25 videoSrc = videoSrc.split('?').slice(0) 26 videoSrc = videoSrc[0] 27 videoModalContent.html('<iframe width="100%" height="100%" src="' + videoSrc + '?autoplay=1&enablejsapi=1&controls=0&showinfo=0&rel=0&disablekb=1&iv_load_policy=3" frameborder="0" allow="autoplay" allowfullscreen></iframe>'); 28 setTimeout(function() { 29 let iframe = videoModalContent.querySelector('iframe'); 30 iframe.src = iframe.src + '?autoplay=1'; 31 }, 2000); 32 }); 33}); 34 35
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.