-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
65 lines (60 loc) · 2.52 KB
/
index.html
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
59
60
61
62
63
64
65
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.8.3.min.js"><\/script>')</script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Open Source Bible Data</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="author" href="humans.txt">
</head>
<body>
<div class="navbar navbar-inverse">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#">Open Source Bible Data</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<h1>Open Source Bible Data</h1>
<p>This repository gathers together in one place freely available Biblical
texts, tools and data in multiple languages and in multiple computer
formats.</p>
<table id="catalogue" class="table">
<tr><th>Type</th><th>Name</th><th>Licence</th><th>Language</th><th>Source</th><th>Files</th></tr>
</table>
</div>
<script src="catalogue.js"></script>
<script>
var repo_url = "";
Catalogue.forEach(function(x){
var tr = $("<tr>");
tr.append("<td>"+x.type+"</td>");
tr.append("<td>"+(x.name ? x.name : x.version.full + " ("+x.version.abbrev+")")+"</td>");
tr.append("<td>"+(x.licence_url ? '<a href="'+x.licence_url+'"> '+x.licence+"</a>" : x.licence)+"</td>");
tr.append("<td>"+(x.lang ? x.lang : "")+"</td>");
tr.append('<td>'+(x.source ? '<a href="'+x.source+'"> '+x.source+"</a>" : "Unknown")+"</td>");
var fileList = $("<ul>");
for (f in x.files) {
if (f == "raw") {
var url = x.files[f].type == "local" ? repo_url+x.files[f].file : x.files[f].url;
fileList.append("<li><a href=\""+url+"\">source file</a> ("+x.files[f].format+")</li>");
} else {
fileList.append("<li><a href=\""+repo_url+x.files[f]+"\">"+f+"</a></li>");
}
}
tr.append($("<td/>").append(fileList));
$("#catalogue").append(tr);
if (x.note) { $("#catalogue").append("<tr><td></td><td colspan=5>"+x.note+"</td></tr>"); }
});
</script>
</body>
</html>