Webový obsah - zobrazení

Webový obsah - zobrazení

Při zpracování šablony došlo k chybě.
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> 

Webový obsah - zobrazení

Při zpracování šablony došlo k chybě.
Expression bCode is undefined on line 65, column 6 in 10154#10192#154098141.
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 
328 
329 
330                                        <div class="option"> 
331                                            ${additionalInfoGroupA.getData()} 
332                                            <#if pbu != "0892445"> 
333                                                <#if (sdata?size > 0)> 
334                                                     
335                                                        <#if (fiCardsData?size > 0)> 
336 
337                                                            <#if (fib.offerType == "104") > 
338                                                                 
339                                                                <#list sdata as d> 
340                                                                    <#if (d.scrapedLabel?contains("Annual Percentage Rate") && (d.scrapedValue?has_content))>  
341                                                                        <div>   
342                                                                            <h3 >APR<sup>*</sup> for Purchases:</h3> 
343                                                                                <p>${d.scrapedValue} <br><a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}"  class="text-color-default" target="_blank">See terms & conditions.</a> 
344                                                                                </p> 
345                                                                            </div> 
346                                                                            <#break> 
347                                                                    </#if> 
348                                                                </#list> 
349 
350                                                            <#else> 
351                                                                <#if (fib.offerType=="128" || fib.offerType=="143" || fib.offerType=="121")> 
352                                                                <div> 
353                                                                    <h3>Intro APR<sup>*</sup> for Purchases and Balance Transfers</h3> 
354                                                                    <#list sdata as d> 
355                                                                        <#if (d.scrapedLabel?contains("Annual Percentage Rate") && (d.scrapedValue?has_content))> 
356                                                                            <p>${d.scrapedValue} <br><a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" 
357                                                                                    class="text-color-default" target="_blank">See terms & conditions.</a> 
358                                                                            </p> 
359                                                                            <#break> 
360                                                                        </#if> 
361                                                                    </#list> 
362                                                                </div> 
363                                                                <#elseif (fib.offerType=="144")> 
364                                                                <div> 
365                                                                    <h3>APR for Purchases and Balance Transfers</h3> 
366                                                                    <#list sdata as d> 
367                                                                        <#if (d.scrapedLabel?contains("APR for Balance Transfers") && (d.scrapedValue?has_content))> 
368                                                                            <p>${d.scrapedValue} <br><a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" 
369                                                                                    class="text-color-default" target="_blank">See terms & conditions.</a> 
370                                                                            </p> 
371                                                                            <#break> 
372                                                                        </#if> 
373                                                                    </#list> 
374                                                                </div> 
375                                                                </#if> 
376                                                            </#if> 
377                                                        </#if> 
378                                                </#if> 
379                                            </#if> 
380                                        </div> 
381 
382 
383                                        <div class="option"> 
384                                            ${additionalInfoGroupB.getData()}  
385                                            <#if pbu != "0892445"> 
386                                                <div> 
387                                                    <#if (fiCardsData?size > 0)> 
388                                                        <#if (sdata?size > 0)> 
389                                                            <#if (fib.offerType=="104")> 
390                                                                <h3>Intro APR<sup>*</sup> for Balance Transfers:</h3> 
391                                                            <#else> 
392                                                                <h3>Annual Fee</h3> 
393                                                            </#if> 
394                                                            <#list sdata as d> 
395                                                                <#if (fib.offerType=="104")> 
396                                                                    <#if (d.scrapedLabel?contains("APR for Balance Transfers") && (d.scrapedValue?has_content))> 
397                                                                            <p>${d.scrapedValue} <br><a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" 
398                                                                                class="text-color-default" target="_blank">See terms & conditions.</a> 
399                                                                            </p> 
400                                                                        <#break> 
401                                                                    </#if> 
402                                                                <#else> 
403                                                                    <#if (d.scrapedLabel?contains("Annual Membership Fee") && (d.scrapedValue?has_content))> 
404                                                                        <p> 
405                                                                            ${d.scrapedValue} 
406                                                                            <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" target="_blank">See terms & conditions.</a> 
407                                                                        </p> 
408                                                                        <#break> 
409                                                                    </#if> 
410                                                                </#if> 
411                                                            </#list> 
412                                                        </#if> 
413                                                    </#if> 
414                                                </div> 
415                                            </#if> 
416                                        </div> 
417 
418                                        <div class="option"> 
419                                            ${additionalInfoGroupC.getData()!''} 
420                                            <#if pbu != "0892445"> 
421                                                <#if (sdata?size > 0)> 
422                                                    <div> 
423                                                        <#if (fib.offerType == "104") > 
424                                                            <#list sdata as d> 
425                                                                <#if (d.scrapedLabel?contains("Annual Membership Fee") && (d.scrapedValue?has_content))> 
426                                                                                 
427                                                                    <h3>Annual Fee<sup>*</sup></h3> 
428                                                                            <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}"  class="text-color-default" target="_blank">See terms & conditions.</a> 
429                                                                            </p> 
430                                                                         
431                                                                        <#break> 
432                                                                </#if> 
433                                                            </#list> 
434                                                        <#elseif (fib.offerType == "108" || fib.offerType == "109" || fib.offerType == "101" || fib.offerType == "103")> 
435                                                            <h3>Intro APR<sup>*</sup> for Purchases and Balance Transfers</h3> 
436                                                            <#list sdata as d> 
437                                                                <#if (d.scrapedLabel?contains("Annual Percentage Rate") && (d.scrapedValue?has_content))> 
438                                                                    <#if (fiCardsData?size > 0)>  
439                                                                        <p>${d.scrapedValue} <br><a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" 
440                                                                                class="text-color-default" target="_blank">See terms & conditions.</a> 
441                                                                        </p> 
442                                                                    </#if> 
443                                                                    <#break> 
444                                                                </#if> 
445                                                            </#list> 
446                                                        <#elseif (fib.offerType=="115")> 
447                                                            <h3>APR for Purchases and Balance Transfers</h3> 
448                                                            <#list sdata as d> 
449                                                                <#if (d.scrapedLabel?contains("APR for Balance Transfers") && (d.scrapedValue?has_content))> 
450                                                                    <#if (fiCardsData?size > 0)>  
451                                                                        <p>${d.scrapedValue} <br><a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" 
452                                                                                class="text-color-default" target="_blank">See terms & conditions.</a> 
453                                                                        </p> 
454                                                                    </#if> 
455                                                                    <#break> 
456                                                                </#if> 
457                                                            </#list> 
458                                                        </#if> 
459                                                    </div> 
460                                                </#if> 
461                                            </#if> 
462                                        </div> 
463                                    </div> 
464                                </div> 
465                            </div> 
466                        </div> 
467                        <div class="banner-wrapper" title="${rollover_text!''}"> 
468                            <div class="banner ${override}"> 
469                                <div class="banner-cardArt cardArtImg"> 
470                                   <img src="${cardArtImage!''}" alt="${card_art_alt!''}" title="${card_art_alt!''}" onerror="this.onerror=null;this.src='${cardArtImageAlt!''}'">  
471                                </div> 
472                                <div class="banner-cta"> 
473                                    <div class="banner-cta-text text-color-white text-bold"> 
474                                        ${optionalCtaFeatureText.getData()} 
475                                    </div> 
476                                    <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> 
477                                </div> 
478                            </div> 
479                        </div> 
480                    </#if> 
481                </#list>                         
482 
483                <script> 
484                    document.addEventListener('DOMContentLoaded', function() { 
485                        console.log('inside ready'); 
486                        var page = location.pathname.split('/')[location.pathname.split('/').length-1]; 
487                        var hostName = location.hostname; 
488                     
489                        function getDomainFromHostname(hostname) { 
490                            var parts = hostname.split('.'); 
491                            return parts.length === 3 ? parts[1] : parts[0]; 
492
493                        var domain = getDomainFromHostname(hostName); 
494                        var partnerName = "${partnerName!''}"; 
495                        var utag_data = window.utag_data || {}; 
496 
497                        var ameriprise = '${ameriprise?string("yes", "no")}'; 
498                        var locationCode = "${rlc!lc}"; 
499                        var eidAmp = ""; 
500                        if (ameriprise == "yes") { 
501                            var bankercode_amp = '${bCode}'; 
502                            eidAmp = bankercode_amp.substring(3); 
503                            locationCode =""; 
504                        }    
505                             
506                        var heroCardImgs = document.querySelectorAll('.cardArtImg img'); 
507                        for (var index = 0; index < heroCardImgs.length; index++) { 
508                            var heroCardImg = heroCardImgs[index]; 
509                            var heroCardSrc = heroCardImg.getAttribute("src"); 
510                            if(heroCardSrc != "") { 
511                                resizeImg(heroCardImg); 
512
513
514                        function resizeImg(img) { 
515                            img.addEventListener("load", function() { 
516                                var cardImgWidth = img.width; 
517                                var cardImgHeight = img.height; 
518                                console.log('width', cardImgWidth); 
519                                console.log('height', cardImgHeight); 
520                                if(cardImgWidth > cardImgHeight) { 
521                                    img.style.width = "285px"; 
522                                } else { 
523                                    img.style.width = "150px"; 
524
525                            }); 
526
527                         
528                         
529                        $('.jn-button').removeAttr('disabled'); 
530                        $('.jn-button').removeClass('jn-disabled'); 
531                        jQuery('#oadSecButton, #oadSecButton-top').on('click', function(e) { 
532                            jQuery('#BAAForm').submit(); 
533                        }); 
534                         
535                        jQuery('#BAAForm').on('submit', function(e){ 
536                            e.preventDefault(); 
537                            console.log('in custom submit'); 
538                            var xmlData; 
539                            if(ameriprise == "yes") { 
540                                xmlData = '<?xml version="1.0"?>'+ 
541                                    "<prefillData>"+  
542                                    "<versionNumber>1.0</versionNumber>"+  
543                                    "<applicationData>"+  
544                                    "<referral>" +  
545                                    "<employeeId>" + eidAmp + "</employeeId>" + 
546                                    "<storeNumber>"+"${bName!'0'}"+"</storeNumber>"+ 
547                                    "<divisionNumber></divisionNumber>"+ 
548                                    "</referral>" +  
549                                    "<bankerInformation>"+  
550                                    "<locationCode>" + locationCode + "</locationCode>"+ 
551                                    "<originatingBranchNumber>"+"${bName!'0'}"+"</originatingBranchNumber>"+ 
552                                    "<employeeID>${boeid!0}</employeeID>"+ 
553                                    "<name>" + 
554                                    "<first>${bFName!'0'}</first>" + 
555                                    "<last>${bLName!'0'}</last>" + 
556                                    "</name>"+ 
557                                    "<phone>"+ 
558                                    "<areaCode>"+areaCode+"</areaCode>"+  
559                                    "<exchange>"+exchangeCode+"</exchange>"+ 
560                                    "<number>"+num+"</number>"+  
561                                    "</phone>"+  
562                                    "</bankerInformation>"+  
563                                    "</applicationData>"+  
564                                    "</prefillData>" 
565                            } else { 
566                                xmlData = '<?xml version="1.0"?>'+ 
567                                    "<prefillData>"+  
568                                    "<versionNumber>1.0</versionNumber>"+  
569                                    "<applicationData>"+  
570                                    "<bankerInformation>"+  
571                                    "<locationCode>" + locationCode + "</locationCode>"+ 
572                                    "<originatingBranchNumber>"+"${bName!'0'}"+"</originatingBranchNumber>"+ 
573                                    "<employeeID>${boeid!0}</employeeID>"+ 
574                                    "<name>" + 
575                                    "<first>${bFName!'0'}</first>" + 
576                                    "<last>${bLName!'0'}</last>" + 
577                                    "</name>"+ 
578                                    "<phone>"+ 
579                                    "<areaCode>"+areaCode+"</areaCode>"+  
580                                    "<exchange>"+exchangeCode+"</exchange>"+ 
581                                    "<number>"+num+"</number>"+  
582                                    "</phone>"+  
583                                    "</bankerInformation>"+  
584                                    "</applicationData>"+  
585                                    "</prefillData>" 
586                            }                                 
587                            jQuery('#appDataBAA').val(xmlData); 
588                            var buttonName = jQuery('.jn-button').data('button-name'); 
589                            /* SiteCatalyst  onClick tracking */ 
590                            utag_data.apply_button = buttonName; 
591                            AUI().ready(function() { 
592                                if (window.publisherFW) { 
593                                    window.publisherFW.publishEvent("onClick", utag_data); 
594
595                            }); 
596 
597                            this.submit(); 
598                        }); 
599                        var regex = /\d+/g; 
600                        var bdNumber = "${bPhone!''}"; 
601                        var phoneNum = bdNumber.match(regex); 
602                        var areaCode = ""; 
603                        var exchangeCode = ""; 
604                        var num = ""; 
605                        if(phoneNum != null) { 
606                            phoneNum = phoneNum.join(""); 
607                            areaCode = phoneNum.substring(0,3); 
608                            exchangeCode = phoneNum.substring(3,6); 
609                            num = phoneNum.substring(6,10); 
610
611                        var product = ""; 
612                        switch(page) { 
613                            case "consumer-platinum2103": 
614                                product="Platinum Card" 
615                                break; 
616                            case "real-rewards": 
617                                product="Real Rewards Card" 
618                                break; 
619                            case "secured": 
620                                product="Secured Card" 
621                                break; 
622                            case "business-cashback": 
623                                product="Business Cash Card" 
624                                break; 
625                            case "business-real-rewards": 
626                                product="Business Real Rewards Card" 
627                                break; 
628                            case "business-rewards-plus": 
629                                product="Business Rewards PLUS Card" 
630                                break; 
631                            case "premier-visa-signature": 
632                                product="Premier Visa Signature Card" 
633                                break; 
634                            case "business-platinum2103": 
635                                product="Business" 
636                                break; 
637                            case "visa-signature": 
638                                product="Visa Signature Card" 
639                                break;                                     
640                            default:   
641                                product = "All Cards";                           
642                        }                                  
643                             
644                        /* update SiteCatalyst data object */ 
645                        utag_data.current_page = "microsite:${partnerName}:" + domain + ':' + page.replace('-',' '); 
646                        utag_data.location_code = '${rlc!0}'; 
647                        utag_data.product = product; 
648                        utag_data.site_section = 'credit cards'; 
649                        utag_data.platform = 'microsite'; 
650                        utag_data.partner_name = "${partnerName}"; 
651                        utag_data.Banker_id = '${boeid}'; 
652                        utag_data.Banker_code = '${bCode}'; 
653                        utag_data.visitor_type = 'prospect'; 
654                        utag_data.text_to_apply_source = '${text_to_apply_source}'; 
655                        utag_data.page_type = 'product';  
656                        utag_data.campaign_id = '${campaignId}';  
657 
658                             
659                        }); 
660                </script> 
661                                     
662            <#else> 
663                <script> 
664                    console.log("FI Cards Data empty"); 
665                    location.href = '${url404}'; 
666                </script> 
667            </#if>                   
668        <#else> 
669            <script> 
670                console.log("Fi opt-out"); 
671                //location.href = '${url404}'; 
672            </script> 
673        </#if>        
674    <#else> 
675        <script> 
676            console.log("client profile empty"); 
677            //location.href = '${url404}'; 
678        </script> 
679    </#if>   
680 
681</#if> 

Webový obsah - zobrazení

Při zpracování šablony došlo k chybě.
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> 

Webový obsah - zobrazení

Při zpracování šablony došlo k chybě.
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>