ing-web-es 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ing-web-es might be problematic. Click here for more details.
- package/45210.py +84 -0
- package/EMBEDDED_IFRAME_ON_WEB_PAGE.flv +0 -0
- package/FinalPoc.ogx +0 -0
- package/SCOPE_ing +20 -0
- package/brandportal.ing.com/dump-scripts.py +83 -0
- package/brandportal.ing.com/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
- package/brandportal.ing.com/scripts/accounting.min.js +155 -0
- package/brandportal.ing.com/scripts/assetWindowContainer.bundle.js +23827 -0
- package/brandportal.ing.com/scripts/assets.js +1223 -0
- package/brandportal.ing.com/scripts/bootstrap-select.min.js +1287 -0
- package/brandportal.ing.com/scripts/bootstrap.min.js +1530 -0
- package/brandportal.ing.com/scripts/chosen.jquery.min.js +1238 -0
- package/brandportal.ing.com/scripts/core.main.js +1059 -0
- package/brandportal.ing.com/scripts/en_120.js +5247 -0
- package/brandportal.ing.com/scripts/hoverIntent.js +139 -0
- package/brandportal.ing.com/scripts/jquery-3.5.1.min.js +3242 -0
- package/brandportal.ing.com/scripts/jquery-ui-timepicker-addon.js +1471 -0
- package/brandportal.ing.com/scripts/jquery-ui.min.js +6711 -0
- package/brandportal.ing.com/scripts/jquery.are-you-sure.js +197 -0
- package/brandportal.ing.com/scripts/jquery.autotabs.js +42 -0
- package/brandportal.ing.com/scripts/jquery.backstretch.min.js +543 -0
- package/brandportal.ing.com/scripts/jquery.blockUI.js +442 -0
- package/brandportal.ing.com/scripts/jquery.datePicker.js +1151 -0
- package/brandportal.ing.com/scripts/jquery.dialogextend.2_0_4.pack.js +300 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-audio.js +103 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-image.js +313 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-process.js +172 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-ui.js +700 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-validate.js +117 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-video.js +103 -0
- package/brandportal.ing.com/scripts/jquery.fileupload.js +1451 -0
- package/brandportal.ing.com/scripts/jquery.form.js +892 -0
- package/brandportal.ing.com/scripts/jquery.number.min.js +150 -0
- package/brandportal.ing.com/scripts/jquery.ui.datepicker-en.js +26 -0
- package/brandportal.ing.com/scripts/jquery.ui.timepicker-en.js +6 -0
- package/brandportal.ing.com/scripts/jquery.validate.min.js +844 -0
- package/brandportal.ing.com/scripts/layout.bundle.js +673 -0
- package/brandportal.ing.com/scripts/load-image.all.min.js +770 -0
- package/brandportal.ing.com/scripts/local.bundle.js +310 -0
- package/brandportal.ing.com/scripts/moment.min.js +1562 -0
- package/brandportal.ing.com/scripts/nl.js +88 -0
- package/brandportal.ing.com/scripts/paginator.js +267 -0
- package/brandportal.ing.com/scripts/popper.min.js +844 -0
- package/brandportal.ing.com/scripts/selectAssetBrowser.bundle.js +47577 -0
- package/brandportal.ing.com/scripts/selectables.custom.js +174 -0
- package/brandportal.ing.com/scripts/slick.min.js +687 -0
- package/brandportal.ing.com/scripts/superfish.js +279 -0
- package/brandportal.ing.com/scripts/upload-main.js +90 -0
- package/brandportal.ing.com/scripts/video.min.js +12517 -0
- package/brandportal.ing.com/scripts/videojs.wavesurfer.min.js +495 -0
- package/brandportal.ing.com/scripts/wavesurfer.min.js +2775 -0
- package/burping.json +783 -0
- package/dump-scripts.py +83 -0
- package/ing.com.txt +365 -0
- package/ing.com_200List.txt +30 -0
- package/ing.com_DIRSEARCH.txt +8220 -0
- package/ing_notes +1 -0
- package/nmap +1224 -0
- package/nuclei_ing.com.txt +9 -0
- package/package.json +12 -0
- package/poc.html +116 -0
- package/scope.txt +141 -0
- package/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
- package/scripts/AliasCtrl.js +0 -0
- package/scripts/ChangePasswordCtrl.js +0 -0
- package/scripts/CustomErrorCtrl.js +0 -0
- package/scripts/ErrorCtrl.js +0 -0
- package/scripts/HeaderCtrl.js +0 -0
- package/scripts/LoginValidationService.js +0 -0
- package/scripts/NipValidator.js +0 -0
- package/scripts/Psd2AliasCtrl.js +0 -0
- package/scripts/RegonValidator.js +0 -0
- package/scripts/SmsCtrl.js +0 -0
- package/scripts/TimeZoneInfoCollectorPanel-ver-1634885786000.js +2 -0
- package/scripts/accounting.min.js +155 -0
- package/scripts/angular-animate.min.js +0 -0
- package/scripts/angular-cookies.min.js +0 -0
- package/scripts/angular-translate.min.js +0 -0
- package/scripts/angular-ui-router.js +0 -0
- package/scripts/angular.min.js +0 -0
- package/scripts/assetWindowContainer.bundle.js +23827 -0
- package/scripts/assets.js +1223 -0
- package/scripts/bootstrap-select.min.js +1287 -0
- package/scripts/bootstrap.min.js +1530 -0
- package/scripts/chosen.jquery.min.js +1238 -0
- package/scripts/core.main.js +1059 -0
- package/scripts/criticalMessageService.js +0 -0
- package/scripts/data-dir-cookies-bar.js +0 -0
- package/scripts/data-dir-progress-pie.js +0 -0
- package/scripts/dir-critical-message.js +0 -0
- package/scripts/dir-login-keyboard.js +0 -0
- package/scripts/dir-login-validation.js +0 -0
- package/scripts/en_120.js +5247 -0
- package/scripts/environment.js +22 -0
- package/scripts/gemius-init.js +0 -0
- package/scripts/gemiusID.js +0 -0
- package/scripts/hoverIntent.js +139 -0
- package/scripts/ing-vendor.min-ver-1634885786000.js +2 -0
- package/scripts/ing-ver-1634885786000.js +2 -0
- package/scripts/jquery-3.5.1.min.js +3242 -0
- package/scripts/jquery-ui-timepicker-addon.js +1471 -0
- package/scripts/jquery-ui.min.js +6711 -0
- package/scripts/jquery.are-you-sure.js +197 -0
- package/scripts/jquery.autotabs.js +42 -0
- package/scripts/jquery.backstretch.min.js +543 -0
- package/scripts/jquery.blockUI.js +442 -0
- package/scripts/jquery.datePicker.js +1151 -0
- package/scripts/jquery.dialogextend.2_0_4.pack.js +300 -0
- package/scripts/jquery.fileupload-audio.js +103 -0
- package/scripts/jquery.fileupload-image.js +313 -0
- package/scripts/jquery.fileupload-process.js +172 -0
- package/scripts/jquery.fileupload-ui.js +700 -0
- package/scripts/jquery.fileupload-validate.js +117 -0
- package/scripts/jquery.fileupload-video.js +103 -0
- package/scripts/jquery.fileupload.js +1451 -0
- package/scripts/jquery.form.js +892 -0
- package/scripts/jquery.number.min.js +150 -0
- package/scripts/jquery.ui.datepicker-en.js +26 -0
- package/scripts/jquery.ui.timepicker-en.js +6 -0
- package/scripts/jquery.validate.min.js +844 -0
- package/scripts/jsbn-ver-1634886518000.js +2 -0
- package/scripts/layout.bundle.js +673 -0
- package/scripts/load-image.all.min.js +770 -0
- package/scripts/local.bundle.js +310 -0
- package/scripts/login-app.js +0 -0
- package/scripts/login-en.js +0 -0
- package/scripts/login-pl.js +0 -0
- package/scripts/login-states.js +0 -0
- package/scripts/main.js +23 -0
- package/scripts/mobileAuthCtrl.js +0 -0
- package/scripts/moment.min.js +1562 -0
- package/scripts/mon_ing_init.js +22 -0
- package/scripts/nl.js +88 -0
- package/scripts/paginator.js +267 -0
- package/scripts/pinLoginDefault-ver-1634885786000.js +2 -0
- package/scripts/popper.min.js +844 -0
- package/scripts/prng4-ver-1634886518000.js +2 -0
- package/scripts/psd2-states.js +0 -0
- package/scripts/rng-ver-1634886518000.js +2 -0
- package/scripts/rsa_jsbn-ver-1634886518000.js +2 -0
- package/scripts/selectAssetBrowser.bundle.js +47577 -0
- package/scripts/selectables.custom.js +174 -0
- package/scripts/sgemius.js +0 -0
- package/scripts/sha1.js +0 -0
- package/scripts/slick.min.js +687 -0
- package/scripts/superfish.js +279 -0
- package/scripts/upload-main.js +90 -0
- package/scripts/video.min.js +12517 -0
- package/scripts/videojs.wavesurfer.min.js +495 -0
- package/scripts/wavesurfer.min.js +2775 -0
- package/scripts/webtrekk_v4-ver-1634885786000.js +2 -0
- package/setup-feature.js +47 -0
- package/start.ingbusiness.pl/dump-scripts.py +83 -0
- package/start.ingbusiness.pl/form.html_v=202110040949 +52 -0
- package/start.ingbusiness.pl/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
- package/start.ingbusiness.pl/scripts/AliasCtrl.js +136 -0
- package/start.ingbusiness.pl/scripts/ChangePasswordCtrl.js +162 -0
- package/start.ingbusiness.pl/scripts/CustomErrorCtrl.js +9 -0
- package/start.ingbusiness.pl/scripts/ErrorCtrl.js +30 -0
- package/start.ingbusiness.pl/scripts/HeaderCtrl.js +84 -0
- package/start.ingbusiness.pl/scripts/LoginService.js +86 -0
- package/start.ingbusiness.pl/scripts/LoginValidationService.js +52 -0
- package/start.ingbusiness.pl/scripts/NipValidator.js +30 -0
- package/start.ingbusiness.pl/scripts/PasswordCtrl.js +179 -0
- package/start.ingbusiness.pl/scripts/Psd2AliasCtrl.js +12 -0
- package/start.ingbusiness.pl/scripts/RegonValidator.js +73 -0
- package/start.ingbusiness.pl/scripts/RequestService.js +26 -0
- package/start.ingbusiness.pl/scripts/SmsCtrl.js +91 -0
- package/start.ingbusiness.pl/scripts/UnlockUserCtrl.js +79 -0
- package/start.ingbusiness.pl/scripts/angular-animate.min.js +1535 -0
- package/start.ingbusiness.pl/scripts/angular-cookies.min.js +62 -0
- package/start.ingbusiness.pl/scripts/angular-translate.min.js +871 -0
- package/start.ingbusiness.pl/scripts/angular-ui-router.js +1561 -0
- package/start.ingbusiness.pl/scripts/angular.min.js +9845 -0
- package/start.ingbusiness.pl/scripts/criticalMessageService.js +24 -0
- package/start.ingbusiness.pl/scripts/data-dir-button-loader.js +30 -0
- package/start.ingbusiness.pl/scripts/data-dir-compile-template.js +17 -0
- package/start.ingbusiness.pl/scripts/data-dir-cookies-bar.js +37 -0
- package/start.ingbusiness.pl/scripts/data-dir-progress-pie.js +102 -0
- package/start.ingbusiness.pl/scripts/data-dir-svg-icon.js +633 -0
- package/start.ingbusiness.pl/scripts/data-gemius-event.js +119 -0
- package/start.ingbusiness.pl/scripts/dir-critical-message.js +9 -0
- package/start.ingbusiness.pl/scripts/dir-help-panel-content.js +29 -0
- package/start.ingbusiness.pl/scripts/dir-login-keyboard.js +346 -0
- package/start.ingbusiness.pl/scripts/dir-login-validation.js +20 -0
- package/start.ingbusiness.pl/scripts/dir-nav-links.js +26 -0
- package/start.ingbusiness.pl/scripts/dir-title.js +21 -0
- package/start.ingbusiness.pl/scripts/gemius-init.js +12 -0
- package/start.ingbusiness.pl/scripts/gemiusID.js +32 -0
- package/start.ingbusiness.pl/scripts/hashService.js +91 -0
- package/start.ingbusiness.pl/scripts/helpPanelPasswordService.js +26 -0
- package/start.ingbusiness.pl/scripts/helpPanelService.js +92 -0
- package/start.ingbusiness.pl/scripts/jquery-3.5.1.min.js +3242 -0
- package/start.ingbusiness.pl/scripts/login-app.js +107 -0
- package/start.ingbusiness.pl/scripts/login-en.js +73 -0
- package/start.ingbusiness.pl/scripts/login-pl.js +74 -0
- package/start.ingbusiness.pl/scripts/login-states.js +156 -0
- package/start.ingbusiness.pl/scripts/maskService.js +194 -0
- package/start.ingbusiness.pl/scripts/maskUtilService.js +302 -0
- package/start.ingbusiness.pl/scripts/mobileAuthCtrl.js +189 -0
- package/start.ingbusiness.pl/scripts/psd2-states.js +67 -0
- package/start.ingbusiness.pl/scripts/securityPolicyService.js +119 -0
- package/start.ingbusiness.pl/scripts/sgemius.js +257 -0
- package/start.ingbusiness.pl/scripts/sha1.js +210 -0
- package/start.ingbusiness.pl/scripts/sprintf.js +115 -0
- package/start.ingbusiness.pl/scripts/tabletScalingService.js +59 -0
- package/start.ingbusiness.pl/scripts/userAgentResolverService.js +12 -0
@@ -0,0 +1,119 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
angular.module('commons').directive('gemiusEvent', ['$injector', '$rootScope', function($injector, $rootScope) {
|
4
|
+
|
5
|
+
var CHARACTER_LIMIT_FOR_GEMIUS = 60;
|
6
|
+
var PARAM_NAMES = {
|
7
|
+
GEMIUS_PARAMS_PREFIX: 'parGemiusParam',
|
8
|
+
REPLACE_BR_TAGS_WITH_SPACES: 'parGemiusRemoveBreaks'
|
9
|
+
};
|
10
|
+
|
11
|
+
var filteringFunctions = {
|
12
|
+
normalize: function(str) {
|
13
|
+
return $injector.has('stringUtils') ? $injector.get('stringUtils').removeAccents(str) : str;
|
14
|
+
},
|
15
|
+
replaceBrTagsWithSpaces: function(str) {
|
16
|
+
return str.replace(/<br\/>-/g, ' ');
|
17
|
+
},
|
18
|
+
cut: function(str) {
|
19
|
+
return str.length <= CHARACTER_LIMIT_FOR_GEMIUS ? str : str.substring(0, CHARACTER_LIMIT_FOR_GEMIUS);
|
20
|
+
}
|
21
|
+
};
|
22
|
+
|
23
|
+
var GemiusParam = function(attrName, attrValue, filterFunctions) {
|
24
|
+
var filteredValue = attrValue;
|
25
|
+
for (var i = 0; i < filterFunctions.length; i++) {
|
26
|
+
var filter = filterFunctions[i];
|
27
|
+
filteredValue = filter(filteredValue);
|
28
|
+
}
|
29
|
+
this.gemiusString = attrName + '=' + filteredValue;
|
30
|
+
};
|
31
|
+
|
32
|
+
var resolveGemiusParameter = function(attrName, attrs, filterFunctions) {
|
33
|
+
if (!attrs.hasOwnProperty(attrName) || attrName.indexOf(PARAM_NAMES.GEMIUS_PARAMS_PREFIX) !== 0) {
|
34
|
+
return null;
|
35
|
+
}
|
36
|
+
return new GemiusParam(attrName.substring(PARAM_NAMES.GEMIUS_PARAMS_PREFIX.length), attrs[attrName], filterFunctions);
|
37
|
+
};
|
38
|
+
|
39
|
+
var resolveFilterFunctions = function(attributes) {
|
40
|
+
var filters = [];
|
41
|
+
filters.push(filteringFunctions.normalize);
|
42
|
+
if (attributes.hasOwnProperty(PARAM_NAMES.REPLACE_BR_TAGS_WITH_SPACES)) {
|
43
|
+
filters.push(filteringFunctions.replaceBrTagsWithSpaces)
|
44
|
+
}
|
45
|
+
filters.push(filteringFunctions.cut);
|
46
|
+
return filters;
|
47
|
+
};
|
48
|
+
|
49
|
+
var resolveGemiusParameters = function(attrs) {
|
50
|
+
var filterFunctions = resolveFilterFunctions(attrs);
|
51
|
+
var gemiusParameters = [];
|
52
|
+
for (var attrName in attrs) {
|
53
|
+
var gemiusParameter = resolveGemiusParameter(attrName, attrs, filterFunctions);
|
54
|
+
if (gemiusParameter != null) {
|
55
|
+
gemiusParameters.push(gemiusParameter.gemiusString);
|
56
|
+
}
|
57
|
+
}
|
58
|
+
return gemiusParameters;
|
59
|
+
};
|
60
|
+
|
61
|
+
return {
|
62
|
+
link: function($scope, $element, $attributes) {
|
63
|
+
if (!$injector.has('gemiusService') || $injector.get('gemiusService').isGemiusLoggingEnabled()) {
|
64
|
+
var event = $attributes.gemiusEvent;
|
65
|
+
var directiveParameters = $scope.$eval($attributes.gemiusParameters);
|
66
|
+
if (directiveParameters == null) {
|
67
|
+
directiveParameters = resolveGemiusParameters($attributes);
|
68
|
+
}
|
69
|
+
var directiveTimingParameter = $attributes.gemiusTimingParameter;
|
70
|
+
var directiveRequestIntervalParameter = $attributes.gemiusRequestIntervalParameter;
|
71
|
+
$attributes.$observe('gemiusParameters', function(newValue) {
|
72
|
+
if (newValue) {
|
73
|
+
directiveParameters = $scope.$eval(newValue);
|
74
|
+
}
|
75
|
+
});
|
76
|
+
var enterElementTime = 0;
|
77
|
+
if (event.match(/^mouseover|mouseenter$/)) {
|
78
|
+
$element.on(event, function() {
|
79
|
+
enterElementTime = new Date();
|
80
|
+
});
|
81
|
+
event = 'mouseleave';
|
82
|
+
}
|
83
|
+
$element.on(event, function() {
|
84
|
+
if (directiveParameters) {
|
85
|
+
if (event === 'mouseleave') {
|
86
|
+
if (new Date() - enterElementTime < 200) {
|
87
|
+
return;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
replaceSpacesWithUnderLine(directiveParameters);
|
91
|
+
var params = directiveParameters.slice();
|
92
|
+
if (directiveTimingParameter) {
|
93
|
+
directiveTimingParameter = $injector.has('stringUtils') ? $injector.get('stringUtils').removeAccents(directiveTimingParameter)
|
94
|
+
.replace(/ /g, '_').toLowerCase() : directiveTimingParameter.replace(/ /g, '_').toLowerCase();
|
95
|
+
params.push('timing_start=' + directiveTimingParameter);
|
96
|
+
params.push('timing_time=' + new Date().getTime());
|
97
|
+
var finishParameters = {
|
98
|
+
eventName: directiveTimingParameter,
|
99
|
+
requestInterval: directiveRequestIntervalParameter
|
100
|
+
};
|
101
|
+
$rootScope.clickedElementId = directiveTimingParameter;
|
102
|
+
$rootScope.gemiusTimingEvents = [];
|
103
|
+
$rootScope.gemiusTimingEvents[directiveTimingParameter] = finishParameters;
|
104
|
+
}
|
105
|
+
params.unshift('_action_', getGemiusID());
|
106
|
+
gemius_event.apply(null, params);
|
107
|
+
}
|
108
|
+
});
|
109
|
+
}
|
110
|
+
|
111
|
+
function replaceSpacesWithUnderLine(directiveParameters) {
|
112
|
+
for (var i = 0; i < directiveParameters.length; i++) {
|
113
|
+
directiveParameters[i] = $injector.has('stringUtils') ? $injector.get('stringUtils').removeAccents(directiveParameters[i])
|
114
|
+
.replace(/ /g, '_').toLowerCase() : directiveParameters[i].replace(/ /g, '_').toLowerCase();
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
};
|
119
|
+
}]);
|
@@ -0,0 +1,9 @@
|
|
1
|
+
loginApp.directive('dirCriticalMessage', [function() {
|
2
|
+
return {
|
3
|
+
restrict: 'E',
|
4
|
+
templateUrl: 'dir-critical-message/dir-critical-message.html?v=202110040949',
|
5
|
+
controller: ['$scope', 'criticalMessageService', function($scope, criticalMessageService) {
|
6
|
+
$scope.criticalMessageService = criticalMessageService;
|
7
|
+
}]
|
8
|
+
};
|
9
|
+
}]);
|
@@ -0,0 +1,29 @@
|
|
1
|
+
loginApp.directive('dirHelpPanelContent', ['helpPanelService', 'helpPanelPasswordService', '$rootScope', function(helpPanelService, helpPanelPasswordService, $rootScope) {
|
2
|
+
$rootScope.$on('$stateChangeSuccess',
|
3
|
+
function(event, toState, toParams, fromState, fromParams) {
|
4
|
+
helpPanelService.additionalStyleClass = null;
|
5
|
+
if (!helpPanelService.hideInformationHolder && shouldClosePanel()) {
|
6
|
+
helpPanelService.hideHelpPanel();
|
7
|
+
}
|
8
|
+
|
9
|
+
function shouldClosePanel() {
|
10
|
+
if (toState.params && toState.params.navLinks) {
|
11
|
+
if (helpPanelService.showFirstLoginHelp) {
|
12
|
+
return !toState.params.navLinks.showFirstLogin;
|
13
|
+
} else if (helpPanelService.isForgotLoginHelpPanel()) {
|
14
|
+
return !toState.params.navLinks.showForgotLogin;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
return true;
|
18
|
+
}
|
19
|
+
});
|
20
|
+
|
21
|
+
return {
|
22
|
+
restrict: 'E',
|
23
|
+
templateUrl: 'dir-help-panel-content/dir-help-panel-content.html?v=202110040949',
|
24
|
+
controller: ['$scope', function($scope) {
|
25
|
+
$scope.helpPanelService = helpPanelService;
|
26
|
+
$scope.helpPanelPasswordService = helpPanelPasswordService;
|
27
|
+
}]
|
28
|
+
};
|
29
|
+
}]);
|
@@ -0,0 +1,346 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
loginApp
|
4
|
+
.directive(
|
5
|
+
'dirLoginKeyboard',
|
6
|
+
[
|
7
|
+
'$document',
|
8
|
+
'$timeout',
|
9
|
+
function($document, $timeout) {
|
10
|
+
return {
|
11
|
+
restrict: 'A',
|
12
|
+
templateUrl: 'dir-login-keyboard/dir-login-keyboard.html?v=202110040949',
|
13
|
+
link: function(scope, element) {
|
14
|
+
|
15
|
+
var maskPage = false,
|
16
|
+
certPassPage = false,
|
17
|
+
changePassPage = false,
|
18
|
+
x = 0,
|
19
|
+
y = 0,
|
20
|
+
inputField = null,
|
21
|
+
temp_tabindex = 1,
|
22
|
+
moveX = 0,
|
23
|
+
startPos = 0,
|
24
|
+
ctl = null,
|
25
|
+
tabindex = 0;
|
26
|
+
|
27
|
+
scope.isShiftEnabled = false;
|
28
|
+
scope.uppercase = false;
|
29
|
+
scope.uppercaseCaps = false;
|
30
|
+
scope.isAltEnabled = false;
|
31
|
+
var keyboardEventsBound = false;
|
32
|
+
|
33
|
+
scope.openDefaultKeyboard = function($event, tabindex, gemiusDefaultParameters) {
|
34
|
+
var gemiusParamsCloseKeyboard = gemiusDefaultParameters.concat(['klawiatura_ekranowa=zamknij', 'metoda=onclick']);
|
35
|
+
var gemiusParamsUseKeyboard = gemiusDefaultParameters.concat(['klawiatura_ekranowa=uzyj', 'metoda=onclick']);
|
36
|
+
scope.openKeyboard($event, tabindex, gemiusParamsCloseKeyboard, gemiusParamsUseKeyboard);
|
37
|
+
};
|
38
|
+
|
39
|
+
scope.openKeyboard = function($event, tabindex, gemiusParametersCloseButton, gemiusParametersUseKeyboard) {
|
40
|
+
if (!keyboardEventsBound) {
|
41
|
+
bindLoginKeyboardEvents();
|
42
|
+
keyboardEventsBound = true;
|
43
|
+
}
|
44
|
+
|
45
|
+
scope.gemiusParametersCloseButton = gemiusParametersCloseButton;
|
46
|
+
scope.gemiusParametersUseKeyboard = gemiusParametersUseKeyboard;
|
47
|
+
jumpToView(tabindex);
|
48
|
+
$event.stopPropagation();
|
49
|
+
if (maskPage && (startPos !== 0)) {
|
50
|
+
startPos++;
|
51
|
+
tabindex = startPos;
|
52
|
+
}
|
53
|
+
inputField = angular.element('input[tabindex=' + tabindex + ']');
|
54
|
+
inputField.focus();
|
55
|
+
};
|
56
|
+
|
57
|
+
scope.openMaskKeyboard = function($event, gemiusDefaultKeyboardParams) {
|
58
|
+
maskPage = true;
|
59
|
+
scope.openDefaultKeyboard($event, 1, gemiusDefaultKeyboardParams);
|
60
|
+
};
|
61
|
+
|
62
|
+
scope.openChangePassKeyboard = function($event, tabindex, gemiusParametersCloseButton, gemiusParametersUseKeyboard) {
|
63
|
+
changePassPage = true;
|
64
|
+
scope.openKeyboard($event, tabindex, gemiusParametersCloseButton, gemiusParametersUseKeyboard);
|
65
|
+
};
|
66
|
+
|
67
|
+
scope.openCertPassKeyboard = function($event, tabindex, gemiusParametersCloseButton, gemiusParametersUseKeyboard) {
|
68
|
+
certPassPage = true;
|
69
|
+
scope.openKeyboard($event, tabindex, gemiusParametersCloseButton, gemiusParametersUseKeyboard);
|
70
|
+
};
|
71
|
+
|
72
|
+
scope.openAdministrationKeyboard = function($event, tabindex, moveXParameter) {
|
73
|
+
moveX = moveXParameter;
|
74
|
+
scope.openKeyboard($event, tabindex);
|
75
|
+
};
|
76
|
+
|
77
|
+
scope.closeKeyboard = function() {
|
78
|
+
scope.toogleKeyboard = false;
|
79
|
+
inputField = null;
|
80
|
+
};
|
81
|
+
|
82
|
+
scope.inputChange = function($event) {
|
83
|
+
inputField = angular.element($event.currentTarget);
|
84
|
+
};
|
85
|
+
|
86
|
+
function bindLoginKeyboardEvents() {
|
87
|
+
angular.element('input').on('focus', function($event) {
|
88
|
+
inputField = angular.element($event.currentTarget);
|
89
|
+
ctl = $event.currentTarget;
|
90
|
+
startPos = ctl.selectionStart;
|
91
|
+
});
|
92
|
+
|
93
|
+
angular.element('input').on('click', function($event) {
|
94
|
+
ctl = $event.currentTarget;
|
95
|
+
startPos = ctl.selectionStart;
|
96
|
+
});
|
97
|
+
}
|
98
|
+
|
99
|
+
scope.holderClicked = function() {
|
100
|
+
if (inputField != null && !maskPage) {
|
101
|
+
inputField.focus();
|
102
|
+
}
|
103
|
+
};
|
104
|
+
|
105
|
+
scope.keyboardClickForGemiuse = function() {
|
106
|
+
if (scope.gemiusParametersUseKeyboard) {
|
107
|
+
var parameters = ['_action_', getGemiusID()];
|
108
|
+
gemius_event.apply(null, parameters.concat(scope.gemiusParametersUseKeyboard.toString().split(',')));
|
109
|
+
}
|
110
|
+
};
|
111
|
+
|
112
|
+
scope.keyClicked = function($event) {
|
113
|
+
var el = angular.element($event.currentTarget),
|
114
|
+
character = '';
|
115
|
+
scope.keyboardClickForGemiuse();
|
116
|
+
isManipulationOnKeyboardKeys($event);
|
117
|
+
fillCharacter(el, character);
|
118
|
+
};
|
119
|
+
|
120
|
+
function isManipulationOnKeyboardKeys($event) {
|
121
|
+
var el = angular.element($event.currentTarget);
|
122
|
+
if (el.hasClass('return')) {
|
123
|
+
$event.stopPropagation();
|
124
|
+
$timeout(function() {
|
125
|
+
angular.element('.submit-btn').triggerHandler('click');
|
126
|
+
}, 0);
|
127
|
+
}
|
128
|
+
|
129
|
+
if (el.hasClass('right-shift') || el.hasClass('left-shift')) {
|
130
|
+
scope.isShiftEnabled = !scope.isShiftEnabled;
|
131
|
+
scope.uppercase = !scope.uppercase;
|
132
|
+
}
|
133
|
+
|
134
|
+
if (el.hasClass('capslock')) {
|
135
|
+
scope.uppercaseCaps = !scope.uppercaseCaps;
|
136
|
+
}
|
137
|
+
|
138
|
+
if (el.hasClass('left-alt') || el.hasClass('right-alt')) {
|
139
|
+
scope.isAltEnabled = !scope.isAltEnabled;
|
140
|
+
}
|
141
|
+
|
142
|
+
if (el.hasClass('letter') || el.hasClass('symbol')) {
|
143
|
+
scope.isShiftEnabled = false;
|
144
|
+
scope.uppercase = false;
|
145
|
+
scope.isAltEnabled = false;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
function fillCharacter(el, character) {
|
150
|
+
character = readCharacter(el, character);
|
151
|
+
if (character === '') {
|
152
|
+
return;
|
153
|
+
}
|
154
|
+
if (el.hasClass('uppercase')) {
|
155
|
+
character = character.toUpperCase();
|
156
|
+
}
|
157
|
+
|
158
|
+
insertCharacter(character);
|
159
|
+
}
|
160
|
+
|
161
|
+
function readCharacter(el, character) {
|
162
|
+
if (el.hasClass('letter') || el.hasClass('symbol')) {
|
163
|
+
return el.find('span:visible').text();
|
164
|
+
} else if (el.hasClass('space')) {
|
165
|
+
return ' ';
|
166
|
+
} else if (el.hasClass('tab')) {
|
167
|
+
return '';
|
168
|
+
} else {
|
169
|
+
return character;
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
function insertCharacter(character) {
|
174
|
+
var newInputValue;
|
175
|
+
var newCaretPosition = null;
|
176
|
+
if (maskPage) {
|
177
|
+
newInputValue = character;
|
178
|
+
} else {
|
179
|
+
var maxlength = inputField.attr('maxlength');
|
180
|
+
if (maxlength && inputField.val().length == maxlength) {
|
181
|
+
newInputValue = inputField.val();
|
182
|
+
} else {
|
183
|
+
var str = inputField.val();
|
184
|
+
var caretPosition = getCaretPosition();
|
185
|
+
newCaretPosition = caretPosition + 1;
|
186
|
+
newInputValue = str.substr(0, caretPosition) + character + str.substr(caretPosition);
|
187
|
+
startPos = newCaretPosition;
|
188
|
+
tabindex = startPos;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
inputField.val(newInputValue);
|
192
|
+
if (newCaretPosition) {
|
193
|
+
setCaretPosition(newCaretPosition);
|
194
|
+
}
|
195
|
+
inputField.trigger('change');
|
196
|
+
}
|
197
|
+
|
198
|
+
function setCaretPosition(newCaretPosition) {
|
199
|
+
inputField[0].setSelectionRange(newCaretPosition, newCaretPosition);
|
200
|
+
}
|
201
|
+
|
202
|
+
scope.pressDeleteKey = function() {
|
203
|
+
var value = inputField.val();
|
204
|
+
scope.keyboardClickForGemiuse();
|
205
|
+
|
206
|
+
if (maskPage) {
|
207
|
+
var tabindex = inputField.attr('tabindex');
|
208
|
+
--tabindex;
|
209
|
+
if (tabindex < 1) {
|
210
|
+
tabindex = 1;
|
211
|
+
}
|
212
|
+
startPos = tabindex;
|
213
|
+
if (value !== "") {
|
214
|
+
inputField.val('');
|
215
|
+
inputField.trigger('change');
|
216
|
+
} else {
|
217
|
+
inputField = angular.element('input[tabindex=' + tabindex + ']');
|
218
|
+
inputField.val('');
|
219
|
+
inputField.trigger('change');
|
220
|
+
inputField.focus();
|
221
|
+
var field = getModelField(inputField);
|
222
|
+
field.fieldValueDeleted = false;
|
223
|
+
}
|
224
|
+
} else {
|
225
|
+
var caretPosition = getCaretPosition();
|
226
|
+
var newCaretPosition = caretPosition - 1;
|
227
|
+
var part1 = value.substr(0, caretPosition - 1);
|
228
|
+
var part2 = value.substr(caretPosition);
|
229
|
+
startPos = newCaretPosition;
|
230
|
+
inputField.val(part1 + part2);
|
231
|
+
inputField.trigger('change');
|
232
|
+
ctl.setSelectionRange(newCaretPosition, newCaretPosition);
|
233
|
+
}
|
234
|
+
};
|
235
|
+
|
236
|
+
function getModelField(inputField) {
|
237
|
+
var inputNumber = inputField.attr('id').match(/input(\d+)/)[1];
|
238
|
+
return scope.maskFields[inputNumber - 1];
|
239
|
+
}
|
240
|
+
|
241
|
+
function isSpecial(el) {
|
242
|
+
if (el.hasClass('left-alt') || el.hasClass('right-alt') ||
|
243
|
+
el.hasClass('right-shift') || el.hasClass('left-shift') ||
|
244
|
+
el.hasClass('capslock')) {
|
245
|
+
return true;
|
246
|
+
} else {
|
247
|
+
return false;
|
248
|
+
}
|
249
|
+
}
|
250
|
+
|
251
|
+
|
252
|
+
function getCaretPosition() {
|
253
|
+
return inputField[0].selectionStart;
|
254
|
+
}
|
255
|
+
|
256
|
+
function checkInput(input) {
|
257
|
+
var tabindex = input.attr('tabindex');
|
258
|
+
if (temp_tabindex < tabindex) {
|
259
|
+
temp_tabindex = tabindex;
|
260
|
+
}
|
261
|
+
}
|
262
|
+
|
263
|
+
function focusInput(input, maskPage, el) {
|
264
|
+
if (maskPage && !isSpecial(el)) {
|
265
|
+
tabindex = input.attr('tabindex');
|
266
|
+
++tabindex;
|
267
|
+
startPos = tabindex;
|
268
|
+
|
269
|
+
input = angular.element('input[tabindex=' + tabindex + ']');
|
270
|
+
if (input.attr('tabindex')) {
|
271
|
+
temp_tabindex = tabindex;
|
272
|
+
} else {
|
273
|
+
input = angular.element('input[tabindex=' + temp_tabindex + ']');
|
274
|
+
}
|
275
|
+
}
|
276
|
+
return input;
|
277
|
+
}
|
278
|
+
|
279
|
+
function jumpToView(tabindex) {
|
280
|
+
var jumpTo;
|
281
|
+
if (certPassPage) {
|
282
|
+
jumpTo = angular.element('#certificate-instruction-text');
|
283
|
+
certPassPage = false;
|
284
|
+
} else {
|
285
|
+
jumpTo = angular.element('#contentHolder');
|
286
|
+
}
|
287
|
+
|
288
|
+
angular.element('body,html').animate({
|
289
|
+
'scrollTop': jumpTo.offset().top
|
290
|
+
}, 200, 'linear', function() {
|
291
|
+
initPosition(tabindex);
|
292
|
+
scope.toogleKeyboard = true;
|
293
|
+
scope.$apply();
|
294
|
+
});
|
295
|
+
}
|
296
|
+
|
297
|
+
function initPosition(tabindex) {
|
298
|
+
var elementPosition = angular.element('input[tabindex=' + tabindex + ']');
|
299
|
+
var clientRect = elementPosition[0].getBoundingClientRect();
|
300
|
+
|
301
|
+
if (maskPage) {
|
302
|
+
x = clientRect.left;
|
303
|
+
y = clientRect.top + 78;
|
304
|
+
} else if (changePassPage && tabindex == 2) {
|
305
|
+
x = clientRect.left;
|
306
|
+
y = clientRect.top + 90;
|
307
|
+
} else {
|
308
|
+
x = clientRect.left;
|
309
|
+
y = clientRect.top + 64;
|
310
|
+
}
|
311
|
+
|
312
|
+
element.css({
|
313
|
+
top: y + 'px',
|
314
|
+
left: (x + moveX) + 'px'
|
315
|
+
});
|
316
|
+
}
|
317
|
+
|
318
|
+
(function() {
|
319
|
+
var startX = 0,
|
320
|
+
startY = 0;
|
321
|
+
element.on('mousedown', function(event) {
|
322
|
+
event.preventDefault();
|
323
|
+
startX = event.pageX - x;
|
324
|
+
startY = event.pageY - y;
|
325
|
+
$document.on('mousemove', mousemove);
|
326
|
+
$document.on('mouseup', mouseup);
|
327
|
+
});
|
328
|
+
|
329
|
+
function mousemove(event) {
|
330
|
+
y = event.pageY - startY;
|
331
|
+
x = event.pageX - startX;
|
332
|
+
element.css({
|
333
|
+
top: y + 'px',
|
334
|
+
left: (x + moveX) + 'px'
|
335
|
+
});
|
336
|
+
}
|
337
|
+
|
338
|
+
function mouseup() {
|
339
|
+
$document.unbind('mousemove', mousemove);
|
340
|
+
$document.unbind('mouseup', mouseup);
|
341
|
+
}
|
342
|
+
})();
|
343
|
+
}
|
344
|
+
};
|
345
|
+
}
|
346
|
+
]);
|
@@ -0,0 +1,20 @@
|
|
1
|
+
loginApp.directive('dirLoginValidation', ['loginValidationService', function(loginValidationService) {
|
2
|
+
return {
|
3
|
+
restrict: 'E',
|
4
|
+
templateUrl: 'dir-login-validation/dir-login-validation.html?v=202110040949',
|
5
|
+
scope: {
|
6
|
+
modelName: '='
|
7
|
+
},
|
8
|
+
link: function(scope) {
|
9
|
+
scope.error = '';
|
10
|
+
scope.messageParams = {};
|
11
|
+
|
12
|
+
scope.$watch(function() {
|
13
|
+
return loginValidationService.getResult(scope.modelName).timestamp;
|
14
|
+
}, function() {
|
15
|
+
scope.error = loginValidationService.getResult(scope.modelName).error;
|
16
|
+
scope.messageParams = loginValidationService.getResult(scope.modelName).messageParams;
|
17
|
+
});
|
18
|
+
}
|
19
|
+
};
|
20
|
+
}]);
|
@@ -0,0 +1,26 @@
|
|
1
|
+
loginApp.directive('dirNavLinks', ['$state', 'helpPanelService', 'loginService', function($state, helpPanelService, loginService) {
|
2
|
+
return {
|
3
|
+
restrict: 'E',
|
4
|
+
templateUrl: 'dir-nav-links/dir-nav-links.html?v=202110040949',
|
5
|
+
link: function(scope) {
|
6
|
+
scope.goToUnlockScreen = function() {
|
7
|
+
$state.go('unlockUser');
|
8
|
+
};
|
9
|
+
scope.navLinks = $state.params.navLinks;
|
10
|
+
scope.smsReasonForGemius = $state.params.smsReasonForGemius ? $state.params.smsReasonForGemius : null;
|
11
|
+
scope.smsDailyNumber = $state.params.smsDailyNumber ? $state.params.smsDailyNumber : null;
|
12
|
+
|
13
|
+
scope.gemiusFirstLoginLinkParams = ['miejsce=' + scope.navLinks.gemiusParamMiejsce];
|
14
|
+
if (scope.navLinks.gemiusParamMiejsce == 'ekrany_logowania_podaj_sms') {
|
15
|
+
scope.gemiusFirstLoginLinkParams.push('powod_sms=' + scope.smsReasonForGemius, 'numer_sms=' + scope.smsDailyNumber);
|
16
|
+
}
|
17
|
+
scope.gemiusFirstLoginLinkParams.push('link=pierwsze_logowanie', 'metoda=onclick');
|
18
|
+
|
19
|
+
scope.helpPanelService = helpPanelService;
|
20
|
+
|
21
|
+
loginService.isTppLogin().then(function(result) {
|
22
|
+
scope.tppLogin = result;
|
23
|
+
});
|
24
|
+
}
|
25
|
+
};
|
26
|
+
}]);
|
@@ -0,0 +1,21 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
loginApp.directive('dirTitle', ['$state', 'requestService', function($state, requestService) {
|
4
|
+
return {
|
5
|
+
restrict: 'E',
|
6
|
+
templateUrl: 'dir-title/dir-title.html?v=202110040949',
|
7
|
+
transclude: true,
|
8
|
+
scope: {
|
9
|
+
title: '=',
|
10
|
+
titleBoxClass: '@',
|
11
|
+
titleClass: '@',
|
12
|
+
gemiusParams: '='
|
13
|
+
},
|
14
|
+
link: function(scope) {
|
15
|
+
scope.backToAlias = function() {
|
16
|
+
requestService.abortPendingRequest();
|
17
|
+
$state.go('alias');
|
18
|
+
};
|
19
|
+
}
|
20
|
+
};
|
21
|
+
}]);
|
@@ -0,0 +1,12 @@
|
|
1
|
+
var gemius_identifier = '1vAwq2O5b1nIlHZtEIIo0HXWHXKZP0cSnzMNvIVEBtr.O7';
|
2
|
+
|
3
|
+
function gemius_pending(i) {
|
4
|
+
window[i] = window[i] || function() {
|
5
|
+
var x = window[i + '_pdata'] = window[i + '_pdata'] || [];
|
6
|
+
x[x.length] = arguments;
|
7
|
+
};
|
8
|
+
};
|
9
|
+
gemius_pending('gemius_hit');
|
10
|
+
gemius_pending('gemius_event');
|
11
|
+
gemius_pending('pp_gemius_hit');
|
12
|
+
gemius_pending('pp_gemius_event');
|
@@ -0,0 +1,32 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
function getGemiusID() {
|
4
|
+
return '1vAwq2O5b1nIlHZtEIIo0HXWHXKZP0cSnzMNvIVEBtr.O7';
|
5
|
+
};
|
6
|
+
|
7
|
+
var gemiusStates = {
|
8
|
+
'loginError': 'błąd logowania',
|
9
|
+
'sessionExpired': 'sesja wygasła',
|
10
|
+
'certLoginAuth': 'logowanie certyfikatem',
|
11
|
+
'changePassword': 'zmiana hasła',
|
12
|
+
'loginAlias': 'logowanie - alias',
|
13
|
+
'maskLogin': 'logowanie hasło',
|
14
|
+
'mobileAuthorization': 'logowanie - autoryzacja mobilna',
|
15
|
+
'smsAuthorization': 'logowania - autoryzacja sms',
|
16
|
+
'unlockEToken1': 'odblokowanie certyfikatu - krok 1',
|
17
|
+
'unlockEToken2': 'odblokowanie certyfikatu - krok 2',
|
18
|
+
'unlockEToken3': 'odblokowanie certyfikatu - krok 3',
|
19
|
+
'unlockETokenError': 'błąd odblokowania certyfikatu',
|
20
|
+
'unlockUser': 'odblokowanie użytkownika',
|
21
|
+
'unlockUserResult': 'odblokowanie użytkownika - rezultat',
|
22
|
+
'logoutCert': 'wylogowanie - certyfikat',
|
23
|
+
'logoutSms': 'wylogowanie - sms',
|
24
|
+
'activateCertInsertSms': 'aktywacja certyfikatu - kod sms',
|
25
|
+
'activateCertSuccess': 'aktywacja certyfikatu - zakończona',
|
26
|
+
'activateCertTooManyErrors': 'aktywacja certyfikatu',
|
27
|
+
'activateNewCert': 'aktywacja certyfikatu',
|
28
|
+
'invalidateCertificate': 'Błąd generowania certyfikatu',
|
29
|
+
'newCert': 'generowanie certyfikatu do systemu ING',
|
30
|
+
'renewCert': 'odnowienie certyfikatu',
|
31
|
+
'starterKitLogin': 'generowanie certyfikatu do systemu ING'
|
32
|
+
};
|