1function loadScript(url, callback) { 2 var script = document.createElement('script'); 3 script.type = 'text/javascript'; 4 script.src = url; 5 script.onload = callback; 6 document.body.appendChild(script); 7} 8 9// Load wow.js library dynamically 10loadScript('https://cdnjs.cloudflare.com/ajax/libs/wow/1.1.2/wow.js', function() { 11 // Code to execute after wow.js has loaded 12 console.log('wow.js loaded successfully.'); 13 14 // Initialize WOW after the script has loaded 15 new WOW().init(); 16}); 17 18 19// Select all links with hashes and smooth scroll functionality 20$('a[href*="#"]') 21 .not('[href="#"]') 22 .not('[href="#0"]') 23 .click(function(event) { 24 if ( 25 location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && 26 location.hostname == this.hostname 27 ) { 28 var target = $(this.hash); 29 target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); 30 if (target.length) { 31 event.preventDefault(); 32 $('html, body').animate({ 33 scrollTop: target.offset().top - 150 34 }, 1000, function() { 35 var $target = $(target); 36 $target.focus(); 37 if ($target.is(":focus")) { 38 return false; 39 } else { 40 $target.attr('tabindex', '-1'); 41 $target.focus(); 42 } 43 }); 44 } 45 } 46 }); 47 48 49 50 51// Video embed 52 53 $(document).ready(function () { 54 function loadVideo() { 55 const iframe = $('<iframe>', { 56 src: "https://www.youtube.com/embed/MaiS6LHBHxw?autoplay=1", 57 width: "100%", 58 height: "600", 59 frameborder: "0", 60 allowfullscreen: "allowfullscreen" 61 }); 62 63 // Replace the placeholder with the iframe 64 $('#HomeOneVideo').empty().append(iframe); 65 66 // Remove event listeners after iframe is loaded 67 $(document).off('mousemove click', loadVideo); 68 } 69 70 // Add event listeners for user interaction 71 // $(document).on('mousemove click', loadVideo); 72 $(window).on('load', loadVideo); 73 74 }); 75 76 77 78 79$(document).ready(function() { 80 const currentYear = new Date().getFullYear(); 81 $(".current-year").text(currentYear); 82}); 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
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.