Repository navigation
Expand file tree
/
Copy pathapi.html
More file actions
123 lines (110 loc) · 3.53 KB
/
Copy pathapi.html
File metadata and controls
123 lines (110 loc) · 3.53 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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
---
layout: page
permalink: /api/
---
<script>
$(document).ready( function() {
$('input[type="text"]').focus();
$('input[type="text"]').keyup(function(){
var that = this, $allListElements = $('ul > li');
var $matchingListElements = $allListElements.filter(function(i, li){
var listItemText = $(li).text().toUpperCase(),
searchText = that.value.toUpperCase();
return ~listItemText.indexOf(searchText);
});
$allListElements.hide();
$matchingListElements.show();
});
});
</script>
<div class="form-group has-success">
<input type="text" class="form-control input-sm" placeholder="Filter">
</div>
<div class="col-md-4">
<h3>Features</h3>
<ul class="post-api-list">
{% for api in site.api %}{% if api.part == 'Features' %}
<li>
<a class="page-link" href="{{ api.url | prepend: site.baseurl }}">{{ api.title }}</a>
</li>
<span class="hidden">
{% for tag in api.tags %}
{{ tag }}
{% endfor %}
</span>
{% endif %}{% endfor %}
</ul>
{% assign sorted_by_orderno = site.api | sort: "order" %}
<h3>Types</h3>
{% for type_name in site.type_names %}
<h6><strong>{{ type_name }}</strong></h6>
<ul class="post-api-list">
{% for api in sorted_by_orderno %}{% if api.part == 'Types' and api.typename == type_name %}
<li>
<a class="page-link" href="{{ api.url | prepend: site.baseurl }}">{{ api.title }}</a>
{% if api.deprecated == true %}
<span class="octicon octicon-circle-slash api-deprecated"></span>
{% endif %}
{% if api.jsonly == true %}
<span> <img src="/images/common/ico_includejs.png" alt="JS"/></span>
{% endif %}
<span class="hidden">
{% for tag in api.tags %}
{{ tag }}
{% endfor %}
</span>
</li>
{% endif %}{% endfor %}
</ul>
{% endfor %}
</div>
<div class="col-md-8">
<h3>Objects</h3>
{% for object_name in site.object_names %}
<h5><a class="post-link" href="{{ site.baseurl }}/api/{{ object_name }}/">{{ object_name }}</a></h5>
<div class="row">
<div class="col-md-6">
<h6><strong>Functions</strong></h6>
<ul class="post-api-list">
{% for api in site.api %}{% if api.part == 'Objects' and api.objectname == object_name and api.directiontype == 'Function' %}
<li>
<a class="page-link" href="{{ api.url | prepend: site.baseurl }}">{{ api.title }}</a>
{% if api.deprecated == true %}
<span class="octicon octicon-circle-slash api-deprecated"></span>
{% endif %}
{% if api.jsonly == true %}
<span> <img src="/images/common/ico_includejs.png" alt="JS"/></span>
{% endif %}
<span class="hidden">
{% for tag in api.tags %}
{{ tag }}
{% endfor %}
</span>
</li>
{% endif %}{% endfor %}
</ul>
</div>
<div class="col-md-6">
<h6><strong>Callbacks</strong></h6>
<ul class="post-api-list">
{% for api in site.api %}{% if api.part == 'Objects' and api.objectname == object_name and api.directiontype == 'Callback' %}
<li>
<a class="page-link" href="{{ api.url | prepend: site.baseurl }}">{{ api.title }}</a>
{% if api.deprecated == true %}
<span class="octicon octicon-circle-slash api-deprecated"></span>
{% endif %}
{% if api.jsonly == true %}
<span> <img src="/images/common/ico_includejs.png" alt="JS"/></span>
{% endif %}
<span class="hidden">
{% for tag in api.tags %}
{{ tag }}
{% endfor %}
</span>
</li>
{% endif %}{% endfor %}
</ul>
</div>
</div>
{% endfor %}
</div>