Right to Carry

Half of US State Attorneys General File Brief Opposing California’s Magazine Ban

Reading Time: 1:50 min

A state attorney general is a powerful person who is charged with knowing the Constitution and the law inside and out. They provide legal opinions on cases involving the state…

View post

Mass Civil Disobedience Over Illinois ‘Assault Weapon’ Registration Mandate

Reading Time: 3:3 min

That sound you hear is the rapidly approaching deadline for Illinois gun owners to comply with the new state law to register their so-called “assault weapons.” In fact, by the…

View post

World Renowned Inventor of Glock Pistols Dead at 94

Reading Time: 1:37 min

The prestigious but reclusive Austrian inventor who produced the wildly popular Glock pistol, Gaston Glock, died Wednesday at 94. No details were released by firearms company Glock, Inc. The Glock…

View post

No Results Yet, But Investigation Continues Into New Mexico Gun Control Group

Reading Time: 3:4 min

Gun control groups are notorious for being less than accurate in dealing with facts surrounding the Second Amendment. They share information gleaned from their peers with little or no concern…

View post

Federal Judge Allows Illinois ‘Assault Weapons’ Ban to Proceed

Reading Time: 1:29 min

With the Jan. 1 deadline for registering, altering or destroying so-called “assault weapons” looming in Illinois, a federal just on Friday rejected delaying part of the new state law. U.S.…

View post

South Seattle Homeowner Fires Rounds to Scare Away Four Alleged Home Invaders

Reading Time: 1:37 min

A man in south Seattle is lucky that he was armed as home invaders tried not once but twice to enter his residence. It was just after 5:30 a.m. last…

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>