News

Texas Man Shot Bank Robbery Suspects Who Kidnapped Wife: Cops (Video)

Reading Time: 0:42 min

Two brothers who kidnapped a couple and forced the wife to help them rob the bank where she worked got a lethal dose of Texas justice last week.

View post

New Gun Alert: The Walther CCP

Reading Time: 2:57 min

Walther Germany has gone and pulled a Beyonce and dropped a new gun on us without warning. Walthers are like the long lost cousin of the handgun world. They make some…

View post

29 People Killed, 130 Injured in Chinese Knife Attack (Video)

Reading Time: 0:26 min

Twenty-nine people were killed and 130 were injured Saturday night when 10 men armed with long knives stormed the station in the southwest Chinese city of Kunming, the state news…

View post

Sig Sauer Ships Carbon Fiber 516 and M400 Rifles

Reading Time: 0:54 min

Recently, Sig Sauer announced that they are shipping their Carbon Fiber 516 and M400 Rifles. I’m not a carbon fiber nut but when it’s done right, it’s a thing of…

View post

Police Officer Fatally Shoots Newlywed Firefighter During Fight

Reading Time: 0:40 min

As he lay bleeding on a downtown Kansas City street, newlywed Anthony Bruno mouthed “Don’t let me die” to a bystander who had rolled him on his back to check…

View post

Knicks Guard Raymond Felton arrested on gun charges

Reading Time: 1:5 min

First, arbitrarily threatening anyone with a firearm is never ok in my book, much less your girlfriend, wife, sidepiece, jump-off, or whatever cute names we’re using these days. So, if…

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>