text: function onClick() {
      let textInput = document.getElementById("textbox").value;
      let replacedText = textInput.replace(/ /gi, "+");
  
      if (textInput == "") {
          console.log("Nothing on textbox, not doing anything.");
      } else {
          console.log("Redirecting to: https://www.google.com/search?q=" + replacedText);
          window.location.href = "https://www.google.com/search?q=" + replacedText;
      }
  }
  
  function onClickWaiting() {
      new Audio('res/audio.mp3').play();
      let video = document.getElementById('video');
      video.style.display = 'block';
      video.play();
      setTimeout(() => { video.style.display = 'none'; }, 69000);
  }
  
  const node = document.getElementsByClassName("textbox")[0];
  node.addEventListener("keyup", function(event) {
      if (event.key === "Enter") {
          let textInput = document.getElementById("textbox").value;
          let replacedText = textInput.replace(/ /gi, "+");
  
          if (textInput == "") {
              console.log("Nothing on textbox, not doing anything.");
          } else {
              console.log("Redirecting to: https://www.google.com/search?q=" + replacedText);
              window.location.href = "https://www.google.com/search?q=" + replacedText;
          }
      }
  });