-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
287 lines (238 loc) · 12.6 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<!-- for GA tracking-->
<meta name="ippcat" content="GitHub" />
<meta name="description" content="">
<meta name="author" content="">
<title>Intuit Developer @ Github</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="shortcut icon" href="assets/img/favicon.ico" />
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<link href="assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/justified-nav.css" rel="stylesheet">
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<script src="assets/js/ie-emulation-modes-warning.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
<div class="container">
<!-- The justified navigation menu is meant for single line per list item.
Multiple lines will require custom code not provided by Bootstrap. -->
<div class="masthead">
<h3 id="titlehead" >Intuit Developer<a id="githublink" href="http://github.com/intuitdeveloper">Intuit Developer Github</a></br><a id="githublink" href="https://gist.github.com/IntuitDeveloperRelations">Intuit Developer Gist</a></h3>
</div>
<hr>
<!-- Jumbotron -->
<div class="jumbotron">
<h3>Build your app on the QuickBooks platform!</h3>
<p class="lead">Not sure where to start? We’ve put together some handy sample apps and libraries you can use to start building.</p>
<nav class="menu-navigation">
<ul class="menu-navigation-list">
<li class="menu-navigation-list-item feature"><a href="#oauth2title">OAuth2.0</a></li>
<li class="menu-navigation-list-item feature"><a href="#helloworldtitle">HelloWorld</a></li>
<li class="menu-navigation-list-item feature"><a href="#webhookstitle">Webhooks</a></li>
<li class="menu-navigation-list-item feature"><a href="#crudtitle">CRUD Samples</a></li>
<li class="menu-navigation-list-item feature"><a href="#paymentstitle">Payments</a></li>
<li class="menu-navigation-list-item feature"><a href="#conceptstitle">QBO Concepts</a></li>
<li class="menu-navigation-list-item feature"><a href="#invoicetitle">Invoicing</a></li>
<li class="menu-navigation-list-item feature"><a href="#othertitle">Other Samples</a></li>
<li class="menu-navigation-list-item language"><a href="#dotnettitle">DotNet</a></li>
<li class="menu-navigation-list-item language"><a href="#javatitle">Java</a></li>
<li class="menu-navigation-list-item language"><a href="#nodejstitle">Node.js</a></li>
<li class="menu-navigation-list-item language"><a href="#phptitle">PHP</a></li>
<li class="menu-navigation-list-item language"><a href="#pythontitle">Python</a></li>
<li class="menu-navigation-list-item language"><a href="#otherstitle">Other Samples</a></li>
<li class="menu-navigation-list-item feature"><a href="#oauthtitle">OAuth1.0a</a></li>
</ul>
</nav>
<div class="leadspace-buttons">
<a href="https://github.com/intuit/QuickBooks-V3-DotNET-SDK" target="_blank">
<p class="btn btn-primary btn-lg btn-custom-bm">DotNet SDK</b></p>
</a>
<a href="https://github.com/intuit/QuickBooks-V3-Java-SDK" target="_blank">
<p class="btn btn-primary btn-lg btn-custom-bm">Java SDK</b></p>
</a>
<a href="https://github.com/intuit/QuickBooks-V3-PHP-SDK" target="_blank">
<p class="btn btn-primary btn-lg btn-custom-dw">PHP SDK</b></p>
</a>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<div id="wrapper">
<label for="sort" class="col-lg-4 control-label sort feature"><a href="#" id="sortLangugage">Sort By Language</a></label>
<label for="sort" class="col-lg-4 control-label sort language"><a href="#" id="sortFeature">Sort By Feature</a></label>
<label for="search" class="col-lg-4 control-label search"><span>Search</span> <input type="search" id="search" class="search-query span3 filter input-medium" placeholder="Our Samples"></label>
</div>
</div>
</div>
<!-- oauth2 -->
<div id="oauth2title" class="section-title feature"><span class="title">OAUTH2.0</span></div>
<div id="oauth2" class="columns section in feature" style="height: auto;"></div>
<div class="separator gap"></div>
<!-- hello work -->
<div id="helloworldtitle" class="section-title feature"><span class="title">HELLO WORLD</span></div>
<div id="helloworld" class="columns section in feature" style="height: auto;"></div>
<!-- DotNet -->
<div id="dotnettitle" class="section-title language"><span class="title">DOTNET</span></div>
<div id="dotnet" class="columns section in language" style="height: auto;"></div>
<div class="separator gap"></div>
<!-- webhooks -->
<div id="webhookstitle" class="section-title feature"><span class="title">WEBHOOKS</span></div>
<div id="webhooks" class="columns section in feature" style="height: auto;"></div>
<!-- Java -->
<div id="javatitle" class="section-title language"><span class="title">JAVA</span></div>
<div id="java" class="columns section in language" style="height: auto;"></div>
<div class="separator gap"></div>
<!-- crud -->
<div id="crudtitle" class="section-title feature"><span class="title">CRUD SAMPLES</span></div>
<div id="crud" class="columns section in feature" style="height: auto;"></div>
<!-- Nodejs -->
<div id="nodejstitle" class="section-title language"><span class="title">NODE.JS</span></div>
<div id="nodejs" class="columns section in language" style="height: auto;"></div>
<div class="separator gap"></div>
<!-- payments -->
<div id="paymentstitle" class="section-title feature"><span class="title">PAYMENTS</span></div>
<div id="payments" class="columns section in feature" style="height: auto;"></div>
<div class="separator gap"></div>
<!-- oauth2 -->
<div id="conceptstitle" class="section-title feature"><span class="title">QBO CONCEPTS SAMPLES</span></div>
<div id="concepts" class="columns section in feature" style="height: auto;"></div>
<div class="separator gap"></div>
<!-- PHP -->
<div id="phptitle" class="section-title language"><span class="title">PHP</span></div>
<div id="php" class="columns section in language" style="height: auto;"></div>
<!-- invoice -->
<div id="invoicetitle" class="section-title feature"><span class="title">INVOICING</span></div>
<div id="invoice" class="columns section in feature" style="height: auto;"></div>
<div class="separator gap"></div>
<!-- other -->
<div id="othertitle" class="section-title feature"><span class="title">OTHER SAMPLES</span></div>
<div id="other" class="columns section in feature" style="height: auto;"></div>
<!-- Python -->
<div id="pythontitle" class="section-title language"><span class="title">PYTHON</span></div>
<div id="python" class="columns section in language" style="height: auto;"></div>
<div class="separator gap"></div>
<!-- Other -->
<div id="otherstitle" class="section-title language"><span class="title">OTHER</span></div>
<div id="others" class="columns section in language" style="height: auto;"></div>
<!-- oauth -->
<div id="oauthtitle" class="section-title feature"><span class="title">OAUTH1.0a</span></div>
<div id="oauth" class="columns section in feature" style="height: auto;"></div>
<div class="separator gap"></div>
</div> <!-- /container -->
<!-- Site footer -->
<footer class="footer">
<nav class="footer-navigation">
<p class="copyright">© 2018 Intuit, Inc. All rights reserved. Intuit and QuickBooks are registered trademarks of Intuit Inc. </p>
</nav>
</footer>
<script>
(function() {
//hide the language divs
$(".language").hide();
//call github api to fetch all repos
var settings = {
"async": true,
"crossDomain": true,
"url": "https://api.github.com/orgs/intuitdeveloper/repos?type=all&per_page=1000",
"method": "GET",
}
$.ajax(settings).done(function (response) {
//map by feature
$.each( response, function( key, val ) {
if (!val.private) {
var name = (val.name != null) ? val.name : "";
var $item = $("<div>").addClass("card pin col-sm-5 col-md-4 col-lg-3 ").attr('id',name);
var $link = $( "<a>" ).attr( "href", val.html_url ).appendTo($item);
$link.append($("<h5>").text(name));
$item.append($("<p>").text((val.description != null) ? val.description : ""));
if (name.toUpperCase().indexOf("CRUD") >= 0) {
$item.appendTo( "#crud" );
} else if (name.toUpperCase().indexOf("OAUTH2") >= 0 ) {
$item.appendTo( "#oauth2" );
} else if (name.toUpperCase().indexOf("OAUTH") >= 0 && name.toUpperCase().indexOf("OAUTH2") != 0) {
$item.appendTo( "#oauth" );
} else if (name.toUpperCase().indexOf("WEBHOOK") >= 0) {
$item.appendTo( "#webhooks" );
} else if (name.toUpperCase().indexOf("INVOIC") >= 0) {
$item.appendTo( "#invoice" );
} else if (name.toUpperCase().indexOf("PAYMENT") >= 0) {
$item.appendTo( "#payments" );
} else if (name.toUpperCase().indexOf("HELLO") >= 0) {
$item.appendTo( "#helloworld" );
} else if (name.toUpperCase().indexOf("CONCEPTS") >= 0) {
$item.appendTo( "#concepts" );
} else {
$item.appendTo( "#other" );
}
}
});
//map by language
$.each( response, function( key, val ) {
if (!val.private) {
var name = (val.name != null) ? val.name : "";
var $item = $("<div>").addClass("card pin col-sm-5 col-md-4 col-lg-3 ").attr('id',name);
var $link = $( "<a>" ).attr( "href", val.html_url ).appendTo($item);
$link.append($("<h5>").text(name));
$item.append($("<p>").text((val.description != null) ? val.description : ""));
if (name.toUpperCase().indexOf("DOTNET") >= 0 || name.toUpperCase().indexOf(".NET") >= 0) {
$item.appendTo( "#dotnet" );
} else if (name.toUpperCase().indexOf("JAVA") >= 0) {
$item.appendTo( "#java" );
} else if (name.toUpperCase().indexOf("NODE") >= 0) {
$item.appendTo( "#nodejs" );
} else if (name.toUpperCase().indexOf("PHP") >= 0) {
$item.appendTo( "#php" );
} else if (name.toUpperCase().indexOf("PYTHON") >= 0) {
$item.appendTo( "#python" );
} else {
$item.appendTo( "#others" );
}
}
});
});
})();
$('#search').keyup(function() {
var val = $.trim($(this).val()).replace(/ +/g, ' ').toLowerCase();
$rows = $(".card")
$rows.show().filter(function() {
var text = $(this).text().replace(/\s+/g, ' ').toLowerCase();
return !~text.indexOf(val);
}).hide();
// update repo count here
n = $rows.length;
for (r in $rows)
{
row = $rows[r];
style = row.style;
if (style && style.cssText && style.cssText.match("none"))
{
n--;
}
}
});
$("#sortLangugage").click(function () {
$(".feature").hide();
$(".language").show();
});
$("#sortFeature").click(function () {
$(".language").hide();
$(".feature").show();
});
</script>
</body>
</html>