File tree Expand file tree Collapse file tree 3 files changed +107
-1
lines changed
Expand file tree Collapse file tree 3 files changed +107
-1
lines changed Original file line number Diff line number Diff line change 1+ var wordList = [
2+ {
3+ "_id" : 1 ,
4+ "word" : "apple" ,
5+ "translate" : "der Apfel"
6+ } ,
7+ {
8+ "_id" : 2 ,
9+ "word" : "pear" ,
10+ "translate" : "die Birne"
11+ } ,
12+ {
13+ "_id" : 3 ,
14+ "word" : "lemon" ,
15+ "translate" : "die Zitrone"
16+ } ,
17+ {
18+ "_id" : 4 ,
19+ "word" : "banana" ,
20+ "translate" : "die Banane"
21+ } ,
22+ {
23+ "_id" : 5 ,
24+ "word" : "orange" ,
25+ "translate" : "die Orange"
26+ } ,
27+ {
28+ "_id" : 6 ,
29+ "word" : "strawberry" ,
30+ "translate" : "die Erdbeere"
31+ } ,
32+ {
33+ "_id" : 7 ,
34+ "word" : "raspberry" ,
35+ "translate" : "die Himbeere"
36+ } ,
37+ {
38+ "_id" : 8 ,
39+ "word" : "blueberry" ,
40+ "translate" : "die Brombeere"
41+ } ,
42+ {
43+ "_id" : 9 ,
44+ "word" : "guava" ,
45+ "translate" : "die Guava"
46+ } ,
47+ {
48+ "_id" : 10 ,
49+ "word" : "pawpaw" ,
50+ "translate" : "die Papaya"
51+ } ,
52+ {
53+ "_id" : 11 ,
54+ "word" : "apricot" ,
55+ "translate" : "die Aprikose"
56+ } ,
57+ {
58+ "_id" : 12 ,
59+ "word" : "melon" ,
60+ "translate" : "die Melone"
61+ }
62+ ] ;
63+
Original file line number Diff line number Diff line change 1+ <!doctype html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="utf-8 ">
5+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6+ < meta name ="description " content ="Sample illustrating the use of the LearnWords2 library. ">
7+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
8+
9+ < title > LearnWords2-Demo</ title >
10+
11+ < link rel ="stylesheet " href ="main.css ">
12+ < link rel ="stylesheet " href ="styles.css ">
13+
14+ </ head >
15+
16+
17+ < body >
18+
19+ < h1 > LearnWords2 app -- to be implemented</ h1 >
20+ < p > Use the console to interact with the LW object.
21+ For example enter</ p >
22+
23+ < pre >
24+ LW.db.numberOfWords()
25+ </ pre >
26+
27+ Note: to restart testing evaluate
28+
29+ < pre >
30+ LW.db.destroy()
31+ </ pre >
32+
33+ and then reload page.
34+
35+ < script src ="../data/wordlist-en-ge_nm.js "> </ script >
36+ < script src ="../dist/LW.js "> </ script >
37+ < script >
38+ var LW = BoxOfQuestions ( LWdb ( 'learnWords' ) ) ;
39+
40+ if ( LW . db . numberOfWords ( ) == 0 ) { LW . db . loadWords ( wordList ) } ;
41+ </ script >
42+
43+ </ body >
44+ </ html >
Original file line number Diff line number Diff line change 1-
21function BoxOfQuestions ( db ) {
32
43
You can’t perform that action at this time.
0 commit comments