This repository has been archived by the owner on Aug 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
164 lines (161 loc) · 8.49 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!doctype html>
<html manifest="cache.manifest">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>jQuery API</title>
<link rel="stylesheet" href="_css/app.css" type="text/css" media="screen" charset="utf-8">
<script src="_js/scrollable.js" type="text/javascript" charset="utf-8"></script>
<script src="_js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="_js/jqtouch.js" type="text/javascript" charset="utf-8"></script>
<script src="_js/jqtouch.offline.js" type="text/javascript" charset="utf-8"></script>
<script src="_js/jquery.template.js" type="text/javascript" charset="utf-8"></script>
<script src="_js/apidocs.js" type="text/javascript" charset="utf-8"></script>
<script src="_js/app.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id="jqt">
<div class="page">
<div class="toolbar">
<h1>jQuery API</h1>
</div>
<div class="info loading">
Loading... This could take a while. The XML is quite large but is being saved locally for offline use.
</div>
</div>
<div class="page" id="home">
<div class="toolbar">
<h1>jQuery API</h1>
<a class="button slideup" href="#about">About</a>
</div>
<div class="scrollable">
<ul class="rounded">
<li class="arrow"><a href="#" class="category" data-name="">Categories</a></li>
<li class="arrow"><a href="#" class="category" data-name="Selectors">Selectors</a></li>
<li class="arrow"><a href="#" class="category" data-name="Version">Versions</a></li>
</ul>
<form>
<ul class="edit rounded">
<li><input type="text" name="search" placeholder="Search: eq or :eq"></li>
</ul>
</form>
<div class="info fullscreen">Add to your home screen for fullscreen action!</div>
<div class="info downloadingupdate">Downloading update...</div>
<div class="info updateready">Update ready to be installed! Tap here to restart!</div>
</div>
</div>
<div class="page" id="about">
<div class="toolbar">
<h1>About</h1>
<a class="back" href="#">Back</a>
</div>
<div class="scrollable">
<div class="info rounded">
<p>This API browser is built by <a href="http://brandonaaron.net/" target="_blank">Brandon Aaron</a> with the help of <a href="http://jquery.com" target="_blank">jQuery</a>, <a href="http://jqtouch.com/" target="_blank">jQTouch</a>, <a href="http://github.com/furf/jquery-template/">jQuery.template</a>, and <a href="http://github.com/brandonaaron/scrollable">Scrollable</a>.</p>
<p>The documentation is pulled from the <a href="http://api.jquery.com/">jQuery API</a> XML dump and parsed locally using XPATH.</p>
<p>Once all the assets and docs are loaded, the application can be run even when offline.</p>
<p>The code for this project is hosted on GitHub... <a href="http://github.com/brandonaaron/jQuery-idocs">happy forking</a>! :)</p>
<p class="mediatemple"><a href="http://mediatemple.net"><img src="mt.png" width="160" height="30" alt="Media Temple"></a></p>
</div>
</div>
</div>
<div class="page" id="error">
<div class="toolbar">
<h1>jQuery API Docs</h1>
<a class="back" href="#">Back</a>
</div>
<div class="scrollable">
<div class="info">Looks like an error occurred. :(</div>
</div>
</div>
</div>
<script id="tpl-categories" type="text/html" charset="utf-8">
<div id="<%= this.id %>" class="page generated">
<div class="toolbar">
<h1><%= this.title %></h1>
<a class="back" href="#">Back</a>
<a class="button home" href="#">Home</a>
</div>
<div class="scrollable">
<ul class="rounded">
<% $.each(this.categories, function (i, category) { %>
<li class="arrow"><a href="#" class="category" data-name="<%= category.name %>"><%= category.name %></a></li>
<% }); %>
</ul>
</div>
</div>
</script>
<script id="tpl-entries" type="text/html" charset="utf-8">
<div id="<%= this.id %>" class="page generated">
<div class="toolbar">
<h1><%= this.title %></h1>
<a class="back" href="#">Back</a>
<a class="button home" href="#">Home</a>
</div>
<div class="scrollable">
<% if (this.entries.length) { %>
<ul class="rounded">
<% $.each(this.entries, function (i, entry) { %>
<li class="arrow entry"><a href="#" class="entry <%= entry.type %>" data-name="<%= entry.name %>" data-index="<%= entry.index %>"><span class="name"><%= entry.displayName %></span><br><%= entry.desc %></a></li>
<% }); %>
</ul>
<% } else { %>
<div class="info">No entries found.</div>
<% } %>
</div>
</div>
</script>
<script id="tpl-entry" type="text/html" charset="utf-8">
<div id="<%= this.id %>" class="page generated">
<div class="toolbar">
<h1><%= this.title %></h1>
<a class="back" href="#">Back</a>
<a class="button home" href="#">Home</a>
</div>
<div class="scrollable">
<div class="info rounded">
<h2><%= this.displayName %></h2>
<p class="desc"><%= this.desc %></p>
<% if (this.returns) { %>
<p class="returns"><strong>Returns</strong>: <%= this.returns %></p>
<% } %>
</div>
<% if (this.signatures.length > 0) { %>
<div class="info rounded">
<% $.each(this.signatures, function(i, signature) { %>
<dl class="signature">
<dt><%= signature.title %></dt>
<dd class="added">v<%= signature.added %></dd>
<% if (!signature.arguments.length) { %>
<dd>No arguments</dd>
<% } %>
<% $.each(signature.arguments, function(i, argument) { %>
<dd class="argument"><strong><%= argument.name %></strong>: <%= argument.desc %></dd>
<% }); %>
</dl>
<% }); %>
</div>
<% } %>
<% if ($.trim(this.longdesc)) { %>
<div class="info rounded">
<%= this.longdesc %>
</div>
<% } %>
</div>
</div>
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-541795-3']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
'http://www') + '.google-analytics.com/ga.js';
ga.setAttribute('async', 'true');
document.documentElement.firstChild.appendChild(ga);
})();
</script>
</body>
</html>