fork download
  1. function handleNoClick() {
  2. const noButton = document.querySelector(".no-button");
  3. const yesButton = document.querySelector(".yes-button");
  4.  
  5. noButton.textContent = messages[messageIndex];
  6. messageIndex = (messageIndex + 1) % messages.length;
  7.  
  8. const currentSize = parseFloat(window.getComputedStyle(yesButton).fontSize);
  9. yesButton.style.fontSize = `${currentSize * 1.5}px`;
  10. }
  11.  
  12. function handleYesClick() {
  13. window.location.href = "yes_page.html";
  14. }
Success #stdin #stdout 0.04s 16656KB
stdin
Standard input is empty
stdout
Standard output is empty