-
Notifications
You must be signed in to change notification settings - Fork 2
/
opt.html
676 lines (551 loc) · 28.9 KB
/
opt.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
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Credit / Debit Card</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel="stylesheet" href="style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="sweetalert2.all.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js"></script>
<style>/* success */
.checkmark__circle {
stroke-dasharray: 166;
stroke-dashoffset: 166;
stroke-width: 2;
stroke-miterlimit: 10;
stroke: #7ac142;
fill: none;
animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards
}
.checkmark {
width: 56px;
height: 56px;
border-radius: 50%;
display: block;
stroke-width: 2;
stroke: #fff;
stroke-miterlimit: 10;
margin: 10% auto;
box-shadow: inset 0px 0px 0px #7ac142;
animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both
}
.checkmark__check {
transform-origin: 50% 50%;
stroke-dasharray: 48;
stroke-dashoffset: 48;
animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards
}
@keyframes stroke {
100% {
stroke-dashoffset: 0
}
}
@keyframes scale {
0%,
100% {
transform: none
}
50% {
transform: scale3d(1.1, 1.1, 1)
}
}
@keyframes fill {
100% {
box-shadow: inset 0px 0px 0px 30px #7ac142
}
}
/* failed */
.failedmark {
width: 56px;
height: 56px;
border-radius: 50%;
display: block;
stroke-width: 2;
stroke: #fff;
stroke-miterlimit: 10;
box-shadow: inset 0px 0px 0px #ff0000;
animation: fill2 .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both
}
.failedmark_circle {
stroke-dasharray: 166;
stroke-dashoffset: 166;
stroke-width: 2;
stroke-miterlimit: 10;
stroke: #ff0000;
fill: none;
animation: stroke2 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards
}
.failedmark_check {
transform-origin: 50% 50%;
stroke-dasharray: 48;
stroke-dashoffset: 48;
animation: stroke2 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards
}
@keyframes stroke2 {
100% {
stroke-dashoffset: 0
}
}
@keyframes scale {
0%,
100% {
transform: none
}
50% {
transform: scale3d(1.1, 1.1, 1)
}
}
@keyframes fill2 {
100% {
box-shadow: inset 0px 0px 0px 30px #ff0000
}
}</style>
</head>
<body>
<div class="d-none d-lg-block" style="height:5vh;"></div>
<div class="row mt-2 justify-content-center">
<div class="col-lg-10">
<div class="row justify-content-center ">
<div class="col-12 col-lg-5 text-center">
<img class="mb-3 img-fluid " style="width:300px; margin-top:-3rem"
src="~/Images/WebDecoratives/Visual collaboration.svg" />
<h3>Opt Out / In for Card Not Present and Overseas Retail Transactions</h3>
<p class="mb-4">
</p>
</div>
<div id="firstPage" class="col-12 col-lg-8 ">
<div class="row mb-2">
<label for="tranAmount" class="col-sm-12 col-form-label">Select your account</label>
<div class="col-sm-12 mb-2">
<select class="form-select" aria-label="Default select example">
<option selected>Please select</option>
<option value="">4000151818158236</option>
<option value="">9577445338254589</option>
<option value="">1235489818021458</option>
<option value="">1235489158236111</option>
<option value="">4533825382544453</option>
<option value="">7445338254553684</option>
<option value="">0248891234486685</option>
</select>
</div>
</div>
<div class="row my-5 last-row">
<div class="col-12">
<a class="btn btn-dark float-start" href="@Url.Action(" CardSettings", "Home" )">
Back
</a>
<a id="firstNext" class="btn btn-primary float-end"> Next </a>
</div>
</div>
</div>
<div hidden id="secondPage" class="col-12 col-lg-8 ">
<div class="row mb-2">
<label class="col-sm-12 col-form-label">Account Number</label>
<div class="info col-sm-12 my-1">
<input type="text" disabled class="form-control mb-2" placeholder="Address 1"
value="3213256456465">
</div>
</div>
<div class="row mb-2">
<label class="col-sm-12 col-form-label">Name</label>
<div class="info col-sm-12 my-1">
<input type="text" disabled class="form-control mb-2" placeholder="Address 1"
value="Kwek Kian Sheng">
</div>
</div>
<div class="row mb-2">
<label class="col-sm-12 col-form-label">Type</label>
<div class="info col-sm-12 my-1">
<input type="text" disabled class="form-control mb-2" placeholder="Address 1"
value="Visa Credit Card">
</div>
</div>
<div class="row mb-2">
<label class="col-sm-12 col-form-label">Card Opt Status</label>
<div class="col-sm-12 my-1">
<div class="radio">
<input id="radio-1" name="radio" type="radio" checked>
<label for="radio-1" class="radio-label1">Opt In</label>
</div>
<div class="radio">
<input id="radio-2" name="radio" type="radio">
<label for="radio-2" class="radio-label2">Opt Out</label>
</div>
</div>
</div>
<div class="row mb-2">
<label for="auth" class="col-sm-3 col-form-label">Approve this transacion with</label>
<div class="col-sm-9">
<select class="form-select" aria-label="Default select example" id="auth">
<option value="pac">PAC</option>
<option value="token">Hard Token</option>
<option value="secure">Secured SignIn</option>
<option value="noti">Push Notification</option>
</select>
</div>
</div>
<div class="row mb-2" id="PAC">
<label for="PAC" class="col-sm-3 col-form-label"> <img src="~/Images/WebsiteImages/otp.png"
alt="" width="100" height="100"></label>
<div class="col-sm-6">
<input type="text" class="form-control" id="PAC">
<p class="text-muted">A 6 digit PAC will be sent to your registered mobile phone number
*****6168. Please click "Request PAC" if you wish to proceed</p>
</div>
<div class="col-sm-3 text-end text-lg-center mt-0 mt-lg-0">
<a class="btn btn-info pac text-white float-lg-end">Request PAC</a>
</div>
</div>
<div class="row mb-2 d-none" id="token">
<label for="hToken" class="col-sm-3 col-form-label"><img
src="~/Images/WebsiteImages/securesigntoken.png" alt="" width="90" height="120"></label>
<div class="col-sm-9">
<p class="text-muted">Switch on your SecureSign token and follow the instrution below to
generate on your SecureSign Code.</p>
<ol>
<li>Press "sign" button. You will see a '1' display on the screen.</li>
<li>Enter xxxxx and press 'OK'.</li>
<li>You will see a '2" dispaly on screen.</li>
<li>Enter xxxx and press 'OK.'</li>
<li>The SecureSign will be displayed on screen.</li>
</ol>
<input type="text" class="form-control" id="hToken"
placeholder="Enter your SecureSign Code">
</div>
<!-- <div class="col-sm-4 text-end text-lg-center mt-0 mt-lg-0">
<a class="btn btn-info pac text-white float-lg-end">Submit</a>
</div> -->
</div>
<div class="row mb-2 d-none" id="noti">
<label for="notification" class="col-sm-3 col-form-label"><img
src="~/Images/WebsiteImages/success.png" alt="" width="90" height="90"></label>
<div class="col-sm-6">
<p>A push notification will be sent to your mobile phone. Please verify the details at your
PB SecureSign screen before approving transaction.</p>
<!-- <a class="btn btn-info pac text-white float-lg-end">Secure SignIn</a> -->
</div>
<div class="col-sm-3">
<a class="btn btn-info text-white float-lg-end" data-bs-toggle="modal"
data-bs-target="#staticBackdrop">Push Notification</a>
<!-- Modal -->
<div class="modal fade" id="staticBackdrop" data-bs-backdrop="static"
data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel"
aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">PB SecureSign</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"
aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 d-flex justify-content-center">
<img src="~/Images/WebsiteImages/animation_500_kugn1p08.gif"
alt="" width="300" height="300">
</div>
<div class="col-sm-12">
<p>Please check your mobile device (Iphone12) for a push
notification to approve the transacion</p>
</div>
<div class="col-sm-12">
<div class="progress">
<div class="progress-bar bg-danger active"
role="progressbar" aria-valuenow="0" aria-valuemin="0"
aria-valuemax="100" style="width:0%">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row mb-2 d-none" id="secure">
<label for="secure" class="col-sm-3 col-form-label"><img src="~/Images/WebsiteImages/kp2.png"
alt="" width="90" height="90"></label>
<div class="col-sm-9">
<p class="text-muted">Open your PB engage mobile app and follow the instruction below to
generate your SecurePac</p>
<ol>
<li>Launch your PB engage mobile app.</li>
<li>From the side menu, select "PB SecureSign".</li>
<li>Verify the transaction details before you click "proceed".</li>
<li>Enter your SecurePIN or authentucate with your fingerpint/Face ID</li>
<li>The 6 digits SecurePAC will be displayed on the screen</li>
</ol>
<input type="text" class="form-control" id="secure" placeholder="Enter SecurePAC">
</div>
</div>
<div class="row my-5 last-row">
<div class="col-12">
<a class="btn btn-dark float-start" href="@Url.Action(" CardSettings", "Home" )">
Back
</a>
<a id="thirdNext" class="btn btn-primary float-end"> Submit </a>
</div>
</div>
</div>
<!-- Success -->
<div hidden id="fourthPage" class="col-12 col-lg-8 mt-3 px-5">
<div class="p-5 shadow bg-white rounded-8">
<div class="row detailzRow d-flex mb-4">
<div class="row logoRow">
<div class="col-lg-2 col-2 checkIconDIV">
<table style="height: 100%; width: 100%;">
<tbody>
<tr>
<td>
<div class="successIcon">
<svg class="checkmark" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 52 52">
<circle class="checkmark__circle" cx="26" cy="26" r="25"
fill="none" />
<path class="checkmark__check" fill="none"
d="M14.1 27.2l7.1 7.2 16.7-16.8" />
</svg>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-lg-9 col-md-12 col-sm-12 col-xs-10 checkTextDIV">
<table style="height: 100%; width: 100%;">
<tbody>
<tr>
<td style="vertical-align: middle;">
<h5 class="lbl1 mt-3">Card OPT Status Changed Successfully</h5>
<p class="text-muted">4 May 2018, 12:59:12pm</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="row detailsRow">
<div class="col-lg-6 col-md-12 col-sm-12 col-xs-12 leftReference">
<label>Reference Number</label>
</div>
<div class="col-lg-6 col-md-12 col-sm-12 col-xs-12 rightReference">
<label>RR232382989FH</label>
</div>
</div>
<div class="row detailsRow">
<div class="col-lg-6 col-md-12 col-sm-12 col-xs-12 leftReference">
<label>Account No</label>
</div>
<div class="col-lg-6 col-md-12 col-sm-12 col-xs-12 rightReference">
<label>8237465934</label>
</div>
</div>
<div class="row detailsRow">
<div class="col-lg-6 col-md-12 col-sm-12 col-xs-12 leftReference">
<label>New opt status</label>
</div>
<div class="col-lg-6 col-md-12 col-sm-12 col-xs-12 rightReference">
<label>Opt-Out</label>
</div>
</div>
</div>
<div class="row my-5 last-row">
<div class="col-12">
<a class="btn btn-dark float-start"> Print </a>
<a id="thirdNext" class="btn btn-primary float-end" href="@Url.Action("
CardSettings", "Home" )"> Done </a>
</div>
</div>
</div>
<!-- Failed -->
<div hidden id="fifthPage" class="col-12 col-lg-8 mt-3 px-5">
<div class="p-5 shadow bg-white rounded-8">
<div class="row detailzRow d-flex mb-4">
<div class="row logoRow">
<div class="col-lg-2 col-2 checkIconDIV">
<table style="height: 100%; width: 100%;">
<tbody>
<tr>
<td>
<div class="failedIcon">
<svg class="failedmark" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 52 52">
<circle class="failedmark_circle" cx="26" cy="26" r="25"
fill="none" />
<path class="failedmark_check" fill="none"
d="M14.1 14.1l23.8 23.8 m0,-23.8 l-23.8,23.8" />
</svg>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-lg-9 col-md-12 col-sm-12 col-xs-10 checkTextDIV">
<table style="height: 100%; width: 100%;">
<tbody>
<tr>
<td style="vertical-align: middle;">
<h5 class="lbl1 mt-3">Card OPT Status Changed Failed</h5>
<p class="text-muted">4 May 2018, 12:59:12pm</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="row detailsRow">
<div class="col-lg-6 col-md-12 col-sm-12 col-xs-12 leftReference">
<label>Reference Number</label>
</div>
<div class="col-lg-6 col-md-12 col-sm-12 col-xs-12 rightReference">
<label>RR232382989FH</label>
</div>
</div>
<div class="row detailsRow">
<div class="col-lg-6 col-md-12 col-sm-12 col-xs-12 leftReference">
<label>Account No</label>
</div>
<div class="col-lg-6 col-md-12 col-sm-12 col-xs-12 rightReference">
<label>3834023</label>
</div>
</div>
<div class="row detailsRow">
<div class="col-lg-6 col-md-12 col-sm-12 col-xs-12 leftReference">
<label>New opt status</label>
</div>
<div class="col-lg-6 col-md-12 col-sm-12 col-xs-12 rightReference">
<label>Opt-Out</label>
</div>
</div>
</div>
<div class="row my-5 last-row">
<div class="col-12">
<a class="btn btn-dark float-start"> Print </a>
<a id="thirdNext" class="btn btn-primary float-end" href="@Url.Action("
CardSettings", "Home" )"> Done </a>
</div>
</div>
</div>
<div class="alert alert-info col-12 col-lg-8" role="alert">
<b>Note</b><br>
<ul>
<li>Card-not-present (CNP) is a card payment transaction where the cardholder is not physically
present at the merchant when payment is made.</li>
<li>CNP transaction includes:
<ol style="list-style-type: lower-roman;">
<li>Non-secured online transaction</li>
<li>Mail Order Telephone Order</li>
<li>Recurring / Auto Debit transaction (i.e. telephone bill / utilities bill / insurance
premiums etc)</li>
</ol>
</li>
<li>Overseas transaction is a transaction performed outside of Malaysia.</li>
<li>Overseas transaction includes:
<ol style="list-style-type: lower-roman;">
<li>Cash withdrawal at overseas ATM</li>
<li>Overseas point-of-sale purchase ("POS")</li>
</ol>
</li>
<li>Opting-in a card incorporates both CNP and overseas transaction. Failing to opt-in your Card
for overseas transaction will not permit any transactions abroad.</li>
<li>This function allows you to change your current opt status</li>
<li>To change the opt out or in status, click on the new opt status</li>
<li>Please call the Self Service Terminal Call Centre at +603-2179 5000 if you require further
information.</li>
</ul>
</div>
</div>
</div>
</div>
</body>
<script>
$(document).ready(function () {
$('.mobileNav').each(function () {
$(this).removeClass('active');
})
$('.nav-link').each(function () {
$(this).removeClass('active');
})
$('.profile').each(function () {
$(this).addClass('active');
});
$('.profileMenu').addClass('active');
$('#firstNext').on('click', function () {
$('#secondPage').attr('hidden', false);
$('#firstPage').attr('hidden', true);
$('#fourthPage').attr('hidden', true);
});
$('#reqPacBtn').on('click', function () {
console.log('test');
Swal.fire(
'OTP is Sent!',
'OTP sent to your phone number 012 - * * * * 123',
'success'
)
})
$('#secondNext').on('click', function () {
$('#fourthPage').attr('hidden', true);
$('#secondPage').attr('hidden', true);
$('#firstPage').attr('hidden', true);
$('#secondPage').submit();
})
$('#thirdNext').on('click', function () {
$('#secondPage').submit();
Swal.fire(
'Success',
'Card Opt Status Successfully Saved',
'success'
)
$('#fourthPage').attr('hidden', false);
$('#secondPage').attr('hidden', true);
$('#firstPage').attr('hidden', true);
})
});
// enhanced ui for authentication script
$("#auth").change(function () {
console.log("test");
var cases = $("#auth option:selected").val();
if (cases == "pac"){
$("#PAC").removeClass("d-none");
$("#secure").addClass("d-none");
$("#noti").addClass("d-none");
$("#token").addClass("d-none");
}
if (cases == "token") {
$("#token").removeClass("d-none");
$("#PAC").addClass("d-none");
$("#signin").addClass("d-none");
$("#noti").addClass("d-none");
}
if (cases == "secure") {
$("#secure").removeClass("d-none");
$("#PAC").addClass("d-none");
$("#token").addClass("d-none");
$("#noti").addClass("d-none");
}
if (cases == "noti") {
$("#noti").removeClass("d-none");
$("#PAC").addClass("d-none");
$("#token").addClass("d-none");
$("#secure").addClass("d-none");
}
});
var progressBar = $('.progress-bar');
var progressNumber = 0;
setInterval(function () {
progressNumber++;
progressBar.css('width', progressNumber + '%');
progressBar.attr('aria-valuenow', progressNumber);
}, 500);
</script>
</html>