JavaScript Play Sound on Document Ready without Human Interact

  • Estado: Open
  • Premio: $10
  • Propuestas recibidas: 13

Resumen del concurso

MandarinNu.com is a Chinese language teaching web app, which is generated by React Native Expo.
We want to show users sample dialog module on page load with sound.
https://mandarinnu.com

Right now, a user has to click anywhere on the page in order for the cartoon characters to speak.
(You could try :)

What we want is let sound play on page load.

What we tried is to place the following code inside the <body> tag, but not work as expected.
<script>
document.addEventListener("DOMContentLoaded", function(event) {
document.getElementById('hi').click();
});
</script>

We prefer not using jQuery if not necessary, as jQuery is not used at any other places in the application.

The first correct solution will be paid.

Habilidades recomendadas

Principales propuestas de este concurso

Ver más participaciones

Tablero de aclaración pública

  • mbsheikh2018
    mbsheikh2018
    • 1 semana atrás

    Please check my entry #21

    • 1 semana atrás

Cómo comenzar con los concursos

  • Publica tu concurso

    Publica tu concurso Fácil y rápido

  • Recibe montones de propuestas

    Consigue toneladas de propuestas De todo el mundo

  • Elige la mejor propuesta

    Elige la mejor propuesta ¡Descarga fácilmente los archivos!

Publica un concurso ahora o únete a nosotros hoy