Skip to content

Commit

Permalink
use Yandex
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin888b committed Aug 7, 2023
1 parent e037e28 commit 7da01de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
let query = document.querySelector('.query');
function ejs_code_clavier(keyStroke){
ejs_code_eventChooser = (!document.all) ? keyStroke.which : event.keyCode;
if (event.keyCode == 13){if (query.value != "") { let url = 'https://www.ecosia.org/search?q='+query.value; window.open(url,'_self');}}
if (event.keyCode == 13){if (query.value != "") { let url = `https://yandex.com/search/?text=${query.value}&lang=en`; window.open(url,'_self');}}
}document.onkeypress = ejs_code_clavier;

//https://yandex.com/search/?text=furry&lr=105066&lang=en
function githubClick(){if (query.value != "") { let url = "https://github.com/search?q="+query.value; window.open(url, '_self')} else {
window.open("https://github.com", '_self')
}}
Expand Down

0 comments on commit 7da01de

Please sign in to comment.