1$(document).ready(function () { 2 var nav = document.querySelector(".navbar"); 3 var header = document.querySelector("header"); 4 window.onscroll = function () { 5 var triggerPoint; 6 7 // Get current page path 8 var currentPage = window.location.pathname.split("/").pop(); 9 10 if (currentPage === "" || currentPage === "index.html") { 11 triggerPoint = window.innerHeight * 0.9; 12 } else { 13 triggerPoint = 20; 14 } 15 16 if (document.documentElement.scrollTop > triggerPoint) { 17 nav.classList.add("scroll-on"); 18 header.classList.add("d-none"); 19 } else { 20 nav.classList.remove("scroll-on"); 21 header.classList.remove("d-none"); 22 } 23 }; 24 $('#explore').on('click', function (e) { 25 e.preventDefault(); 26 $('#main-content')[0].scrollIntoView({ 27 behavior: 'smooth', 28 block: 'start' 29 }); 30 }); 31 $('.fade-slider').slick({ 32 dots: true, 33 arrows: false, 34 infinite: true, 35 autoplay: true, 36 autoplaySpeed: 3000, 37 speed: 500, 38 fade: true, 39 cssEase: 'linear', 40 pauseOnHover: false 41 }); 42 $(".campus-slider").slick({ 43 dots: false, 44 arrows: true, 45 infinite: true, 46 speed: 300, 47 slidesToShow: 3, 48 variableWidth: false, 49 autoplay: true, 50 autoplaySpeed: 3000, 51 slidesToScroll: 1, 52 responsive: [ 53 { 54 breakpoint: 992, 55 settings: { 56 slidesToShow: 3, 57 slidesToScroll: 1, 58 }, 59 }, 60 { 61 breakpoint: 481, 62 settings: { 63 slidesToShow: 1, 64 slidesToScroll: 1, 65 arrows: false, 66 }, 67 }, 68 ], 69 }); 70 $(".admission-slider").slick({ 71 dots: false, 72 arrows: true, 73 infinite: true, 74 speed: 300, 75 slidesToShow: 1, 76 variableWidth: false, 77 autoplay: true, 78 autoplaySpeed: 3000, 79 slidesToScroll: 1, 80 }); 81 $(".research-slider").slick({ 82 dots: false, 83 arrows: true, 84 infinite: true, 85 speed: 300, 86 slidesToShow: 2, 87 variableWidth: false, 88 autoplay: true, 89 autoplaySpeed: 3000, 90 slidesToScroll: 1, 91 responsive: [ 92 { 93 breakpoint: 992, 94 settings: { 95 slidesToShow: 1, 96 slidesToScroll: 1, 97 }, 98 }, 99 { 100 breakpoint: 481, 101 settings: { 102 slidesToShow: 1, 103 slidesToScroll: 1, 104 arrows: false, 105 }, 106 }, 107 ], 108 }); 109}); 110 111 $('.foot-slider').slick({ 112 slidesToShow: 6, 113 slidesToScroll: 1, 114 autoplay: true, 115 autoplaySpeed: 2000, 116 arrows: false, 117 dots: false, 118 responsive: [ 119 { 120 breakpoint: 992, 121 settings: { 122 slidesToShow: 3 123 } 124 }, 125 { 126 breakpoint: 768, 127 settings: { 128 slidesToShow: 2 129 } 130 }, 131 { 132 breakpoint: 480, 133 settings: { 134 slidesToShow: 2 135 } 136 } 137 ] 138 }); 139 140 141function setDarkMode(isDark) { 142 const darkBtn = document.querySelector('.dark'); 143 const lightBtn = document.querySelector('.light'); 144 145 if (isDark) { 146 document.body.classList.add('dark-mode'); 147 darkBtn.style.border = '2px solid #007FFF'; 148 lightBtn.style.border = 'none'; 149 } else { 150 document.body.classList.remove('dark-mode'); 151 lightBtn.style.border = '2px solid #007FFF'; 152 darkBtn.style.border = 'none'; 153 } 154} 155 156 157 158
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.