Visa artiklar

Visa artiklar

Fel uppstod under bearbetning av mallen.
Expression qstringmap["bankercode"] is undefined on line 7, column 17 in 10153#10191#5843801.
1<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService") > 
2<#assign oadURL = propsUtil.get('elan.oad.url') > 
3<#assign url = request.attributes.CURRENT_URL > 
4<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
5<#assign url404 = '/error/404.html' > 
6 
7<#assign bCode= qstringmap["bankercode"]?first> 
8<#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
9<#list bData as b>      
10    <#assign lc = b.locationcode > 
11    <#assign rLC = b.reallocationcode > 
12    <#assign mappedLC = b.mappedLocationCode > 
13</#list>  
14<#if mappedLC?has_content> 
15    <#assign lc = mappedLC > 
16</#if> 
17<#if lc?has_content> 
18    <#assign prefix = "00000" > 
19    <#assign lcWithPrefix = prefix + lc > 
20    <#assign withPrefixLength = lcWithPrefix?length > 
21    <#assign startHere = withPrefixLength - 5> 
22    <#assign lc = lcWithPrefix?substring(startHere)> 
23    <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
24    <#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
25    <#assign clientProfile = clientProfileList?first> 
26    <#assign partnerName = clientProfile.getMarketingNameLong()> 
27    <#assign logoFileName = clientProfile.getLogoBFormat1()> 
28    <#assign cdnLogoUrl = propsUtil.get('rackspace.cdn.web.url')> 
29    <div class="content-container content-container-main" title="${partnerName!''}"> 
30        <header class="jn-header"> 
31            <div class="header-logo">  
32                <img src="${cdnLogoUrl!''}/${logoFileName!''}" alt="${partnerName!''}" title="${partnerName!''}"> 
33            </div>  
34        </header> 
35    </div>        
36</#if> 

Visa artiklar

