Flat Preloader Icon
/* Default state: transparent background */
#brx-header.sticky {
  position: sticky;
  top: 0;
  transition: opacity 0.5s ease, background-color 0.5s ease;
  opacity: 1;
  visibility: visible;
  background-color: transparent !important; /* Start with transparent background */
}

/* Hidden state when scrolling down */
#brx-header.sticky.nav-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background-color: transparent !important; /* Stay transparent when hidden */
}

/* Visible state when scrolling up: background becomes black */
#brx-header.sticky.nav-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.5) !important; /* Background becomes black when scrolling up */
}
document.addEventListener('DOMContentLoaded', function () {
  let lastScrollTop = 0;
  const nav = document.querySelector('#brx-header.sticky'); // Ensure this targets the correct header element
  let hasScrolledDown = false; // Track if the user has scrolled down

  // Listen for the scroll event on the window
  window.addEventListener('scroll', function () {
    let scrollTop = window.pageYOffset || document.documentElement.scrollTop;

    console.log('Scroll position:', scrollTop); // Check scroll position in console

    if (scrollTop > lastScrollTop) {
      // User is scrolling down
      console.log('Scrolling down');
      nav.classList.remove('nav-visible');
      nav.classList.add('nav-hidden');
      hasScrolledDown = true; // User has scrolled down
    } else if (scrollTop < lastScrollTop && hasScrolledDown) {
      // User is scrolling up and has already scrolled down
      console.log('Scrolling up');
      nav.classList.remove('nav-hidden');
      nav.classList.add('nav-visible');
    }

    // Update the last scroll position
    lastScrollTop = scrollTop;
  });
});

Autism Handbook: Web-Based Educational Resource

Autism Spectrum Disorder (ASD) is increasingly recognized as a critical neurodevelopmental disorder affecting individuals across Nepal. With growing awareness, there is a pressing need to provide support and understanding for individuals with autism and their families. This disorder encompasses a range of developmental differences, including social challenges, communication difficulties, and unique behavioural patterns, all of…

  • 0 comments
Autism Spectrum Disorder (ASD) is increasingly recognized as a critical neurodevelopmental disorder affecting individuals across Nepal. With growing awareness, there is a pressing need to provide support and understanding for individuals with autism and their families. This disorder encompasses a range of developmental differences, including social challenges, communication difficulties, and unique behavioural patterns, all of which affect daily life and integration within society. However, many Nepali communities lack awareness and access to resources to support affected individuals.

To address this gap, several national and international organisations, along with local government and communities, have initiated awareness campaigns, education programs, and support services for autism. As part of these efforts, a web-based educational resource PDF, titled Autism Handbook: Web-Based Educational Resource, has been produced and is available for download. This handbook aims to provide essential information and guidance to foster an autism-friendly environment that respects the needs and rights of individuals on the autism spectrum. Comprehensive information, dedicated resources, and the active participation of all stakeholders are essential for empowering individuals with autism to access educational and social opportunities, ensuring they can lead fulfilling lives


Please Download: Autism Handbook: Web-Based Educational Resource

Share this post: