NRA News

Natalie Foster for NRA News: “Wrong Heroes”

Reading Time: 0:18 min

Natalie Foster exposes the media attention and celebrity status that has been assigned to our nation’s most evil villains.

View post

NRA New’s Newest Commentator: Austin Weiss aka @TheGarageInc

Reading Time: 0:24 min

Here’s why you should hate and love Austin Weiss. This is how a basic text message conversation looks, between Austin and I, after I tell him I want him to…

View post

The Hypothetical Land of Anti-Gunners

Reading Time: 0:11 min

I understand that there is a place for hypotheticals. Hell, we pro gunners use hypotheticals all the time, but there is a big difference between realistic hypotheticals and absurd hypotheticals…

View post

Gangster Rappers + #NoGunsAllowed = JOKE

Reading Time: 0:52 min

I love rap music, but don’t think for a second I won’t call a spade a spade. I like Rich Homie Quan (I’m listening to type of way as I…

View post

Natalie Foster for NRA News: “Fear of Guns”

Reading Time: 0:26 min

I love this video and I love Natalie. The first time I met Natalie was in an airport in D.C. after both of our planes had to make some pretty…

View post

Billy Johnson for NRA News: “Violence”

Reading Time: 0:23 min

I know a lot of you guys remember this guy, or maybe you don’t. Maybe you know him as AmidsTheNoise, either way, Billy Johnson is the guy responsible for  kicking…

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>