forked from achouhans/JavaScript-Scripting
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
317 lines (261 loc) · 12.6 KB
/
Copy pathindex.html
File metadata and controls
317 lines (261 loc) · 12.6 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
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
<!-- Standard Meta -->
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta charset="utf-8">
<meta content=
"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
name="viewport">
<meta content="" name="description">
<meta content="" name="author">
<link href="images/favicon.ico" rel="shortcut icon"><!-- DocPad Meta -->
<meta content="DocPad v6.63.8" name="generator"><!-- Site Properties -->
<title>Sqoop Database Ingestion</title>
<!-- ModernizrJS :: PolyFill for handling compatibility issues -->
<!--<script defer="defer" src="libs/modernizr.js"></script>-->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<![endif]--><!--Styles-->
<link href="images/skin-xp/ui.fancytree.css" rel="stylesheet" type="text/css">
<link href="libs/font-awesome.css" rel="stylesheet"/>
<link rel="stylesheet" href="libs/bootstrap.min.css">
<link rel="stylesheet" href="libs/bootstrap-dialog.min.css">
<link rel="stylesheet" href="libs/jquery.dataTables.min.css">
<link rel="stylesheet" href="libs/buttons.dataTables.min.css">
<link rel="stylesheet" href="libs/select.dataTables.min.css">
<link href="libs/select2.min.css" rel="stylesheet" />
<link href="css/a.css" rel="stylesheet">
<link href="css/tree.css" rel="stylesheet">
<link href="css/bootstrap-datetimepicker.min.css" rel="stylesheet">
<!-- UI Toolkit CSS -->
<!--<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet">-->
<link href="css/prism.css" rel="stylesheet">
<link href="css/uitoolkit.css" rel="stylesheet">
<link href="css/documentation-styles.css" rel="stylesheet">
<!--Scripts -->
<script src="libs/jquery.min.js"></script>
<script src="libs/bootstrap.min.js"></script>
<script src="libs/bootstrap-dialog.min.js"></script>
<script src="libs/jquery-ui.min.js"></script>
<script src="libs/jquery.fancytree-all.min.js"></script>
<script src="libs/select2.min.js"></script>
<script src="libs/fancytreeFilterLib.js" type="text/javascript"></script>
<script src="libs/jquery.fancytree.edit.js" type="text/javascript"></script>
<script src="libs/jquery.dataTables.min.js"></script>
<script src="libs/dataTables.buttons.min.js"></script>
<script src="libs/dataTables.select.min.js"></script>
<script src="libs/tree.js"></script>
<script src="libs/moment-with-locales.js"></script>
<script src="libs/bootstrap-datetimepicker.min.js"></script>
<script src="services/services.js"></script>
<script src="services/TreeTemplateService.js"></script>
<script src="services/ConfigurationViewService.js"></script>
<script src="services/JobViewService.js"></script>
<script src="views/utils/loader.js"></script>
<script defer="defer" src="libs/documentation.js"></script>
<script defer="defer" src="libs/uitoolkit.min.js"></script>
<script defer="defer" src="libs/prism.js"></script> <!-- Fixing IE issue with console.log -->
<script type="text/javascript">
if (!window.console) console = {log: function() {}};
</script>
<script type="text/javascript">
var $ = $.noConflict();
$(document).ready(function ($) {
/* Set Button Text on Default State - onload*/
$('.toggleButton').text("Job View");
/* Function for Button Click */
var buttonText;
$('.toggleButton').click(function () {
$(this).text(function (i, v) {
toggleView(v);
return buttonText;
});
});
/* Toggle Between Sidebar Open/Close */
$(".expanded").click(function() {
$('.collapsed').show();
$('.expanded').hide();
});
$(".collapsed").click(function() {
$('.expanded').show();
$('.collapsed').hide();
});
/* Toggle between views - Job/Congiguration View */
var toggleView = function (v) {
if (v === 'Job View') {
if($('.configurationView').length)
$('.configurationView').hide();
if($('.jobView').length)
$('.jobView').show();
else
addImportLink('views/JobViewTemplate.html', '.jobView', 'jobViewLink');
buttonText = 'Configuration View';
$('#viewTitle').text('Job View');
} else {
if($('.jobView').length)
$('.jobView').hide();
if($('.configurationView').length)
$('.configurationView').show();
else
addImportLink('views/ConfigurationViewTemplate.html', '.configurationView', 'configurationViewLink');
buttonText = 'Job View';
$('#viewTitle').text('Configuration View');
}
};
var treeNavigation = document.querySelector('.treeNavigation');
var doc_body = document.querySelector('.doc-body');
var addImportLink = function(url, querySelectorId, linkId) {
var link = document.createElement('link');
link.rel = 'import';
link.href = url;
link.id = linkId;
link.onload = function(event) {
var post = this.import.querySelector(querySelectorId);
if(event.target.id == 'treeLink'){
treeNavigation.appendChild(post.cloneNode(true));
initializeTree();
}
if(event.target.id == 'jobViewLink'){
doc_body.appendChild(post.cloneNode(true));
loadJobViewData();
}
if(event.target.id == 'configurationViewLink'){
doc_body.appendChild(post.cloneNode(true));
loadConfigurationView();
}
};
link.onerror = function(e){
// alert("Unable to load template: " + "\nId: " + event.target.id + "\nURL: " + e.target.href);
console.log("Unable to load template: " + "\nId: " + event.target.id + "\nURL: " + e.target.href);
}
document.head.appendChild(link);
}
/* On Initial Load, show configuration view */
loadTreeData()
.done(
function(data, status, jqXHR) {
getTreeMenuData = data;
addImportLink('views/TreeTemplate.html', '.sidebar', 'treeLink');
toggleView('');
}
)
.fail(
function(jqXHR,status,err) {
alert("Error loading Tree Data " + err);
}
);
// Create the XHR object.
function createCORSRequest(method, url) {
var xhr = new XMLHttpRequest();
if ("withCredentials" in xhr) {
// XHR for Chrome/Firefox/Opera/Safari.
xhr.open(method, url, true);
} else if (typeof XDomainRequest != "undefined") {
// XDomainRequest for IE.
xhr = new XDomainRequest();
xhr.open(method, url);
} else {
// CORS not supported.
xhr = null;
}
return xhr;
}
// Helper method to parse the title tag from the response.
function getTitle(text) {
return text.match('<title>(.*)?<\/title>')[1];
}
// Make the actual CORS request.
function makeCorsRequest() {
// All HTML5 Rocks properties support CORS.
var url = 'http://updates.html5rocks.com';
var xhr = createCORSRequest('GET', url);
if (!xhr) {
// alert('CORS not supported');
return;
}
// Response handlers.
xhr.onload = function () {
var text = xhr.responseText;
var title = getTitle(text);
// alert('Response from CORS request to ' + url + ': ' + title);
};
xhr.onerror = function () {
// alert('Woops, there was an error making the request.');
};
xhr.send();
}
});
$( document ).ajaxStart(function() {
ajaxindicatorstart('loading data.. please wait..');
}).ajaxStop(function () {
ajaxindicatorstop();
});
</script>
</head>
<body class="preload">
<div class="app-content" style="position: fixed;">
<!-- Inline header contains the menu links -->
<div class="app-header">
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<h3 class="headerTitle"><i class="fa fa-database"> Sqoop Data Ingestion</i></h3>
</div>
</div>
</div>
</div>
<div id="web-ui-toolkit-content">
<div class="container-fluid">
<div class="row">
<div class="col-xs-12 doc-main-container col-secondary no-padding no-padding-top no-padding-bottom">
<div class="doc-side-menu treeNavigation" data-offset-top="42" style="height: 100%;">
</div>
<div class="doc-main-content">
<!-- horizontal breadcrumb navigation panel -->
<div class="row">
<div class="col-xs-12">
<div class=
"horizontal-bar col-secondary col-border-left"
data-offset-top="42" style=
"display: inline-flex; width: 100%; border-bottom: white; background-color: white;">
<a class=
"pull-right expanded fa fa-angle-double-left icon-action"
href="#" id="panel-collapse" style="padding-top: 5px"></a>
<a class= "hidden collapsed fa fa-angle-double-right icon-action" href="#hello" id="panel-expand" style="padding-top: 5px"></a>
<h1 style="padding-left: 10px;font-family: inherit;" id="viewTitle">
</h1><button class=
"btn sample btn-sample toggleButton"
onclick="" type="button"></button>
</div>
</div>
</div>
<!-- horizontal navigation breadcrumb panel ends -->
<div class="row">
<div class="doc-body col-xs-12 col-border-left col-primary">
<hr style=
"margin-top: 45px;width: 100%;height: 1px;border-top: 1px solid #79F58F;">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer>
<p class="footerText">Sqoop Data Ingestion Application © 2013 - 2015</p>
</footer>
<!--
NOTE: JS are included at the end of <body>. This allows the page to be rendered while the JS is being
loaded. This is suggested to improve page load performance.
-->
<!-- JQuery is a prerequisite to UI Toolkit -->
<!--<script defer="defer" src="libs/jquery.min.js"></script> --><!-- UI Toolkit JS -->
</body>
</html>