1$("#year").html(new Date().getFullYear()); 2// show navbar-toggler........ 3$(".navbar-toggler").click(function () { 4 $('.overlay').addClass('overlay-show'); 5 $('.overlay .navbar-collapse').addClass('navbar-collapse-show'); 6 $('body').css("overflow", "hidden"); 7}); 8 9//remove navbar-toggler...(close button,body,link) 10$('.overlay, .close-button,.nav-link').click(function () { 11 $('.overlay').removeClass('overlay-show'); 12 $('.overlay .navbar-collapse').removeClass('navbar-collapse-show'); 13 $('body').css("overflow", "auto"); 14}); 15 16$('.navbar-nav').on("click", function () { 17 $('#dropdown-menu'); 18}); 19 20$('.nav-item').click(function () { 21 $('.nav-item').removeClass('active'); 22 $(this).addClass('active'); 23}); 24 25//stopPropagation on menu...... 26let selectDropdown = $(".side-nav .navbar-nav li:nth-child(3)").children(); 27$(selectDropdown).click(function (event) { 28 event.stopPropagation(); 29}) 30$('.navbar-nav').click(function (event) { 31 event.stopPropagation(); 32}); 33 34 35//display the dropdown 36$("#dropdownMenuButton").dropdown('hide'); 37$("#dropdown-button").on("click", function () { 38 $('#dropdown-menu').toggleClass('show'); 39}) 40 41//remove dropdown when click outside of dropdown menu 42$('.navbar-nav,body').on("click", function () { 43 $('#dropdown-menu').removeClass("show"); 44}); 45 46 47//on scroll changeing the logo and background color and also show fix-button.......... 48if (window.scrollY > 50) { //dectact page scroll on page reload 49 $(".header").removeClass("transparent-header"); 50 $(".header").addClass("grey-header"); 51 $(".header .navbar .navbar-toggler svg path").attr("stroke", "rgba(25, 25, 25, 1)") 52 $('.fix-button').css("display", "block"); 53} 54$(window).scroll(function () { 55 if ($(window).scrollTop() > 50) { 56 $(".header").removeClass("transparent-header"); 57 $(".header").addClass("grey-header"); 58 $(".header .navbar .navbar-toggler svg path").attr("stroke", "rgba(25, 25, 25, 1)") 59 $('.fix-button').css("display", "block"); 60 } else { 61 $(".header .navbar .navbar-toggler svg path").attr("stroke", "rgba(255, 255, 255, 1)") 62 $(".header").addClass("transparent-header"); 63 $(".header").removeClass("grey-header"); 64 $('.fix-button').css("display", "none"); 65 } 66}); 67 68//home portfolio owlCarousel.... 69if (window.location.pathname.includes('./') || window.location.pathname === '/gonext/' || window.location.pathname === '/' || window.location.pathname === '/index.html') { 70 $('#portfolio-carousel').owlCarousel({ 71 loop: true, 72 margin: 10, 73 items: 1, 74 autoplay: false, 75 autoplayHoverPause: true, 76 // autoplayTimeout: 4000, 77 nav: true, 78 dots: true, 79 }); 80 81 $(".owl-prev").html('<img src="img/left-arrow.png" alt="" />'); 82 $(".owl-next").html('<img src="img/arrow-point-to-right.png" alt="" />'); 83} else if (window.location.pathname.includes('about-us.html')) { 84 $('#team-carousel').owlCarousel({ 85 loop: true, 86 margin: 10, 87 items: 5, 88 nav: false, 89 dots: true, 90 autoplay: true, 91 autoplayTimeout: 2000, 92 autoplayHoverPause: true, 93 responsive: { 94 0: { 95 items: 1 96 }, 97 600: { 98 items: 3 99 }, 100 1000: { 101 items: 4 102 }, 103 } 104 }); 105 106 $(".owl-prev").html('<img src="http://gonext-assets.s3.ap-south-1.amazonaws.com/img/left-arrow.png" alt="" />'); 107 $(".owl-next").html('<img src="http://gonext-assets.s3.ap-south-1.amazonaws.com/img/arrow-point-to-right.png" alt="" />'); 108} 109 110//about page team carousel..... 111 112 113//accordion symbol rotate 114$(".card-header .btn-link").on("click", function () { 115 let selectCard = $(this).parent().parent().parent(); 116 selectCard.siblings().removeClass("rotate-symbol"); 117 $(selectCard).toggleClass("rotate-symbol"); 118}); 119 120//smooth scrolling.... 121let anchorlinks = document.querySelectorAll('a[href^="#"]') 122for (let item of anchorlinks) { // relitere 123 item.addEventListener('click', (e) => { 124 e.preventDefault(); 125 let hashval = item.getAttribute('href') 126 let target = document.querySelector(hashval) 127 target.scrollIntoView({ 128 behavior: 'smooth', 129 block: 'start' 130 }); 131 history.pushState(null, null, hashval) 132 }); 133}
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.