forked from kinlane/dev-hub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·82 lines (68 loc) · 2.4 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
---
layout: default
title: Developers portal
overview: true
---
<div class="hero-unit">
<h2>Developers portal</h2>
<p>We built the API to be as self-documenting as possible, but if you find yourself overwhelmed, we organized this
site into four major areas.</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?#{{hashUrl}}"><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="api.html">View APIs »</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-->