profoundjs 7.14.1 → 7.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/htdocs/profoundui/proddata/js/designer.js +3658 -3656
- package/htdocs/profoundui/proddata/js/key_management.js +2 -0
- package/htdocs/profoundui/proddata/js/rich-display-react-component.js +1 -0
- package/htdocs/profoundui/proddata/js/runtime.js +1486 -1486
- package/htdocs/profoundui/userdata/custom/themes/enhanced.js +15 -18
- package/htdocs/profoundui/userdata/custom/themes/hybrid.js +14 -17
- package/htdocs/profoundui/userdata/custom/themes/standard.js +12 -15
- package/htdocs/profoundui/userdata/custom/widgets/googlemaps.js +26 -42
- package/htdocs/profoundui/userdata/custom/widgets/listbox.js +6 -10
- package/htdocs/profoundui/userdata/custom/widgets/panel.js +20 -29
- package/htdocs/profoundui/userdata/custom/widgets/styled_button.js +19 -26
- package/htdocs/profoundui/userdata/custom/widgets/tabpanel.js +23 -30
- package/htdocs/profoundui/userdata/genie skins/Classic/custom.js +3 -3
- package/htdocs/profoundui/userdata/genie skins/Gradient/adjusted columns custom.js +57 -57
- package/htdocs/profoundui/userdata/genie skins/Gradient/custom.js +57 -57
- package/htdocs/profoundui/userdata/genie skins/Hybrid/custom.js +135 -143
- package/htdocs/profoundui/userdata/genie skins/Plain/custom.js +1 -3
- package/htdocs/profoundui/userdata/genie skins/Skyline/adjusted columns custom.js +70 -70
- package/htdocs/profoundui/userdata/genie skins/Skyline/custom.js +69 -69
- package/htdocs/profoundui/userdata/genie skins/Tablet/custom.js +20 -56
- package/htdocs/profoundui/userdata/samples/ordentry/OrdEntry.js +26 -27
- package/htdocs/vlog/rpglog.js +47 -46
- package/htdocs/vlog/vlog.js +50 -50
- package/package.json +1 -2
- package/profound.jse +1 -1
- package/setup/pjsdist.savf +0 -0
|
@@ -1,98 +1,96 @@
|
|
|
1
|
-
|
|
1
|
+
const hybridSkin = {};
|
|
2
2
|
|
|
3
|
+
// eslint-disable-next-line no-unused-vars
|
|
3
4
|
function customize() {
|
|
4
|
-
|
|
5
5
|
// Customize Sign-On Screen
|
|
6
|
-
if (detectScreen(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
hideElements(
|
|
11
|
-
|
|
12
|
-
changeElementValue(
|
|
13
|
-
changeElementClass(
|
|
14
|
-
changeElementValue(
|
|
15
|
-
changeElementClass(
|
|
16
|
-
setDOMAttribute("D_7_17", "transparent", true);
|
|
17
|
-
setDOMAttribute("D_6_17", "transparent", true);
|
|
18
|
-
moveElement(
|
|
19
|
-
moveElement(
|
|
20
|
-
moveElement(
|
|
21
|
-
moveElement(
|
|
22
|
-
if (getObj(
|
|
23
|
-
if (getObj(
|
|
24
|
-
|
|
25
|
-
loginButton.onclick = function() {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
6
|
+
if (detectScreen("D_1_23", " Sign On",
|
|
7
|
+
"D_2_48", "System . . . . . :",
|
|
8
|
+
"D_3_48", "Subsystem . . . . :",
|
|
9
|
+
"D_4_48", "Display . . . . . :")) {
|
|
10
|
+
hideElements("D_1_23", "D_2_48", "D_3_48", "D_4_48", "D_2_70", "D_3_70", "D_4_70", "I_11_53", "I_12_53", "D_11_17", "D_12_17",
|
|
11
|
+
"D_8_17", "D_9_17", "D_10_17", "I_8_53", "I_9_53", "I_10_53", "D_24_40");
|
|
12
|
+
changeElementValue("D_6_17", " User:");
|
|
13
|
+
changeElementClass("D_6_17", "BigText");
|
|
14
|
+
changeElementValue("D_7_17", "Password:");
|
|
15
|
+
changeElementClass("D_7_17", "BigText");
|
|
16
|
+
setDOMAttribute("D_7_17", "transparent", true);
|
|
17
|
+
setDOMAttribute("D_6_17", "transparent", true);
|
|
18
|
+
moveElement("D_6_17", 8.9, 15);
|
|
19
|
+
moveElement("D_7_17", 10.9, 15);
|
|
20
|
+
moveElement("I_6_53", 8.9, 49);
|
|
21
|
+
moveElement("I_7_53", 10.9, 49);
|
|
22
|
+
if (getObj("I_6_53") != null) getObj("I_6_53").style.width = "90px";
|
|
23
|
+
if (getObj("I_7_53") != null) getObj("I_7_53").style.width = "90px";
|
|
24
|
+
const loginButton = newElement(12.7, 49, "button", "Login", "login_button");
|
|
25
|
+
loginButton.onclick = function() {
|
|
26
|
+
pressKey("Enter");
|
|
27
|
+
};
|
|
28
|
+
moveElement("quit_button", 12.7, 57);
|
|
29
|
+
changeElementValue("quit_button", "Exit");
|
|
30
|
+
const backdrop = newElement(5, 15, "img", "/profoundui/proddata/images/login.gif", "backdrop_image");
|
|
29
31
|
backdrop.style.zIndex = 5;
|
|
30
|
-
|
|
32
|
+
|
|
31
33
|
// Format signon differently when using 128 char passwords:
|
|
32
|
-
if (getObj("I_7_53")!=null
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
34
|
+
if (getObj("I_7_53") != null &&
|
|
35
|
+
getObj("I_8_1") != null &&
|
|
36
|
+
getObj("I_9_1") != null) {
|
|
37
|
+
let pwlength = 0;
|
|
38
|
+
pwlength = getObj("I_7_53").fieldInfo.size;
|
|
39
|
+
pwlength += getObj("I_8_1").fieldInfo.size;
|
|
40
|
+
pwlength += getObj("I_9_1").fieldInfo.size;
|
|
41
|
+
if (pwlength == 128) {
|
|
42
|
+
moveElement("D_6_17", 6.9, 15);
|
|
43
|
+
moveElement("D_7_17", 8.9, 15);
|
|
44
|
+
moveElement("I_6_53", 6.9, 49);
|
|
45
|
+
moveElement("I_7_53", 8.9, 49);
|
|
46
|
+
moveElement("I_8_1", 10, 49);
|
|
47
|
+
moveElement("I_9_1", 11.1, 49);
|
|
48
|
+
getObj("I_7_53").style.width = "150px";
|
|
49
|
+
getObj("I_8_1").style.width = "150px";
|
|
50
|
+
getObj("I_9_1").style.width = "150px";
|
|
51
|
+
}
|
|
50
52
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
if (msg!=
|
|
53
|
+
|
|
54
|
+
const msg = get("D_24_1");
|
|
55
|
+
if (msg != "" && pui.genie.alertMsg == "") {
|
|
54
56
|
pui.genie.alertMsg = msg;
|
|
55
|
-
if (pui.genie.alertMsg.substr(0,3) ==
|
|
56
|
-
if (pui.genie.alertMsg.substr(0,1) ==
|
|
57
|
+
if (pui.genie.alertMsg.substr(0, 3) == "CPF") pui.genie.alertMsg = pui.genie.alertMsg.substr(8);
|
|
58
|
+
if (pui.genie.alertMsg.substr(0, 1) == "-") pui.genie.alertMsg = pui.genie.alertMsg.substr(1);
|
|
57
59
|
}
|
|
58
|
-
hideElement(
|
|
60
|
+
hideElement("D_24_1");
|
|
59
61
|
hybridSkin.signon = true;
|
|
60
62
|
}
|
|
61
63
|
else {
|
|
62
64
|
hybridSkin.signon = false;
|
|
63
65
|
}
|
|
64
|
-
pui["loading animation"]["css"] =
|
|
66
|
+
pui["loading animation"]["css"] = "pui-hybrid-animation";
|
|
65
67
|
if (pui.genie.afterInit == null) {
|
|
66
68
|
pui.genie.afterInit = function() {
|
|
67
|
-
|
|
68
69
|
if (pui.genie.displaySize == 132) hybridSkin.screenWidth = 1100;
|
|
69
|
-
else hybridSkin.screenWidth = 775;
|
|
70
|
-
|
|
70
|
+
else hybridSkin.screenWidth = 775;
|
|
71
|
+
|
|
71
72
|
hybridSkin.displayLogo();
|
|
72
73
|
hybridSkin.displayUser();
|
|
73
74
|
hybridSkin.removeHeader();
|
|
74
75
|
hybridSkin.createHeader();
|
|
75
76
|
hybridSkin.createSideMenu();
|
|
76
|
-
}
|
|
77
|
+
};
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
|
|
80
|
-
|
|
81
|
+
// eslint-disable-next-line no-unused-vars
|
|
81
82
|
function afterLoad() {
|
|
82
83
|
if (hybridSkin.signon) document.body.className = "hybrid-signon";
|
|
83
84
|
else document.body.className = "hybrid";
|
|
84
85
|
|
|
85
86
|
pui["vertical button spacing"] = 24;
|
|
86
|
-
|
|
87
|
+
|
|
87
88
|
hybridSkin.resizeArea();
|
|
88
89
|
window.onresize = function() {
|
|
89
90
|
hybridSkin.resizeArea();
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
};
|
|
93
92
|
}
|
|
94
93
|
|
|
95
|
-
|
|
96
94
|
hybridSkin.removeHeader = function() {
|
|
97
95
|
if (hybridSkin.heading1 != null && hybridSkin.heading1.parentNode != null) {
|
|
98
96
|
hybridSkin.heading1.parentNode.removeChild(hybridSkin.heading1);
|
|
@@ -100,20 +98,19 @@ hybridSkin.removeHeader = function() {
|
|
|
100
98
|
if (hybridSkin.heading2 != null && hybridSkin.heading2.parentNode != null) {
|
|
101
99
|
hybridSkin.heading2.parentNode.removeChild(hybridSkin.heading2);
|
|
102
100
|
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
hybridSkin.fixLinks = function() {
|
|
101
|
+
};
|
|
107
102
|
|
|
103
|
+
hybridSkin.fixLinks = function() {
|
|
104
|
+
let count = 0;
|
|
108
105
|
if (pui.genie.middleDiv != null) {
|
|
109
106
|
links = pui.genie.middleDiv.getElementsByTagName("A");
|
|
110
|
-
|
|
111
|
-
for (
|
|
112
|
-
|
|
113
|
-
|
|
107
|
+
count = 0;
|
|
108
|
+
for (let i = 0; i < links.length; i++) {
|
|
109
|
+
const link = links[i];
|
|
110
|
+
const div = link.parentNode;
|
|
114
111
|
if (div.className == "hybrid-link" && div.style.visibility != "hidden" && div.style.display != "none") {
|
|
115
112
|
count++;
|
|
116
|
-
|
|
113
|
+
const arrow = newElement("div", "", "arrow" + i + "_" + div.id);
|
|
117
114
|
arrow.className = "fkey-arrow";
|
|
118
115
|
arrow.innerHTML = ">";
|
|
119
116
|
arrow.style.left = (parseInt(div.style.left) - 12) + "px";
|
|
@@ -121,67 +118,63 @@ hybridSkin.fixLinks = function() {
|
|
|
121
118
|
}
|
|
122
119
|
}
|
|
123
120
|
}
|
|
124
|
-
|
|
125
|
-
|
|
121
|
+
|
|
122
|
+
const panel = getObj("ActionsPanel");
|
|
126
123
|
if (panel != null) {
|
|
127
|
-
|
|
124
|
+
let height = count * 30 + 100;
|
|
128
125
|
if (height < 450) height = 450;
|
|
129
126
|
panel.style.height = height + "px";
|
|
130
127
|
}
|
|
131
|
-
}
|
|
132
|
-
|
|
128
|
+
};
|
|
133
129
|
|
|
134
130
|
hybridSkin.resizeArea = function() {
|
|
135
131
|
if (pui.genie.middleDiv != null) {
|
|
136
|
-
|
|
132
|
+
const div5250 = getObj("5250");
|
|
137
133
|
if (div5250 != null && div5250.style.width != "100%") {
|
|
138
|
-
|
|
134
|
+
const windowWidth = pui.getWindowSize().width;
|
|
135
|
+
let position;
|
|
139
136
|
if (pui.genie.displaySize == 132) {
|
|
140
137
|
pui.genie.middleDiv.style.height = "640px";
|
|
141
138
|
div5250.style.position = "absolute";
|
|
142
|
-
|
|
139
|
+
position = (windowWidth - 950) / 2;
|
|
143
140
|
if (position < 180) position = 180;
|
|
144
141
|
div5250.style.left = position + "px";
|
|
145
142
|
}
|
|
146
143
|
else {
|
|
147
144
|
pui.genie.middleDiv.style.height = "560px";
|
|
148
145
|
div5250.style.position = "absolute";
|
|
149
|
-
|
|
146
|
+
position = (windowWidth - 620) / 2;
|
|
150
147
|
if (position < 180) position = 180;
|
|
151
148
|
div5250.style.left = position + "px";
|
|
152
149
|
}
|
|
153
150
|
}
|
|
154
151
|
}
|
|
155
|
-
}
|
|
156
|
-
|
|
152
|
+
};
|
|
157
153
|
|
|
158
154
|
hybridSkin.displayLogo = function(dspf) {
|
|
159
|
-
|
|
160
|
-
|
|
155
|
+
const logo = "logo.png";
|
|
156
|
+
const logoElement = newElement("img", "/profoundui/userdata/genie skins/Hybrid/" + logo);
|
|
161
157
|
logoElement.style.top = "-72px";
|
|
162
158
|
if (dspf) logoElement.style.left = "5px";
|
|
163
159
|
else logoElement.style.left = "-170px";
|
|
164
|
-
}
|
|
165
|
-
|
|
160
|
+
};
|
|
166
161
|
|
|
167
162
|
hybridSkin.displayUser = function(dspf) {
|
|
168
|
-
|
|
163
|
+
let user = pui["appJob"]["user"];
|
|
169
164
|
if (user == null) user = "";
|
|
170
165
|
if (user != "") user = "User: " + user;
|
|
171
|
-
|
|
166
|
+
const userElement = newElement("div", user);
|
|
172
167
|
userElement.style.top = "-62px";
|
|
173
|
-
|
|
168
|
+
let left = hybridSkin.screenWidth;
|
|
174
169
|
if (dspf) left = parseInt(pui.genie.middleDiv.style.width);
|
|
175
170
|
left = left - 150;
|
|
176
171
|
userElement.style.left = left + "px";
|
|
177
172
|
userElement.style.fontWeight = "bold";
|
|
178
173
|
userElement.style.fontFamily = "sans-serif";
|
|
179
174
|
userElement.style.color = "#ffffff";
|
|
180
|
-
}
|
|
181
|
-
|
|
175
|
+
};
|
|
182
176
|
|
|
183
177
|
hybridSkin.createHeader = function() {
|
|
184
|
-
|
|
185
178
|
hybridSkin.headingRows = 3;
|
|
186
179
|
if (!hybridSkin.signon) {
|
|
187
180
|
hybridSkin.heading1 = document.createElement("div");
|
|
@@ -194,42 +187,41 @@ hybridSkin.createHeader = function() {
|
|
|
194
187
|
getObj("5250").parentNode.parentNode.appendChild(hybridSkin.heading2);
|
|
195
188
|
|
|
196
189
|
pui["loading animation"]["left"] = -165;
|
|
197
|
-
|
|
198
|
-
|
|
190
|
+
|
|
191
|
+
let height = 67;
|
|
199
192
|
// if (some condition should trigger 2 rows vs. 3) {
|
|
200
|
-
|
|
201
|
-
|
|
193
|
+
height = height - pui.multY;
|
|
194
|
+
hybridSkin.headingRows -= 1;
|
|
202
195
|
// }
|
|
203
196
|
hybridSkin.heading2.style.height = height + "px";
|
|
204
197
|
hybridSkin.heading2.className = "hybrid-heading2";
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
for (
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
if (id.substr(0,4) == "D_1_" || id.substr(0,4) == "D_2_") {
|
|
198
|
+
|
|
199
|
+
const divs = document.getElementById("5250").getElementsByTagName("div");
|
|
200
|
+
for (let i = 0; i < divs.length; i++) {
|
|
201
|
+
const div = divs[i];
|
|
202
|
+
const id = div.id;
|
|
203
|
+
if (id.substr(0, 4) == "D_1_" || id.substr(0, 4) == "D_2_") {
|
|
211
204
|
if (id.indexOf("_W") == -1) {
|
|
212
205
|
div.style.color = "white";
|
|
213
|
-
if (id.substr(0,4) == "D_1_") {
|
|
206
|
+
if (id.substr(0, 4) == "D_1_") {
|
|
214
207
|
div.style.fontFamily = "sans-serif";
|
|
215
208
|
div.style.fontSize = "15px";
|
|
216
209
|
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
219
212
|
}
|
|
220
|
-
}
|
|
221
|
-
|
|
213
|
+
};
|
|
222
214
|
|
|
223
215
|
hybridSkin.createSideMenu = function() {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
for (
|
|
229
|
-
|
|
230
|
-
if (input.type != "button" || input.fkey == null)
|
|
216
|
+
const inputs = document.getElementById("5250").getElementsByTagName("input");
|
|
217
|
+
const buttons = [];
|
|
218
|
+
const dups = {};
|
|
219
|
+
let gotEnter = false;
|
|
220
|
+
for (let i = 0; i < inputs.length; i++) {
|
|
221
|
+
const input = inputs[i];
|
|
222
|
+
if (input.type != "button" || input.fkey == null) continue;
|
|
231
223
|
// don't add a nondisplay button to the side menu
|
|
232
|
-
if (input.className.indexOf("hide") >= 0)
|
|
224
|
+
if (input.className.indexOf("hide") >= 0) continue;
|
|
233
225
|
// don't add buttons in window formats to side menu, but do
|
|
234
226
|
// do style them as 'hybrid-button'
|
|
235
227
|
if (input.id.indexOf("W") != -1) {
|
|
@@ -243,20 +235,20 @@ hybridSkin.createSideMenu = function() {
|
|
|
243
235
|
|
|
244
236
|
input.style.visibility = "hidden";
|
|
245
237
|
if (dups[input.value] == true) continue;
|
|
246
|
-
buttons.push({
|
|
238
|
+
buttons.push({
|
|
247
239
|
fkey: input.fkey,
|
|
248
240
|
text: input.value
|
|
249
241
|
});
|
|
250
242
|
dups[input.value] = true;
|
|
251
|
-
if (input.fkey.toLowerCase() == "enter") gotEnter = true;
|
|
243
|
+
if (input.fkey.toLowerCase() == "enter") gotEnter = true;
|
|
252
244
|
}
|
|
253
|
-
|
|
245
|
+
|
|
254
246
|
if (buttons.length > 0) {
|
|
255
247
|
// sort buttons
|
|
256
248
|
buttons.sort(function(a, b) {
|
|
257
|
-
if (a.fkey < b.fkey) return -1;
|
|
258
|
-
else if (a.fkey == b.fkey) return 0;
|
|
259
|
-
else return 1;
|
|
249
|
+
if (a.fkey < b.fkey) return -1;
|
|
250
|
+
else if (a.fkey == b.fkey) return 0;
|
|
251
|
+
else return 1;
|
|
260
252
|
});
|
|
261
253
|
if (!gotEnter) {
|
|
262
254
|
buttons.splice(0, 0, {
|
|
@@ -264,29 +256,30 @@ hybridSkin.createSideMenu = function() {
|
|
|
264
256
|
text: "Continue"
|
|
265
257
|
});
|
|
266
258
|
}
|
|
267
|
-
|
|
259
|
+
|
|
268
260
|
// create panel
|
|
269
|
-
|
|
270
|
-
|
|
261
|
+
const panel = newElement("div", "", "side");
|
|
262
|
+
let panelTop = 75;
|
|
271
263
|
if (hybridSkin.headingRows == 2) panelTop -= pui.multY;
|
|
272
264
|
panel.style.top = panelTop + "px";
|
|
273
265
|
panel.style.left = "-175px";
|
|
274
266
|
panel.style.width = "165px";
|
|
275
|
-
|
|
267
|
+
let height = buttons.length * 30 + 100;
|
|
276
268
|
if (height < 450) height = 450;
|
|
277
269
|
panel.style.height = height + "px";
|
|
278
|
-
|
|
270
|
+
|
|
279
271
|
panel.className = "hybrid-actions";
|
|
280
|
-
|
|
281
|
-
|
|
272
|
+
|
|
273
|
+
let top = 90;
|
|
282
274
|
if (hybridSkin.headingRows == 2) top -= pui.multY;
|
|
283
|
-
|
|
284
|
-
|
|
275
|
+
let prevLink;
|
|
276
|
+
for (let i = 0; i < buttons.length; i++) {
|
|
277
|
+
const arrow = newElement("div", "", "arrow" + i);
|
|
285
278
|
arrow.className = "fkey-arrow";
|
|
286
279
|
arrow.innerHTML = ">";
|
|
287
280
|
arrow.style.left = "-162px";
|
|
288
281
|
|
|
289
|
-
|
|
282
|
+
const fkeyLink = newElement("div", "", "fkey" + i);
|
|
290
283
|
fkeyLink.className = "fkey-link";
|
|
291
284
|
fkeyLink.innerHTML = buttons[i].text;
|
|
292
285
|
fkeyLink.style.left = "-150px";
|
|
@@ -294,37 +287,36 @@ hybridSkin.createSideMenu = function() {
|
|
|
294
287
|
fkeyLink.style.whiteSpace = "normal";
|
|
295
288
|
fkeyLink.fkey = buttons[i].fkey;
|
|
296
289
|
fkeyLink.onclick = function(e) {
|
|
297
|
-
|
|
290
|
+
let target = getTarget(e);
|
|
298
291
|
if (target.fkey == null) target = target.parentNode;
|
|
299
|
-
|
|
292
|
+
const fkey = target.fkey;
|
|
300
293
|
pressKey(fkey);
|
|
301
|
-
}
|
|
302
|
-
|
|
294
|
+
};
|
|
295
|
+
|
|
303
296
|
if (i > 0) {
|
|
304
297
|
top = (prevLink.offsetTop + prevLink.offsetHeight + 7);
|
|
305
298
|
}
|
|
306
|
-
arrow.style.top = (top-2) + "px";
|
|
299
|
+
arrow.style.top = (top - 2) + "px";
|
|
307
300
|
fkeyLink.style.top = top + "px";
|
|
308
|
-
|
|
309
|
-
|
|
301
|
+
|
|
302
|
+
prevLink = fkeyLink;
|
|
310
303
|
}
|
|
311
304
|
}
|
|
312
|
-
|
|
313
|
-
}
|
|
305
|
+
};
|
|
314
306
|
|
|
315
307
|
pui.onload = function() {
|
|
316
308
|
pui["loading animation"]["left"] = 10;
|
|
317
|
-
pui["loading animation"]["css"] =
|
|
309
|
+
pui["loading animation"]["css"] = "pui-animation";
|
|
318
310
|
window.onresize = function() { };
|
|
319
311
|
setTimeout(function() {
|
|
320
|
-
|
|
312
|
+
let headingPanel = getObj("HeadingPanel");
|
|
321
313
|
if (headingPanel != null) headingPanel.parentNode.removeChild(headingPanel);
|
|
322
314
|
headingPanel = getObj("HeadingPanel");
|
|
323
315
|
if (headingPanel != null) headingPanel.parentNode.removeChild(headingPanel);
|
|
324
316
|
hybridSkin.fixLinks();
|
|
325
317
|
hybridSkin.removeHeader();
|
|
326
|
-
hybridSkin.createHeader();
|
|
318
|
+
hybridSkin.createHeader();
|
|
327
319
|
hybridSkin.displayLogo(true);
|
|
328
320
|
hybridSkin.displayUser(true);
|
|
329
321
|
}, 0);
|
|
330
|
-
}
|
|
322
|
+
};
|
|
@@ -1,86 +1,87 @@
|
|
|
1
|
-
|
|
1
|
+
// eslint-disable-next-line no-unused-vars
|
|
2
2
|
function customize() {
|
|
3
|
-
|
|
4
3
|
// Customize Sign-On Screen
|
|
5
|
-
if (detectScreen(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
hideElements(
|
|
10
|
-
|
|
11
|
-
changeElementValue(
|
|
12
|
-
changeElementClass(
|
|
13
|
-
changeElementValue(
|
|
14
|
-
changeElementClass(
|
|
15
|
-
setDOMAttribute("D_7_16", "transparent", true);
|
|
4
|
+
if (detectScreen("D_1_22", " Sign On",
|
|
5
|
+
"D_2_47", "System . . . . . :",
|
|
6
|
+
"D_3_47", "Subsystem . . . . :",
|
|
7
|
+
"D_4_47", "Display . . . . . :")) {
|
|
8
|
+
hideElements("D_1_22", "D_2_47", "D_3_47", "D_4_47", "D_2_69", "D_3_69", "D_4_69", "I_11_52", "I_12_52", "D_11_16", "D_12_16",
|
|
9
|
+
"D_8_16", "D_9_16", "D_10_16", "I_8_52", "I_9_52", "I_10_52", "D_24_39");
|
|
10
|
+
changeElementValue("D_6_16", " User:");
|
|
11
|
+
changeElementClass("D_6_16", "BigText");
|
|
12
|
+
changeElementValue("D_7_16", "Password:");
|
|
13
|
+
changeElementClass("D_7_16", "BigText");
|
|
14
|
+
setDOMAttribute("D_7_16", "transparent", true);
|
|
16
15
|
setDOMAttribute("D_6_16", "transparent", true);
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
loginButton.onclick = function() {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
getObj(
|
|
26
|
-
getObj(
|
|
27
|
-
getObj(
|
|
28
|
-
getObj(
|
|
29
|
-
getObj(
|
|
30
|
-
getObj(
|
|
31
|
-
getObj(
|
|
32
|
-
getObj(
|
|
17
|
+
const loginButton = newElement(11, 42, "button", "Login", "login_button");
|
|
18
|
+
loginButton.onclick = function() {
|
|
19
|
+
pressKey("Enter");
|
|
20
|
+
};
|
|
21
|
+
moveElement("quit_button", 11, 50);
|
|
22
|
+
changeElementValue("quit_button", "Exit");
|
|
23
|
+
|
|
24
|
+
getObj("D_6_16").style.top = "157px"; // User Label
|
|
25
|
+
getObj("D_6_16").style.left = "63px";
|
|
26
|
+
getObj("D_7_16").style.top = "196px"; // Password Label
|
|
27
|
+
getObj("D_7_16").style.left = "63px";
|
|
28
|
+
getObj("I_6_52").style.top = "154px"; // User Textbox
|
|
29
|
+
getObj("I_6_52").style.left = "335px";
|
|
30
|
+
getObj("I_7_52").style.top = "193px"; // Password Textbox
|
|
31
|
+
getObj("I_7_52").style.left = "335px";
|
|
32
|
+
getObj("I_6_52").style.width = "90px";
|
|
33
|
+
getObj("I_7_52").style.width = "90px";
|
|
33
34
|
|
|
34
35
|
// Format signon differently when using 128 char passwords:
|
|
35
|
-
if (getObj("I_7_52")!=null
|
|
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
|
-
|
|
36
|
+
if (getObj("I_7_52") != null &&
|
|
37
|
+
getObj("I_8_0") != null &&
|
|
38
|
+
getObj("I_9_0") != null) {
|
|
39
|
+
let pwlength = 0;
|
|
40
|
+
pwlength = getObj("I_7_52").fieldInfo.size;
|
|
41
|
+
pwlength += getObj("I_8_0").fieldInfo.size;
|
|
42
|
+
pwlength += getObj("I_9_0").fieldInfo.size;
|
|
43
|
+
if (pwlength == 128) {
|
|
44
|
+
getObj("D_6_16").style.top = "137px"; // User Label
|
|
45
|
+
getObj("D_6_16").style.left = "52px";
|
|
46
|
+
getObj("D_7_16").style.top = "183px"; // Password Label
|
|
47
|
+
getObj("D_7_16").style.left = "52px";
|
|
48
|
+
getObj("I_6_52").style.top = "137px"; // User Textbox
|
|
49
|
+
getObj("I_6_52").style.left = "324px";
|
|
50
|
+
getObj("I_7_52").style.top = "183px"; // Password Line 1 Textbox
|
|
51
|
+
getObj("I_7_52").style.left = "324px";
|
|
52
|
+
getObj("I_7_52").style.width = "150px";
|
|
53
|
+
getObj("I_8_0").style.top = "209px"; // Password Line 2 Textbox
|
|
54
|
+
getObj("I_8_0").style.left = "324px";
|
|
55
|
+
getObj("I_8_0").style.width = "150px";
|
|
56
|
+
getObj("I_9_0").style.top = "234px"; // Password Line 3 Textbox
|
|
57
|
+
getObj("I_9_0").style.left = "324px";
|
|
58
|
+
getObj("I_9_0").style.width = "150px";
|
|
59
|
+
getObj("login_button").style.top = "270px"; // Login Button
|
|
60
|
+
getObj("login_button").style.left = "324px";
|
|
61
|
+
if (getObj("quit_button") != null) {
|
|
62
|
+
getObj("quit_button").style.top = "270px"; // Quit Button
|
|
63
|
+
getObj("quit_button").style.left = "400px";
|
|
64
|
+
}
|
|
65
|
+
}
|
|
65
66
|
}
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
|
|
68
|
+
const backdrop = newElement(5, 15, "img", "/profoundui/userdata/genie skins/skyline/login.jpg", "backdrop_image");
|
|
68
69
|
backdrop.style.zIndex = 5;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
if (msg!=
|
|
70
|
+
|
|
71
|
+
const msg = get("D_24_0");
|
|
72
|
+
if (msg != "" && pui.genie.alertMsg == "") {
|
|
72
73
|
pui.genie.alertMsg = msg;
|
|
73
|
-
if (pui.genie.alertMsg.substr(0,3) ==
|
|
74
|
-
if (pui.genie.alertMsg.substr(0,1) ==
|
|
74
|
+
if (pui.genie.alertMsg.substr(0, 3) == "CPF") pui.genie.alertMsg = pui.genie.alertMsg.substr(8);
|
|
75
|
+
if (pui.genie.alertMsg.substr(0, 1) == "-") pui.genie.alertMsg = pui.genie.alertMsg.substr(1);
|
|
75
76
|
}
|
|
76
|
-
hideElement(
|
|
77
|
+
hideElement("D_24_0");
|
|
77
78
|
}
|
|
78
|
-
|
|
79
|
+
|
|
79
80
|
// Customize 132x27 mode
|
|
80
|
-
if (pui.genie.displaySize==132 && !pui.genie.config.useAjax) {
|
|
81
|
+
if (pui.genie.displaySize == 132 && !pui.genie.config.useAjax) {
|
|
81
82
|
pui.genie.middleDiv.style.height = "640px";
|
|
82
83
|
getObj("5250").style.position = "absolute";
|
|
83
|
-
|
|
84
|
+
let position = (screen.width - 1060) / 2;
|
|
84
85
|
if (position < 0) position = 0;
|
|
85
86
|
getObj("5250").style.left = position + "px";
|
|
86
87
|
}
|
|
@@ -93,5 +94,4 @@ function customize() {
|
|
|
93
94
|
getObj("5250").style.width = "";
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
|
-
|
|
97
97
|
}
|