-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·105 lines (95 loc) · 4.03 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
layout: default
title: Dev Hub
overview: true
---
<div class="hero-unit">
<h2>Dev Hub</h2>
<p>This is a prototype repository of APIs and data. These APIs, data, tools and resourecs are intended to provide developers with what they need to develop web and mobile applications, design data visualizations and stories using public resources.</p>
<p align="center"><span style="color:#FF0000; font-size:18px; font-weight: bold:"><strong>This is not an official website, the goal is to show what is possible!</strong></span></p>
<p><a href="getting-started.html" class="btn btn-primary btn-large">Getting Started »</a></p>
</div>
<div class="row-fluid">
<div class="span1"> </div>
<div class="span4">
{% raw %}
<script id="apiListingTemplate" type="text/template">
<li><a href="api.html?#{{name}}"><strong>{{name}}</strong></a></li>
</script>
{% endraw %}
<script type="text/javascript">
function listAPIs()
{
$.getJSON('api.json', function(data) {
toggle = 0;
$.each(data['apis'], function(key, val) {
var template = $('#apiListingTemplate').html();
var html = Mustache.to_html(template, val);
$('#apiListing').append(html);
});
});
}
listAPIs();
</script>
<h2>APIs</h2>
<div style="height: 150px; overflow: auto;">
<ul id="apiListing"></ul>
</div>
<br />
<p><a class="btn" href="#">View APIs »</a></p>
</div><!--/span-->
<div class="span4">
{% raw %}
<script id="dataListingTemplate" type="text/template">
<li><a href="data.html?#{{title}}"><strong>{{title}}</strong></a></li>
</script>
{% endraw %}
<script type="text/javascript">
function listData()
{
$.getJSON('data.json', function(data) {
toggle = 0;
$.each(data, function(key, val) {
var template = $('#dataListingTemplate').html();
var html = Mustache.to_html(template, val);
$('#dataListing').append(html);
});
});
}
listData();
</script>
<h2>Data</h2>
<div style="height: 150px; overflow: auto;">
<ul id="dataListing"></ul>
</div>
<br />
<p><a class="btn" href="data.html">View Data »</a></p>
</div><!--/span-->
<div class="span3">
{% raw %}
<script id="codeListingTemplate" type="text/template">
<li><a href="code.html?#{{Name}}"><strong>{{Name}}</strong></a></li>
</script>
{% endraw %}
<script type="text/javascript">
function listCode()
{
$.getJSON('json/code.json', function(data) {
toggle = 0;
$.each(data['Code'], function(key, val) {
var template = $('#codeListingTemplate').html();
var html = Mustache.to_html(template, val);
$('#codeListing').append(html);
});
});
}
listCode();
</script>
<h2>Code</h2>
<div style="height: 150px; overflow: auto;">
<ul id="codeListing"> </ul>
</div>
<br />
<p><a class="btn" href="code.html">View Code »</a></p>
</div><!--/span-->
</div><!--/row-->