-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.html
482 lines (439 loc) · 23.3 KB
/
menu.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
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
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
<!-- JS Files -->
<script src="/resources/js/home.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" crossorigin="anonymous" referrerpolicy="no-referrer"
/>
<link rel="stylesheet" href="resources/css/monitor-gui.css" type="text/css" />
<link rel="stylesheet" href="resources/css/monitor-ui.css" type="text/css" />
<!-- header area -->
<div class="brand-logo">
<!-- <img src="/resources/idm-service/resources/images/IDM-logo-400.png" alt=""> -->
<img src="/resources/idm-service/resources/images/SARUS-logo-400.png" alt="Sarus Logo">
</div>
<div class='HelpMessageRepo1 HelpMessage nondisp'>
<div class="content">
You can filter results using words and/or phrases (in double quotes).
<br> Filters are not case sensitive and apply to the <i>Symbol</i>, <i>Category</i> and
<i>Description</i> columns only.
<br> Double quotes must be preceded by the escape "<b>\</b>" character.
<br> Words or phrases can be excluded with a preceding "<b>-</b>" minus sign.
<br><br> For example, a search using: "Crude Oil" -Brent
<br> Returns series containing the phrase "Crude oil" but <span class="underline">not</span> the word "Brent".
</div>
</div>
<div id='reportCreatorGridMenu' class="nondisp">
<ul>
<li><img height='15px' width='15px' src='resources/css/icons/add_16.png'> Add to list</li>
<li type='separator'></li>
<li><img height='15px' width='15px' src='resources/css/icons/copy.png'> Copy</li>
</ul>
</div>
<div id='reportCreatorTreeMenu' class="nondisp">
<ul>
<li id="cmOpenAll">
<img height='15px' width='15px' src='resources/css/icons/closed.gif'> Open All
</li>
<li id="cmCloseAll">
<img height='15px' width='15px' src='resources/css/icons/open.gif'> Close All
</li>
<!-- <li type='separator'></li> -->
</ul>
</div>
<div id='seriesListTreeMenu' class="nondisp">
<ul>
<li id="slPaste">
<img height='15px' width='15px' src='resources/css/icons/paste_16.png'> Paste
</li>
<li type='separator'></li>
<li id="slProperties">
<img height='15px' width='15px' src='resources/images/series-prop.png'> Series Properties
</li>
<li id="slRemove">
<img height='15px' width='15px' src='resources/images/del_series.png'> Remove
</li>
<!-- <li type='separator'></li> -->
</ul>
</div>
<div id='batesListPopup' class="batesListPopup" title="Select Columns to Display">
<div id="batesListPan"></div>
<div class="bottomDialog bottomDialog-div popupFooter">
<div id='selAllBates' class="sr-floatl"> Select all columns</div>
<div id="btnSelectBates" class="btnSelectBates" >OK</div>
<input type="hidden" id="sel_tID" name="sel_tID" />
</div>
</div>
<div id="reportBackups" style="display:none">
<div>
<div id='report-container' class="deftoolbarbutton" >
<input id="btnReportCreate" title="Create New Report" type="button" value="New" style="border-radius:1px;">
<input id="btnReportEdit" title="Edit Report Properties" type="button" value="Properties" style="border-radius:1px;">
<input id="btnReportCopy" title="Duplicate Selected Report" type="button" value="Clone" style="border-radius:1px;">
<input id="btnReportRemove" title="Delete Selected Report" type="button" value="Delete" style="border-radius:1px;">
<input id="refreshReport" title="Refresh Report List" type="button" value="">
</div>
<div id="reportGrid" class="reportGrid" >
</div>
<div id='report-buttons' class="popupFooter">
<span class="report-buttons-span" >Select a report from the list above and click
<br />the 'Load' button to open it in a new tab</span>
<table class="report-buttons-table" >
<tr>
<td class="report-buttons-load" style="padding-right: 10px;"><input id="btnLoadReport" type="button" value="Load"></td>
<td class="report-buttons-cancel" style="padding-right: 10px;"><input id="btnCancelModal" type="button" value="Cancel"></td>
</tr>
</table>
</div>
</div>
</div>
<div id="reportCreator" class="nondisp">
<div>
<div id="reportCreatorSplitter">
<div class="splitter-panel" id="leftSplitterPanel1">
<div class="leftSplitterPanel1-div" >
<span id="leftPanTitle" class="leftPanTitle" >My Folders</span>
<img id="leftPanIcon" class="leftPanIcon" src="resources/jqwidgets/styles/images/metro-icon-left.png" />
</div>
<div class="jqx-hideborder jqx-hidescrollbars" class="sr-mt-5">
<div class="jqx-hideborder" id='jstreeRepoCreator' style="margin-left:-20px"></div>
</div>
</div>
<div class="splitter-panel">
<div id="reportCreatorRightSplitter">
<div class="jqx-hideborder jqx-hidescrollbars">
<div id='repoCreatorgrid-container' style="border-top: 1px solid silver;">
<table class="toolbar-table-reportCreator deftoolbarbutton" id="toolbar-table-reportCreator" style="margin:0">
<tr>
<td style="padding-left: 5px;">Filter: </td>
<td><input id="searchReportCreatorBox"></td>
<td>
<div title="Apply the Filter" id="searchReportCreatorBtn" style="border-radius:1px; margin-left:3px"></div>
<!-- <button id="searchReportCreatorBtn" style="line-height: 20px; border-radius:1px">
<img id="activegrid-img" src="resources/css/icons/search.png" title="Apply the Filter" style="margin:0px 2px 2px 2px; border:0">
</button> -->
</td>
<td>
<div title="Filter Help" id="helpIconRepoCreator" class="helpIcon"></div>
</td>
</tr>
<tr style="margin-left:10px;">
<td id="repoCreatorgrid-buttons"></td>
<td><input id="btnAutosizeRepoCreator" title="Autosize Columns" style="margin-right:4px; border-radius:1px"></td>
</tr>
</table>
</div>
<div class="jqx-hideborder" id='repoCreatorgrid' style="width:100%; height:1000px; font-family: Calibri;"></div>
</div>
<div class="jqx-hideborder jqx-hidescrollbars" id="bottomSplitterPanel1" style="margin:0 6px 0 6px">
<div class="jqx-hideborder" id='jstreeSeriesList' style="overflow:auto; width:calc(100% - 32px); height:calc(100%); max-height:calc(100%); margin-left:-25px; padding: 1px; float: left;"></div>
<div class="jqx-hideborder" id="seriesButtonPan" style="float:left; width:50px; height:100%; border-left: 2px solid #ddd !important; padding-left:8px; background-color:#efefef">
<div style="height:32px; margin-top:13px"><input id="upArrow" style="float:left; background-color: rgb(237, 237, 237) !important; border-radius:4px; box-shadow:0px 0 1px rgb(0 0 0 / 25%);" /></div>
<div style="height:32px; margin-top:6px"><input id="downArrow" style="float:left; background-color: rgb(237, 237, 237) !important; border-radius:4px; box-shadow:0px 0 1px rgb(0 0 0 / 25%);" /></div>
<div style="height:32px; margin-top:52px"><input id="deleteBtn" style="float:left; background-color: rgb(237, 237, 237) !important; border-radius:4px; box-shadow:0px 0 1px rgb(0 0 0 / 25%);" /></div>
<div style="height:32px; margin-top:6px"><input id="propertiesBtn" style="float:left; background-color: rgb(237, 237, 237) !important; border-radius:4px; box-shadow:0px 0 1px rgb(0 0 0 / 25%);" /></div>
</div>
</div>
</div>
</div>
</div>
<div id='reportCreator-buttons' style="margin-top: 12px; padding-right: 3px" class="popupFooter">
<table style="margin-bottom:0px; width:auto; float:right; height:40px;">
<tr>
<td style="padding-right:10px; vertical-align:top"><input id="btnSaveReportCreator" type="button" value="OK" style="box-shadow:0px 0 1px rgb(0 0 0 / 25%);"></td>
<td style="padding-right:10px; vertical-align:top"><input id="btnCancelReportCreator" type="button" value="Cancel" style="box-shadow:0px 0 1px rgb(0 0 0 / 25%);"></td>
</tr>
</table>
</div>
</div>
</div>
<div id="loginPopup" style="min-width:365px; display:none;">
<div>
<div id='login-container' style="width:85%; margin:auto">
<table style="margin-bottom: 18px;">
<tr>
<td align="center" style="min-width:300px; color: #666!important;">
Your login has timed out. Please login again.<br><br><br>
</td>
</tr>
<tr>
<td style="line-height:30px; padding-bottom:10px">
User Reference No:
<font color="red">*</font><br>
<input id="re_referenceNumber"><br>
</td>
</tr>
<tr>
<td style="line-height:30px; padding-bottom:10px">
User Name:
<font color="red">*</font><br>
<input id="re_username"><br>
</td>
</tr>
<tr>
<td style="line-height:30px; padding-bottom:10px">
Password:
<font color="red">*</font><br>
<input type="password" id="re_password" style="padding:0"><br>
</td>
</tr>
</table>
</div>
<div id='login-buttons'>
<table style="margin-bottom:0px; width: 100%; float:right; height:52px;">
<tr>
<td style="min-width: 200px;">
<span style="line-height:25px; margin-left:28px; color:#666">Token Life</span><br>
<div id='liveTime' style="margin-left:28px; float:left"></div>
<span id='liveTimeLabel' style="line-height:25px; display:none"> Hour</span>
</td>
<td style="padding-top:7px; padding-right:10px; vertical-align:top; width:40px;"><button type="button" class="btn" id="btnLoadLogin" style="margin:0">Login</button></td>
<td style="padding-top:7px; padding-right:10px; vertical-align:top; width:40px;"><input id="btnCancelLogin" type="button" value="Cancel"></td>
</tr>
</table>
</div>
</div>
</div>
<!-- <div id="addReportWindow" title="Create Favorites Report" style="display:none">
<div>
Report name: <input type="text" id="reportName" name="reportName"><br></br>
<input type="checkbox" id="reportPadlock" name="reportPadlock"> Protected
</div>
</div> -->
<div id="editReportWindow" class="editReportWindow" title="Report Properties" >
<div id="singleReport">
Report name for ID <span id="oldReportID"></span>:
<div id="oldReportName"></div><br></br>
New report name for ID <span id="newReportID"></span>: <input type="text" id="newReportName" name="newReportName">
</div>
<div id="multipleReport">
<div id="oldReportName">You have selected <span id="rowsReportLength"></span> series.</div><br> You can only change the Protected property on multiple reports.
</div>
<div id='newReportPadlock'> Locked</div>
</div>
<ul class="nav-menu">
<div class="close-btn">
<span></span>
<span></span>
</div>
<li class="nav-item"><a class="nav-link headerMenu active" href="/" id="menu0" role="/">Home</a></li>
<li class="nav-item dropdown-btn dropdown-btn1"><a class="nav-link">Solutions <i class="fas fa-caret-down"></i></a>
<ul class="dropdown-item ">
<li class="nav-item">
<a class="nav-link headerMenu" href="/samples" id="menu1" role="/samples"><img src="/resources/css/icons/analytics.png" alt=""> Market Data Analytics</a>
</li>
<li class="nav-item ">
<a class="nav-link headerMenu" href="/m-api" id="menu2" role="/m-api"><img src="/resources/css/icons/R-16.png"> Monitor+ API</a>
</li>
<li class="nav-item">
<a class="nav-link headerMenu" href="/xlerate" id="menu3" role="/xlerate"><img src="/resources/css/icons/xlerate20x16.png" alt=""> XLerate for Excel</a>
</li>
</ul>
</li>
<li class="nav-item dropdown-btn dropdown-btn2"><a class="nav-link">Documents <i class="fas fa-caret-down"></i></a>
<ul class="dropdown-item">
<li class="nav-item">
<a class="nav-link headerMenu" href="/r-package" id="menu4" role="/r-package"><img src="/resources/css/icons/R-24.png" alt="">Using the 'R' Package</a>
</li>
<li class="nav-item">
<a class="nav-link headerMenu" href="/python-api" id="menu5" role="/python-api"><img src="/resources/css/icons/Python16.png" alt="">Using the Python Package</a>
</li>
<li class="nav-item">
<a class="nav-link headerMenu" href="/api-docs" id="menu6" role="/api-docs"><img src="/resources/css/icons/APIDocs16.png" alt="">API Documentation
</a>
</li>
</ul>
</li>
<li class="nav-item"><a class="nav-link headerMenu" href="/contact-us" id="menu7" role="/contact-us">Contact</a>
</li>
<li class="nav-item register non-login"><a class="nav-link headerMenu" href="/registration" id="menu8" role="/registration">Register</a></li>
<li class="nav-item login non-login"><a class="nav-link headerMenu" href="/login" id="menu9" role="/login">Login</a>
</li>
<li class="dropdown-btn profile home-menu">
<a class="nav-link"><img src="/resources/css/fonts/man.png" alt=""> <span id="login_name"></span> <i class="fas fa-caret-down"></i> </a>
<ul class="dropdown-item">
<li>
<a href="/profile" class="headerMenu" id="menu10" role="/profile"><img src="/resources/css/icons/MyAccount16.png" alt=""> My Account</a>
</li>
<li>
<a href="/profilemain?tab=favorites" class="headerMenu" id="menu11" role="/profilemain?tab=favorites"><img src="/resources/css/icons/Favorites16.png" alt=""> My Favorites
</a>
</li>
<li>
<a href="javascript:void(0)" class="headerMenu" id="report_list"><img src="/resources/css/icons/Sheet16.png" alt=""> My WebXL Reports</a>
</li>
<li>
<a id="logout" href="javascript:void(0)"><img src="/resources/css/icons/Logout.png" alt=""> logout</a>
</li>
</ul>
</li>
</ul>
<div class="bar">
<span class="bar1"></span>
<span class="bar2"></span>
<span class="bar3"></span>
</div>
<script>
$(document).ready(function() {
var elements = $(".headerMenu");
var url = window.location.pathname;
/*elements.each(function (index) {
exp_url = url.split("/");
if (exp_url[1] == "") {
if (index == 0) {
$("#menu" + index).attr("href", "#");
}
else {
$("#menu" + index).attr("href", $("#menu" + index).attr("role"));
}
}
else {
if (index == 0) {
$("#menu" + index).attr("href", $("#menu" + index).attr("role"));
}
else {
if (url === $("#menu" + index).attr("role")) {
$("#menu" + index).attr("href", "#");
}
else {
if($("#menu" + index).attr("role") != '/profile' && $("#menu" + index).attr("role") != '/profilemain?tab=favorites'){
$("#menu" + index).attr("href", $("#menu" + index).attr("role"));
}
}
}
}
});*/
$('.dropdown-btn1').click(function(e) {
e.stopPropagation();
if ($(this).children('.dropdown-item').hasClass('dropdown-item-shown') == true) {
$(this).children('.dropdown-item').removeClass('dropdown-item-shown')
} else($(this).children('.dropdown-item').addClass('dropdown-item-shown'))
$('.dropdown-btn2').children('.dropdown-item').removeClass('dropdown-item-shown')
$('.dropdown-btn3').children('.dropdown-item').removeClass('dropdown-item-shown')
});
$('.dropdown-btn2').click(function(e) {
e.stopPropagation();
if ($(this).children('.dropdown-item').hasClass('dropdown-item-shown') == true) {
$(this).children('.dropdown-item').removeClass('dropdown-item-shown')
} else($(this).children('.dropdown-item').addClass('dropdown-item-shown'))
$('.dropdown-btn1').children('.dropdown-item').removeClass('dropdown-item-shown');
$('.dropdown-btn3').children('.dropdown-item').removeClass('dropdown-item-shown');
});
$('.profile').click(function(e) {
e.stopPropagation();
if ($(this).children('.dropdown-item').hasClass('dropdown-item-shown') == true) {
$(this).children('.dropdown-item').removeClass('dropdown-item-shown')
} else($(this).children('.dropdown-item').addClass('dropdown-item-shown'))
$('.dropdown-btn1').children('.dropdown-item').removeClass('dropdown-item-shown');
$('.dropdown-btn2').children('.dropdown-item').removeClass('dropdown-item-shown')
$('.dropdown-btn3').children('.dropdown-item').removeClass('dropdown-item-shown');
});
$(document).on('click', function(e) {
if ($(e.target).is(".dropdown-btn") == false && $('.dropdown-item').hasClass(
'dropdown-item-shown')) {
console.log("button clicked");
$('.dropdown-item').removeClass('dropdown-item-shown');
}
});
$('.navbar .bar').click(function() {
$('.nav-menu').addClass('nav-menu-shown')
if ($('.footer-menu').hasClass('nav-menu-shown')) {
$('.footer-menu').removeClass('nav-menu-shown')
}
});
$('.navbar .close-btn').click(function() {
$('.nav-menu').removeClass('nav-menu-shown')
});
$(window).resize(function() {
if ($('.nav-menu').hasClass('nav-menu-shown')) {
$('.nav-menu').removeClass('nav-menu-shown')
}
});
let lastScrollTop = 0;
$(window).scroll(function(event) {
let st = $(this).scrollTop();
if (st > lastScrollTop && lastScrollTop >= 0) {
$('.navbar').css({
top: '-110px'
});
$('.dropdown-item').removeClass('dropdown-item-shown');
$('.nav-menu').removeClass('nav-menu-shown');
$('.marquee-wrapper').css({
visibility: 'hidden',
opacity: '0'
});
} else if (st < lastScrollTop) {
$('.navbar').css({
top: '0'
})
$('.marquee-wrapper').css({
visibility: 'visible',
opacity: 1
})
}
lastScrollTop = st;
});
});
function loadScript(src) {
var scriptElem = document.createElement('script');
scriptElem.setAttribute('src', src);
scriptElem.setAttribute('type', 'text/javascript');
document.getElementsByTagName('head')[0].appendChild(scriptElem);
}
if (location.pathname !== '/login' &&
location.pathname !== '/' &&
location.pathname !== '/contact-us' &&
location.pathname !== '/r-package' &&
location.pathname !== '/python-api' &&
location.pathname !== '/api-docs' &&
location.pathname !== '/samples' &&
location.pathname !== '/m-api' &&
location.pathname !== '/xlerate' &&
location.pathname !== '/databases' &&
location.pathname !== '/faq' &&
location.pathname !== '/terms-and-conditions' &&
location.pathname !== '/work-with-us' &&
location.pathname !== '/privacy-policy' &&
location.pathname !== '/fair-use-policy' &&
location.pathname !== '/cookie-policy') {
setTimeout("loadScript('resources/js/reportCreator.js');", 100);
}
function go_url(url, page_type = "private") {
var path = window.location.pathname;
if (path !== url) {
if ((getSession() == undefined || getSession() == "") && page_type == "private") {
openLoginPopup();
} else {
if (path == "/report_viewer") {
dialogWindow("The report will be lost if you continue.<br>Open the request in a new tab?", "query", "confirm", "Monitor+", () => {
var jsonObj = request_editor.get();
// var jsonObj1 = getJsonTree(notes_editor);
// var jsonObj2 = getJsonTree(user_editor);
if (JSON.stringify(jsonObj) != JSON.stringify(requestParameters)) {
edit_flag = true;
}
if (edit_flag == true) {
dialogWindow("The report may have been changed.<br/>If you load a new report you my lose these changes.<br>Do you want continue?", "query", "confirm", "Monitor+", () => {
window.open(url, '_blank');
}, () => {
window.open(url, '_self');
}, null, {
Ok: "Yes",
Cancel: "No",
Destroy: "Cancel"
});
} else {
window.open(url, '_blank');
}
}, () => {
window.open(url, '_self');
// }, null, { Ok: "Yes", Cancel: "No" });
}, null, {
Ok: "Yes",
Cancel: "No",
Destroy: "Cancel"
});
} else {
window.open(url, '_self');
}
}
}
}
</script>