M&P

Sen Feinstein crying about “Assault Rifles”, again

Reading Time: 0:27 min

It humors me how she tries to bolster her argument by pointing out that the M&P on on the M&P-15 means Military and Police. Should we want substandard “civilian” versions?…

View post

$6,000 for an M&P!?!

Reading Time: 0:24 min

Let’s be clear, I like the gun, I really do. I think Doug from ATEI does awesome work, but $6k? Do you know how many strip… I mean kids I…

View post

T-Dog Needs A New Gun…

Reading Time: 1:29 min

I know, I know, I know, you’re wondering who the hell is T-Dog?!? Well if you’re a fan of the walking dead you might know him as the invisible black…

View post

Smith & Wesson Make a Glock 19 Killer Already!

Reading Time: 2:14 min

The Glock 19 is my baby, even when i’m carrying a different gun my Glock 19 is somewhere around. I have as close a connection to my Glock 19 as…

View post

ATEi/Chris Costa M&P Revisited

Reading Time: 2:22 min

I decided to have a talk with Doug at ATEi about this M&P that sold out in minutes, withstanding a $1500 price tag. Initially, I wondered whether paying $1500 for what was…

View post

$1500 for an M&P? I Guess

Reading Time: 2:49 min

I think the Chris Costa ATEi M&P 9 Mashup is an Awesome looking handgun. I would not mind if all polymer guns started going in this direction as far as aesthetics go. But sweet…

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>