1function createScript(url, id) { 2 const script = document.createElement('script'); 3 script.src = url; 4 script.id = id; 5 document.head.appendChild(script); 6} 7 8function removeScripts(arr) { 9 arr.forEach((item) => { 10 document.querySelector('#' + item).remove(); 11 }); 12} 13 14jQuery(function () { 15 jQuery('.menu-link').click(function (e) { 16 e.preventDefault(); 17 var $container = jQuery('.slides'); 18 var target = jQuery($.attr(this, 'href')); 19 $container.animate( 20 { scrollTop: $container.scrollTop() + target.offset().top }, 21 500 22 ); 23 }); 24 25 jQuery('.body-slider').tinycarousel({ 26 bullets: true, 27 interval: true, 28 intervalTime: 10000, 29 }); 30 31 jQuery('.body-slider .viewport').mouseover(function () { 32 jQuery(this).closest('.body-slider').data('plugin_tinycarousel').stop(); 33 return false; 34 }); 35 36 jQuery('.body-slider .viewport').mouseout(function () { 37 jQuery(this).closest('.body-slider').data('plugin_tinycarousel').start(); 38 return false; 39 }); 40 41 jQuery('.body-slider .bullets .pp-button').click(function () { 42 if (jQuery(this).hasClass('pause')) { 43 jQuery(this).closest('.body-slider').data('plugin_tinycarousel').stop(); 44 jQuery(this).removeClass('pause').addClass('play'); 45 } else { 46 jQuery(this).closest('.body-slider').data('plugin_tinycarousel').start(); 47 jQuery(this).removeClass('play').addClass('pause'); 48 } 49 }); 50 51 jQuery('.slides').scroll(function () { 52 jQuery('.topBarCont').toggleClass( 53 'animate-hide', 54 jQuery(this).scrollTop() < 55 jQuery('.slide-content .logo').position().top + 56 jQuery('.slide-content .logo').height() 57 ); 58 }); 59 60 jQuery('.expand-section').click(function () { 61 jQuery(this) 62 .toggleClass('toggle-open') 63 .siblings('ul') 64 .toggleClass('animate-hide'); 65 }); 66});
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.