Skip to content

Commit

Permalink
upd. index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
hhzl committed Dec 16, 2016
1 parent e8bd06a commit 0464e35
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 1 deletion.
63 changes: 63 additions & 0 deletions data/wordlist-en-ge_nm.js
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"
}
];

44 changes: 44 additions & 0 deletions demo/index.html
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>
1 change: 0 additions & 1 deletion dist/LW.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

function BoxOfQuestions(db) {


Expand Down

0 comments on commit 0464e35

Please sign in to comment.