Webindholdsvisning

An error occurred while processing the template.
Error on line 218, column 86 in 10154#10192#154171924
Expecting a string, date or number here, Expression backgroundImage!"" is instead a com.liferay.portal.freemarker.LiferayTemplateModel
1<#assign url = request.attributes.CURRENT_URL > 
2<#assign oadURL = propsUtil.get('elan.oad.url') > 
3<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
4<#assign url404 = '/error/404.html' > 
5<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService")> 
6 
7<#--  check location id validity  --> 
8<#if  qstringmap["bankercode"]?has_content> 
9    <#assign bCode= qstringmap["bankercode"]?first> 
10     
11    <#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
12    <#list bData as b> 
13       
14      <#assign lc = b.locationcode > 
15      <#assign bName = b.branch > 
16      <#assign bPhone = b.businessphone > 
17      <#assign boeid = b.oeid > 
18      <#assign bFName = b.firstname > 
19      <#assign bLName = b.lastname > 
20      <#assign rLC = b.reallocationcode > 
21      <#assign mappedLC = b.mappedLocationCode > 
22    </#list> 
23     
24<#else> 
25    <script> 
26        console.log("MainProductBcode missing"); 
27       // location.href = '${url404}'; 
28    </script> 
29</#if> 
30 
31<#if mappedLC?has_content && !(url?contains("11t1m"))> 
32    <#assign lc = mappedLC > 
33</#if> 
34 
35<#if lc?has_content> 
36    <#assign prefix = "00000" > 
37    <#assign lcWithPrefix = prefix + lc > 
38    <#assign withPrefixLength = lcWithPrefix?length > 
39    <#assign startHere = withPrefixLength - 5> 
40    <#assign lc = lcWithPrefix?substring(startHere)> 
41     
42    <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
43    <#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
44    <#if clientProfileList?first?has_content> 
45        <#assign clientProfile = clientProfileList?first> 
46        <#assign partnerName = clientProfile.getMarketingNameLong()> 
47        <#assign pbu = clientProfile.getPbu()> 
48        <#assign subbu = clientProfile.getSUBBRANDBUNBR()> 
49         
50        <#assign clientdata = utilServ.makeCall('crcDDCTier1Customizations','0&'+pbu+'&'+subbu+'&11')> 
51        <#if (clientdata?size > 0)> 
52            <#list clientdata as data> 
53                <#assign backgroundColor=data.backgroundHexColor> 
54                <#assign buttonColor=data.buttonHexColor> 
55                <#assign aprMin=data.AprMin> 
56                <#assign aprMax=data.AprMax> 
57                <#assign cashAdvance=data.cashAdvanceRate> 
58                <#assign billingCycle=data.BillingCycles> 
59                <#assign textColor=data.textHexColor> 
60                <#assign hoverColor=data.hoverColor> 
61                <#assign backgroundImage="https://3df661a16d2c341b9543-3cd0ed75ae749634a170a7cc519670ec.ssl.cf2.rackcdn.com/"+data.backgroundImage> 
62                <#assign secondaryImage="https://3df661a16d2c341b9543-3cd0ed75ae749634a170a7cc519670ec.ssl.cf2.rackcdn.com/"+data.secondaryBackgroundImage> 
63 
64                <#assign businessBackgroundImageLarge="https://3df661a16d2c341b9543-3cd0ed75ae749634a170a7cc519670ec.ssl.cf2.rackcdn.com/"+data.businessBackgroundImageLarge> 
65                <#assign businessBackgroundImageSmall="https://3df661a16d2c341b9543-3cd0ed75ae749634a170a7cc519670ec.ssl.cf2.rackcdn.com/"+data.businessBackgroundImageSmall> 
66 
67 
68                <#assign transparency=data.transparency> 
69                <#assign busTransparency=data.businessTransparency> 
70            </#list> 
71            <script> 
72                $(document).ready(function (){ 
73                    $(".journal-content-article").each(function(index){ 
74                        var t = $(this).attr("title"); 
75                        $(this).attr("data-title", t); 
76                        $(this).removeAttr("title"); 
77                    }); 
78                }); 
79            </script> 
80        <#else> 
81            <script> 
82                console.log('no T1 clientData'); 
83                //location.href = '${url404}'; 
84            </script> 
85        </#if> 
86    </#if> 
87</#if> 
88            <style> 
89                    @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {   
90                        .disclaimer { 
91                            width: 100vw; 
92
93                        .hero-container{ 
94                            width: 100vw !important; 
95
96                        .standard-content-container{ 
97                            width: 100vw !important; 
98
99                        .banner-wrapper { 
100                            width: 100vw; 
101
102
103                    .banner-wrapper sup { 
104                        top: -1.5em; 
105
106                    *, html, :root { 
107                        box-sizing: border-box; 
108                        padding: 0; 
109                        margin: 0; 
110                        font-size: 100%; 
111                        font-family: Arial, Helvetica, sans-serif; 
112
113                    p, ul, h2 { 
114                        margin: 0; 
115
116                    body { 
117                        line-height: normal; 
118                        color: black; 
119
120                    img { 
121                        width: auto; 
122                        height: auto; 
123                        max-width: 100%; 
124                        max-height: 100%; 
125
126                    svg polyline { 
127                        stroke: ${textColor!'#19398A'}; 
128
129                    /* overrides for berkshire*/ 
130                    .banner.berkshire .jn-button { 
131                        background-color: ${buttonColor!'#19398A'}; 
132                        color: white; 
133                        border: 1px solid white; 
134
135                    .banner.berkshire .jn-button:hover { 
136                        text-decoration: none; 
137                        background-color: ${hoverColor!'#333333'}; 
138                        color: white; 
139
140                    .jn-button { 
141                        cursor: pointer; 
142                        border: none; 
143
144                    .jn-button:hover { 
145                        text-decoration: none; 
146                        background-color: ${hoverColor!'#333333'}; 
147                        color: white; 
148
149                    .hero-main-logo a:hover, .footer a:hover { 
150                        text-decoration: none; 
151                        background-color: transparent; 
152
153                    .hero-main-logo a { 
154                        text-align: center; 
155
156                    .hero-main-logo-homelink { 
157                        margin-top: 10%; 
158
159                    .hero-main-logo-homelink a { 
160                        color:#ffffff; 
161                        font-weight:bold; 
162
163                    .hero-main-logo-homelink a:before { 
164                        content: "\00AB \2009"; 
165                        font-size: 12pt; 
166
167                    .hero-main-logo-homelink a:hover, 
168                    .hero-main-logo-homelink a:focus, 
169                    .hero-main-logo-homelink a:active { 
170                        text-decoration: none; 
171                        background-color: transparent; 
172
173                    .text-color-default, .text-color-default:focus, .text-color-default:hover { 
174                        color: #19398A; 
175
176                    .text-bold { 
177                        font-weight: bold; 
178
179                    .learnmore { 
180                        font-size: 1.2rem; 
181                        cursor: pointer; 
182
183                    .bg-color-white{ 
184                        background-color: white; 
185
186                    .bg-color-black { 
187                        background-color: black; 
188
189                    .bg-color-custom { 
190                        background-color: ${backgroundColor!'#19398A'}; 
191
192                    .bg-color-black-half-transparent { 
193                        background-color: rgba(0, 0, 0, 0.5) 
194
195                    .text-color-white { 
196                        color: #ffffff !important; 
197
198                    .text-color-black { 
199                        color: #000000; 
200
201                    .text-color-custom { 
202                        color: ${textColor!'#19398A'}; 
203
204                    .button-text-color-custom { 
205                        color: ${buttonColor!'black'}; 
206
207                    .button-bg-color-custom { 
208                        background-color: ${buttonColor!'#19398A'}; 
209
210                    .button-bg-color-white { 
211                        background-color: #ffffff; 
212
213                    .consumer-card.hero-container { 
214                        width: 100%; 
215                        background-repeat: no-repeat; 
216                        background-position: left top; 
217                        background-size: cover; 
218                        background-image: linear-gradient(${transparency!''}),url('${backgroundImage!""}'); 
219
220                    .business-card.hero-container { 
221                        width: 100%; 
222                        background-repeat: no-repeat; 
223                        background-position: left top; 
224                        background-size: cover; 
225                        background-image: linear-gradient(${busTransparency!''}),url('${businessBackgroundImageLarge!""}'); 
226
227                     
228                    .standard-content-container { 
229                        width: 100%; 
230                        text-align: center; 
231
232                    .hero-primary-benefits { 
233                        display: -ms-flexbox; 
234                        display: -webkit-flex; 
235                        display: -moz-flex; 
236                        display: flex; 
237                        -webkit-flex-wrap: nowrap; 
238                        -ms-flex-wrap: nowrap; 
239                        flex-wrap: nowrap; 
240                        width: 100%; 
241                        text-align: center; 
242
243                    .hero-main-container { 
244                        text-align: center; 
245
246                    .hero-main-container sup { 
247                        font-size: 13px !important; 
248
249                    .primary-benefit-wrapper { 
250                        height: 100%; 
251                        width: 100%; 
252
253                 
254                    .primary-benefit-wrapper p:first-child { 
255                        font-size: 1.8rem; 
256                        margin-bottom: 0.5rem; 
257
258                     
259                    .offer-header { 
260                        height: 62px; 
261                        padding-top: 15px; 
262                        font-size: 2rem; 
263
264                    .offer-detail-cardArt { 
265                        min-height: 150px; 
266
267                    .offer-detail-cardArt p{ 
268                        margin: 15px 0; 
269
270                    .hero-main-offer { 
271                        height: 100%; 
272                        width: 100%; 
273                        overflow:hidden; 
274
275                    .offer-detail { 
276                        width: 100%; 
277                        height: calc(100% - 62px); 
278
279                    .footer { 
280                        height: 161px; 
281
282                    .secondary-benefits { 
283                        width: 100%; 
284                        display: -ms-flexbox; 
285                        display: -webkit-flex; 
286                        display: -moz-flex; 
287                        display: flex; 
288
289                    #more { 
290                        font-size: 1.8rem; 
291
292                    h2 { 
293                        margin-bottom: 1.5rem; 
294
295                    .option { 
296                        text-align: left; 
297
298                    .option p { 
299                        margin: 10px 0 15px 0; 
300
301                    .hero-main::before, .hero-main::after, .banner::before, .banner::after { 
302                        display: table; 
303                        content: " "; 
304
305                    .hero-main::after, .banner::after { 
306                        clear: both; 
307
308                    .banner { 
309                        display: -ms-flexbox; 
310                        display: -webkit-flex; 
311                        display: -moz-flex; 
312                        display: flex; 
313
314                    .banner-cta-text p{ 
315                        margin: 5px 0; 
316
317                    .disclaimer{ 
318                        padding: 1% 8%; 
319                        margin: auto; 
320                        max-width: 1800px; 
321
322                    .disclaimer ul { 
323                        padding: 0 2%; 
324                        text-align: left; 
325                        list-style: none; 
326
327                    .disclaimer ul li { 
328                        margin-bottom: 10px 
329
330                    sup { 
331                        font-size: 0.8rem; 
332
333                    .jn-disclaimer sup { 
334                        margin: 0 2px 0 0; 
335                        top: -.3em; 
336                        font-size: 13px; 
337
338                    .primary-benefit sup { 
339                        font-size: 0.6rem; 
340
341                    .primary-benefit p sup { 
342                        font-size: 0.8rem; 
343
344                    .primary-benefit h2 sup { 
345                        font-size: 1rem; 
346                        top: -0.7em; 
347
348                    .secondary-benefits sup { 
349                        font-size: 0.7rem; 
350
351                    .secondary-benefits h3 sup { 
352                        font-size: 1rem; 
353                        top: -0.7em; 
354
355                    .footer { 
356                        padding: 0 3%; 
357                        width: 100%; 
358                        text-align: right; 
359
360                    .footer article { 
361                        padding: 2%; 
362                        margin-right: 0; 
363
364            footer article .member-agreement { 
365                 display: inline-block; 
366 
367
368            footer article .fdic { 
369                 display: inline-block; 
370                 margin-left: 150px; 
371
372                     
373                    /* use this code when necessary */ 
374                    @media screen and (max-width: 1300px) { 
375                      .consumer-card.hero-container { 
376                        background-image: linear-gradient(${transparency!''}),url('${secondaryImage!''}'); 
377
378                      .business-card.hero-container { 
379                        background-image: linear-gradient(${busTransparency!''}),url('${businessBackgroundImageSmall!''}'); 
380
381
382                     
383                    /* computer */ 
384                    @media screen and (min-width: 993px) { 
385                        .hero-container { 
386                            padding: 3% 8% 0 8%; 
387
388                 
389                        .standard-content-container { 
390                            padding: 1% 5%; 
391                            max-width: 1600px; 
392                            margin: auto; 
393
394                        .hero-main { 
395                            /* -webkit-flex-direction: row; 
396                            -ms-flex-direction: row; 
397                            flex-direction: row; 
398                            -webkit-justify-content: space-around; 
399                            justify-content: space-around; 
400                            -ms-flex-line-pack: distribute; */ 
401                            max-width: 1450px; 
402                            margin-left: auto; 
403                            margin-right: auto; 
404                             
405
406                         
407                        .hero-main-logo { 
408                            max-width: 200px; 
409                            min-width: 140px; 
410                            width: 16%; 
411                            float: left; 
412
413 
414                        .hero-container.ameriprise-premier-visa-signature .hero-main-logo, 
415                        .hero-container.ameriprise-visa-signature .hero-main-logo { 
416                            max-width: 400px; 
417                            min-width: 140px; 
418                            width: 35%; 
419                            float: left; 
420
421                        .hero-main-container { 
422                            float: right; 
423                            width: 680px; 
424                            /* max-width: 730px; */ 
425                            height: 600px; 
426                            padding: 0 60px 60px 0px; 
427                            /* min-width: 600px; */ 
428
429                        .hero-main-offer { 
430                            border: 1px solid black; 
431                            border-radius: 15px; 
432                            margin-top: 30px; 
433
434                        .hero-primary-benefits { 
435                            -webkit-flex-direction: row; 
436                            -ms-flex-direction: row; 
437                            flex-direction: row; 
438                            max-width: 1450px; 
439                            margin-left: auto; 
440                            margin-right: auto; 
441
442                        .primary-benefit { 
443                            padding: 20px 5px; 
444                            width: 33%; 
445                            min-height: 161px; 
446
447                        .primary-benefit .primary-benefit-wrapper { 
448                            border-right: 1px solid gray; 
449                            padding-right: 5px; 
450
451                        .primary-benefit:last-child .primary-benefit-wrapper{ 
452                            border: none; 
453                            padding-right: 0px; 
454
455                        .secondary-benefits { 
456                 
457                            -webkit-justify-content: space-around; 
458                            justify-content: space-around; 
459                            -ms-flex-line-pack: distribute; 
460
461                        .option { 
462                            width: 40%; 
463
464                        .offer-detail-head { 
465                            font-size: 3.8rem; 
466                            line-height: 3.8rem; 
467                            margin: 15px 0; 
468
469                         
470                        .offer-detail-text { 
471                            float: right; 
472                            width: 40%; 
473                            margin-right: 30px; 
474                            text-align: left; 
475
476                        .offer-detail-text p { 
477                            font-weight: bold; 
478                            margin: 10px 0; 
479                            font-size: 1.2rem; 
480
481                        .offer-detail-cardArt { 
482                            width: 46.5%; 
483                            margin-left: 30px; 
484                            filter: drop-shadow(0px 0px 10px black); 
485                            -webkit-filter: drop-shadow(0px 0px 10px black); 
486
487                        .apply-button { 
488                            display: block; 
489                            margin: 2rem auto; 
490                            font-size: 2rem; 
491                            text-decoration: none; 
492                            width: 55%; 
493                            text-transform: uppercase; 
494                            padding: 0.8rem; 
495
496                        .banner-wrapper { 
497                            margin: auto; 
498                            max-width: 1800px; 
499                            padding: 1% 8%; 
500
501                        .banner { 
502                            padding: 25px; 
503                            -webkit-flex-direction: row; 
504                            -ms-flex-direction: row; 
505                            flex-direction: row; 
506
507                        .banner-cardArt { 
508                            width: 280px; 
509
510                        .banner-cta { 
511                            width: calc(100% - 280px); 
512                            position: relative; 
513
514                        .banner-cta-text { 
515                            padding: 10px 0 10px 20px; 
516
517                        .banner-cta-text p:first-child { 
518                            font-size: 3rem; 
519
520                        .banner-cta-text p:last-child { 
521                            font-size: 1.5rem; 
522
523                        .banner-cta-apply-button { 
524                            display: block; 
525                            font-size: 1rem; 
526                            text-decoration: none; 
527                            text-transform: uppercase; 
528                            padding: 0.5rem 2.5rem; 
529                            width: auto; 
530                            margin-top: 10px; 
531                            right: 0; 
532                            bottom: 0; 
533                            float: right; 
534
535                        .offer-detail-head sup { 
536                            top: -1.8em; 
537
538                        .offer-header sup { 
539                            top: -1.0em; 
540
541
542                    /* tablet */ 
543                     
544                    @media screen and (max-width: 992px) { 
545                        .consumer-card.hero-container { 
546                            padding: 1.8% 3.6% 0 3.6%; 
547                            background-size: cover; 
548                            background-position: left top; 
549                            background-image: linear-gradient(${transparency!''}),url('${secondaryImage!''}'); 
550
551                        .business-card.hero-container { 
552                            padding: 1.8% 3.6% 0 3.6%; 
553                            background-size: cover; 
554                            background-position: left top; 
555                            background-image: linear-gradient(${busTransparency!''}),url('${businessBackgroundImageSmall!''}'); 
556
557                        .standard-content-container { 
558                            padding: 1% 3.6%; 
559
560                        .hero-main { 
561                            /* -webkit-flex-direction: row; 
562                            -ms-flex-direction: row; 
563                            flex-direction: row; */ 
564                            position: relative; 
565
566                        .hero-main-logo { 
567                            position: absolute; 
568                            top: 0; 
569                            left: 0; 
570                            z-index: 1; 
571                            width: 200px; 
572
573                        .hero-main-container { 
574                            /* max-width: 70%; */ 
575                            width: 523px; 
576                            height: 630px; 
577                            padding: 100px 0 40px 55px; 
578                            float: right; 
579                            /* min-width: 500px; */ 
580
581                        .hero-main-offer { 
582                            border: 1px solid black; 
583                            border-radius: 15px; 
584
585                        .hero-primary-benefits { 
586                            -webkit-flex-direction: column; 
587                            -ms-flex-direction: column; 
588                            flex-direction: column; 
589
590                        .primary-benefit { 
591                            padding: 10px 5px; 
592                            width: 100%; 
593                            min-height: 80px; 
594
595                        .secondary-benefits { 
596                             
597                            -webkit-justify-content: space-around; 
598                            justify-content: space-around; 
599                            -ms-flex-line-pack: distribute; 
600
601                        .option { 
602                            width: 40%; 
603
604                        .offer-detail-head { 
605                            font-size: 2.8rem; 
606                            line-height: 2.8rem; 
607                            margin: 15px 0; 
608
609                        .offer-detail-text { 
610                            width: 96%; 
611                            margin: auto; 
612                            text-align: center; 
613                            float: none; 
614
615                        .offer-detail-text p { 
616                            font-weight: bold; 
617                            margin: 10px 0; 
618                            font-size: 0.8rem; 
619
620                        .offer-detail-cardArt { 
621                            width: 56%; 
622                            margin: 5px auto; 
623                            filter: drop-shadow(0px 0px 10px black); 
624                            -webkit-filter: drop-shadow(0px 0px 10px black); 
625
626                        .apply-button { 
627                            display: block; 
628                            margin: 1rem auto; 
629                            font-size: 1.5rem; 
630                            text-decoration: none; 
631                            width: 60%; 
632                            text-transform: uppercase; 
633                            padding: 0.8rem; 
634
635                        .banner-wrapper { 
636                            margin: auto; 
637                            padding: 1%; 
638
639                        .disclaimer{ 
640                            padding: 3%; 
641                            margin: auto; 
642
643                        .banner { 
644                            padding: 25px; 
645                            -webkit-flex-direction: row; 
646                            -ms-flex-direction: row; 
647                            flex-direction: row; 
648
649                        .banner-cardArt { 
650                            width: 260px; 
651
652                        .banner-cta { 
653                            width: calc(100% - 260px); 
654                            position: relative; 
655
656                        .banner-cta-text { 
657                            padding: 10px 0 10px 20px; 
658
659                        .banner-cta-text p:first-child { 
660                            font-size: 2.5rem; 
661                            line-height: 2.5rem; 
662
663                        .banner-cta-text p:last-child { 
664                            font-size: 1.5rem; 
665                            line-height: 2rem; 
666
667                        .banner-cta-apply-button { 
668                            float: right; 
669                            display: block; 
670                            font-size: 1rem; 
671                            text-decoration: none; 
672                            text-transform: uppercase; 
673                            padding: 0.5rem 2.5rem; 
674                            width: auto; 
675                            margin-top: 10px; 
676                            right: 0; 
677                            bottom: 0; 
678
679
680                    @media screen and (max-width: 700px) { 
681                        /* .banner-cardArt { 
682                            width: 160px; 
683
684                        .banner-cta{ 
685                            width: calc(100% - 160px); 
686                        } */ 
687                        .banner-cta-text p:first-child { 
688                            font-size: 2rem; 
689                            line-height: 2rem; 
690
691                        .banner-cta-text p:last-child { 
692                            font-size: 1rem; 
693                            line-height: 1.5rem; 
694
695
696                    /* handset */ 
697                    @media screen and (max-width: 560px) { 
698                        .hero-container { 
699                            padding: 0px; 
700                            background-position: right; 
701
702                        .hero-main { 
703                            display: -ms-flexbox; 
704                            display: -webkit-flex; 
705                            display: -moz-flex; 
706                            display: flex; 
707                            -webkit-flex-wrap: nowrap; 
708                            -ms-flex-wrap: nowrap; 
709                            flex-wrap: nowrap; 
710                            -webkit-flex-direction: column; 
711                            -ms-flex-direction: column; 
712                            flex-direction: column; 
713
714                        .hero-main-logo { 
715                            position: static; 
716                            width: 100%; 
717                            height: 125px; 
718                            display: -ms-flexbox; 
719                            display: -webkit-flex; 
720                            display: -moz-flex; 
721                            display: flex; 
722                            -webkit-justify-content: center; 
723                            -ms-flex-pack: center; 
724                            justify-content: center; 
725                            -webkit-flex-direction: column; 
726                            -ms-flex-direction: column; 
727                            flex-direction: column; 
728
729                        .hero-main-logo a{ 
730                            margin-left: auto; 
731                            margin-right: auto; 
732                            height: 50%; 
733                            width: 50%; 
734                            line-height: 62.5px; 
735
736                        .hero-main-logo-homelink { 
737                            margin-left: auto; 
738                            margin-right: auto; 
739                            margin-top:0; 
740
741                        .hero-main-container { 
742                            width: 100%; 
743                            min-height: 488px; 
744                            padding: 0px; 
745                            float: none; 
746                            height: auto; 
747
748                        .hero-primary-benefits { 
749                            -webkit-flex-direction: column; 
750                            -ms-flex-direction: column; 
751                            flex-direction: column; 
752
753                        .primary-benefit { 
754                            padding: 10px 5px; 
755                            width: 100%; 
756                            min-height: 90px; 
757
758                        .learnmore { 
759                            display: none; 
760
761                        .secondary-benefits { 
762                            padding: 1.5%; 
763                            flex-direction: column; 
764                            -ms-flex-direction: column; 
765                            -webkit-flex-direction: column; 
766                            text-align: center; 
767
768                        .option { 
769                            width: 100%; 
770
771                        .hero-main-offer { 
772                            border-radius: 0; 
773                            min-height: inherit; 
774
775                        .offer-header.bg-color-black { 
776                            background-color: rgba(0, 0, 0, 0.8); 
777                            font-size: 1.2rem; 
778                            height: 48px; 
779                            padding-top: 10px; 
780
781                        .offer-detail { 
782                            width: 100%; 
783                            height: auto; 
784
785                        .offer-detail-head { 
786                            font-size: 2.3rem; 
787                            line-height: 2.3rem; 
788                            margin: 15px 0; 
789                            min-height: 4.6rem; 
790
791                        .offer-detail-text { 
792                            width: 96%; 
793                            margin: auto; 
794                            text-align: center; 
795                            float: none; 
796
797                        .offer-detail-text p { 
798                            font-weight: bold; 
799                            margin: 10px 0; 
800                            font-size: 0.8rem; 
801
802                        .offer-detail-cardArt { 
803                            width: 75%; 
804                            margin: 5px auto; 
805                            filter: drop-shadow(0px 0px 10px black); 
806                            -webkit-filter: drop-shadow(0px 0px 10px black); 
807                            -ms-filter: drop-shadow(0px 0px 10px black); 
808                            max-width: 261px; 
809
810                        .apply-button { 
811                            display: block; 
812                            margin: 0.8rem auto; 
813                            font-size: 1.5rem; 
814                            text-decoration: none; 
815                            width: 80%; 
816                            text-transform: uppercase; 
817                            padding: 0.7rem; 
818
819                        .banner-wrapper { 
820                            margin: 0; 
821                            padding: 0; 
822
823                        .banner { 
824                            padding: 25px; 
825                            height: auto; 
826                            flex-direction: column; 
827                            -ms-flex-direction: column; 
828                            -webkit-flex-direction: column; 
829                            text-align: center; 
830                            margin: 0; 
831
832                        .banner-cardArt { 
833                            padding: 0 25px; 
834                            width: 80%; 
835                            margin: auto; 
836
837                        .banner-cardArt img{ 
838                            max-width: 200px; 
839
840                        .banner-cta { 
841                            width: 100%; 
842                            position: relative; 
843
844                        .banner-cta-text { 
845                            padding: 5px; 
846
847                        .banner-cta-text p:first-child { 
848                            font-size: 2rem; 
849                            line-height: 2rem; 
850
851                        .banner-cta-text p:last-child { 
852                            font-size: 1rem; 
853                            line-height: 1.5rem; 
854
855                        .banner-cta-apply-button { 
856                            float: none; 
857                            display: block; 
858                            text-decoration: none; 
859                            text-transform: uppercase; 
860                            margin: 0.8rem auto; 
861                            position: static; 
862                            right: 0; 
863                            bottom: 0; 
864                            display: block; 
865                            font-size: 1.5rem; 
866                            width: 80%; 
867                            padding: 0.7rem; 
868
869
870                    @media screen and (max-width: 360px) { 
871                        .hero-main-logo { 
872                            width: 100%; 
873                            height: 150px; 
874                            display: -ms-flexbox; 
875                            display: -webkit-flex; 
876                            display: -moz-flex; 
877                            display: flex; 
878                            -webkit-justify-content: center; 
879                            -ms-flex-pack: center; 
880                            justify-content: center; 
881                            -webkit-flex-direction: column; 
882                            -ms-flex-direction: column; 
883                            flex-direction: column; 
884
885                        .hero-main-logo a{ 
886                            margin-left: auto; 
887                            margin-right: auto; 
888                            height: 50%; 
889                            width: 80%; 
890                            line-height: 75px; 
891
892                        .hero-main-offer { 
893                            border-radius: 0; 
894
895                        .banner-cardArt { 
896                            padding: 0px; 
897
898                        .banner-cardArt img{ 
899                            max-width: 100%; 
900
901
902                    .jn-header { 
903                        background: #fff; 
904                        position: absolute; 
905                        width: 100%; 
906
907                 
908                    .jn-header .styled-select { 
909                        display: none; 
910                        background-color: #fff; 
911                        border: 1px solid #ccc; 
912                        min-width: 200px; 
913                        height: 34px; 
914                        overflow: hidden; 
915                        outline: none; 
916                        width: auto; 
917                        position: absolute; 
918
919                 
920                    .jn-header .styled-select:after { 
921                        border-bottom-style: solid; 
922                        border-bottom-width: 3px; 
923                        border-right-style: solid; 
924                        border-right-width: 3px; 
925                        content: ''; 
926                        display: block; 
927                        height: 15px; 
928                        right: 12px; 
929                        position: absolute; 
930                        top: 5px; 
931                        width: 15px; 
932                        border-color: #99999F; 
933                        -moz-transform: rotate(45deg); 
934                        -ms-transform: rotate(45deg); 
935                        -webkit-transform: rotate(45deg); 
936                        transform: rotate(45deg); 
937
938                 
939                    .jn-header .styled-select select { 
940                        background: transparent; 
941                        font-family: Arial, Helvetica, sans-serif; 
942                        font-weight: bold; 
943                        font-size: 14px; 
944                        height: 34px; 
945                        width: 100%; 
946                        padding: 5px 35px 5px 5px; 
947                        text-transform: none; 
948                        line-height: 1.15; 
949                        margin: 0; 
950                        border: none; 
951                        color: #666666; 
952                        -webkit-box-sizing: border-box; 
953                        -moz-box-sizing: border-box; 
954                        box-sizing: border-box; 
955                        -webkit-appearance: none; 
956                        -moz-appearance: none; 
957                        z-index: 500; 
958
959                 
960                    .jn-header .styled-select select::-ms-expand { 
961                        display: none; 
962
963                 
964                    .jn-header a { 
965                        font-size: 12px; 
966                        color: #1c348b; 
967                        display: none; 
968
969                    @media screen and (min-width: 826px) { 
970                        .jn-header .styled-select { 
971                            display: block; 
972                            right: 60px; 
973                            top: 20px; 
974                            z-index: 500; 
975
976
977                 
978                    @media screen and (max-width: 350px) { 
979                        .jn-header img { 
980                            width: 200px; 
981
982
983            </style> 

Webindholdsvisning

An error occurred while processing the template.
Expression bankercode is undefined on line 42, column 6 in 10154#10192#154171928.
1<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService") > 
2<#assign url404 = '/error/404.html' > 
3<#assign oadURL = propsUtil.get('elan.oad.url') > 
4<#assign url = request.attributes.CURRENT_URL > 
5<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
6 
7<#if qstringmap["ecid"]?has_content> 
8    <#assign ecidExt="&ecid="+qstringmap["ecid"]?first> 
9<#else> 
10    <#assign ecidExt=""> 
11</#if> 
12 
13<#if qstringmap["bankercode"]?has_content> 
14    <#assign bankercode= qstringmap["bankercode"]?first> 
15 
16    <#assign fiData= utilServ.makeCall('crcDDCBankerAssistedApp','0&'+bankercode)> 
17    <#if fiData?first?has_content> 
18        <#assign fi = fiData?first> 
19        <#if ((fi.projectId == "12") || (fi.projectId == "13") || (fi.projectId == "14"))> 
20            <#assign subbu_special = fi.offerId> 
21        </#if> 
22    </#if>  
23 
24    <#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bankercode)> 
25    <#list bData as b>         
26      <#assign rLC = b.reallocationcode > 
27      <#assign lc = b.locationcode > 
28      <#assign mappedLC = b.mappedLocationCode > 
29    </#list>     
30<#else> 
31    <script> 
32        console.log("MainProductBcode missing"); 
33        //location.href = '${url404}'; 
34    </script> 
35</#if> 
36 
37<#if url?contains('11t1')> 
38    <#assign tier = '11t1'> 
39<#elseif url?contains('11t2')> 
40    <#assign tier = '11t2'> 
41</#if> 
42<#if bankercode?starts_with("amp") && (url?contains("11t1m"))> 
43    <#assign ameriprise = true> 
44<#else> 
45    <#assign ameriprise = false> 
46</#if> 
47<#if ameriprise> 
48    <#assign tier = '11t1m'> 
49</#if> 
50<#assign environment = url?replace('/${tier}.*','','r')> 
51 
52 
53<#if mappedLC?has_content && !ameriprise> 
54    <#assign lc = mappedLC > 
55</#if> 
56 
57<#if lc?has_content> 
58    <#assign prefix = "00000" > 
59    <#assign lcWithPrefix = prefix + lc > 
60    <#assign withPrefixLength = lcWithPrefix?length > 
61    <#assign startHere = withPrefixLength - 5> 
62    <#assign lc = lcWithPrefix?substring(startHere)> 
63    <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
64    <#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
65 
66    <#assign clientProfile = clientProfileList?first> 
67    <#assign partnerName = clientProfile.getMarketingNameLong()> 
68    <#assign logoFileName = clientProfile.getLogoBFormat1()?replace(".", "-")?replace("-([^-]*)$", ".$1", "r")?lower_case> 
69    <#assign cdnLogoUrl = propsUtil.get('rackspace.cdn.web.url')> 
70    <#assign pbu = clientProfile.getPbu()> 
71    <#assign subbu = clientProfile.getSUBBRANDBUNBR()> 
72    <script> 
73        console.log('pbu', '${pbu!''}'); 
74        console.log('subbu', '${subbu!''}'); 
75    </script>       
76    <#assign optoutData = utilServ.makeCall('crc_DDCSAAOptOut',pbu+'&'+subbu)> 
77    <#if (optoutData?size == 0)> 
78        <#if (subbu_special?has_content)> 
79            <#assign fiCardsData = utilServ.makeCall('crcTier3GetPbuData','0&' + pbu + '&' + subbu_special)>  
80            <script> 
81                console.log('new subbu', '${subbu_special!''}'); 
82            </script>  
83        <#else> 
84            <#assign fiCardsData = utilServ.makeCall('crcTier3GetPbuData','0&' + pbu + '&' + subbu)>  
85        </#if> 
86 
87        <#if (fiCardsData?size > 0)> 
88            <#assign temp = []> 
89            <#assign offerTypeList = []>        
90            <#assign index = 0> 
91            <#list fiCardsData as fib> 
92                <#if (fib.offerType?has_content && !(offerTypeList?seq_contains(fib.offerType)))>  
93                    <#assign offerTypeList = offerTypeList + [fib.offerType]>                   
94                    <#assign temp = temp + fiCardsData[index..index]>  
95                </#if>  
96                <#assign index = index + 1> 
97            </#list>  
98            <#assign fiCardsData = temp> 
99            <#if !(fiCardsData?size > 0)>  
100                <script> 
101                    console.log("empty card/offerType List"); 
102                    //location.href = '${url404}'; 
103                </script> 
104            </#if> 
105            <#if ameriprise> 
106                <#assign lc_used = mappedLC>  
107            <#else> 
108                <#assign lc_used = lc>  
109            </#if>             
110            <div class="content-container content-container-main" title="${partnerName!''}"> 
111                <header class="jn-header"> 
112                    <div>  
113                        <a href="${environment}/${tier}/index?bankercode=${bankercode}&ecdma-lc=${lc_used}${ecidExt}"><< Back to Overview</a> 
114                    </div>  
115                    <div>  
116                        <#if url?contains("11t2")> 
117                            <img src="${cdnLogoUrl!''}/${logoFileName!''}" alt="${partnerName!''}"> 
118                        </#if> 
119                        <div class="styled-select slate"> 
120                            <select> 
121                                <#list fiCardsData as fib> 
122                                    <#if ameriprise> 
123                                        <#if (fib.offerType=="101")> 
124                                            <#assign productURL="premier-visa-signature"> 
125                                            <#assign productName="Ameriprise Premier Visa Signature"> 
126                                        <#elseif (fib.offerType=="103")>      
127                                            <#assign productURL = "visa-signature"> 
128                                            <#assign productName = "Ameriprise Visa Signature">                              
129                                        </#if> 
130                                    <#else> 
131                                        <#if (fib.offerType=="108" || fib.offerType=="109")> 
132                                            <#assign productURL="consumer-platinum2103"> 
133                                            <#assign productName="Platinum Card"> 
134                                        <#elseif (fib.offerType=="104")> 
135                                            <#assign productURL = "max-cash"> 
136                                            <#assign productName = "Max Cash Preferred Card"> 
137                                        <#elseif (fib.offerType=="101" || fib.offerType=="103")> 
138                                            <#assign productURL = "real-rewards"> 
139                                            <#assign productName = "Real Rewards Card"> 
140                                        <#elseif fib.offerType == "115"> 
141                                            <#assign productURL = "secured"> 
142                                            <#assign productName = "Secured Card" > 
143                                        <#elseif fib.offerType == "144"> 
144                                            <#assign productURL = "smart-business-rewards"> 
145                                            <#assign productName = "Smart Business Rewards Card" >                                             
146                                        <#elseif fib.offerType == "128"> 
147                                            <#assign productURL = "business-cashback"> 
148                                            <#assign productName = "Business Cash Card" > 
149                                        <#elseif fib.offerType == "143"> 
150                                            <#assign productURL = "business-real-rewards"> 
151                                            <#assign productName = "Business Real Rewards Card" > 
152                                        <#elseif fib.offerType == "121"> 
153                                            <#assign productURL = "business-platinum2103"> 
154                                            <#assign productName = "Business Card" > 
155                                        </#if> 
156                                    </#if> 
157                                    <#if url?matches(".*/${productURL}.*")> 
158                                        <option value="${environment}/${tier}/${productURL}?bankercode=${bankercode}&ecdma-lc=${lc_used}${ecidExt}" selected="selected">${productName}</option>                                             
159                                    <#else> 
160                                        <option value="${environment}/${tier}/${productURL}?bankercode=${bankercode}&ecdma-lc=${lc_used}${ecidExt}">${productName}</option> 
161                                    </#if> 
162                                     
163                                </#list> 
164                            </select> 
165                        </div> 
166                    </div>  
167                </header> 
168            </div>  
169            <script> 
170                var page = location.pathname.split('/')[location.pathname.split('/').length-1]; 
171                var partnerName = "${partnerName!0}"; 
172                var metaDesc = ""; 
173                switch (page) { 
174                    case "consumer-platinum2103": 
175                        document.title = "The purchasing power of Zero | "+partnerName+" Platinum Card"; 
176                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Limited Time Offer. 0% Intro APR on Purchases and Balance Transfers for 20 Billing Cycles Consolidate your Balances with the "+partnerName+" Intro APR Card."; 
177                        break; 
178                    case "max-cash": 
179                        document.title = "Earn a $150 Bonus and 5% cash back | "+partnerName+" Max Cash Preferred Card"; 
180                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Earn a $150 Bonus and 5% cash back on the two categories you select"; 
181                        break; 
182                    case "real-rewards": 
183                        document.title = "Sign up and earn bonus points | "+partnerName+" Real Rewards Card"; 
184                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Take home 2,500 bonus points after your first purchase."; 
185                        break; 
186                    case "secured": 
187                        document.title = "Strengthen your finances | "+partnerName+" Secured Card"; 
188                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Use this card as a solid foundation to build your credit."; 
189                        break; 
190                    case "smart-business-rewards": 
191                        document.title = "2X rewards in your top 2 spend categories | "+partnerName+" Business Smart Business Rewards Card"; 
192                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. More choices. More value for your business. Earn a $200 Bonus and 2x Rewards on your top 2 spend categories each month with the "+partnerName+" Credit Card."; 
193                        break; 
194                    case "business-cashback": 
195                        document.title = "Flexible rewards for your business | "+partnerName+" Business Cash Card"; 
196                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Earn Cash back on common business expenses."; 
197                        break; 
198                    case "business-real-rewards": 
199                        document.title = "Earn up to 3X points with no caps | "+partnerName+" Business Real Rewards Card"; 
200                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Get more rewards in the categories you spend the most on." ; 
201                        break; 
202                    case "business-platinum2103": 
203                        document.title = "Pay down your other credit card balances faster | "+partnerName+" Business Card"; 
204                        metaDesc = "Apply Today for a "+partnerName+" Business Card. 0% Intro APR on Purchases and Balance Transfers for 15 Billing Cycles"; 
205                        break; 
206                    case "premier-visa-signature": 
207                        document.title = "Exclusively for Ameriprise clients | Ameriprise® Premier Visa Signature® Card"; 
208                        metaDesc = "Apply Today for an Ameriprise Financial Credit Card. Earn Rewards Points worth $375 cash value when deposited into an eligible account after spending $3,000 in eligible net purchases within the first 90 days of account opening."; 
209                        break; 
210                    case "visa-signature": 
211                        document.title = "Exclusively for Ameriprise clients | Ameriprise® Visa Signature® Card"; 
212                        metaDesc = "Apply Today for an Ameriprise Financial Credit Card. Earn Rewards Points worth $250 cash value when deposited into an eligible Ameriprise account after spending $2,000 in eligible net purchases within the first 90 days of account opening."; 
213                        break;                                                                                                 
214
215                if (metaDesc.length > 0) { 
216                    var m = document.createElement('meta');  
217                    m.name = 'description';  
218                    m.content = metaDesc;  
219                    document.head.appendChild(m); 
220
221 
222                AUI().ready(function () { 
223                    jQuery('.styled-select select').change(function () { 
224                        location.href = this.value; 
225                    }); 
226                }); 
227            </script> 
228         
229        <#else> 
230            <script> 
231                console.log("FI Cards Data empty"); 
232                //location.href = '${url404}'; 
233            </script> 
234        </#if>   
235    <#else> 
236        <script> 
237            console.log("FI opt out"); 
238            //location.href = '${url404}'; 
239        </script> 
240    </#if>  
241<#else> 
242    <script> 
243        console.log("location code empty"); 
244        //location.href = '${url404}'; 
245    </script> 
246</#if> 

Webindholdsvisning

An error occurred while processing the template.
Expression bCode is undefined on line 65, column 6 in 10154#10192#153411735.
1<#assign url = request.attributes.CURRENT_URL > 
2<#assign oadURL = propsUtil.get('elan.oad.url') > 
3<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
4<#assign url404 = '/error/404.html' > 
5<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService")> 
6<#if url?contains('12t1')> 
7    <#assign tier = '12t1'> 
8<#elseif url?contains('11t1')> 
9    <#assign tier = '11t1'> 
10<#elseif url?contains('11t2')> 
11    <#assign tier = '11t2'> 
12</#if> 
13<#assign environment = url?replace('/${tier}.*','','r')> 
14<#assign oadURL_TC = 'https://uat-online1.elancard.com/oad/terms.controller' > 
15 
16<#if oadURL?contains("uat-")> 
17    <#assign oadURL_TC = 'https://uat-online1.elancard.com/oad/terms.controller' > 
18<#else> 
19    <#assign oadURL_TC = 'https://online1.elancard.com/oad/terms.controller' > 
20</#if> 
21<#--  check bankercode validity  --> 
22 
23<#if qstringmap["bankercode"]?has_content> 
24    <#assign bCode= qstringmap["bankercode"]?first> 
25 
26    <#assign fiData= utilServ.makeCall('crcDDCBankerAssistedApp','0&'+bCode)> 
27    <#if fiData?first?has_content> 
28        <#assign fi = fiData?first> 
29        <#if (fi.projectId == "12" || fi.projectId == "13" || fi.projectId == "14")> 
30            <#assign subbu_special = fi.offerId> 
31        </#if> 
32    </#if>       
33    <#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
34    <#list bData as b> 
35      <#assign lc = b.locationcode > 
36      <#assign bName = b.branch > 
37      <#assign bPhone = b.businessphone > 
38      <#assign boeid = b.oeid > 
39      <#assign fName = b.firstname?trim> 
40      <#assign lName = b.lastname?trim> 
41      <#assign rlc = b.reallocationcode > 
42      <#assign mappedLC = b.mappedLocationCode > 
43    </#list> 
44<#else> 
45    <script> 
46        console.log("MainProductBcode missing"); 
47        //location.href = '${url404}'; 
48    </script> 
49</#if> 
50 
51<#assign text_to_apply_source = "vanity url" > 
52<#if qstringmap["sms"]?has_content> 
53    <#assign sms = 1 > 
54    <#assign text_to_apply_source = "sms" > 
55</#if> 
56<#if qstringmap["qrCode"]?has_content> 
57    <#assign text_to_apply_source = "qr code" > 
58</#if> 
59<#assign campaignId = "" > 
60<#assign ecidExt=""> 
61<#if qstringmap["ecid"]?has_content> 
62    <#assign campaignId = qstringmap["ecid"]?first > 
63    <#assign ecidExt="&ecid="+qstringmap["ecid"]?first> 
64</#if> 
65<#if bCode?starts_with("amp") && (url?contains("11t1m"))> 
66    <#assign ameriprise = true> 
67<#else> 
68    <#assign ameriprise = false> 
69</#if> 
70 
71<#if mappedLC?has_content && !ameriprise> 
72    <#assign lc = mappedLC > 
73</#if> 
74 
75 
76 
77<#if lc?has_content> 
78 
79    <#assign firstNameLength = fName?length > 
80    <#assign lastNameLength = lName?length > 
81    <#if firstNameLength + lastNameLength &gt; 19 > 
82        <#if lastNameLength &gt; 18 > 
83            <#assign bLName = lName?substring(0,18)> 
84        <#else> 
85            <#assign bLName = lName> 
86        </#if> 
87        <#assign maxFirstName = 19 - bLName?length > 
88        <#if firstNameLength &gt; maxFirstName > 
89            <#assign bFName = fName?substring(0,maxFirstName)> 
90        <#else> 
91            <#assign bFName = fName> 
92        </#if> 
93    <#else> 
94        <#assign bFName = fName > 
95        <#assign bLName = lName > 
96    </#if> 
97       
98 
99    <#assign prefix = "00000" > 
100    <#assign lcWithPrefix = prefix + lc > 
101    <#assign withPrefixLength = lcWithPrefix?length > 
102    <#assign startHere = withPrefixLength - 5> 
103    <#assign lc = lcWithPrefix?substring(startHere)> 
104 
105    <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
106    <#assign clientProfileList = clientProfileService.findByLocationCode(lc)>     
107 
108    <#if clientProfileList?first?has_content> 
109        <#assign clientProfile = clientProfileList?first> 
110        <#assign partnerName = clientProfile.getMarketingNameLong()> 
111        <#assign pbu = clientProfile.getPbu()> 
112        <#assign subbu = clientProfile.getSUBBRANDBUNBR()> 
113        <#assign optoutData = utilServ.makeCall('crc_DDCSAAOptOut',pbu+'&'+subbu)> 
114        <#if (optoutData?size == 0)>                 
115            <#assign clientDataService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcPbuLocalService") > 
116            <#assign clientProfileDataList = clientDataService.getByPbuAndSubBu(pbu,subbu)> 
117            <#assign partnerUrl = clientProfileDataList.getPartnerMainUrl()> 
118            <#if partnerUrl?has_content && !partnerUrl?matches(r"(?i)^https?\:\/\/.*")>             
119                <#assign partnerUrl = 'https://' + partnerUrl> 
120            </#if> 
121            <#assign logoFileName = clientProfile.getLogoBFormat1()?replace(".", "-")?replace("-([^-]*)$", ".$1", "r")?lower_case> 
122            <#assign cdnLogoUrl = propsUtil.get('rackspace.cdn.web.url')> 
123             
124            <#if pbu == "0864054"> 
125                <#assign override = "berkshire"> 
126            <#else> 
127                <#assign override = " "> 
128            </#if> 
129             
130            <#--  this one should be delete for prod  --> 
131                 
132            <#assign cdnCardArtUrl = propsUtil.get('rackspace.cdn.cardart.url')> 
133            <#assign pageClass = secondaryBackgroundImage.cardType.getData()> 
134             
135            <#if (subbu_special?has_content)> 
136                <#assign fiCardsData = utilServ.makeCall('crcTier3GetPbuData','0&' + pbu + '&' + subbu_special)>  
137            <#else> 
138                <#assign fiCardsData = utilServ.makeCall('crcTier3GetPbuData','0&' + pbu + '&' + subbu)>  
139            </#if> 
140 
141 
142            <#assign temp = []> 
143            <#assign offerTypeList = []>      
144            <#assign index = 0> 
145            <#list fiCardsData as fib> 
146                <#if !(offerTypeList?seq_contains(fib.offerType))>  
147                    <#assign offerTypeList = offerTypeList + [fib.offerType]>                   
148                    <#assign temp = temp + fiCardsData[index..index]>  
149                </#if>  
150                <#assign index = index + 1>                
151            </#list>  
152            <#assign fiCardsData = temp> 
153            <#if (fiCardsData?size > 0)>   
154                <#if (subbu_special?has_content)> 
155                    <#assign lc_used = fiCardsData?first.WebLocationCode>   
156                <#else> 
157                    <#if ameriprise> 
158                        <#assign lc_used = mappedLC>  
159                    <#else> 
160                        <#assign lc_used = lc>  
161                    </#if> 
162                </#if> 
163 
164                <#list fiCardsData as fib> 
165                    <#if ameriprise> 
166                        <#if (fib.offerType=="101")> 
167                            <#assign productURL="premier-visa-signature"> 
168                            <#assign productName="Premier Visa Signature"> 
169                            <#assign productClass="ameriprise-premier-visa-signature"> 
170                        <#elseif (fib.offerType=="103")>      
171                            <#assign productURL = "visa-signature"> 
172                            <#assign productName = "Visa Signature">   
173                            <#assign productClass="ameriprise-visa-signature">                            
174                        </#if> 
175                    <#else>                     
176                        <#if (fib.offerType=="108") || (fib.offerType=="109")> 
177                            <#assign productURL="consumer-platinum2103"> 
178                            <#assign productName="Platinum"> 
179                        <#elseif (fib.offerType=="104")>    
180                            <#assign productURL = "max-cash"> 
181                            <#assign productName="Max Cash Preferred">                              
182                        <#elseif (fib.offerType=="101") || (fib.offerType=="103")> 
183                            <#assign productURL = "real-rewards"> 
184                            <#assign productName="Real Rewards"> 
185                        <#elseif fib.offerType == "115"> 
186                            <#assign productURL = "secured"> 
187                            <#assign productName="Secured"> 
188                        <#elseif fib.offerType == "144"> 
189                            <#assign productURL = "smart-business-rewards"> 
190                            <#assign productName="Smart Business Rewards">                                 
191                        <#elseif fib.offerType == "128"> 
192                            <#assign productURL = "business-cashback"> 
193                            <#assign productName="Business Cash"> 
194                        <#elseif fib.offerType == "143"> 
195                            <#assign productURL = "business-real-rewards"> 
196                            <#assign productName="Business Real Rewards"> 
197                        <#elseif fib.offerType == "121"> 
198                            <#assign productURL = "business-platinum2103"> 
199                            <#assign productName="Business"> 
200                        </#if>  
201                    </#if>                    
202                    <#assign cardArtImage = cdnCardArtUrl + "/" + fib.filename + ".png"> 
203                    <#assign cardArtImageAlt = cdnCardArtUrl + "/"+fib.filename+".jpg">   
204                    <#assign newSourceCode = fib.sourceCode>  
205                    <#assign newOfferId = fib.offerId>  
206                    <#if url?matches(".*/${productURL}.*")> 
207                        <#assign sdata = utilServ.makeCall('crcDDCGetSchumerBox', newOfferId + '&' + newSourceCode)> 
208                        <#if (sdata?size > 0)>   
209                            <#if (productURL=="consumer-platinum2103" && !ameriprise)> 
210                                <#assign apr = "">                         
211                                <#list sdata as d> 
212                                    <#if (d.scrapedLabel?contains("Annual Percentage Rate (APR) for Purchases") && (d.scrapedValue?has_content))> 
213                                        <#assign apr = d.scrapedValue?replace("(\n|\r\n|\r)+", " ","r")> 
214                                        <script> 
215                                            console.log("scraped data exists"); 
216                                            console.log("APR", '${apr}') 
217                                        </script> 
218                                        <#break> 
219                                    </#if> 
220                                </#list> 
221                                <script> 
222                                        $(document).ready(function () { 
223                                            var aprText = "${apr}"; 
224                                            if (aprText) { 
225                                                var matches= aprText.match(/\d+(\.\d+)?%?/g); 
226                                                var billing_cycle = ""; 
227                                                var apr_min = ""; 
228                                                var apr_max = ""; 
229                                                if (aprText.indexOf("Platinum:") != -1) { 
230                                                    billing_cycle = matches[1]; 
231                                                    apr_min = matches[2]; 
232                                                    apr_max = matches[3]; 
233
234                                                if (billing_cycle) { 
235                                                    $(".scraped-billing-cycle").html(billing_cycle); 
236
237                                                if (apr_min) { 
238                                                    $(".scraped-apr-min").html(apr_min); 
239
240                                                if (apr_max) { 
241                                                    $('.scraped-apr-max').html(apr_max); 
242
243
244                                        }); 
245                                </script> 
246                                 
247                            </#if>                                 
248                        <#else>     
249                            <script> 
250                                console.log("scraped data missing"); 
251                            </script> 
252                        </#if>   
253                        <#if ameriprise> 
254                            <#assign card_art_alt =  partnerName + " " + productName + " " + " Card"> 
255                            <#assign rollover_text =  partnerName + " " + productName + " " + " Card"> 
256                        <#else> 
257                            <#assign card_art_alt = partnerName> 
258                            <#assign rollover_text =  partnerName + " " + productName + " " + " Credit Card"> 
259                            <#assign card_text = productName + " Card"> 
260                        </#if> 
261                        <div class="hero-container ${pageClass} ${productClass!''}" title="${rollover_text!''}"> 
262                            <div class="hero-main"> 
263                                 
264                                <div class="hero-main-container"> 
265                                    <div class="hero-main-offer"> 
266                                        <div class="offer-header"> 
267                                            <div class="offer-text-top"> 
268                                                <div class="offer-title"> 
269                                                    ${primaryHeadlineText.getData()} 
270                                                </div> 
271                                                <div class="offer-subtitle"> 
272                                                    ${primaryHeadlineFeature.getData()} 
273                                                </div> 
274                                            </div> 
275                                            <div class="offer-text-bottom hide-mobile"> 
276                                                <div class="offer-detail-text text-color-default "> 
277                                                    ${primaryHeadlineFeatureTop.getData()} 
278                                                    ${primaryHeadlineFeatureBottom.getData()} 
279                                                </div> 
280                                                <a id="oadSecButton-top" data-button-name="cta-button-bottom" title="Apply Now for ${rollover_text!'Credit Card'}" class="jn-button banner-cta-apply-button">${optionalCtaText.getData()}</a> 
281                                            </div> 
282                                        </div> 
283                                        <div class="offer-detail"> 
284                                            <div class="offer-detail-cardArt cardArtImg"> 
285                                                  <img src="${cardArtImage!''}" alt="${card_art_alt!''}" title="${card_art_alt!''}" onerror="this.onerror=null;this.src='${cardArtImageAlt!''}'">  
286                                                    <p>${card_text!''}</p> 
287                                            </div> 
288                                            <div class="offer-detail-text text-color-default hide-desktop"> 
289                                                ${primaryHeadlineFeatureTop.getData()} 
290                                                ${primaryHeadlineFeatureBottom.getData()} 
291                                            </div> 
292                                            <#if (fiCardsData?size > 0)>  
293                                                 
294                                                <form class="form1 hide-desktop" action='${oadURL}?locationCode=${lc_used}&offerId=${newOfferId}&preparerType=customer&sourceCode=${newSourceCode}' method="post" id="BAAForm"> 
295                                                    <label for="appDataBAA" style="position:absolute; clip:rect(0 0 0 0);">Application Data</label> 
296                                                    <textarea rows="20" cols="100" name="applicationData" id="appDataBAA" style="display:none;"></textarea> 
297                                                    <input type="submit" data-button-name="cta-button-top" title="Apply Now for ${rollover_text!'Credit Card'}" class="jn-button apply-button button-bg-color-custom" value="${ctaText.getData()}" disabled /> 
298                                                </form> 
299                                            <#else> 
300                                                <form class="form2 hide-desktop" action='${oadURL}?locationCode=${lc_used}&offerId=${offerId}&preparerType=customer&sourceCode=${sourceCode}' method="post" id="BAAForm"> 
301                                                    <label for="appDataBAA" style="position:absolute; clip:rect(0 0 0 0);">Application Data</label> 
302                                                    <textarea rows="20" cols="100" name="applicationData" id="appDataBAA" style="display:none;"></textarea> 
303                                                    <input type="submit" data-button-name="cta-button-top" title="Apply Now for ${rollover_text!'Credit Card'}" class="jn-button apply-button button-bg-color-custom" value="${ctaText.getData()}" disabled /> 
304                                                </form> 
305                                            </#if> 
306                                        </div> 
307                                    </div> 
308                                </div> 
309                            </div> 
310                            <div class="hero-primary-benefits"> 
311                                <#if secondaryFeatureText.getData() != ""> 
312                                    <#foreach item in secondaryFeatureText.getSiblings()> 
313                                        <div class="primary-benefit"> 
314                                            <div class="primary-benefit-wrapper text-color-white"> 
315                                                ${item.getData()} 
316                                            </div> 
317                                        </div> 
318                                    </#foreach> 
319                                </#if> 
320                            </div> 
321                        </div> 
322                        <div class="standard-content-container" title="${rollover_text!''}"> 
323                            <div class="product-details-container"> 
324                                <div class="detail-background"> 
325                                    <h2>${secondaryHeadlineText.getData()}</h2> 
326                                    <div class="secondary-benefits"> 
327                                        <div class="option"> 
328                                            ${additionalInfoGroupA.getData()} 
329                                            <#if pbu != "0892445"> 
330                                                <#if (sdata?size > 0)> 
331                                                    <div> 
332 
333                                                        <#if (fib.offerType == "104") > 
334                                                             
335                                                            <#list sdata as d> 
336                                                                <#if (d.scrapedLabel?contains("Annual Percentage Rate") && (d.scrapedValue?has_content))>  
337                                                                                 
338                                                                    <h3 >APR<sup>*</sup> for Purchases:</h3> 
339                                                                            <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}"  class="text-color-default" target="_blank">See terms & conditions.</a> 
340                                                                            </p> 
341                                                                        <#break> 
342                                                                </#if> 
343                                                            </#list> 
344                                                            <#list sdata as d> 
345                                                                <#if (d.scrapedLabel?contains("APR for Balance Transfers") && (d.scrapedValue?has_content))>  
346                                                                                 
347                                                                    <h3>Intro APR<sup>*</sup> for Purchases and Balance Transfers</h3> 
348                                                                            <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}"  class="text-color-default" target="_blank">See terms & conditions.</a> 
349                                                                            </p> 
350                                                                         
351                                                                        <#break> 
352                                                                </#if> 
353                                                            </#list> 
354                                                        <#else> 
355 
356                                                            <#if (fib.offerType == "115" || fib.offerType == "123")> 
357                                                                <h3>APR for Purchases and Balance Transfers</h3> 
358                                                            <#elseif (fib.offerType=="128" || fib.offerType=="143")> 
359                                                                <h3>Annual Fee</h3> 
360                                                            <#elseif fib.offerType=="144"> 
361                                                                <h3>APR for Purchases and Balance Transfers</h3> 
362                                                            <#else> 
363                                                                <h3>Intro APR<sup>*</sup> for Purchases and Balance Transfers</h3> 
364                                                            </#if> 
365                                                            <#list sdata as d> 
366                                                                <#if (fib.offerType=="128" || fib.offerType=="143") > 
367                                                                    <#if (d.scrapedLabel?contains("Annual Membership Fee") && (d.scrapedValue?has_content))> 
368                                                                        <#if (fiCardsData?size > 0)>  
369                                                                            <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" 
370                                                                                    class="text-color-default" target="_blank">See terms & conditions.</a> 
371                                                                            </p> 
372                                                                                     
373                                                                        <#else> 
374                                                                            <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" 
375                                                                                        class="text-color-default" target="_blank">See terms & conditions.</a> 
376                                                                            </p> 
377                                                                        </#if> 
378                                                                        <#break> 
379                                                                    </#if> 
380 
381                                                                <#else> 
382                                                                    <#if (d.scrapedLabel?contains("Annual Percentage Rate") && (d.scrapedValue?has_content))>  
383                                                                                 
384                                                                        <#if (fiCardsData?size > 0)>      
385                                                                            <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" target="_blank">See terms & conditions.</a> 
386                                                                            </p> 
387                                                                        <#else> 
388                                                                            <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}"  class="text-color-default" target="_blank">See terms & conditions.</a> 
389                                                                            </p> 
390                                                                        </#if> 
391                                                                        <#break> 
392                                                                    </#if> 
393                                                                </#if> 
394                                                            </#list> 
395 
396                                                        </#if> 
397                                                    </div> 
398                                                </#if> 
399                                            </#if> 
400                                        </div> 
401                                        <div class="option"> 
402                                            ${additionalInfoGroupB.getData()}  
403                                            <#if pbu != "0892445"> 
404                                                <div> 
405                                                    <#if (fiCardsData?size > 0)> 
406                                                        <#if (sdata?size > 0)> 
407                                                            <#if (fib.offerType=="128" || fib.offerType=="143")> 
408                                                                <h3>Intro APR<sup>*</sup> for Purchases and Balance Transfers</h3> 
409                                                            <#elseif fib.offerType=="104"> 
410                                                                <h3>Annual Fee<sup>*</sup></h3> 
411                                                            <#else> 
412                                                                <h3>Annual Fee</h3> 
413                                                            </#if> 
414                                                            <#list sdata as d> 
415                                                                <#if (fib.offerType=="128" || fib.offerType=="143")> 
416                                                                    <#if (d.scrapedLabel?contains("Annual Percentage Rate") && (d.scrapedValue?has_content))>  
417                                                                         
418                                                                        <#if (fiCardsData?size > 0)>   
419                                                                            <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" 
420                                                                                class="text-color-default" target="_blank">See terms & conditions.</a> 
421                                                                            </p> 
422                                                                        <#else> 
423                                                                            <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" 
424                                                                                class="text-color-default" target="_blank">See terms & conditions.</a> 
425                                                                            </p> 
426                                                                        </#if> 
427                                                                        <#break> 
428                                                                    </#if> 
429                                                                <#else> 
430                                                                    <#if (d.scrapedLabel?contains("Annual Membership Fee") && (d.scrapedValue?has_content))> 
431                                                                         
432                                                                        <#if (fiCardsData?size > 0)>  
433                                                                        <p> 
434                                                                            <#if (fib.offerType == "123")> 
435                                                                            Annual Fee: ${d.scrapedValue} 
436                                                                            <#else> 
437                                                                            ${d.scrapedValue}  
438                                                                            </#if> 
439                                                                            <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" target="_blank">See terms & conditions.</a> 
440                                                                        </p> 
441                                                                        <#else> 
442                                                                        <p> 
443                                                                            <#if (fib.offerType == "123")> 
444                                                                            Annual Fee: ${d.scrapedValue} 
445                                                                            <#else> 
446                                                                            ${d.scrapedValue}  
447                                                                            </#if> 
448                                                                            <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" class="text-color-default" target="_blank">See terms & conditions.</a> 
449                                                                        </p> 
450                                                                        </#if> 
451                                                                        <#break> 
452                                                                    </#if> 
453                                                                </#if> 
454                                                            </#list> 
455                                                        </#if> 
456                                                    </#if> 
457                                                </div> 
458                                            </#if> 
459                                        </div> 
460                                </div> 
461                                </div> 
462                            </div> 
463                        </div> 
464                        <div class="banner-wrapper" title="${rollover_text!''}"> 
465                            <div class="banner ${override}"> 
466                                <div class="banner-cardArt cardArtImg"> 
467                                   <img src="${cardArtImage!''}" alt="${card_art_alt!''}" title="${card_art_alt!''}" onerror="this.onerror=null;this.src='${cardArtImageAlt!''}'">  
468                                </div> 
469                                <div class="banner-cta"> 
470                                    <div class="banner-cta-text text-color-white text-bold"> 
471                                        ${optionalCtaFeatureText.getData()} 
472                                    </div> 
473                                    <a id="oadSecButton" data-button-name="cta-button-bottom" title="Apply Now for ${rollover_text!'Credit Card'}" class="jn-button banner-cta-apply-button button-bg-color-custom text-color-white">${optionalCtaText.getData()}</a> 
474                                </div> 
475                            </div> 
476                        </div> 
477                    </#if> 
478                </#list>                         
479 
480                <script> 
481                    document.addEventListener('DOMContentLoaded', function() { 
482                        console.log('inside ready'); 
483                        var page = location.pathname.split('/')[location.pathname.split('/').length-1]; 
484                        var hostName = location.hostname; 
485                     
486                        function getDomainFromHostname(hostname) { 
487                            var parts = hostname.split('.'); 
488                            return parts.length === 3 ? parts[1] : parts[0]; 
489
490                        var domain = getDomainFromHostname(hostName); 
491                        var partnerName = "${partnerName!''}"; 
492                        var utag_data = window.utag_data || {}; 
493 
494                        var ameriprise = '${ameriprise?string("yes", "no")}'; 
495                        var locationCode = "${rlc!lc}"; 
496                        var eidAmp = ""; 
497                        if (ameriprise == "yes") { 
498                            var bankercode_amp = '${bCode}'; 
499                            eidAmp = bankercode_amp.substring(3); 
500                            locationCode =""; 
501                        }    
502                             
503                        var heroCardImgs = document.querySelectorAll('.cardArtImg img'); 
504                        for (var index = 0; index < heroCardImgs.length; index++) { 
505                            var heroCardImg = heroCardImgs[index]; 
506                            var heroCardSrc = heroCardImg.getAttribute("src"); 
507                            if(heroCardSrc != "") { 
508                                resizeImg(heroCardImg); 
509
510
511                        function resizeImg(img) { 
512                            img.addEventListener("load", function() { 
513                                var cardImgWidth = img.width; 
514                                var cardImgHeight = img.height; 
515                                console.log('width', cardImgWidth); 
516                                console.log('height', cardImgHeight); 
517                                if(cardImgWidth > cardImgHeight) { 
518                                    img.style.width = "285px"; 
519                                } else { 
520                                    img.style.width = "150px"; 
521
522                            }); 
523
524                         
525                         
526                        $('.jn-button').removeAttr('disabled'); 
527                        $('.jn-button').removeClass('jn-disabled'); 
528                        jQuery('#oadSecButton, #oadSecButton-top').on('click', function(e) { 
529                            jQuery('#BAAForm').submit(); 
530                        }); 
531                         
532                        jQuery('#BAAForm').on('submit', function(e){ 
533                            e.preventDefault(); 
534                            console.log('in custom submit'); 
535                            var xmlData; 
536                            if(ameriprise == "yes") { 
537                                xmlData = '<?xml version="1.0"?>'+ 
538                                    "<prefillData>"+  
539                                    "<versionNumber>1.0</versionNumber>"+  
540                                    "<applicationData>"+  
541                                    "<referral>" +  
542                                    "<employeeId>" + eidAmp + "</employeeId>" + 
543                                    "<storeNumber>"+"${bName!'0'}"+"</storeNumber>"+ 
544                                    "<divisionNumber></divisionNumber>"+ 
545                                    "</referral>" +  
546                                    "<bankerInformation>"+  
547                                    "<locationCode>" + locationCode + "</locationCode>"+ 
548                                    "<originatingBranchNumber>"+"${bName!'0'}"+"</originatingBranchNumber>"+ 
549                                    "<employeeID>${boeid!0}</employeeID>"+ 
550                                    "<name>" + 
551                                    "<first>${bFName!'0'}</first>" + 
552                                    "<last>${bLName!'0'}</last>" + 
553                                    "</name>"+ 
554                                    "<phone>"+ 
555                                    "<areaCode>"+areaCode+"</areaCode>"+  
556                                    "<exchange>"+exchangeCode+"</exchange>"+ 
557                                    "<number>"+num+"</number>"+  
558                                    "</phone>"+  
559                                    "</bankerInformation>"+  
560                                    "</applicationData>"+  
561                                    "</prefillData>" 
562                            } else { 
563                                xmlData = '<?xml version="1.0"?>'+ 
564                                    "<prefillData>"+  
565                                    "<versionNumber>1.0</versionNumber>"+  
566                                    "<applicationData>"+  
567                                    "<bankerInformation>"+  
568                                    "<locationCode>" + locationCode + "</locationCode>"+ 
569                                    "<originatingBranchNumber>"+"${bName!'0'}"+"</originatingBranchNumber>"+ 
570                                    "<employeeID>${boeid!0}</employeeID>"+ 
571                                    "<name>" + 
572                                    "<first>${bFName!'0'}</first>" + 
573                                    "<last>${bLName!'0'}</last>" + 
574                                    "</name>"+ 
575                                    "<phone>"+ 
576                                    "<areaCode>"+areaCode+"</areaCode>"+  
577                                    "<exchange>"+exchangeCode+"</exchange>"+ 
578                                    "<number>"+num+"</number>"+  
579                                    "</phone>"+  
580                                    "</bankerInformation>"+  
581                                    "</applicationData>"+  
582                                    "</prefillData>" 
583                            }                                 
584                            jQuery('#appDataBAA').val(xmlData); 
585                            var buttonName = jQuery('.jn-button').data('button-name'); 
586                            /* SiteCatalyst  onClick tracking */ 
587                            utag_data.apply_button = buttonName; 
588                            AUI().ready(function() { 
589                                if (window.publisherFW) { 
590                                    window.publisherFW.publishEvent("onClick", utag_data); 
591
592                            }); 
593 
594                            this.submit(); 
595                        }); 
596                        var regex = /\d+/g; 
597                        var bdNumber = "${bPhone!''}"; 
598                        var phoneNum = bdNumber.match(regex); 
599                        var areaCode = ""; 
600                        var exchangeCode = ""; 
601                        var num = ""; 
602                        if(phoneNum != null) { 
603                            phoneNum = phoneNum.join(""); 
604                            areaCode = phoneNum.substring(0,3); 
605                            exchangeCode = phoneNum.substring(3,6); 
606                            num = phoneNum.substring(6,10); 
607
608                        var product = ""; 
609                        switch(page) { 
610                            case "consumer-platinum2103": 
611                                product="Platinum Card" 
612                                break; 
613                            case "real-rewards": 
614                                product="Real Rewards Card" 
615                                break; 
616                            case "secured": 
617                                product="Secured Card" 
618                                break; 
619                            case "business-cashback": 
620                                product="Business Cash Card" 
621                                break; 
622                            case "business-real-rewards": 
623                                product="Business Real Rewards Card" 
624                                break; 
625                            case "business-rewards-plus": 
626                                product="Business Rewards PLUS Card" 
627                                break; 
628                            case "premier-visa-signature": 
629                                product="Premier Visa Signature Card" 
630                                break; 
631                            case "business-platinum2103": 
632                                product="Business" 
633                                break; 
634                            case "visa-signature": 
635                                product="Visa Signature Card" 
636                                break;                                     
637                            default:   
638                                product = "All Cards";                           
639                        }                                  
640                             
641                        /* update SiteCatalyst data object */ 
642                        utag_data.current_page = "microsite:${partnerName}:" + domain + ':' + page.replace('-',' '); 
643                        utag_data.location_code = '${rlc!0}'; 
644                        utag_data.product = product; 
645                        utag_data.site_section = 'credit cards'; 
646                        utag_data.platform = 'microsite'; 
647                        utag_data.partner_name = "${partnerName}"; 
648                        utag_data.Banker_id = '${boeid}'; 
649                        utag_data.Banker_code = '${bCode}'; 
650                        utag_data.visitor_type = 'prospect'; 
651                        utag_data.text_to_apply_source = '${text_to_apply_source}'; 
652                        utag_data.page_type = 'product';  
653                        utag_data.campaign_id = '${campaignId}';  
654 
655                             
656                        }); 
657                </script> 
658                                     
659            <#else> 
660                <script> 
661                    console.log("FI Cards Data empty"); 
662                    location.href = '${url404}'; 
663                </script> 
664            </#if>                   
665        <#else> 
666            <script> 
667                console.log("Fi opt-out"); 
668                //location.href = '${url404}'; 
669            </script> 
670        </#if>        
671    <#else> 
672        <script> 
673            console.log("client profile empty"); 
674            //location.href = '${url404}'; 
675        </script> 
676    </#if>   
677 
678</#if> 

Webindholdsvisning

An error occurred while processing the template.
Expression qstringmap["bankercode"] is undefined on line 5, column 17 in 10154#10192#153411723.
1<#assign url = request.attributes.CURRENT_URL > 
2<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
3<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService")> 
4 
5<#assign bCode= qstringmap["bankercode"]?first> 
6<#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
7<#list bData as b>      
8    <#assign lc = b.locationcode > 
9    <#assign rLC = b.reallocationcode > 
10    <#assign mappedLC = b.mappedLocationCode > 
11</#list>  
12<#if bCode?starts_with("amp") && (url?contains("11t1m"))> 
13    <#assign ameriprise = true> 
14<#else> 
15    <#assign ameriprise = false> 
16</#if> 
17<#if mappedLC?has_content && !ameriprise> 
18    <#assign lc = mappedLC > 
19</#if> 
20 
21<#assign prefix = "00000" > 
22<#assign lcWithPrefix = prefix + lc > 
23<#assign withPrefixLength = lcWithPrefix?length > 
24<#assign startHere = withPrefixLength - 5> 
25<#assign lc = lcWithPrefix?substring(startHere)> 
26<#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
27<#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
28 
29<#assign clientProfile = clientProfileList?first>  
30<#assign partnerName=clientProfile.getMarketingNameLong()> 
31 
32 
33<div class="content-container" title="${partnerName} - Disclaimer"> 
34    <div class="jn-disclaimer tier3-disclaimer-${class.getData()}"> 
35        ${content.getData()} 
36    </div> 
37</div> 

Webindholdsvisning

An error occurred while processing the template.
Expression qstringmap["bankercode"] is undefined on line 6, column 17 in 10154#10192#154187598.
1<#assign url = request.attributes.CURRENT_URL > 
2<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
3<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService")> 
4<#assign url404 = '/error/404.html'> 
5 
6<#assign bCode= qstringmap["bankercode"]?first> 
7<#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
8<#list bData as b>      
9    <#assign lc = b.locationcode > 
10    <#assign rLC = b.reallocationcode > 
11    <#assign mappedLC = b.mappedLocationCode > 
12</#list>  
13 
14<#if bCode?starts_with("amp") && (url?contains("11t1m"))> 
15    <#assign ameriprise = true> 
16<#else> 
17    <#assign ameriprise = false> 
18</#if> 
19<#if mappedLC?has_content && !ameriprise> 
20    <#assign lc = mappedLC > 
21</#if> 
22 
23<#if lc?has_content> 
24 
25    <#assign prefix = "00000" > 
26    <#assign lcWithPrefix = prefix + lc > 
27    <#assign withPrefixLength = lcWithPrefix?length > 
28    <#assign startHere = withPrefixLength - 5> 
29    <#assign lc = lcWithPrefix?substring(startHere)> 
30    <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
31    <#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
32 
33    <#assign clientProfile = clientProfileList?first> 
34    <#assign pbu = clientProfile.getPbu()> 
35    <#assign subbu = clientProfile.getSUBBRANDBUNBR()>   
36    <#assign partnerName=clientProfile.getMarketingNameLong()> 
37    <#assign clientDataService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcPbuLocalService") > 
38    <#assign clientProfileDataList = clientDataService.getByPbuAndSubBu(pbu,subbu)> 
39    <#assign partnerUrl = clientProfileDataList.getPartnerMainUrl()> 
40    <#if partnerUrl?has_content && !partnerUrl?matches(r"(?i)^https?\:\/\/.*") && !partnerUrl?matches(r"(?i)^https?\:&#x2F;&#x2F;.*")> 
41        <#-- add protocal if missing  --> 
42        <#assign partnerUrl = 'https://' + partnerUrl> 
43    </#if> 
44    <footer class="footer bg-color-black text-color-white"> 
45        ${footerContent.getData()} 
46    </footer> 
47    <#if url?contains("11t1m")> 
48        <script>                 
49            document.querySelector('.footer .copyright').classList.add("ecdma-footer-client-name-copyright"); 
50            document.querySelector('.footer .fdic').innerHTML='<a class="text-color-white" href="https://login.elancreditcard.com/onlineCard/publicPrivacyPolicy.do?loc=18598" target="_blank">Privacy and Security</a>'; 
51        </script> 
52    <#else> 
53        <script>                 
54            document.querySelector('.footer .copyright').classList.add("ecdma-footer-client-name-copyright"); 
55            document.querySelector('.footer .fdic').innerHTML='<a class="text-color-white" href="https://www.myaccountaccess.com/onlineCard/publicPrivacyPolicy.do?loc=${lc!0}" target="_blank">Privacy and Security</a>'; 
56            var newNode = document.createElement("div");  
57             newNode.classList.add("member-agreement"); 
58            newNode.innerHTML='<a class="text-color-white" href="https://online1.elancard.com/oad/cmas.controller?locationCode=${lc!0}&preparerType=customer&isNewRequest=false" target="_blank">Cardmember Agreements</a>'; 
59            var fdicNode = document.querySelector('.footer .fdic'); 
60            var parent = fdicNode.parentNode; 
61            parent.insertBefore(newNode, fdicNode); 
62        </script> 
63    </#if> 
64 
65    <#if partnerUrl?has_content> 
66        <script> 
67            document.querySelector('.copyright .homelink').innerHTML="<a class='text-color-white' href='${partnerUrl!''}' title='${partnerName!''}' target='_blank'>Home</a>"; 
68        </script> 
69    </#if> 
70</#if>