Right to Carry

NRA Free Speech Case Will Be Heard by the Supreme Court

Reading Time: 3:29 min

When one pictures the venerable National Rifle Association (NRA) arguing a case before the U.S. Supreme Court, an image of powerful attorneys defending gun rights immediately comes to mind. And…

View post

Poll: Voters Prefer Strict Enforcement of Existing Gun Laws Over New Ones

Reading Time: 1:34 min

In a revealing survey conducted after the horrific Maine shooting, a solid majority of U.S. voters expressed their preference for curbing violence. And it’s exactly what Second Amendment advocates have…

View post

Senator Renews Call for Federal Firearm Licensing

Reading Time: 1:31 min

U.S. Senator Cory Booker (D-NJ) last week reissued his call for a sweeping new gun control program that would include federal licensing for all gun owners. In the wake of…

View post

Police: Ex-Boyfriend Killed After Breaking into Former Girlfriend’s Home

Reading Time: 1:36 min

A 37-year-old Missouri man awakened to a frightening sight early Friday morning — a gun being pointed at his head by his girlfriend’s former boyfriend. St. Louis police report the…

View post

Appeals Court Upholds Illinois Ban on Semiautomatic Rifles

Reading Time: 1:42 min

The contentious Illinois ban on so-called “assault weapons” was upheld Friday by a U.S. appeals court in a blow to Second Amendment rights.  The state banned the sale and distribution…

View post

Gun Sales Rebound with Third-Highest October on Record — With One Obvious Reason

Reading Time: 3:13 min

October’s U.S. gun sales surged past last year’s total and reached the third-highest level for the month in history. This represented good news for the industry and marked one of…

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>