Opens in a new tab

2A News

SCOTUS Grants Plaintiff’s Request in ‘Assault Weapons’ Case

The first named plaintiff in the potentially landmark Supreme Court case over bans on popular semi-automatic rifles was allowed to withdraw from the lawsuit. This comes just days before oral…

View post

DeWine Signs Bill Removing ‘Dangerous Ordnance’ Designation from NFA Items

Ohio Gov. Mike DeWine (R) on Tuesday drove the final nail into his state’s soon-to-be defunct system of listing suppressors, short-barreled rifles (SBRs), and short-barreled shotguns (SBSs) as “dangerous ordnance.”…

View post

Elderly Tulsa Man Fatally Wounds Burglary Suspect

A suspect is dead and an elderly man uninjured after a terrifying encounter early Tuesday morning in Oklahoma. Tulsa Police Department officials reported that the target discovered that someone had…

View post

NSSF: Connecticut Firm Violated Executive De-Banking Order

De-banking is a vile system wielded by anti-Second Amendment forces to deny necessary financial services to the firearms industry.  The White House blasted the practice in 2025 and issued Executive…

View post

Thomas Bristles at SCOTUS Rejecting 2A Challenge

The U.S. Supreme Court last week continued its on-again, off-again adherence to the broad application of gun rights. Justices on Monday turned aside a petition challenging Maryland’s sweeping prohibition of…

View post

Wealthy NJ Enclave Seeks to Ban Gun Shops

A quick Google search reveals that Summit, New Jersey, is an affluent city of about 23k residents, roughly 25 miles west of New York City, with nearly three-quarters of residents…

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>