Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
¿Por qué no se activa el evento de mi botón después del primer intento?

Estoy creando un juego y en este momento estoy tratando de crear una función de guardado y lo hice para que puedas salir de él, pero mi problema es que cuando vuelves a hacer clic en el botón, la pantalla no funciona. ¿Puedes ayudarme?

JavaScript

 function savingGame() { document.getElementById('saveScreen').style.display = "block" document.getElementById('content').style.marginTop = '-83vh'; } function saveGame1() { if (localStorage.getItem('save1') != null) { overwriteAlert(); } else { localStorage.setItem('save1', index) alert('gameSaved'); saveScreen.style.display = "none" content.style.marginTop = "-3vh" } } function noSave() { if (window.getComputedStyle(saveScreen).display == "block") { document.getElementById('content').onclick = function() { saveScreen.style.display = "none" content.style.marginTop = "-3vh" } } }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!