Diego Gronda offers us his vision about Intercidec and Beltá & Frajumar.

On the occasion of the second edition of the InterCIDEC awards, Diego Gronda offered us a masterful conference on the new hotel users we face and their new needs, logically on topics related to design, creativity and innovation.

During the Habitat Valencia Fair we had the opportunity to interview Diego Gronda. Find out what he told us.

¿Tienes un proyecto profesional entre manos?

En Frajumar acompañamos a interioristas, arquitectos y profesionales del contract en la elección de mobiliario, tapicería y soluciones a medida para espacios con identidad.

🌐
filename.html
<script>
document.addEventListener('DOMContentLoaded', function () {
  const space = document.getElementById('frajumar-video-space');
  const player = document.getElementById('frajumar-video-player');
  const closeButton = document.getElementById('frajumar-video-close');
  const iframe = document.getElementById('frajumar-youtube-player');

  if (!space || !player) {
    return;
  }

  let floatingClosed = false;

  function updateFloatingVideo() {
    const position = space.getBoundingClientRect();

    /*
     * Se minimiza cuando la ubicación original
     * ha desaparecido por la parte superior.
     */
    const videoHasPassed = position.bottom <= 80;

    if (videoHasPassed && !floatingClosed) {
      player.classList.add('is-floating');
    } else {
      player.classList.remove('is-floating');
    }

    /*
     * Al volver a la posición original,
     * permitimos que pueda flotar otra vez.
     */
    if (position.bottom > 80) {
      floatingClosed = false;
    }
  }

  if (closeButton) {
    closeButton.addEventListener('click', function () {
      floatingClosed = true;
      player.classList.remove('is-floating');

      /*
       * Pausa el vídeo de YouTube al cerrarlo.
       */
      if (iframe && iframe.contentWindow) {
        iframe.contentWindow.postMessage(
          JSON.stringify({
            event: 'command',
            func: 'pauseVideo',
            args: []
          }),
          '*'
        );
      }
    });
  }

  window.addEventListener('scroll', updateFloatingVideo, {
    passive: true
  });

  window.addEventListener('resize', updateFloatingVideo);

  updateFloatingVideo();
});
</script>
Share

Posts Related