-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (35 loc) · 1.67 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
<!DOCTYPE html>
<html lang="en-IE">
<head>
<title>Nederlands | Taal Zoeken</title>
<link rel="stylesheet" href="styles.css">
<link rel="shortcut icon" href="icon.ico"/>
<meta charset="UTF-8">
<meta name="description" content="Mutli-search tool to make creating flashcards for Dutch language learning easier.">
<meta name="author" content="Iarla Crewe">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<main class="container">
<p>
Typ het Nederlandse woord in waarnaar u wilt zoeken.
</p>
<input type="text" id="input-box" autofocus required>
</main>
<script>
var input = document.getElementById("input-box");
document.onkeydown = function(key) {search(key)}
function search(key)
{
var word = encodeURIComponent(input.value);
if (key.which != 13) return; // Only search if enter key pressed
if (word == "") return; // Search cannot be empty
//window.open("http://en.bab.la/dictionary/dutch-english/" + word); // English to Dutch dictionary not needed anymore
window.open("http://www.vandale.nl/opzoeken?pattern=" + word + "&lang=nn");
window.open("https://forvo.com/word/" + word + "/#nl");
window.open("http://www.google.nl/search?q=" + word + "&num=10&hl=nl&site=imghp&tbm=isch&sout=1&biw=1242&bih=640");
input.value = "";
}
</script>
</body>
</html>