text: /*!
  * Start Bootstrap - Scrolling Nav v5.0.4 (https://startbootstrap.com/template/scrolling-nav)
  * Copyright 2013-2022 Start Bootstrap
  * Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-scrolling-nav/blob/master/LICENSE)
  */
  //
  // Scripts
  // 
  
  window.addEventListener('DOMContentLoaded', event => {
  
      // Activate Bootstrap scrollspy on the main nav element
      const mainNav = document.body.querySelector('#mainNav');
      if (mainNav) {
          new bootstrap.ScrollSpy(document.body, {
              target: '#mainNav',
              offset: 74,
          });
      };
  
      // Collapse responsive navbar when toggler is visible
      const navbarToggler = document.body.querySelector('.navbar-toggler');
      const responsiveNavItems = [].slice.call(
          document.querySelectorAll('#navbarResponsive .nav-link')
      );
      responsiveNavItems.map(function (responsiveNavItem) {
          responsiveNavItem.addEventListener('click', () => {
              if (window.getComputedStyle(navbarToggler).display !== 'none') {
                  navbarToggler.click();
              }
          });
      });
  
  });
  
  //FOR MODAL IMAGE GALLARY IN PROJECTS SECTION.
  // Get the modal
  var modal = document.getElementById("myModal");
  
  // Get the image and insert it inside the modal - use its "alt" text as a caption
  var images = document.getElementsByClassName("myImages");
  var modalImg = document.getElementById("img01");
  var captionText = document.getElementById("caption");
  //go through all images 
  for (var i = 0; i < images.length; i++) {
      var img = images[i];
  img.onclick = function(event){
    modal.style.display = "block";
    modalImg.src = this.src;
    captionText.innerHTML = this.alt; //caption = alt
  }
  }
  
  // Get the <span> element that closes the modal
  var span = document.getElementsByClassName("close")[0];
  
  // When the user clicks on <span> (x), close the modal
  span.onclick = function() {
    modal.style.display = "none";
  } 