Right to Carry

Waiting Period for New Mexico Gun Purchases Close to Reality

Reading Time: 1:33 min

The New Mexico Senate Judiciary Committee on Wednesday night advanced the controversial seven-day waiting period to complete the purchase of a firearm. The panel rejected extending the time back to…

View post

Gun Control Chaos: Hawaii Rejects Authority of Constitution and US Supreme Court

Reading Time: 3:6 min

It is one thing to disagree with a law or court ruling — that is one of the bedrocks of a free society. Dissension and debate are the cornerstones of…

View post

Armed Washington Homeowner Fights Off Three Home Invasion Suspects

Reading Time: 1:44 min

Situational awareness is always important, and it is doubly important to be prepared. A Marysville, Washington, resident had this lesson driven home Sunday when he came under attack by three…

View post

Virginia Quickly Becoming Epicenter of Gun Control Battle

Reading Time: 3:3 min

The fight for the soul of the Second Amendment has a new battleground in Virginia. With both legislative branches now controlled by a razor-slim majority of anti-gun zealots, a wave…

View post

Good Guy With a Gun Courageously Detains Two Armed Suspects for Law Enforcement

Reading Time: 1:33 min

This time the heartwarming tale of a good guy with a gun stepping up and stopping the bad guys harkens from Fresno, California. Across the country, law-abiding citizens are rising…

View post

Alleged Gun Thief Shot Dead in Fight with Owner

Reading Time: 1:39 min

If a violent criminal is going to attempt to steal another person’s firearm, they must be very careful. If that other person is currently in possession of the desired weapon,…

View post
<script>
  /*Source: https://github.com/Krzysztof-Antosik/Two-direction-Sticky-Sidebar*/
  
  // Verificar el ancho de pantalla al cargar y redimensionar
  function checkScreenWidth() {
    if (window.innerWidth <= 767) {
      // Si la pantalla es menor o igual a 676px, no ejecutar el código
      return;
    }

    const stickyElement = document.querySelector('.fb-sidebar__aside');
    const startPosition = stickyElement.getBoundingClientRect().top;

    let endScroll = window.innerHeight - stickyElement.offsetHeight - 500;
    let currPos = window.scrollY;
    let screenHeight = window.innerHeight;
    let stickyElementHeight = stickyElement.offsetHeight;
    let topGap = 40;
    let bottomGap = 40;

    setTimeout(() => {
      if (stickyElement.hasAttribute('data-top-gap')) {
        const dataTopGap = stickyElement.getAttribute('data-top-gap');
        topGap = dataTopGap === 'auto' ? startPosition : parseInt(dataTopGap);
      }

      if (stickyElement.hasAttribute('data-bottom-gap')) {
        bottomGap = parseInt(stickyElement.getAttribute('data-bottom-gap'));
      }
    }, 100);

    stickyElement.style.position = 'sticky';
    stickyElement.style.top = `${topGap}px`;
    stickyElement.style.height = 'fit-content';

    function positionStickySidebar() {
      endScroll = window.innerHeight - stickyElement.offsetHeight - bottomGap;
      const stickyElementTop = parseInt(stickyElement.style.top.replace('px', ''));

      if (stickyElementHeight + topGap + bottomGap > screenHeight) {
        if (window.scrollY < currPos) {
          if (stickyElementTop < topGap) {
            stickyElement.style.top = `${stickyElementTop + currPos - window.scrollY}px`;
          } else if (stickyElementTop >= topGap && stickyElementTop !== topGap) {
            stickyElement.style.top = `${topGap}px`;
          }
        } else {
          if (stickyElementTop > endScroll) {
            stickyElement.style.top = `${stickyElementTop + currPos - window.scrollY}px`;
          } else if (stickyElementTop < endScroll && stickyElementTop !== endScroll) {
            stickyElement.style.top = `${endScroll}px`;
          }
        }
      } else {
        stickyElement.style.top = `${topGap}px`;
      }
      currPos = window.scrollY;
    }

    function stickyElementToMe() {
      stickyElement.style.top = `${topGap}px`;
    }

    function updateSticky() {
      screenHeight = window.innerHeight;
      stickyElementHeight = stickyElement.offsetHeight;
      positionStickySidebar();
    }

    setTimeout(() => {
      window.addEventListener('resize', () => {
        currPos = window.scrollY;
        updateSticky();
      });

      document.addEventListener('scroll', updateSticky, {
        capture: true,
        passive: true
      });
    }, 1000);
  }

  // Verificar el ancho de pantalla al cargar y redimensionar
  window.addEventListener('load', checkScreenWidth);
  window.addEventListener('resize', checkScreenWidth);
</script>