-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (33 loc) · 1.51 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<html><head>
</head>
<body style="background-color:grey" cz-shortcut-listen="true">
<p>What Spanish word would you like to multisearch? Type below, then press enter please. <span style="color:red; background-color:white">Make sure to enable popups, or else it won't work</span></p>
<input type="text" id="boxu" autofocus="">
<script>
document.getElementById("boxu").onkeydown = function(e) {searchy(e)};
let windows = [];
function closeWindows(e) {
windows.forEach(v => v.close());
}
function searchy(e)
{
if (e.which == 13)
{
if(windows[0] !== undefined) {
closeWindows();
}
var q = encodeURIComponent(document.getElementById("boxu").value);
let searchURL = "https://www.google.com.mx/search?q=" + q + "%20imagesize%3A300x300&tbm=isch&hl=es&hl=es&safe=images&safe=images&tbs&sa=X&ved=0CAEQpwVqFwoTCOjH4Z-ejOsCFQAAAAAdAAAAABAC&biw=1680&bih=916"
let window1 = window.open(searchURL);
let window2 = window.open("https://www.deepl.com/en/translator#es/en/" + q);
let window3 = window.open("https://youglish.com/pronounce/" + q + "/spanish/la");
let window4 = window.open("http://www.forvo.com/word/" + q + "/#es");
let window5 = window.open("http://www.wordreference.com/es/en/translation.asp?spen=" + q);
let window6 = window.open("https://dle.rae.es/" + q);
let window7 = window.open("https://www.spanishdict.com/translate/" + q);
windows = [window1, window2, window3, window4, window5, window6, window7]
document.getElementById("boxu").value = "";
}
}
</script>
</body></html>