Right to Carry

Louisiana Senate Considers Bill to Protect Domestic Violence Victims Who Defend Themselves

Reading Time: 3:7 min

Louisiana Senator Pushes Bill to Protect Abuse Victims Acting in Self-Defense The horror of domestic violence cannot be overstated, and good people recognize that victims must not only be protected…

View post

Armed New York Store Owner Shoots Teen Suspect During Alleged Attempted Robbery

Reading Time: 3:48 min

Armed Store Owner Shoots Teen Suspect in Attempted Robbery It is an unfortunate reality that convenience stores rank high on the list of potential targets for criminals looking for an…

View post

Philadelphia Man Fires 16 Rounds to Defend Himself After Violent Robbery

Reading Time: 2:23 min

Violent Robbery in Port Richmond Leaves Woman Injured A Philadelphia couple is fortunate to have survived a violent robbery Tuesday night, but it remains to be determined whether there will…

View post

Senators Charge ATF Illegally Paid Agents Millions in Unearned Benefits

Reading Time: 2:28 min

Senators Accuse ATF of Illegally Inflating Salaries The embattled Bureau of Alcohol, Tobacco, Firearms, and Explosives (ATF) is facing yet another torrent of controversy. Two senators charge that the agency…

View post

Alleged Intruder Brought an Axe to a Gunfight–With Predictable Results

Reading Time: 2:31 min

Home Invasion Highlights Importance of Gun Rights and Self-Defense There are far too many instances when the Second Amendment is the only thing standing between a family and becoming the…

View post

Anti-Gun California Lawmakers Push Proposal to Ban Glock Handguns

Reading Time: 2:34 min

California’s Newest Gun Control Push Targets Glock Pistols California legislators recently reached into their bag of anti-Second Amendment tricks with a new proposal. If the bill became law, the good…

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>