Ty O'banner

Hochul Signs Pair of Oppressive Gun Control Bills into Law

Reading Time: 1:52 min

The white-hot arguments swirling around so-called “red flag” laws center on the utter lack of due process afforded to some citizens when authorities seize their firearms. In New York state,…

View post

California Expands Roster of ‘Red Flag’ Petitioners

Reading Time: 1:55 min

California lawmakers continue to prove to their critics why warnings of “slippery slopes” need to be heeded, especially on Second Amendment rights. In 2014, the state initiated its current Gun…

View post

Federal Court: Ban on Firearms in Post Offices Unconstitutional

Reading Time: 1:53 min

The cumulative effect of years of waging battles with anti-gun politicians means that there are some restrictions still on the books that need to be abolished. A step in that…

View post

LA Sheriff’s Department Rips DOJ For Pending Investigation into Gun Carry Permit Applications

Reading Time: 1:53 min

Under California’s gun control regime, Second Amendment enthusiasts meet official resistance at every turn. State residents are forced to plead with the government for a concealed carry weapons (CCW) permit,…

View post

Federal Judge Rules in Favor of Carry Ban on Public Land

Reading Time: 1:59 min

A federal judge on Tuesday struck a blow against gun rights for outdoor enthusiasts in what can only be described as a shocking ruling against constitutional liberties. U.S. District Judge…

View post

Arizona Lawmaker Issues Dire Warning Against Expanding Gun Control

Reading Time: 1:54 min

Anti-gunners work tirelessly to strip away the right to keep and bear arms, and this week, an Arizona legislator warned the people that there will be dire consequences if these…

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>