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

210
Views
como hare si necesito este codigo de algun java script, css y html

Necesito ayuda con mi código; Necesito un contador que, cuando hago clic en el botón, y cuando fallo me gustaría puntos negativos. Soy muy nuevo en la codificación y necesito ayuda. Por favor, responda si tiene tiempo.

 function update(e) { var x = e.clientX || e.touches[0].clientX var y = e.clientY || e.touches[0].clientY document.documentElement.style.setProperty('--cursorX', x + 'px') document.documentElement.style.setProperty('--cursorY', y + 'px') } document.addEventListener('mousemove', update) document.addEventListener('touchmove', update) function jump() { var x = Math.round((Math.random() * 101)) + "%", y = Math.round((Math.random() * 101)) + "%"; document.getElementById("jump").style.left = x; document.getElementById("jump").style.top = y; }
 body { background-color: #21096b; font-size: 30px; text-align: center; } body { margin: 0; } .button-container { position: relative; width: calc(100vw - 100px); height: calc(100vh - 20px); } button { position: absolute; width: 20px; height: 20px; } }
 <div class="button-container"> <button id="jump" onclick="jump()"></button> </div>

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!