A semantic search engine for source code https://bitshift.benkurtovic.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 rivejä
392 B

  1. var typingTimer;
  2. var finishedTypingInterval = 650;
  3. searchBar = document.querySelectorAll("form#search-bar input[type='text']")[0]
  4. console.log(searchBar)
  5. searchBar.onkeyup = function(){
  6. clearTimeout(typingTimer);
  7. if(searchBar.value){
  8. typingTimer = setTimeout(finishedTyping, doneTypingInterval);
  9. }
  10. };
  11. function finishedTyping(){
  12. console.log("You stopped typing.");
  13. }