Flat Preloader Icon
<div class="c-preloader">
	<div class="c-preloader__count"></div>
  <div class="c-preloader__progress"></div>
</div>
.bricks-is-frontend .c-preloader {
  position: fixed;
  top: 0;
  left: 0;
  background: #cc0000;
  width: 100%;
  height: 100vh;
  z-index: 10;
}
.bricks-is-frontend .c-preloader__count {
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
font-size: clamp(4rem, 3.824vw + 2.776rem, 8rem);
  font-weight: 100;
  letter-spacing: -.5rem;
  z-index: 10;
}
.bricks-is-frontend .c-preloader__progress {
  background: black;
  height: 100%;
  width: 0%;
  position: absolute;
  top: 0;
  left: 0;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/2.1.3/TweenMax.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/4.1.4/imagesloaded.pkgd.min.js"></script>

<script>
  
var imgLoad = imagesLoaded('img');

var progressBar = jQuery(".c-preloader__progress"),
    count = jQuery(".c-preloader__count"),
    images = jQuery("img").length,
    loadedCount = 0,
    loadingProgress = 0;
 
var tlProgress = new TimelineMax({
    paused: true,
    onUpdate: countPercent,
    onComplete: loadComplete
});

tlProgress.to(progressBar, 1, {width:"100%"});

imgLoad.on('progress', function(instance, image) {
    loadProgress();
});
 
function loadProgress() {
    loadedCount++;
    loadingProgress = (loadedCount / images);
    console.log(loadingProgress);

    TweenMax.to(tlProgress, 1, {progress: loadingProgress});
}

function countPercent() {
    var newPercent = (tlProgress.progress() * 100).toFixed();
    count.text(newPercent + "%");
}

function loadComplete() {
    var tlEnd = new TimelineMax();
    tlEnd
        .to(count, 0.5, {autoAlpha: 0})
        .to(".c-preloader", 0.5, {scaleX: 0, transformOrigin: "center right"});
}

</script>
/* 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;
  });
});

Ruby’s Remarkable Journey: Overcoming Tragedy and Rediscovering Strength

  • 2:53 min

  • 0 comments

Picture : Rubi during Counselling Session

*Ruby Rai, a permanent resident of Bhojpur, is married and has a teenage son.

Just a day before her life-changing accident, Ruby traveled to her mother’s home in Sankhuwasabha, a district that takes a full day of road travel to reach from Bhojpur. On the morning of the accident, Ruby, her mother, and her sister-in-law were in the kitchen preparing tea when a massive boulder struck their house. Tragi­cally, the impact killed her mother and sister-in-law instantly. Ruby herself sustained severe injuries to her legs and ribs, leaving her immobile.

It took an hour for the villagers to organize a rescue, and Ruby was carried for three hours on foot to reach a helicopter that trans­ported her to the Armed Police Force (APF) Hospital in Kathmandu. There, she received treatment for her broken ribs and legs over the course of two and a half months. Despite the extensive medical care, Ruby’s Left leg had to be amputated. A doctor at APF Hospital referred Ruby to Green Pastures Hospital (GPH) for artificial limbs. When she arrived at GPH, her physical and psycho­logical condition was dire. The trauma of losing her loved ones and her mobility had left her unable even to grieve properly.

Through several sessions of psychosocial counseling at GPH, Ruby gradually began to redis­cover hope and a renewed love for life. She came to under­stand that artificial limbs could help her regain indepen­dence in daily activ­ities and improve her mobility.

Through the GPH medical charity, Ruby received prosthetic legs, which restored her mobility, and several sessions of psychosocial counseling that helped her process her grief and rebuild her confidence.

Ruby expressed her heartfelt gratitude for the trans­for­mation in her life, finding strength to move forward.

Nimuka Lepcha, a counselor in Social Service Department at GPH, shares: “We welcome patients and their families, providing individ­u­alized counseling that addresses both emotional and psycho­logical needs. Many arrive in distress—grieving, hopeless, and some even suicidal. Our support focuses on nurturing their emotional and social well-being, helping them find strength and hope. Our role is to walk alongside them, offering a space where they can express their pain, process their emotions, and find the strength to rebuild their lives.

One such patient was Ruby. When she arrived, she was not only physi­cally weakened but also deeply trauma­tized by her loss. Through counseling, we helped her navigate her grief, regain confi­dence, and embrace the possi­bil­ities ahead. Seeing her stand and walk again—not just physi­cally but also emotionally—is a reminder of the resilience that lies within each person when given the right support and care.”

The Social Service Department at GPH plays a pivotal role in addressing the psychosocial needs of patients, partic­u­larly those facing challenges related to leprosy, disability, spinal cord injury and other chronic illnesses. By providing counseling, support, and advocacy, the department contributes to improving patients’ overall well-being and quality of life. The depart­ment’s efforts in building hope and resilience among patients align with INF’s mission of serving the poor and disad­van­taged. While the SSD does not offer highly specialized clinical treat­ments, the department excels in providing empathetic and person­alized support to patients. The focus on active listening and under­standing patients’ unique needs differ­en­tiates the SSD’s services. The department manages to provide counseling over 100 sessions and charity assis­tance to 100 individuals per month.

 


Picture: Rubi with her prosthesis

*Name changed for anonymity

Story Collected by: Nimuka Lepcha

Share this post:

Post tags