-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
107 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
var wordList = [ | ||
{ | ||
"_id": 1, | ||
"word": "apple", | ||
"translate": "der Apfel" | ||
}, | ||
{ | ||
"_id": 2, | ||
"word": "pear", | ||
"translate": "die Birne" | ||
}, | ||
{ | ||
"_id": 3, | ||
"word": "lemon", | ||
"translate": "die Zitrone" | ||
}, | ||
{ | ||
"_id": 4, | ||
"word": "banana", | ||
"translate": "die Banane" | ||
}, | ||
{ | ||
"_id": 5, | ||
"word": "orange", | ||
"translate": "die Orange" | ||
}, | ||
{ | ||
"_id": 6, | ||
"word": "strawberry", | ||
"translate": "die Erdbeere" | ||
}, | ||
{ | ||
"_id": 7, | ||
"word": "raspberry", | ||
"translate": "die Himbeere" | ||
}, | ||
{ | ||
"_id": 8, | ||
"word": "blueberry", | ||
"translate": "die Brombeere" | ||
}, | ||
{ | ||
"_id": 9, | ||
"word": "guava", | ||
"translate": "die Guava" | ||
}, | ||
{ | ||
"_id": 10, | ||
"word": "pawpaw", | ||
"translate": "die Papaya" | ||
}, | ||
{ | ||
"_id": 11, | ||
"word": "apricot", | ||
"translate": "die Aprikose" | ||
}, | ||
{ | ||
"_id": 12, | ||
"word": "melon", | ||
"translate": "die Melone" | ||
} | ||
]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="description" content="Sample illustrating the use of the LearnWords2 library."> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
<title>LearnWords2-Demo</title> | ||
|
||
<link rel="stylesheet" href="main.css"> | ||
<link rel="stylesheet" href="styles.css"> | ||
|
||
</head> | ||
|
||
|
||
<body> | ||
|
||
<h1>LearnWords2 app -- to be implemented</h1> | ||
<p>Use the console to interact with the LW object. | ||
For example enter</p> | ||
|
||
<pre> | ||
LW.db.numberOfWords() | ||
</pre> | ||
|
||
Note: to restart testing evaluate | ||
|
||
<pre> | ||
LW.db.destroy() | ||
</pre> | ||
|
||
and then reload page. | ||
|
||
<script src="../data/wordlist-en-ge_nm.js"></script> | ||
<script src="../dist/LW.js"></script> | ||
<script> | ||
var LW = BoxOfQuestions(LWdb('learnWords')); | ||
|
||
if (LW.db.numberOfWords() == 0) {LW.db.loadWords(wordList)}; | ||
</script> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
function BoxOfQuestions(db) { | ||
|
||
|
||
|