Opens in a new tab

2A News

Defendants Make Wild Claims to SCOTUS in Pending AR-15 Trial

When they tell you who they are, believe them. Nothing is nearly as incriminating as a person’s own words, especially when they are submitted to the U.S. Supreme Court in…

View post

SCOTUS: US Solicitor General May Weigh in on Semi-Auto Rifle Ban

The U.S. Supreme Court will hear from another prominent voice when oral arguments are presented in the combined cases of Viramontes v. Cook County and Grant v. Higgins next month.…

View post

SAF Responds to Cook County’s Legal Maneuvering in AR-15 Case

Cook County’s attempt to moot the case against its oppressive gun control regime before the U.S. Supreme Court drew deserved pushback from the Second Amendment Foundation (SAF) and its partners.…

View post

Ohio Lawmakers Send Firearms Bill to Gov. DeWine’s Desk

As of now, Ohio categorizes suppressors, short-barreled rifles, and short-barreled shotguns as if they were dynamite sticks just waiting for a lit fuse to cause mass destruction. That could and…

View post

NRA: Gun Control Radicals Salivating Over Nevada Takeover

The National Rifle Association (NRA) has been around long enough to weather many political upheavals that threatened the right to keep and bear arms. This week, the nation’s oldest and…

View post

Feds to Explain How 1.4 Billion Pages of Firearm Records Isn’t Illegal Registry

This ought to be interesting. On Wednesday, November 18, the Bureau of Alcohol, Tobacco, Firearms, and Explosives (ATF) is expected to explain to lawmakers how its staggering 1,414,088,513 Second Amendment-related…

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>