-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·376 lines (326 loc) · 12.8 KB
/
index.html
File metadata and controls
executable file
·376 lines (326 loc) · 12.8 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
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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
<!DOCTYPE HTML>
<html>
<head>
<title>Onecloud Consulting - Cisco Script Catalog</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900' rel='stylesheet' type='text/css'>
<link href="web/css/style.css" rel="stylesheet" type="text/css" media="all" />
<link rel="stylesheet" type="text/css" href="web/css/imgeffect.css" />
<script src="web/js/jquery-1.10.2.min.js"></script>
<!-- start gallery Script -->
<script type="text/javascript" src="web/js/jquery.easing.min.js"></script>
<script type="text/javascript" src="web/js/jquery.mixitup.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css">
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>-->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<style type="text/css">
.list-group{
width: 80%;
}
.bs-example{
margin: 50px 100px 50px 100px;
}
</style>
<script type="text/javascript">
$(function () {
var filterList = {
init: function () {
// MixItUp plugin
// http://mixitup.io
$('#portfoliolist').mixitup({
targetSelector: '.portfolio',
filterSelector: '.filter',
effects: ['fade'],
easing: 'snap',
// call the hover effect
onMixEnd: filterList.hoverEffect()
});
},
hoverEffect: function () {
// Simple parallax effect
$('#portfoliolist .portfolio').hover(
function () {
$(this).find('.label').stop().animate({bottom: 0}, 200, 'easeOutQuad');
$(this).find('img').stop().animate({top: 0}, 500, 'easeOutQuad');
},
function () {
$(this).find('.label').stop().animate({bottom: 0}, 200, 'easeInQuad');
$(this).find('img').stop().animate({top: 0}, 300, 'easeOutQuad');
}
);
}
};
// Run the show!
filterList.init();
});
</script>
<!-- Add fancyBox main JS and CSS files -->
<script src="web/js/jquery.magnific-popup.js" type="text/javascript"></script>
<link href="web/css/magnific-popup.css" rel="stylesheet" type="text/css">
<script>
$(document).ready(function() {
$('.popup-with-zoom-anim').magnificPopup({
type: 'inline',
fixedContentPos: false,
fixedBgPos: true,
overflowY: 'auto',
closeBtnInside: true,
preloader: false,
midClick: true,
removalDelay: 300,
mainClass: 'my-mfp-zoom-in'
});
});
</script>
<script type="text/javascript" src="web/js/move-top.js"></script>
<script type="text/javascript" src="web/js/easing.js"></script>
<!----end gallery----------->
<script type="text/javascript">
jQuery(document).ready(function($) {
$(".scroll").click(function(event){
event.preventDefault();
$('html,body').animate({scrollTop:$(this.hash).offset().top},1200);
});
});
</script>
<script typr="text/javascript">
var username = "datacenter";
var reponame = "nexus9000";
$(function(){
//repodetails
$('#ghapirepodata').html('<div id="loader"><img src="web/css/loader.gif" alt="loading..."></div>');
var requri = 'https://api.github.com/users/'+username;
var repouri_content = 'https://api.github.com/repos/'+username+'/'+reponame+'/readme';
var downloaduri = 'https://github.com/'+username+'/'+reponame+'/archive/master.zip';
requestJSON(requri, function(json) {
if(json.message == "Not Repo Found" || username == '') {
$('#ghapirepodata').html("<h2>No Repo Info Found</h2>");
}
else {
var outhtml = '<div class="repolist clearfix">';
var repositories;
$.getJSON(repouri_content, function(json){
repositories = json;
outputPageContent();
});
function outputPageContent() {
if(repositories.length == 0) { outhtml = outhtml + '<p>No contents!</p></div>'; }
else {
outhtml = outhtml + '<p style="white-space:pre-line;">'+atob(repositories.content)+'</p></div>';
}
download_content = '<center><h5 id="download" style="width:180px;"><a href="'+downloaduri+'"><button>Download ZIP</button></a></h5></center>';
$('#ghapirepodata').html(outhtml);
$('#download_container').html(download_content);
showRepoCatalog('master');
} // end outputPageContent()
} // end else statement
}); // end requestJSON Ajax call
});
//repo code catalog details
function showRepoCatalog(pathname) {
var breadcrumbsrc = 'javascript:showRepoCatalog("/");'
var breadcrumb = '<div class="repolist clearfix" ><ul><li><a href='+breadcrumbsrc+'>nexus9000</a></li><li><a>/</a></li>';
$('#script_catalog').html('<div id="loader"><img src="web/css/loader.gif" alt="loading..."></div>');
var requri = 'https://api.github.com/users/'+username;
if(pathname == 'master' || pathname == '/' )
{
//breadcrumb = breadcrumb+'<li><a href="#">nexus9000</a></li><li><a>/</a></li>';
var repouri_content = 'https://api.github.com/repos/'+username+'/'+reponame+'/contents/';
}
else
{
pathname_str = pathname.split("/");
$.each(pathname_str, function(str) {
var subpath = pathname.split("/",parseInt(str)+1);
breadcrumbsrc = 'javascript:showRepoCatalog("'+subpath.join("/")+'");'
breadcrumb = breadcrumb+'<li><a href='+breadcrumbsrc+'>'+pathname_str[str]+'</a></li><li><a>/</a></li>';
});
var repouri_content = 'https://api.github.com/repos/'+username+'/'+reponame+'/contents/'+pathname;
}
requestJSON(requri, function(json) {
if(json.message == "Not Repo Found" || username == '') {
$('#script_catalog').html("<h2>No Repo Info Found</h2>");
}
else {
var outhtml = '<div class="repolist clearfix">';
var repositories;
$.getJSON(repouri_content, function(json){
repositories = json;
outputPageContentCode();
});
function outputPageContentCode() {
if(repositories.length == 0) { outhtml = outhtml + '<p>No repos!</p></div>'; }
else {
outhtml = outhtml + '<div class="bs-example"><div class="list-group">';
$.each(repositories, function(index) {
if(repositories[index].type === "dir")
{
var repsrc = 'javascript:showRepoCatalog("'+repositories[index].path+'");'
outhtml = outhtml + '<a href='+repsrc+' class="list-group-item active"><span class="glyphicon glyphicon-folder-open"></span> '+repositories[index].name+'</a>';
}
else{
outhtml = outhtml + '<a href="#" class="list-group-item"><span class="glyphicon glyphicon-file"></span> '+repositories[index].name+'</a>';
}
});
outhtml = outhtml + '</div></div>';
}
breadcrumb = breadcrumb+"</ul></div></div>";
$('#script_catalog_breadcrumb').html(breadcrumb);
$('#script_catalog').html(outhtml);
} // end outputPageContent()
} // end else statement
}); // end requestJSON Ajax call
}
function requestJSON(url, callback) {
$.ajax({
url: url,
complete: function(xhr) {
callback.call(null, xhr.responseJSON);
}
});
}
</script>
</head>
<body>
<!----start-header----------->
<div class="header_bg">
<div class="wrap">
<div class="header">
<!--------start-logo------>
<div class="logo">
<a href="index.html"><img src="http://onecloudtest.wpengine.com/wp-content/uploads/2013/04/OneCloud-Logo-bckgrnd-removed.png" alt="OneCloud Consulting" width="230px" height="100px"></a>
</div>
<!--------end-logo--------->
<!----start-nav-------->
<div class="nav">
<ul>
<li class="active"><a href="#home" class="scroll">Home</a></li>
<li><a href="#about" class="scroll">About Nexus 9000</a></li>
<li><a href="#catalog" class="scroll">Nexus 9000 Script Catalog</a></li>
<div class="clear"> </div>
</ul>
</div>
<!-----end-nav-------->
<div class="clear"> </div>
</div>
</div>
</div>
<!------end-header------------>
<!-- start slider -->
<div class="slider_bg">
<div class="wrap">
<!---start-da-slider----->
<div class="da-slide">
<h2><img src="web/images/cisco_logo.png" alt="Cisco" width="200px" height="150px"/></h2>
<h2>Nexus 9000 Script Catalog.</h2><br>
<a href="#about" class="scroll"><span class="da-img"> </span></a>
</div>
<!---//End-da-slider----->
</div>
</div>
<!-----end-slider-------->
<!--start portfolio------>
<div class="wrap" id="about">
<div class="main">
<!-- start gallery -->
<div class="gallery1">
<!--start-mfp -->
<div id="small-dialog1" class="mfp-hide">
<div class="pop_up">
<h2>Download Now</h2>
<div id="download_container"></div> <br>
<p class="para">Its free to download this archived solutions for Cisco Nexus 9000. Please ping us for any support. Enjoy!</p>
</div>
</div>
<!--end-mfp -->
<!---start-content----->
<div class="gallery">
<div class="clear"> </div>
<div class="container">
<h2>About Nexus 9000</h2>
<p>Cisco Nexus 9000 Series Switches bring new, industry-leading performance, power, port density, and open programmability innovations. <br><br>Cisco Nexus 9000 GitHub Repo (<a href="https://github.com/datacenter/nexus9000" target="_blank">@datacenter/nexus9000</a>)</p>
<div id="ghapirepodata" class="clearfix"></div>
<center>
<div class="portfolio logo" data-cat="logo" style="width:200px;float:none;!important">
<div class="portfolio-wrapper">
<a class="popup-with-zoom-anim" href="#small-dialog1">
<ul class="ch-grid">
<li>
<div class="ch-item ch-img-1">
<div class="ch-info"><br><br>
<h3>Download Now</h3>
</div>
</div>
</li>
</ul>
</a>
</div>
</div>
</center>
</div>
</div><!-- container -->
<script type="text/javascript" src="web/js/fliplightbox.min.js"></script>
<script type="text/javascript">$('body').flipLightBox()</script>
<div class="clear"> </div>
</div>
</div>
</div>
</div>
<!---End-gallery----->
<!-----start-about-------->
<div class="about" id="catalog">
<div class="wrap">
<h2>Nexus 9000 Script Catalog</h2>
<p>Catalog describes the implemented solutions for Cisco Nexus 9000 running NX-OS.</p>
<div class="about-grids">
<div id="script_catalog_breadcrumb" >
<div class="repolist clearfix" >
<ul>
<li><a href="#">nexus9000</a></li>
<li><a>/</a></li>
</ul>
</div>
</div>
<div class="clear"> </div>
</div><br><br>
<div class="about-grids">
<div class="grid">
<div class="desc" id="script_catalog">
<div class="bs-example">
<div class="list-group">
<a href="#" class="list-group-item">
<span class="glyphicon glyphicon-search"></span> No Script Found...
</a>
</div>
</div>
</div>
</div>
<div class="clear"> </div>
</div>
</div>
</div>
<!---------end-about------------->
<div class="footer-bottom">
<div class="wrap">
<div class="copy">
<p class="copy">© 2014 Designed by <a href="http://www.onecloudinc.com" target="_blank">OneCloud Consulting</a> </p>
</div>
<script type="text/javascript">
$(document).ready(function() {
var defaults = {
containerID: 'toTop', // fading element id
containerHoverID: 'toTopHover', // fading element hover id
scrollSpeed: 1200,
easingType: 'linear'
};
$().UItoTop({ easingType: 'easeOutQuart' });
});
</script>
<a href="#" id="toTop" style="display: block;"><span id="toTopHover" style="opacity: 1;"> </span></a>
<script src="web/js/jquery.scrollTo.js"></script>
</div>
</div>
</body>
</html>