Fel uppstod under bearbetning av mallen.
Expression qstringmap["bankercode"] is undefined on line 7, column 17 in 10153#10191#6256314.
1<#assign oadURL = propsUtil.get('elan.oad.url') > 
2<#assign url = request.attributes.CURRENT_URL > 
3<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
4<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService")> 
5<#assign url404 = '/error/404.html' > 
6 
7<#assign bCode= qstringmap["bankercode"]?first> 
8<#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
9<#list bData as b>      
10    <#assign lc = b.locationcode > 
11    <#assign rLC = b.reallocationcode > 
12    <#assign mappedLC = b.mappedLocationCode > 
13</#list>  
14<#if mappedLC?has_content> 
15    <#assign lc = mappedLC > 
16</#if> 
17<#if lc?has_content> 
18    <#assign prefix = "00000" > 
19    <#assign lcWithPrefix = prefix + lc > 
20    <#assign withPrefixLength = lcWithPrefix?length > 
21    <#assign startHere = withPrefixLength - 5> 
22    <#assign lc = lcWithPrefix?substring(startHere)>         
23    <#assign clientProfileService=serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService")> 
24    <#assign clientProfileList=clientProfileService.findByLocationCode(lc)> 
25 
26    <#assign clientProfile=clientProfileList?first> 
27    <#assign partnerName=clientProfile.getMarketingNameLong()> 
28    <#assign pbu=clientProfile.getPbu()> 
29    <#assign subbu = clientProfile.getSUBBRANDBUNBR()> 
30    <#assign cdnCardArtUrl=propsUtil.get('rackspace.cdn.cardart.url')> 
31    <#assign fiCardsData=utilServ.makeCall('crcTier3GetPbuData','0&'+pbu+'&'+subbu)> 
32             
33    <#-- filter cards by sourceCode and offerId and remove duplicated cards--> 
34    <#assign temp = []> 
35    <#assign offerTypeList = []>      
36    <#assign index = 0> 
37    <#list fiCardsData as fib> 
38        <#if (fib.offerId?has_content && fib.sourceCode?has_content)>   
39            <#if !(offerTypeList?seq_contains(fib.offerType))> 
40                <#assign offerTypeList = offerTypeList + [fib.offerType]>                    
41                <#assign temp = temp + fiCardsData[index..index]>  
42            </#if> 
43        </#if>  
44        <#assign index = index + 1>                  
45    </#list>  
46    <#assign fiCardsData = temp>  
47    <#if (fiCardsData?size > 0)>     
48        <#assign offerId = ""> 
49        <#assign sourceCode = ""> 
50        <#assign cardArtImage = ""> 
51        <#assign productName = ""> 
52        <#assign preparerType = "customer"> 
53        <#assign apr = ""> 
54        <#list fiCardsData as card> 
55            <#if (class.getData() == "landing-consumer" && card.offerType=="104" ) || (class.getData() == "landing-business" && card.offerType=="144")> 
56                <#assign offerId = card.offerId> 
57                <#assign sourceCode = card.sourceCode> 
58                <#assign cardArtImage = cdnCardArtUrl + "/"+card.filename+".png"> 
59                <#assign cardArtImageAlt = cdnCardArtUrl + "/"+card.filename+".jpg"> 
60                <#if (card.offerType=="104")> 
61                    <#assign productName="max-cash"> 
62                    <#assign scrapedData = utilServ.makeCall('crcDDCGetSchumerBox', offerId + '&'+ sourceCode)> 
63                    <#if (scrapedData?size > 0)> 
64                        <#list scrapedData as sItem> 
65                            <#if ((sItem.scrapedLabel?contains("Annual Percentage Rate (APR) for Purchases")) && (sItem.scrapedValue?has_content)) > 
66                                <#assign apr = sItem.scrapedValue?replace("(\n|\r\n|\r)+", " ","r")> 
67                                <#break> 
68                            </#if> 
69                        </#list> 
70                        <script> 
71                            $(document).ready(function () { 
72                                var aprText = "${apr}"; 
73                                if (aprText) { 
74                                    try { 
75                                        var matches= aprText.match(/\d+(\.\d+)?%?/g); 
76                                        var billing_cycle = matches[1]; 
77                                        var apr_min = apr_min = matches[2]; 
78                                        var apr_max = apr_max = matches[3]; 
79                                        if (billing_cycle) { 
80                                            $(".scraped-billing-cycle").html(billing_cycle); 
81
82                                        if (apr_min) { 
83                                            $(".scraped-apr-min").html(apr_min); 
84
85                                        if (apr_max) { 
86                                            $('.scraped-apr-max').html(apr_max); 
87
88 
89                                    } catch (e) { 
90                                        console.log(e); 
91
92
93                            }); 
94                        </script> 
95                    </#if>   
96                <#elseif (card.offerType=="144")> 
97                    <#assign productName="smart-business-rewards"> 
98                </#if>                     
99            </#if> 
100        </#list> 
101        <div class="content-container content-container-main product-${productName} tier2-hero-${class.getData()}"> 
102            <div class="jn-hero jn-hero-card"> 
103                <article class="jn-hero-container"> 
104                    <div class="jn-hero-container-data"> 
105                        <article> 
106                            <div> 
107                                <img src="${cardArtImage!''}" alt="${partnerName!''}" class="jn-img-responsive" onerror="this.onerror=null;this.src='${cardArtImageAlt!''}'"> 
108                            </div> 
109                            <div> 
110                                <div>${primaryHeadlineText.getData()}</div> 
111                                <div class="feature-text">${primaryFeatureText.getData()}</div> 
112                                <#if termsAndConditions.getData() == "yes"> 
113                                    <div class="intro"> 
114                                        <strong>Intro APR<sup>*</sup> for Purchases and Balance Transfers: </strong>${fib.APR} 
115                                        <a href="${oadURL}?locationCode=${lc}&amp;offerId=${offerId}&amp;preparerType=${preparerType}#termsAndCond-details" target="_blank">Terms & Conditions</a> 
116                                    </div> 
117                                </#if> 
118                                <form action="${oadURL}?locationCode=${lc}&offerId=${offerId}&preparerType=${preparerType}&sourceCode=${sourceCode}" method="post" class="BAAForm"> 
119                                    <label for="appDataBAA-${sourceCode}" style="position:absolute; clip:rect(0 0 0 0);">Application Data</label> 
120                                    <textarea rows="20" cols="100" name="applicationData" id="appDataBAA-${sourceCode}" class="appDataBAA" style="display:none;"></textarea> 
121                                    <input type="submit" data-button-name="cta-button-top" data-product-name="${productName}" title="Apply Now for ${partnerName!''} Credit Card"  
122                                        class="jn-button apply-now-button apply-button text-bold button-bg-color-custom text-color-white" value="${ctaText.getData()}" disabled /> 
123                                </form>                                                
124                            </div> 
125                        </article> 
126                    </div> 
127                </article> 
128            </div> 
129        </div> 
130 
131    </#if> 
132</#if> 

Visa artiklar

Fel uppstod under bearbetning av mallen.
Expression qstringmap["bankercode"] is undefined on line 7, column 17 in 10153#10191#6256314.
1<#assign oadURL = propsUtil.get('elan.oad.url') > 
2<#assign url = request.attributes.CURRENT_URL > 
3<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
4<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService")> 
5<#assign url404 = '/error/404.html' > 
6 
7<#assign bCode= qstringmap["bankercode"]?first> 
8<#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
9<#list bData as b>      
10    <#assign lc = b.locationcode > 
11    <#assign rLC = b.reallocationcode > 
12    <#assign mappedLC = b.mappedLocationCode > 
13</#list>  
14<#if mappedLC?has_content> 
15    <#assign lc = mappedLC > 
16</#if> 
17<#if lc?has_content> 
18    <#assign prefix = "00000" > 
19    <#assign lcWithPrefix = prefix + lc > 
20    <#assign withPrefixLength = lcWithPrefix?length > 
21    <#assign startHere = withPrefixLength - 5> 
22    <#assign lc = lcWithPrefix?substring(startHere)>         
23    <#assign clientProfileService=serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService")> 
24    <#assign clientProfileList=clientProfileService.findByLocationCode(lc)> 
25 
26    <#assign clientProfile=clientProfileList?first> 
27    <#assign partnerName=clientProfile.getMarketingNameLong()> 
28    <#assign pbu=clientProfile.getPbu()> 
29    <#assign subbu = clientProfile.getSUBBRANDBUNBR()> 
30    <#assign cdnCardArtUrl=propsUtil.get('rackspace.cdn.cardart.url')> 
31    <#assign fiCardsData=utilServ.makeCall('crcTier3GetPbuData','0&'+pbu+'&'+subbu)> 
32             
33    <#-- filter cards by sourceCode and offerId and remove duplicated cards--> 
34    <#assign temp = []> 
35    <#assign offerTypeList = []>      
36    <#assign index = 0> 
37    <#list fiCardsData as fib> 
38        <#if (fib.offerId?has_content && fib.sourceCode?has_content)>   
39            <#if !(offerTypeList?seq_contains(fib.offerType))> 
40                <#assign offerTypeList = offerTypeList + [fib.offerType]>                    
41                <#assign temp = temp + fiCardsData[index..index]>  
42            </#if> 
43        </#if>  
44        <#assign index = index + 1>                  
45    </#list>  
46    <#assign fiCardsData = temp>  
47    <#if (fiCardsData?size > 0)>     
48        <#assign offerId = ""> 
49        <#assign sourceCode = ""> 
50        <#assign cardArtImage = ""> 
51        <#assign productName = ""> 
52        <#assign preparerType = "customer"> 
53        <#assign apr = ""> 
54        <#list fiCardsData as card> 
55            <#if (class.getData() == "landing-consumer" && card.offerType=="104" ) || (class.getData() == "landing-business" && card.offerType=="144")> 
56                <#assign offerId = card.offerId> 
57                <#assign sourceCode = card.sourceCode> 
58                <#assign cardArtImage = cdnCardArtUrl + "/"+card.filename+".png"> 
59                <#assign cardArtImageAlt = cdnCardArtUrl + "/"+card.filename+".jpg"> 
60                <#if (card.offerType=="104")> 
61                    <#assign productName="max-cash"> 
62                    <#assign scrapedData = utilServ.makeCall('crcDDCGetSchumerBox', offerId + '&'+ sourceCode)> 
63                    <#if (scrapedData?size > 0)> 
64                        <#list scrapedData as sItem> 
65                            <#if ((sItem.scrapedLabel?contains("Annual Percentage Rate (APR) for Purchases")) && (sItem.scrapedValue?has_content)) > 
66                                <#assign apr = sItem.scrapedValue?replace("(\n|\r\n|\r)+", " ","r")> 
67                                <#break> 
68                            </#if> 
69                        </#list> 
70                        <script> 
71                            $(document).ready(function () { 
72                                var aprText = "${apr}"; 
73                                if (aprText) { 
74                                    try { 
75                                        var matches= aprText.match(/\d+(\.\d+)?%?/g); 
76                                        var billing_cycle = matches[1]; 
77                                        var apr_min = apr_min = matches[2]; 
78                                        var apr_max = apr_max = matches[3]; 
79                                        if (billing_cycle) { 
80                                            $(".scraped-billing-cycle").html(billing_cycle); 
81
82                                        if (apr_min) { 
83                                            $(".scraped-apr-min").html(apr_min); 
84
85                                        if (apr_max) { 
86                                            $('.scraped-apr-max').html(apr_max); 
87
88 
89                                    } catch (e) { 
90                                        console.log(e); 
91
92
93                            }); 
94                        </script> 
95                    </#if>   
96                <#elseif (card.offerType=="144")> 
97                    <#assign productName="smart-business-rewards"> 
98                </#if>                     
99            </#if> 
100        </#list> 
101        <div class="content-container content-container-main product-${productName} tier2-hero-${class.getData()}"> 
102            <div class="jn-hero jn-hero-card"> 
103                <article class="jn-hero-container"> 
104                    <div class="jn-hero-container-data"> 
105                        <article> 
106                            <div> 
107                                <img src="${cardArtImage!''}" alt="${partnerName!''}" class="jn-img-responsive" onerror="this.onerror=null;this.src='${cardArtImageAlt!''}'"> 
108                            </div> 
109                            <div> 
110                                <div>${primaryHeadlineText.getData()}</div> 
111                                <div class="feature-text">${primaryFeatureText.getData()}</div> 
112                                <#if termsAndConditions.getData() == "yes"> 
113                                    <div class="intro"> 
114                                        <strong>Intro APR<sup>*</sup> for Purchases and Balance Transfers: </strong>${fib.APR} 
115                                        <a href="${oadURL}?locationCode=${lc}&amp;offerId=${offerId}&amp;preparerType=${preparerType}#termsAndCond-details" target="_blank">Terms & Conditions</a> 
116                                    </div> 
117                                </#if> 
118                                <form action="${oadURL}?locationCode=${lc}&offerId=${offerId}&preparerType=${preparerType}&sourceCode=${sourceCode}" method="post" class="BAAForm"> 
119                                    <label for="appDataBAA-${sourceCode}" style="position:absolute; clip:rect(0 0 0 0);">Application Data</label> 
120                                    <textarea rows="20" cols="100" name="applicationData" id="appDataBAA-${sourceCode}" class="appDataBAA" style="display:none;"></textarea> 
121                                    <input type="submit" data-button-name="cta-button-top" data-product-name="${productName}" title="Apply Now for ${partnerName!''} Credit Card"  
122                                        class="jn-button apply-now-button apply-button text-bold button-bg-color-custom text-color-white" value="${ctaText.getData()}" disabled /> 
123                                </form>                                                
124                            </div> 
125                        </article> 
126                    </div> 
127                </article> 
128            </div> 
129        </div> 
130 
131    </#if> 
132</#if> 

Visa artiklar

Fel uppstod under bearbetning av mallen.
Expression qstringmap["bankercode"] is undefined on line 9, column 17 in 10153#10191#5843807.
1<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService") > 
2<#assign oadURL = propsUtil.get('elan.oad.url') > 
3<#assign url = request.attributes.CURRENT_URL > 
4<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
5<#assign url404 = '/error/404.html' > 
6<#assign environment = url?replace('/index.*','','r')> 
7 
8 
9<#assign bCode= qstringmap["bankercode"]?first> 
10<#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
11<#list bData as b>      
12    <#assign lc = b.locationcode > 
13    <#assign rLC = b.reallocationcode > 
14    <#assign mappedLC = b.mappedLocationCode > 
15    <#assign bName = b.branch > 
16    <#assign bPhone = b.businessphone > 
17    <#assign boeid = b.oeid > 
18    <#assign bFirstName = b.firstname?trim > 
19    <#assign bLastName = b.lastname?trim > 
20</#list>  
21<#assign firstNameLength = bFirstName?length > 
22<#assign lastNameLength = bLastName?length > 
23<#if firstNameLength + lastNameLength &gt; 19 > 
24    <#if lastNameLength &gt; 18 > 
25        <#assign bLName = bLastName?substring(0,18)> 
26    </#if> 
27    <#assign maxFirstName = 19 - bLastName?length > 
28    <#if firstNameLength &gt; maxFirstName > 
29        <#assign bFName = bFirstName?substring(0,maxFirstName)> 
30    </#if> 
31</#if>  
32 
33 
34<#assign text_to_apply_source = "text to apply" > 
35<#if qstringmap["sms"]?has_content> 
36    <#assign sms = 1 > 
37    <#assign text_to_apply_source = "sms" > 
38</#if> 
39<#if qstringmap["qrcode"]?has_content> 
40    <#assign text_to_apply_source = "qr code" > 
41</#if> 
42 
43<#if qstringmap["ecid"]?has_content> 
44    <#assign ecidExt="&ecid="+qstringmap["ecid"]?first> 
45    <#assign campaignId = qstringmap["ecid"]?first > 
46<#else> 
47    <#assign ecidExt=""> 
48    <#assign campaignId = "" > 
49</#if> 
50 
51<#if mappedLC?has_content> 
52    <#assign lc = mappedLC > 
53</#if> 
54 
55<#if lc?has_content> 
56    <#assign prefix = "00000" > 
57    <#assign lcWithPrefix = prefix + lc > 
58    <#assign withPrefixLength = lcWithPrefix?length > 
59    <#assign startHere = withPrefixLength - 5> 
60    <#assign lc = lcWithPrefix?substring(startHere)> 
61    <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
62    <#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
63    <#assign clientProfile = clientProfileList?first> 
64    <#assign partnerName = clientProfile.getMarketingNameLong()> 
65    <#assign pbu = clientProfile.getPbu()> 
66    <#assign subbu = clientProfile.getSUBBRANDBUNBR()> 
67     
68    <#assign cdnCardArtUrl = propsUtil.get('rackspace.cdn.cardart.url')> 
69    <#assign fiCardsData = utilServ.makeCall('crcTier3GetPbuData','0&'+pbu+'&'+subbu)>  
70    <#-- Begin: filter cards by sourceCode and offerId and remove duplicate cards --> 
71    <#assign temp = []> 
72    <#assign consumerCards = []> 
73    <#assign businessCards = []>  
74    <#assign offerTypeList = []>  
75    <#assign consumerOfferTypes =['104', '101', '103', '108', '109', '115']> 
76    <#assign businessOfferTypes =['144', '128', '143', '121', '123']>   
77    <#assign index = 0> 
78    <#list fiCardsData as fib> 
79        <#if (fib.offerType?has_content && !(offerTypeList?seq_contains(fib.offerType)))>   
80            <#assign offerTypeList = offerTypeList + [fib.offerType]> 
81            <#assign temp = temp + fiCardsData[index..index]>   
82            <#if consumerOfferTypes?seq_contains(fib.offerType)> 
83                <#assign consumerCards = consumerCards + fiCardsData[index..index]> 
84            <#elseif (businessOfferTypes?seq_contains(fib.offerType))> 
85                <#assign businessCards = businessCards + fiCardsData[index..index]> 
86            </#if>                             
87        </#if>  
88        <#assign index = index + 1>                
89    </#list>  
90 
91    <#if (consumerCards?size > 0 || businessCards?size > 0)> 
92        <div class="content-container content-container-main jn-consumer-content"> 
93            <#if ((consumerCards?size > 0) && (businessCards?size > 0))> 
94                <nav class="jn-primary-nav two-tabs"> 
95                    <ul> 
96                        <li> 
97                            <a href="#" class="tab-nav active" id="consumerTab"><span>Personal</span></a> 
98                        </li> 
99                        <li> 
100                            <a href="#" class="tab-nav" id="businessTab"><span>Business</span></a> 
101                        </li> 
102                    </ul> 
103                </nav> 
104            <#else> 
105                <#if (consumerCards?size > 0)> 
106                    <nav class="jn-primary-nav"> 
107                        <ul> 
108                            <li> 
109                                <p class="tab-nav" id="consumerTab"><span>Personal</span></p> 
110                            </li> 
111                        </ul> 
112                    </nav> 
113                </#if> 
114                <#if (businessCards?size > 0)> 
115                    <nav class="jn-primary-nav"> 
116                        <ul> 
117                            <li> 
118                                <p class="tab-nav" id="businessTab"><span>Business</span></p> 
119                            </li> 
120                        </ul> 
121                    </nav> 
122                </#if> 
123            </#if> 
124            <#if (consumerCards?size > 0)> 
125            <div class="tab-more-wrapper"> 
126                <div class="jn-consumer-content-wrapper jn-tab-content active transition-start" data-id="consumerTab"> 
127                    <#list consumerCards as fib>                                  
128                        <#assign cardArtImage = cdnCardArtUrl + "/" + fib.filename + ".png" > 
129                        <#assign cardArtImageAlt = cdnCardArtUrl + "/"+fib.filename+".jpg">                             
130                        <#switch fib.offerType> 
131                            <#case "101"> 
132                                <#assign productName = "real-rewards"> 
133                                <#assign product="Real Rewards"> 
134                                <#assign cardIndex = 1> 
135                                <#break> 
136                            <#case "108"> 
137                                <#assign productName = "consumer-platinum"> 
138                                <#assign product="Platinum"> 
139                                <#assign cardIndex = 2> 
140                                <#break> 
141                            <#case "109"> 
142                                <#assign productName = "consumer-platinum"> 
143                                <#assign product="Platinum"> 
144                                <#assign cardIndex = 2> 
145                                <#break>                                            
146                            <#case "115"> 
147                                <#assign productName = "secured"> 
148                                <#assign product="Secured"> 
149                                <#assign cardIndex = 3> 
150                                <#break> 
151                            <#case "104"> 
152                                <#assign productName = "max-cash"> 
153                                <#assign product="Max Cash"> 
154                                <#assign cardIndex = 0> 
155                                <#break> 
156                            <#default> 
157                        </#switch> 
158                        <#assign titleText = consumerTitle.getSiblings()[cardIndex].Title.getData()> 
159                        <#assign titleText = titleText?replace('<[^>]+>','','r')>                         
160                        <#assign APR=""> 
161                        <#assign AMF=""> 
162                        <#assign BAL=""> 
163                        <#assign scrapedData = utilServ.makeCall('crcDDCGetSchumerBox', fib.offerId + '&'+ fib.sourceCode)> 
164                        <#if (scrapedData?size > 0)> 
165                            <#list scrapedData as sItem> 
166                                <#if ((sItem.scrapedLabel?contains("Annual Percentage Rate (APR) for Purchases")) && (sItem.scrapedValue?has_content)) > 
167                                    <#assign APR = sItem.scrapedValue> 
168                                <#elseif ((sItem.scrapedLabel?contains("Annual Membership Fee")) && (sItem.scrapedValue?has_content)) > 
169                                    <#assign AMF = sItem.scrapedValue> 
170                                <#elseif ((sItem.scrapedLabel?contains("APR for Balance Transfers")) && (sItem.scrapedValue?has_content)) > 
171                                    <#assign BAL = sItem.scrapedValue> 
172                                </#if> 
173                                <#if (APR?has_content && AMF?has_content && BAL?has_content)> 
174                                    <#break> 
175                                </#if> 
176                            </#list> 
177                        </#if>                               
178                        <div class="jn-consumer-item item-${fib.offerType}"> 
179                            <img src="${cardArtImage!''}" alt="${titleText}" title="${titleText}" class="jn-img-responsive" onerror="this.onerror=null;this.src='${cardArtImageAlt!''}'"> 
180                            <h4>${consumerTitle.getSiblings()[cardIndex].Title.getData()}</h4> 
181                            <p>${consumerTitle.getSiblings()[cardIndex].headlineText.getData()}</p> 
182                            <ul class="actions"> 
183                                <li> 
184                                    <form action="${oadURL}?locationCode=${lc}&amp;offerId=${fib.offerId}&amp;preparerType=customer&amp;sourceCode=${fib.sourceCode}" method="post" class="BAAForm"> 
185                                        <label for="appDataBAA-${fib.offerId}" style="position:absolute; clip:rect(0 0 0 0);">Application Data</label> 
186                                        <textarea rows="20" cols="100" name="applicationData" id="appDataBAA-${fib.offerId}" class="appDataBAA" style="display:none;" title="application data"></textarea>                                        
187                                        <a class="apply-now-button applyNowLink"  
188                                            href="${oadURL}?locationCode=${lc}&amp;offerId=${fib.offerId}&amp;preparerType=customer&amp;sourceCode=${fib.sourceCode}"  
189                                            data-button-name="apply-now-link" data-product-name="${productName!''}">${consumerTitle.getSiblings()[cardIndex].applyNow.getData()}</a> 
190                                    </form> 
191                                </li> 
192                                <li><a href="${environment}/${productName}?bankercode=${bCode}&ecdma-lc=${lc}${ecidExt}">${consumerTitle.getSiblings()[cardIndex].LearnMore.getData()}</a></li> 
193                            </ul> 
194                            <div class="jn-additional"> 
195                                <ul class="${fib.offerType}"> 
196                                        <#if (fib.offerType == "104")> 
197                                        <li class="${fib.offerType}"> 
198                                                <p> 
199                                                        <strong>APR<sup>*</sup> for Purchases: </strong> 
200                                                    ${APR!''} 
201                                                </p> 
202                                            </li> 
203                                            <li class="${fib.offerType}"> 
204                                                    <p> 
205                                                            <strong>Intro APR<sup>*</sup> for Balance Transfers: </strong> 
206                                                        ${BAL!''} <a href="${oadURL}?locationCode=${lc}&amp;offerId=${fib.offerId}&amp;preparerType=customer#termsAndCond-details" target="_blank">Terms & Conditions</a> 
207                                                    </p> 
208                                                </li> 
209                                        <#elseif (fib.offerType == "115")> 
210                                    <li class="${fib.offerType}"> 
211                                        <p> 
212                                                <strong>APR<sup>*</sup> for Purchases and Balance Transfers: </strong> 
213                                            ${APR!''} <a href="${oadURL}?locationCode=${lc}&amp;offerId=${fib.offerId}&amp;preparerType=customer#termsAndCond-details" target="_blank">Terms & Conditions</a> 
214                                        </p> 
215                                    </li> 
216                                    <#else> 
217                                    <li class="${fib.offerType}"> 
218                                            <p> 
219                                                    <strong>Intro APR<sup>*</sup> for Purchases and Balance Transfers: </strong> 
220                                                ${APR!''} <a href="${oadURL}?locationCode=${lc}&amp;offerId=${fib.offerId}&amp;preparerType=customer#termsAndCond-details" target="_blank">Terms & Conditions</a> 
221                                            </p> 
222                                        </li> 
223                                    </#if> 
224                                    <#if consumerTitle.getSiblings()[cardIndex].additionalInfo.getSiblings()?has_content> 
225                                        <#list consumerTitle.getSiblings()[cardIndex].additionalInfo.getSiblings() as marketingInfo> 
226                                            <li>${marketingInfo.getData()}</li> 
227                                        </#list> 
228                                    </#if> 
229                                    <li> 
230                                        <p>Annual Fee: ${AMF!''} <a  href="${oadURL}?locationCode=${lc}&amp;offerId=${fib.offerId}&amp;preparerType=customer#termsAndCond-details"  target="_blank">Terms & Conditions</a></p> 
231                                    </li> 
232                                </ul> 
233                            </div> 
234                        </div>    
235                    </#list> 
236                </div> 
237            </div> 
238            </#if> 
239            <#if (businessCards?size > 0)>   
240            <div class="tab-more-wrapper">   
241                <div class="jn-consumer-content-wrapper jn-tab-content transition-start" data-id="businessTab"> 
242                     
243                    <#list businessCards as fib> 
244                        <#assign cardArtImage = cdnCardArtUrl + "/"+fib.filename+".png"> 
245                        <#assign cardArtImageAlt = cdnCardArtUrl + "/"+fib.filename+".jpg"> 
246                        <#switch fib.offerType> 
247                            <#case "144"> 
248                                <#assign productName = "smart-business-rewards"> 
249                                <#assign product="Smart Business Rewards"> 
250                                <#assign cardIndex = 4> 
251                                <#break> 
252                            <#case "128"> 
253                                <#assign productName = "business-cashback"> 
254                                <#assign product="Business Cash"> 
255                                <#assign cardIndex = 5> 
256                                <#break> 
257                            <#case "143"> 
258                                <#assign productName = "business-real-rewards"> 
259                                <#assign product="Business Real Rewards"> 
260                                <#assign cardIndex = 6> 
261                                <#break> 
262                            <#case "121"> 
263                                <#assign productName = "visa-business"> 
264                                <#assign product="Business Card"> 
265                                <#assign cardIndex = 7> 
266                                <#break> 
267                            <#default> 
268                        </#switch> 
269                        <#assign APR=""> 
270                        <#assign AMF=""> 
271                        <#assign scrapedData = utilServ.makeCall('crcDDCGetSchumerBox', fib.offerId + '&'+ fib.sourceCode)> 
272                        <#if (scrapedData?size > 0)> 
273                            <#list scrapedData as sItem> 
274                                <#if ((sItem.scrapedLabel?contains("Annual Percentage Rate (APR) for Purchases")) && (sItem.scrapedValue?has_content)) > 
275                                    <#assign APR = sItem.scrapedValue> 
276                                <#elseif ((sItem.scrapedLabel?contains("Annual Membership Fee")) && (sItem.scrapedValue?has_content)) > 
277                                    <#assign AMF = sItem.scrapedValue> 
278                                </#if> 
279                                <#if (APR?has_content && AMF?has_content)> 
280                                    <#break> 
281                                </#if> 
282                            </#list> 
283                        </#if>   
284                                                  
285                        <div class="jn-consumer-item"> 
286                            <img src="${cardArtImage!''}" alt="${partnerName!''}" class="jn-img-responsive" onerror="this.onerror=null;this.src='${cardArtImageAlt!''}'"> 
287                            <h4>${consumerTitle.getSiblings()[cardIndex].Title.getData()}</h4> 
288                            <p>${consumerTitle.getSiblings()[cardIndex].headlineText.getData()}</p> 
289                            <ul class="actions"> 
290                                <li> 
291                                    <form action="${oadURL}?locationCode=${lc}&amp;offerId=${fib.offerId}&amp;preparerType=customer&amp;sourceCode=${fib.sourceCode}" method="post" class="BAAForm"> 
292                                        <label for="appDataBAA-${fib.offerId}" style="position:absolute; clip:rect(0 0 0 0);">Application Data</label> 
293                                        <textarea rows="20" cols="100" name="applicationData" id="appDataBAA-${fib.offerId}" class="appDataBAA" style="display:none;" title="application data"></textarea>                                       
294                                        <a class="apply-now-button applyNowLink"  
295                                        href="${oadURL}?locationCode=${lc}&amp;offerId=${fib.offerId}&amp;preparerType=customer&amp;sourceCode=${fib.sourceCode}"  
296                                        data-button-name="apply-now-link" data-product-name="${productName!''}">${consumerTitle.getSiblings()[cardIndex].applyNow.getData()}</a> 
297                                    </form> 
298                                </li> 
299                                <li><a href="${environment}/${productName}?bankercode=${bCode}&ecdma-lc=${lc}${ecidExt}">${consumerTitle.getSiblings()[cardIndex].LearnMore.getData()}</a></li> 
300                            </ul> 
301                            <div class="jn-additional"> 
302                                <ul> 
303                                        <#if (fib.offerType == "144")> 
304                                    <li> 
305                                        <p> 
306                                                <strong>APR<sup>*</sup> for Purchases and Balance Transfers: </strong> 
307                                            ${APR!''} 
308                                            <a href="${oadURL}?locationCode=${lc}&amp;offerId=${fib.offerId}&amp;preparerType=customer#termsAndCond-details" target="_blank">Terms & Conditions</a> 
309                                        </p> 
310                                    </li> 
311                                    <#else> 
312                                    <li> 
313                                            <p> 
314                                                    <strong>Intro APR<sup>*</sup> for Purchases and Balance Transfers: </strong> 
315                                                ${APR!''} 
316                                                <a href="${oadURL}?locationCode=${lc}&amp;offerId=${fib.offerId}&amp;preparerType=customer#termsAndCond-details" target="_blank">Terms & Conditions</a> 
317                                            </p> 
318                                        </li> 
319                                    </#if> 
320                                    <#if consumerTitle.getSiblings()[cardIndex].additionalInfo.getSiblings()?has_content> 
321                                        <#list consumerTitle.getSiblings()[cardIndex].additionalInfo.getSiblings() as marketingInfo> 
322                                            <li>${marketingInfo.getData()}</li> 
323                                        </#list> 
324                                    </#if> 
325                                    <li><p>Annual Fee: ${AMF!''} <a 
326                                        href="${oadURL}?locationCode=${lc}&amp;offerId=${fib.offerId}&amp;preparerType=customer#termsAndCond-details" target="_blank">Terms & Conditions</a></p> 
327                                    </li> 
328                                </ul> 
329                            </div> 
330                        </div> 
331                    </#list> 
332                </div> 
333            </div> 
334            </#if>  
335            <div class="more-link" ><a href="#" role="button" aria-label="More Cards"><div class="more-text">MORE <br> CARDS </div><div class="more-caret"></div></a></div> 
336                <div class="less-link"><a href="#" role="button" aria-label="Less Cards"><div class="less-caret"></div> <div class="less-text">BACK</div></a></div> 
337        </div> 
338 
339        <script> 
340            $(document).ready(function () { 
341                var tabs=$('.tab-nav'); 
342                var consumerSelector = '.jn-consumer-content-wrapper.jn-tab-content[data-id="consumerTab"]'; 
343                var businessSelector = '.jn-consumer-content-wrapper.jn-tab-content[data-id="businessTab"]'; 
344                var screenWidthMobile = 768; 
345                var screenWidth = window.innerWidth; 
346                if (tabs.length == 1) { 
347                    $(tabs).parent().css('margin', '0'); 
348                    if ($(consumerSelector).length > 0) { 
349                        hideHeroAndDisclaimer('business'); 
350                        showHeroAndDisclaimer('consumer'); 
351                        changeCardLayout(consumerSelector); 
352                        renumberFootnote("consumer"); 
353                        createMetaTag("consumer"); 
354                    }  
355                    if ($(businessSelector).length > 0) { 
356                        $(businessSelector).addClass('active'); 
357                        hideHeroAndDisclaimer('consumer'); 
358                        showHeroAndDisclaimer('business'); 
359                        changeCardLayout(businessSelector); 
360                        renumberFootnote("business"); 
361                        createMetaTag("business"); 
362
363                    if(screenWidth > screenWidthMobile) { 
364                        if ($("#consumerTab").length > 0) { 
365                            if ($(consumerSelector + ' .jn-consumer-item').length > 3) { 
366                                $('.more-link').show(); 
367                            } else { 
368                                $('.more-link').hide(); 
369                                $('.less-link').hide(); 
370
371                        } else if ($("#businessTab").length > 0) { 
372                            if ($(businessSelector + ' .jn-consumer-item').length > 3) { 
373                                $('.more-link').show(); 
374                            } else { 
375                                $('.more-link').hide(); 
376                                $('.less-link').hide(); 
377
378
379                    }  
380                }  
381                if (tabs.length == 2) { 
382                    renumberFootnote("consumer"); 
383                    renumberFootnote("business"); 
384                    createMetaTag("consumer"); 
385                    if ($(consumerSelector + ' .jn-consumer-item').length < 3) { 
386                        changeCardLayout(consumerSelector); 
387
388                    if ($(businessSelector + ' .jn-consumer-item').length < 3) { 
389                        changeCardLayout(businessSelector); 
390
391                    if(screenWidth > screenWidthMobile) { 
392                        if ($(consumerSelector + ' .jn-consumer-item').length > 3) { 
393                            $('.more-link').show(); 
394                        } else { 
395                            $('.more-link').hide(); 
396                            $('.less-link').hide(); 
397
398                        $(tabs).click(function(){ 
399                            if ($(this).attr('id') === "consumerTab") { 
400                                if ($(consumerSelector + ' .jn-consumer-item').length > 3) { 
401                                    slideDiv = $('.jn-tab-content.active'); 
402                                    $(slideDiv).removeClass('transition-left'); 
403                                    $('.less-link').hide(); 
404                                    $('.more-link').show(); 
405                                } else { 
406                                    $('.less-link').hide(); 
407                                    $('.more-link').hide(); 
408
409
410                            if ($(this).attr('id') === "businessTab") { 
411                                if ($(businessSelector + ' .jn-consumer-item').length > 3) { 
412                                    slideDiv = $('.jn-tab-content.active'); 
413                                    $(slideDiv).removeClass('transition-left'); 
414                                    $('.less-link').hide(); 
415                                    $('.more-link').show(); 
416                                } else { 
417                                    $('.less-link').hide(); 
418                                    $('.more-link').hide(); 
419
420
421                        }); 
422
423                     
424                    var tabsNav = document.querySelectorAll('.tab-nav'); 
425                    togglePrimaryNav(tabsNav); 
426                     
427
428                $('.more-link, .less-link').click(function(e){ 
429                    e.preventDefault(); 
430                }); 
431                $('.more-link').click(function(){ 
432                    slideDiv = $('.jn-tab-content.active'); 
433                    $(slideDiv).addClass('transition-left'); 
434                    $('.less-link').show(); 
435                    $(this).hide(); 
436                }); 
437                $('.less-link').click(function(){ 
438                    slideDiv = $('.jn-tab-content.active'); 
439                    $(slideDiv).removeClass('transition-left'); 
440                    $(this).hide(); 
441                    $('.more-link').show(); 
442                }); 
443                     
444 
445            }); 
446            // Primary Nav function 
447             
448            function togglePrimaryNav(elem) { 
449                for (var i = 0; i < elem.length; i++) { 
450                    elem[i].addEventListener("click", function(e) { 
451 
452                        var current = this, 
453                            allSections = document.querySelectorAll('[data-id]'), 
454                            section = document.querySelector("[data-id='"+ current.id +"']"); 
455 
456                        for (var a = 0; a < allSections.length; a++) { 
457                            allSections[a].classList.remove('active'); 
458
459                        for (var c = 0; c < elem.length; c++) { 
460                            if (current != elem[c]) { 
461                                elem[c].classList.remove('active'); 
462                            } else { 
463                                current.classList.add('active'); 
464                                section.classList.add('active'); 
465                                hideHeroAndDisclaimer('consumer'); 
466                                hideHeroAndDisclaimer('business'); 
467                                if(current.getAttribute('id') === "consumerTab"){ 
468                                    showHeroAndDisclaimer('consumer'); 
469                                } else if(current.getAttribute('id') === "businessTab"){ 
470                                    showHeroAndDisclaimer('business'); 
471
472
473
474                        e.preventDefault(); 
475                    }); 
476
477
478 
479            function renumberFootnote(type) { 
480                var discriptionSelector = '.jn-consumer-content-wrapper.jn-tab-content' + '[data-id="' + type + 'Tab"]'; 
481                var disclaimerSelector = '.tier2-disclaimer-landing-' + type; 
482                var heroSelector = '.tier2-hero-landing-' + type; 
483                var numOfFootnote = $(disclaimerSelector + ' sup').length; 
484                var showList = []; 
485                var hideList=[]; 
486                for (var i = 1; i <= numOfFootnote; i++) { 
487                var cssClass="tag-" + i; 
488                if ($(discriptionSelector + ' sup').hasClass(cssClass) || $(heroSelector + ' sup').hasClass(cssClass)) { 
489                    showList.push(i);      
490                } else { 
491                    hideList.push(i); 
492
493                }  
494                for (var i = 1; i < showList.length + 1; i++) { 
495                    if(showList[i-1] != i) { 
496                        var className="tag-" + showList[i-1]; 
497                        $(heroSelector).find("." +  className).html(i); 
498                        $(discriptionSelector).find("." +  className).html(i); 
499                        $(disclaimerSelector).find("." +  className).html(i); 
500
501
502                for (var i = 0; i <hideList.length; i++) { 
503                    var cname="tag-" + hideList[i]; 
504                    $(disclaimerSelector).find("." + cname).parent().hide(); 
505                }    
506
507 
508            function changeCardLayout(cssSelector) { 
509                var numOfCards = $(cssSelector + ' .jn-consumer-item').length; 
510                if(numOfCards == 1) { 
511                    $(cssSelector).addClass('one-card'); 
512                } else if (numOfCards == 2) { 
513                    $(cssSelector).addClass('two-card'); 
514                }   
515
516            function hideHeroAndDisclaimer(type) { 
517                try { 
518                    document.querySelector('.tier2-hero-landing-'+ type).classList.remove('show'); 
519                    document.querySelector('.tier2-hero-landing-'+ type).classList.add('hide'); 
520                } catch (e) { 
521                    console.log(e); 
522
523 
524                try { 
525                    document.querySelector('.tier2-disclaimer-landing-'+ type).classList.remove('show'); 
526                    document.querySelector('.tier2-disclaimer-landing-'+ type).classList.add('hide');  
527                } catch (e) { 
528                    console.log(e); 
529
530 
531
532                function showHeroAndDisclaimer(type) { 
533                try { 
534                    document.querySelector('.tier2-hero-landing-'+ type).classList.add('show'); 
535                    document.querySelector('.tier2-hero-landing-'+ type).classList.remove('hide'); 
536                } catch (e) { 
537                    console.log(e); 
538
539                 
540                try { 
541                    document.querySelector('.tier2-disclaimer-landing-'+ type).classList.add('show'); 
542                    document.querySelector('.tier2-disclaimer-landing-'+ type).classList.remove('hide');  
543                } catch (e) { 
544                    console.log(e); 
545
546 
547
548            function createMetaTag(type) { 
549                var partnerName = "${partnerName!0}"; 
550                var product_name = $('.jn-hero-container .jn-button').data('product-name'); 
551                var metaDesc =""; 
552                if (type == "consumer") {             
553                    if(product_name ==  "consumer-platinum") { 
554                                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."; 
555                            } else if(product_name ==  "real-rewards") { 
556                                metaDesc = "Apply Today for a "+partnerName+" Credit Card. Take home 2,500 bonus points after your first purchase."; 
557                            } else if(product_name ==  "secured") { 
558                                metaDesc = "Apply Today for a "+partnerName+" Credit Card. Use this card as a solid foundation to build your credit."; 
559                            } else if(product_name ==  "max-cash") { 
560                                metaDesc = "Apply Today for a "+partnerName+" Credit Card. Earn a $150 Bonus and 5% cash back on the two categories you select."; 
561
562 
563                } else if (type == "business") { 
564                    if(product_name ==  "business-cashback") {               
565                            metaDesc = "Apply Today for a "+partnerName+" Credit Card. Earn Cash back on common business expenses."; 
566                        } else if(product_name ==  "business-real-rewards") { 
567                            metaDesc = "Apply Today for a "+partnerName+" Credit Card. Get more rewards in the categories you spend the most on."; 
568                        } else if(product_name ==  "business-visa") { 
569                            metaDesc = "Apply Today for a "+partnerName+" Business Card. 0% Intro APR on Purchases and Balance Transfers for 15 Billing Cycles"; 
570                        } else if(product_name ==  "smart-business-rewards") { 
571                            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."; 
572
573
574                var m = document.createElement('meta');  
575                m.name = 'description';  
576                m.content = metaDesc;  
577                document.head.appendChild(m); 
578
579             
580        </script>         
581        <script> 
582            $(document).ready(function() { 
583                console.log('inside ready'); 
584                var page = location.pathname.split('/')[location.pathname.split('/').length-1]; 
585                var hostName = location.hostname; 
586                var preparerType = 'customer'; 
587                                     
588                function getDomainFromHostname(hostname) { 
589                    var parts = hostname.split('.'); 
590                    return parts.length === 3 ? parts[1] : parts[0]; 
591
592                var domain = getDomainFromHostname(hostName); 
593                var partnerName = "${partnerName!0}"; 
594                document.title = partnerName + " Credit Card Index Page"; 
595                var utag_data = window.utag_data || {}; 
596                var lc = '${lc!0}'; 
597 
598                var regex = /\d+/g; 
599                var bdNumber = "${bPhone!''}"; 
600                var phoneNum = bdNumber.match(regex); 
601                var areaCode = ""; 
602                var exchangeCode = ""; 
603                var num = ""; 
604                if(phoneNum != null) { 
605                    phoneNum = phoneNum.join(""); 
606                    areaCode = phoneNum.substring(0,3); 
607                    exchangeCode = phoneNum.substring(3,6); 
608                    num = phoneNum.substring(6,10); 
609
610                /* update SiteCatalyst data object */ 
611                utag_data.current_page = "microsite:${partnerName}:" + domain + ':' + page.replace('-',' '); 
612                utag_data.page_type = 'product';  
613                utag_data.site_section = 'credit cards'; 
614                utag_data.platform = 'microsite'; 
615                utag_data.campaign_id = '${campaignId}'; 
616                utag_data.location_code = '${lc!0}'; 
617                utag_data.partner_name = "${partnerName}"; 
618                utag_data.product = 'All Cards'; 
619                utag_data.text_to_apply_source = '${text_to_apply_source}'; 
620                utag_data.visitor_type = 'prospect';         
621                utag_data.Banker_id = '${boeid}'; 
622                utag_data.Banker_code = '${bCode}';  
623 
624                /* SiteCatalyst  pageView tracking */ 
625                if (window.publisherFW) { 
626                    console.log("pageView"); 
627                    window.publisherFW.publishEvent("pageView", utag_data); 
628                }                   
629                                         
630                $('.jn-button').removeAttr('disabled'); 
631                $('.jn-button').removeClass('jn-disabled'); 
632                 
633                jQuery('.applyNowLink').on('click', function(e){ 
634                    $(this).closest('.BAAForm').submit(); 
635                    return false; 
636                });                     
637                                         
638                jQuery('.BAAForm').on('submit', function(e){ 
639                    e.preventDefault(); 
640                    console.log('in custom submit'); 
641                    $(this).children('.appDataBAA').val('<?xml version="1.0"?>'+ 
642                        '<prefillData>'+  
643                        '<versionNumber>1.0</versionNumber>'+  
644                        '<applicationData>'+  
645                        '<bankerInformation>'+  
646                        '<locationCode>${rLC!0}</locationCode>'+ 
647                        '<originatingBranchNumber>'+'${bName!"0"}'+'</originatingBranchNumber>'+ 
648                        '<employeeID>${boeid!0}</employeeID>'+ 
649                        '<name>' + 
650                        '<first>'+'${bFName!"0"}'+'</first>' + 
651                        '<last>'+'${bLName!"0"}'+'</last>' + 
652                        '</name>'+ 
653                        '<phone>' + 
654                        '<areaCode>'+areaCode+'</areaCode>'+  
655                        '<exchange>'+exchangeCode+'</exchange>'+ 
656                        '<number>'+num+'</number>'+  
657                        '</phone>'+  
658                        '</bankerInformation>'+  
659                        '</applicationData>'+  
660                        '</prefillData>' 
661                    ); 
662                    var buttonName = $(this).find('.apply-now-button').data('button-name'); 
663                    var productName = $(this).find('.apply-now-button').data('product-name'); 
664                    /* SiteCatalyst  onClick tracking */ 
665                    utag_data.applyButton = buttonName; 
666                    utag_data.product = productName; 
667                    if (window.publisherFW) { 
668                        console.log('clicked'); 
669                        window.publisherFW.publishEvent("onClick", utag_data); 
670
671 
672                    /* GA onClick tracking 
673                    ga("send", { 
674                        hitType: "event", 
675                        eventAction: jQuery('textarea').val(), 
676                        eventCategory: "applyNow", 
677                        eventLabel: "BAAApplyNow" 
678                    });*/ 
679                    this.submit(); 
680                }); 
681 
682                 
683            }); 
684        </script>                         
685    </#if>        
686</#if> 

Visa artiklar

Fel uppstod under bearbetning av mallen.
Expression qstringmap["bankercode"] is undefined on line 5, column 17 in 10153#10191#5843810.
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 mappedLC?has_content> 
13    <#assign lc = mappedLC > 
14</#if> 
15<#assign prefix = "00000" > 
16<#assign lcWithPrefix = prefix + lc > 
17<#assign withPrefixLength = lcWithPrefix?length > 
18<#assign startHere = withPrefixLength - 5> 
19<#assign lc = lcWithPrefix?substring(startHere)> 
20<#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
21<#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
22 
23<#assign clientProfile = clientProfileList?first>  
24<#assign partnerName=clientProfile.getMarketingNameLong()> 
25 
26 
27<div class="content-container" title="${partnerName} - Disclaimer"> 
28    <div class="jn-disclaimer tier2-disclaimer-${class.getData()}"> 
29        ${content.getData()} 
30    </div> 
31</div> 

Visa artiklar

Fel uppstod under bearbetning av mallen.
Expression qstringmap["bankercode"] is undefined on line 5, column 17 in 10153#10191#5843810.
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 mappedLC?has_content> 
13    <#assign lc = mappedLC > 
14</#if> 
15<#assign prefix = "00000" > 
16<#assign lcWithPrefix = prefix + lc > 
17<#assign withPrefixLength = lcWithPrefix?length > 
18<#assign startHere = withPrefixLength - 5> 
19<#assign lc = lcWithPrefix?substring(startHere)> 
20<#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
21<#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
22 
23<#assign clientProfile = clientProfileList?first>  
24<#assign partnerName=clientProfile.getMarketingNameLong()> 
25 
26 
27<div class="content-container" title="${partnerName} - Disclaimer"> 
28    <div class="jn-disclaimer tier2-disclaimer-${class.getData()}"> 
29        ${content.getData()} 
30    </div> 
31</div> 

Visa artiklar

Fel uppstod under bearbetning av mallen.
Expression qstringmap["bankercode"] is undefined on line 7, column 17 in 10153#10191#5843825.
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 
7<#assign bCode= qstringmap["bankercode"]?first> 
8<#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
9<#list bData as b>   
10 
11    <#assign lc = b.locationcode > 
12    <#assign rLC = b.reallocationcode > 
13    <#assign mappedLC = b.mappedLocationCode > 
14</#list>  
15<#if mappedLC?has_content> 
16    <#assign lc = mappedLC > 
17</#if> 
18 
19<#if lc?has_content> 
20    <#assign prefix = "00000" > 
21    <#assign lcWithPrefix = prefix + lc > 
22    <#assign withPrefixLength = lcWithPrefix?length > 
23    <#assign startHere = withPrefixLength - 5> 
24    <#assign lc = lcWithPrefix?substring(startHere)> 
25 
26   <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
27   <#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
28    <#assign clientProfile = clientProfileList?first> 
29    <#assign pbu = clientProfile.getPbu()> 
30    <#assign subbu = clientProfile.getSUBBRANDBUNBR()> 
31    <#assign partnerName=clientProfile.getMarketingNameLong()> 
32    <#assign clientDataService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcPbuLocalService") > 
33    <#assign clientProfileDataList = clientDataService.getByPbuAndSubBu(pbu,subbu)> 
34    <#assign partnerUrl = clientProfileDataList.getPartnerMainUrl()> 
35    <#if partnerUrl?has_content && !partnerUrl?matches(r"(?i)^https?\:\/\/.*") && !partnerUrl?matches(r"(?i)^https?\:&#x2F;&#x2F;.*")> 
36        <#assign partnerUrl = 'https://' + partnerUrl> 
37    </#if> 
38    <footer class="footer bg-color-black text-color-white"> 
39        ${footerContent.getData()} 
40    </footer> 
41    <script>                 
42            document.querySelector('.footer .copyright').classList.add('ecdma-footer-client-name-copyright'); 
43            document.querySelector('.footer .fdic').innerHTML = "<p><a class='text-color-white' href='https://www.myaccountaccess.com/onlineCard/publicPrivacyPolicy.do?loc=${lc!0}' target='_blank'>Privacy and Security</a></p>"; 
44            var newNode = document.createElement("div");  
45            newNode.classList.add("member-agreement"); 
46            newNode.innerHTML='<p><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></p>'; 
47            var fdicNode = document.querySelector('.footer .fdic'); 
48            var parent = fdicNode.parentNode; 
49            parent.insertBefore(newNode, fdicNode); 
50    </script> 
51    <#if partnerUrl?has_content> 
52        <script> 
53            document.querySelector('.copyright .homelink').innerHTML="<a class='text-color-white' href='${partnerUrl!''}' title='${partnerName!''}' target='_blank'>Home</a>"; 
54        </script> 
55    </#if> 
56</#if>