Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreateRoots.html
More file actions
Latest commit
58 lines (49 loc) · 1.31 KB
/
Copy pathcreateRoots.html
File metadata and controls
58 lines (49 loc) · 1.31 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE HTML>
<html>
<head>
<metaname="viewport" content="width=device-width, initial-scale=1">
<metahttp-equiv="Content-Type" content="text/html; charset=utf-8">
<metaname="google" content="notranslate" />
<title>Javascripture</title>
<linkrel="stylesheet" href="css/layout.css" />
<styleid="bodyFontFamily"></style>
<styleid="bodyFontSize"></style>
</head>
<body>
<scriptsrc="lib/jquery-2.0.3.min.js"></script>
<script>
varjavascripture={
data: {
hebrew: {}
},
modules: {}
};
</script>
<scriptsrc="data/strongsObjectWithFamilies.js"></script>
<divid="result"></div>
<script>
functiongetFamily(key){
console.log(key);
varword=javascripture.data.strongsObjectWithFamilies[key];
if(word){
varroots=word.roots;
if(roots){
varnumberOfRoots=roots.length;
returngetFamily(roots[numberOfRoots-1]);
}
}else{
console.log(key);
}
returnkey;
}
$.each(javascripture.data.strongsObjectWithFamilies,function(key,value){
if(key.indexOf('G')===0){
if(javascripture.data.strongsObjectWithFamilies[key]){
javascripture.data.strongsObjectWithFamilies[key].family=getFamily(key);
}
}
});
document.getElementById('result').innerHTML=JSON.stringify(javascripture.data.strongsObjectWithFamilies);
</script>
</body>
</html>