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

82
Views
JS HTML desapareciendo

Estoy escribiendo un script que inserta el siguiente html en la página

 function showBut(){ if ($('div.content-title > h4').size() > 0 && $('#calculate').size() < 1){ const button = `<button id="calculate" style="cursor: pointer;">Calculate</button> <button id="finalAmount" style="cursor: pointer;font-size: 14px;"></button> <button id="linkPaste" style="cursor: pointer;font-size: 14px;"></button>`; $('div.content-title > h4').append(button); //alert("done"); $('#calculate').click(getPrice); $( "#finalAmount" ).click(function() { navigator.clipboard.writeText($("#finalAmount").text()); }); $( "#linkPaste" ).click(function() { navigator.clipboard.writeText($("#linkPaste").text()); }); } } window.addEventListener("load", function(){ // .... 'use strict'; showBut(); });

El html insertado se muestra por un breve momento y desaparece. Si sigo recargando, a veces se queda, pero la mayoría de las veces desaparece.

¿Cómo puedo arreglar esto?

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!