Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

139
Vistas
javascript will run only in mobile view

I want to make this as mobile javascript, i run this code but in macbook safari laptop view it's running also

if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) {
    function scrollFinished() {
        vid = document.getElementsByClassName('my-video-scroll')
    
        //play video
        if (runningVideo < vid.length && runningVideo >= 0) {
            vidTop = vid[runningVideo].offsetTop
            window.scrollTo(0, vidTop - 0 - scrHeight * 0);
    
            vid[runningVideo].currentTime = 0;
            vid[runningVideo].play()
        }
    
        //show the currently playing video and the total video to the console
        console.clear()
        console.log('running: ' + (runningVideo + 1))
        console.log('total: ' + vid.length)
    
        setTimeout(function () {
            scrooling = false
        }, 500)
    }
}

I tried deleting the webOS/iphone/ipad/ipod its running as well

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda