-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindexRaw.html
312 lines (299 loc) · 10.2 KB
/
indexRaw.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
<!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">
<title>Material BI Dashboard</title>
<link rel="stylesheet" href="https://oracle.github.io/font-apex/css/font-apex.min.css?v=2.1" type="text/css" />
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet">
<link href="css/badges.css" rel="stylesheet">
<link href="css/billboard.css" rel="stylesheet">
<link href="css/calendarHeatmap.css" rel="stylesheet">
<link href="css/cards.css" rel="stylesheet">
<link href="css/charts.css" rel="stylesheet">
<link href="css/clock.css" rel="stylesheet">
<link href="css/fullCalendar.css" rel="stylesheet">
<link href="css/fullCalendarCustome.css" rel="stylesheet">
<link href="css/html.css" rel="stylesheet">
<link href="css/list.css" rel="stylesheet">
<link href="css/map.css" rel="stylesheet">
<link href="css/masonry.css" rel="stylesheet">
<link href="css/pell-custome.css" rel="stylesheet">
<link href="css/pell.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/table.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"
integrity="sha256-0YPKAwZP7Mp3ALMRVB2i8GXeEndvCq3eSl/WsAl1Ryk=" crossorigin="anonymous"></script>
<script src="js/lib/d3.js"></script>
<script src="js/lib/fullCalendar.js"></script>
<script src="js/lib/fullCalendarLocales.js"></script>
<script src="js/lib/maptopojson.js"></script>
<script src="js/lib/masonry.pkgd.js"></script>
<script src="js/lib/nbillboard.js"></script>
<script src="js/lib/pell.js"></script>
<script src="js/lib/purify.js"></script>
<script src="data/data.js"></script>
<script src="data/dataAsync.js"></script>
<script src="js/bridge.js"></script>
<script src="js/script.js"></script>
</head>
<script>
var mainConf = {
"isSortable": false,
"colSpan": 12,
"height": 400,
"refresh": 0,
"backColor": "transparent",
"color": "inherit",
"boxShadow": "0px 0px 6px 0.32px rgba(0, 0, 0, 0.26)",
"optionsLink": {
"backColor": "transparent",
"color": "inherit",
"icon": "fa-link"
},
"optionsLinkTop": {
"backColor": "transparent",
"color": "inherit",
"icon": "fa-link"
},
"title": {
"backColor": "transparent",
"color": "inherit",
"icon": null
}
};
var sanitizerConf = {
"ALLOWED_ATTR": ["accesskey", "align", "alt", "always", "autocomplete", "autoplay", "border", "cellpadding", "cellspacing", "charset", "class", "dir", "height", "href", "id", "lang", "name", "rel", "required", "src", "style", "summary", "tabindex", "target", "title", "type", "value", "width"],
"ALLOWED_TAGS": ["a", "address", "b", "blockquote", "br", "caption", "code", "dd", "div", "dl", "dt", "em", "figcaption", "figure", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "i", "img", "label", "li", "nl", "ol", "p", "pre", "s", "span", "strike", "strong", "sub", "sup", "table", "tbody", "td", "th", "thead", "tr", "u", "ul"]
};
var tableConf = {
"header": {
"background": "white",
"textAlign": "left",
"color": "inherit",
"border": "1px solid rgba(240, 240, 240, 1)"
},
"cells": {
"background": "transparent",
"textAlign": "left",
"color": "inherit",
"border": "1px solid rgba(240, 240, 240, 1)"
},
"evenRow": {
"background": "white",
"textAlign": "left",
"color": "inherit",
"borderBottom": "1px solid rgba(240, 240, 240, 1)"
},
"oddRow": {
"background": "rgb(240,240,240)",
"textAlign": "left",
"color": "inherit",
"borderBottom": "1px solid rgba(240, 240, 240, 1)"
}
};
var clockConf = {
"shadows": false,
"label": {
"labelColor": "#303030",
"labelColor2": "#303030"
},
"hour": {
"labelColor": "#303030",
"tickColor": "#999"
},
"second": {
"label": false,
"labelColor": "#707070",
"tickColor": "#ccc"
},
"hands": {
"color": "#303030",
"coverFillColor": "white",
"coverStrokeColor": "#999",
"coverSize": 2
},
"circle": {
"color": "#999",
"width": 4,
"fillColor": "#999"
}
};
var mapConf = {
"tour": {
"enabled": false,
"direction": "right",
"speed": 10,
"start": -30,
"shadowEffect": true
},
"circles": {
"color": "rgb(97, 159, 209)",
"radius": 5,
"opacity": 0.9,
"opacityHover": 0.65,
"shadows": false
},
"map": {
"stroke": "white",
"strokeWidth": "0.5px",
"color": "rgb(170,170,170)",
"centerLongitude": 0,
"centerLatitude": 0,
"initialZoom": 1,
"shadows": false
}
};
var chartConf = {
"axisLabelPosition": "outer2",
"background": null,
"gauge": {
"min": 0,
"max": null,
"type": "single",
"width": null,
"arcMinWidth": null,
"fullCircle": true,
"title": null,
"axisLabels": false
},
"grid": {
"x": true,
"y": true
},
"shadows": true,
"legend": {
"position": "bottom",
"show": true
},
"padding": {
"bottom": null,
"left": null,
"right": null,
"top": null
},
"rotateAxis": false,
"showDataLabels": false,
"showDataPoints": true,
"splineInterpolation": "step-after",
"tick": {
"cutAfter": 30,
"maxNumber": 25,
"multiline": false,
"rotation": 60,
"timeFormat": "%m-%d %H:%M"
},
"threshold": 0.05,
"tooltip": {
"grouped": true,
"show": true
},
"transitionDuration": 100,
"x": {
"label": "x Axis",
"timeFormat": "%y-%m-%d %H:%M:%S",
"type": "category"
},
"axisHeight": null,
"y": {
"label": "y Axis 1",
"max": null,
"min": null
},
"y2": {
"label": "y Axis 2",
"max": null,
"min": null
},
"zoom": {
"enabled": true,
"type": "subchart",
"rescale": false
}
};
function init() {
/* init the dashboard */
apexBIDashBoard(bridge, $, DOMPurify, Masonry, pell).initialize(
'plugin',
'plugin',
"ajaxIDKey0815",
'No data found',
'Error occured',
mainConf,
'A',
'map:table:charts:clock:calendar:note:calendarheatmap',
chartConf,
null,
null,
false,
sanitizerConf,
"https://apex.oracle.com/pls/apex/ronnyweiss_outlook_com/r/55310/files/plugin/161556939618477644685/v4869/map/",
mapConf,
tableConf,
clockConf,
null
);
}
function ajaxCall(ajaxID, pItems, pOptions) {
switch (pItems.x01) {
/* wait to simulate ajax request */
case "items":
setTimeout(function () {
pOptions.success(data);
// used when error
//pOptions.error(data);
}, 0);
break;
case "itemData":
console.log("Try to load async data from item - " + pItems.x02);
/* wait to simulate ajax request */
setTimeout(function () {
pOptions.success(asyncData, null, {
getResponseHeader: function () {
return pItems.x04;
}
});
// used when error
//pOptions.error(data);
}, 0);
break;
case "noteUpload":
/* wait to simulate ajax request */
console.log("Text successfully send from item - " + pItems.x02 + ": " + pItems.f01.join());
setTimeout(function () {
pOptions.success();
// used when error
//pOptions.error();
}, 0);
break;
case "imageDownload":
/* used when image download from pluginURL is done by same ajax call then the other calls
** this feature is used only when use unleash rte plug-in and images should be load by this build feature in other
** frameworks then APEX this make IMHO no sense so this will never be called */
console.log("Try to download image");
break;
default:
pOptions.error();
bridge.debug.warn("No function set for this AJAX Call!");
}
}
</script>
<body onload="init()" style="box-sizing: border-box">
<header>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<a class="navbar-brand" href="https://linktr.ee/ronny.weiss" target="_blank">Material BI Dashboard</a>
</nav>
</header>
<div class="container-fluid" style="margin-top:60px">
<div class="row">
<div class="col-12">
<div id="plugin" style="width:100%">
</div>
</div>
</div>
</div>
</body>
</html>