This repository was archived by the owner on Aug 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildhebrewobject.html
More file actions
40 lines (40 loc) · 1.39 KB
/
buildhebrewobject.html
File metadata and controls
40 lines (40 loc) · 1.39 KB
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>
<body>
</body>
<script src="js/external/jquery-1.7.2.js"></script>
<script src="js/external/json2.js"></script>
<script src="data/hebrewObject.js"></script>
<script src="data/strongsDictionaryobject.js"></script>
<script>
var hebrewTranslation = {};
$.each(hebrewObject, function (bookName, bookContent) {
$.each(bookContent, function (chapterNumber, chapterContent) {
$.each(chapterContent, function (verseNumber, verseContent) {
//loop through each word in the verse doing a match on our terms
$.each(verseContent, function (wordNumber, wordObject) {
if (strongsDictionary[wordObject.lemma] && strongsDictionary[wordObject.lemma]['kjv_def']) {
hebrewTranslation[wordObject.lemma] = strongsDictionary[wordObject.lemma]['kjv_def'].split(',')[0];
} else {
console.log(wordObject.lemma);
}
});
});
});
});
$('body').html(JSON.stringify(hebrewTranslation));
/*$.each(greekTranslation, function (lemma, object) {
var kjv_def = strongsDictionary[lemma]['kjv_def'];
if (kjv_def !== undefined) {
if (kjv_def.indexOf(',') > -1){
var wordArray = kjv_def.split(',');
kjv_def = wordArray[0];
}
}
console.log(kjv_def);
$.each(object, function(morph, wordValue) {
greekTranslation[lemma][morph] = kjv_def;
});
});
$('body').html(JSON.stringify(greekTranslation));*/
</script>
</html>