PageSourceSearch

https://cdn0070.qrcodechimp.com/view/common/js/emailSignature.js?v=1790748974

js qrcodechimp.com collected 2026-10-01 10:12:27 UTC 21,620 bytes, 61 lines download raw bytes

1const EmailSignature={GlobalParams:{card_bg_color:"#ffffdd",pr_img:"https://www.qrcodechimp.com/images/digitalCard/profilepic.jpg",br_img:"",qr_code:"",name:"Your Name",email:"[email protected]",phone:"9998887775",address:"",website:"",item_icon:"",item_link:"",desc:"",email_icon:"https://neurotags.s3.amazonaws.com/client/DEV/fm/5ce3bb61b4641b3307065043/mail.png",phone_icon:"https://neurotags.s3.amazonaws.com/client/DEV/fm/5ce3bb61b4641b3307065043/phone.png",address_icon:"https://neurotags.s3.amazonaws.com/client/DEV/fm/5ce3bb61b4641b3307065043/marker.png",website_icon:"https://neurotags.s3.amazonaws.com/client/DEV/fm/5ce3bb61b4641b3307065043/internet.png",fb_icon:"https://www.qrcodechimp.com/images/digitalCard/[email protected]",insta_icon:"https://www.qrcodechimp.com/images/digitalCard/[email protected]",linkedin_icon:"https://www.qrcodechimp.com/images/digitalCard/[email protected]",font_family_src:"",font_family:"",social_media_id_list:[["facebook_icon_img","facebook_url"],["instagram_icon_img","instagram_url"],["linkedin_icon_img","linkedin_url"],["twitter_icon_img","twitter_url"],["skype_icon_img","skype_url"],["behance_icon_img","behance_url"],["snapchat_icon_img","snapchat_url"],["xing_icon_img","xing_url"],["youtube_icon_img","youtube_url"],["website_icon_img","website_url"],["whatsapp_icon_img","whatsapp_url"],["pinterest_icon_img","pinterest_url"],["location_icon_img","location_url"],["email_icon_img","email_url"],["telegram_icon_img","telegram_url"],["tiktok_icon_img","ticktok_url"],["viber_icon_img","viber_url"],["wechat_icon_img","wechat_url"],["other_icon_img","other_url"]]},params:{},Templates:{template0:{fun_text:"This is cool! 😎",params:{primary_bg_color:"#FD8031",primary_profile_text_color:"#ffffff",primary_text_color:"#FD8031",secondary_bg_color:"#7A3DC9",secondary_profile_text_color:"#ffffff",secondary_text_color:"#656b6c",pr_img:"",br_img:"",qr_code:"",name:"",email:"",phone:"",address:"",website:"",item_icon:"",item_link:"",desc:"",background_image:"https://0030.cdnchimp.com/qr/PROD/605cb579db944b13ca6cf2d4/fm/bg_email_2.png",email_icon:"https://neurotags.s3.amazonaws.com/client/DEV/fm/5ce3bb61b4641b3307065043/mail.png",phone_icon:"https://neurotags.s3.amazonaws.com/client/DEV/fm/5ce3bb61b4641b3307065043/phone.png",address_icon:"https://neurotags.s3.amazonaws.com/client/DEV/fm/5ce3bb61b4641b3307065043/marker.png",website_icon:"https://neurotags.s3.amazonaws.com/client/DEV/fm/5ce3bb61b4641b3307065043/internet.png",fb_icon:"https://www.qrcodechimp.com/images/digitalCard/[email protected]",insta_icon:"https://www.qrcodechimp.com/images/digitalCard/[email protected]",linkedin_icon:"https://www.qrcodechimp.com/images/digitalCard/[email protected]"},params_html:{social_media:{stop_on_any_blank:0,id_list_max_display:5,id_list:[["facebook_icon_img","facebook_url"],["instagram_icon_img","instagram_url"],["linkedin_icon_img","linkedin_url"],["twitter_icon_img","twitter_url"],["skype_icon_img","skype_url"],["behance_icon_img","behance_url"],["snapchat_icon_img","snapchat_url"],["xing_icon_img","xing_url"],["youtube_icon_img","youtube_url"],["website_icon_img","website_url"],["whatsapp_icon_img","whatsapp_url"],["pinterest_icon_img","pinterest_url"],["location_icon_img","location_url"],["email_icon_img","email_url"],["telegram_icon_img","telegram_url"],["tiktok_icon_img","ticktok_url"],["viber_icon_img","viber_url"],["wechat_icon_img","wechat_url"],["other_icon_img","other_url"]],template_html:'<div style="display:inline-block; padding-right: 8px;"><a href="___%2%___"><img src="___%1%___" width="24" style="border-radius:40px; margin-bottom: 0px;"/></a></div>'}},thumbnail_url:"/images/email-signature/email_signature_1.png::A basic email signature template",html:`<table width="600"  border="0" cellspacing="0"  style="padding:0; border-radius: 24px; overflow: hidden; background-color:___secondary_bg_color___; background-image: url('https://0030.cdnchimp.com/qr/PROD/605cb579db944b13ca6cf2d4/fm/bg_email_2.png');
2                background-repeat: no-repeat; background-position: top right; background-size: contain;
3                font-family: roboto, Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;">
4                    <tr>
5                        <td width="30%" style="border: solid 0; text-align: center; padding: 20px;">
6                            <div class="" style="float: left; width: 130px; background-color:#fff; padding: 10px;  border-radius: 12px;">
7               
8                                <div class="" style="width: 50px; height: 50px; border-radius: 80px; overflow: hidden; margin: auto; background-image:url('___pr_img___'); background-size:cover;">
9                                </div>
10                       
11                                <div class="" style="border-radius: 12px; overflow: hidden; margin-top: 16px;">
12                                    <img src="___qr_code___" width="110" style="background: #fff;  padding: 6px;"/>
13                                </div>
14                            </div>
15                        </td>    
16                        <td width="70%" style="border: solid 0; padding: 20px 20px 20px 0;">
17           
18                            <table width="100%"  border="0" cellspacing="0"  style="padding:0; border-bottom: solid 2px #5D5DD9;">
19                                <td width="70%" style="border: solid 0; text-align: left; padding-bottom: 10px;">
20                                    <div class="" style="font-weight: bold; font-size:16px; color: ___primary_text_color___;">___name___</div>
21                                    <div class="" style="color: ___primary_text_color___; font-size:14px">___desc___</div>
22                                </td>
23                                <td width="30%" style="border: solid 0; text-align: right; padding-bottom: 10px;">
24                                    <div style=""><img src="___br_img___" style="max-width:120px; max-height:60px"/></div>
25                                </td>
26                            </table>
27           
28           
29                            <div class="nm_sign_info" style="">                  
30                                <div style="padding-bottom:10px; padding-top: 20px;">
31                                    <div class="nm_email" style=" margin-right: 16px;">
32                                        <img src="___email_icon___" style="width: 14px; margin-right: 5px;"/>
33                                        <a href="mailto:___email___" style="color: ___primary_text_color___; text-decoration:none;">___email___</a>
34                                    </div>
35                                    <div class="nm_phone" style="">
36                                        <img src="___phone_icon___" style="width: 14px; margin-right: 5px;"/>
37                                        <a href="tel:___phone___" style="color: ___primary_text_color___; text-decoration:none;">___phone___</a>
38                                    </div>
39                                    <div style="clear:both;"></div>
40                                </div>
41                                ___social_media___
42                            </div>
43                        </td>    
44                   
45                    </tr>
46                </table>`,scale:.8}},AddToTemplates:function(newTemplatesArr){for(var key in newTemplatesArr)newTemplatesArr.hasOwnProperty(key)&&(EmailSignature.Templates[key]=newTemplatesArr[key])},AddToParams:function(newParams){for(var key in newParams)newParams.hasOwnProperty(key)&&(EmailSignature.params[key]=newParams[key])},EchoEmailSignatureCards:function(parentSelector,parameters){let wrapper_html="";for(var key in EmailSignature.Templates)if(EmailSignature.Templates.hasOwnProperty(key)){let template=EmailSignature.Templates[key],html=EmailSignature.replaceHtmlPlaceholders(template.html,parameters);wrapper_html+='<div class="email_sign_template" data-id='+key+`>
47                    <div class="template_card `+(key==EmailSignature.selected_template?"active":"")+`" >
48                        <div class="email_signature_html_wrapper" id="email_signature_html_wrapper_`+key+`" 
49                            style="overflow:hidden;transform:scale(`+template.scale+');transform-origin:top left;">'+html+`</div>
50                    </div>
51                    <div class="action_items">
52                        <button class="btn btn-transparent copy-email-signature">
53                            <i class="icon-ic_content_copy"></i>
54                        </button>
55                        <button class="btn btn-transparent copy-email-signature-html">
56                            <i class="icon-code"></i>
57                        </button>
58                    </div>
59                </div>`}$(parentSelector).html('<div id="'+parentSelector+`_carousel" class="email_signature_carousel">
60                                            <div class="email_template_list">`+wrapper_html+`</div>
61                                        </div>`)},UpdateEmailSignatureCardPreview:function(parentSelector,key){(typeof parentSelector=="undefined"||parentSelector==null)&&(parentSelector="#email_sign_preview");let html="";if(EmailSignature.Templates.hasOwnProperty(key)){let template=EmailSignature.Templates[key];EmailSignature.fillParamsArr(template.params);let templateHtml=EmailSignature.replaceParamsHtml(template.html,template.params_html,EmailSignature.params);templateHtml=EmailSignature.replaceHtmlPlaceholders(templateHtml,EmailSignature.params),html+=templateHtml,typeof template.fun_text=="string"&&$("#appreciation_tip_txt").html(template.fun_text)}if(html=EmailSignature.cleanHtmlUrls(html),$(parentSelector).html(html),!empty(EmailSignature.params.qr_code)){let qr_code_img=getFullThumbnail(EmailSignature.params.qr_code);$(".qr_code_img").attr("src",qr_code_img)}},EchoCardsListPreview:function(parentSelector){(typeof parentSelector=="undefined"||parentSelector==null)&&(parentSelector="#email_sign_temp_wrapper");let ulHtml='<ul class="email_sign_temp_list" id="email_sign_temp_list">',onClickStr=` onclick="$('#email_sign_temp_list li').removeClass('active'); $(this).addClass('active'); EmailSignature.UpdateEmailSignatureCardPreview(null, $(this).attr('data-id'));" `,i=0,previewKey="",classStr="";for(var key in EmailSignature.Templates)if(i==0?(classStr='class="active"',previewKey=key):classStr="",++i,i==5,EmailSignature.Templates.hasOwnProperty(key)){let template=EmailSignature.Templates[key],img=typeof template.thumbnail_url=="string"?template.thumbnail_url:"";if(img!=""){let imgArr=img.split("::"),altStr=imgArr.length>1?` alt="${imgArr[1]}" `:"";ulHtml+="<li "+classStr+" "+onClickStr+' data-id="'+key+'"><img src="'+imgArr[0]+'" width="80%" '+altStr+"/></li>"}}ulHtml+="</ul>",$(parentSelector).html(ulHtml),EmailSignature.UpdateEmailSignatureCardPreview(null,previewKey)},replaceHtmlPlaceholders:function(html,parametersArr){if(typeof html!="string"||html.length<7||typeof parametersArr!="object")return"";for(var key in parametersArr)if(parametersArr.hasOwnProperty(key)){let regexSearch=new RegExp(`___${key}___`,"ig");html=html.replace(regexSearch,parametersArr[key])}return html},replaceParamsHtml:function(html,paramsHtmlArr,parametersArr){if(typeof html!="string"||html.length<7||typeof paramsHtmlArr!="object"||typeof parametersArr!="object")return html;for(var key in paramsHtmlArr)if(paramsHtmlArr.hasOwnProperty(key)){var id_list=paramsHtmlArr[key].id_list,id_list_max_display=typeof paramsHtmlArr[key].id_list_max_display!="undefined"?paramsHtmlArr[key].id_list_max_display:5,id_used=0,stopOnAnyBlank=paramsHtmlArr[key].stop_on_any_blank,template_html=paramsHtmlArr[key].template_html,ihtml="";if(template_html!=""&&id_list.length>0){for(let i=0;i<id_list.length;++i){var jjHtml=template_html,useHtml=!1;let paramList=id_list[i];for(let jj=0;jj<paramList.length;++jj){let data="";if(typeof parametersArr[paramList[jj]]!="undefined"&&parametersArr[paramList[jj]]!=""&&(data=parametersArr[paramList[jj]]),data==""){if(stopOnAnyBlank){useHtml=!1;break}}else useHtml=!0;let regexSearch2=new RegExp(`___%${jj+1}%___`,"ig");jjHtml=jjHtml.replace(regexSearch2,data)}if(useHtml&&(ihtml+=jjHtml,++id_used,id_used>=id_list_max_display))break}let regexSearch=new RegExp(`___${key}___`,"ig");html=html.replace(regexSearch,ihtml)}}return html},fillParamsArr:function(paramsLocal,componentsArr){if(typeof paramsLocal=="undefined"&&(paramsLocal={}),typeof componentsArr=="undefined"){componentsArr=getJSONParseData(QRPageComponents.c
61omponents);let temp=[];componentsArr.forEach(data=>{checkAndReplaceADInComponentData(data),temp.push(data)}),componentsArr=temp}for(var paramsGlobal=EmailSignature.GlobalParams,paramsArr={},emailSet=0,numberSet=0,addressSet=0,i=0;i<componentsArr.length;++i){let component=componentsArr[i];if(extractDataFromArray(component,["card_enable"],1)==1||extractDataFromArray(component,["component"],"")=="profile"){if(component.hasOwnProperty("contact_infos")&&typeof component.contact_infos=="object")for(var kk in component.contact_infos)typeof component.contact_infos[kk]=="object"&&(component.contact_infos[kk].hasOwnProperty("email")&&component.contact_infos[kk].email!=""&&emailSet==0&&(paramsArr.email=component.contact_infos[kk].email,emailSet=1),component.contact_infos[kk].hasOwnProperty("number")&&component.contact_infos[kk].number!=""&&numberSet==0&&(paramsArr.number=component.contact_infos[kk].number,paramsArr.phone=component.contact_infos[kk].number,numberSet=1),component.contact_infos[kk].hasOwnProperty("city")&&addressSet==0&&(paramsArr.street=extractDataFromArray(component.contact_infos[kk],["street"],""),paramsArr.building=extractDataFromArray(component.contact_infos[kk],["building"],""),paramsArr.city=extractDataFromArray(component.contact_infos[kk],["city"],""),paramsArr.state=extractDataFromArray(component.contact_infos[kk],["state"],""),paramsArr.zip=extractDataFromArray(component.contact_infos[kk],["zip"],""),paramsArr.country=extractDataFromArray(component.contact_infos[kk],["country"],""),address=paramsArr.street,address+=paramsArr.building!=""?", "+paramsArr.building:"",address+=paramsArr.city!=""?", "+paramsArr.city:"",address+=paramsArr.state!=""?", "+paramsArr.state:"",address+=paramsArr.zip!=""?", "+paramsArr.zip:"",address+=paramsArr.country!=""?", "+paramsArr.country:"",address=address.replaceAll(",,",","),address=address.replaceAll(", ,",","),paramsArr.address=address.replace(/^,+|,+$/g,""),addressSet=1));let componentType=extractDataFromArray(component,["component"],"");if(componentType=="profile"){paramsArr.name=extractDataFromArray(component,["name"],""),paramsArr.company=extractDataFromArray(component,["company"],""),paramsArr.job_title=extractDataFromArray(component,["desc"],""),paramsArr.desc=extractDataFromArray(component,["desc"],"");let templateBrandImg=!0,template_content=getComponentContentFromTemplate(QRPageComponents.selected_template),template_profile=extractDataFromArray(template_content,["0"],"");if(templateBrandImg=typeof template_profile!="undefined"&&typeof template_profile.show_brand_img!="undefined"&&template_profile.show_brand_img,paramsArr.pr_img=empty(extractDataFromArray(component,["enable_pr"],1))?"":EmailSignature.cleanUrls(extractDataFromArray(component,["pr_img"],"")),paramsArr.br_img=!empty(extractDataFromArray(component,["show_brand_img"],0))&&!empty(extractDataFromArray(component,["enable_br"],1))?EmailSignature.cleanUrls(extractDataFromArray(component,["br_img"],"")):"",paramsArr.card_background=extractDataFromArray(component,["card_background"],""),extractDataFromArray(component,["contact_shortcut_enable"],1)&&component.hasOwnProperty("contact_shortcuts")&&typeof component.contact_shortcuts=="object")for(var kk in component.contact_shortcuts)typeof component.contact_shortcuts[kk]=="object"&&((typeof paramsArr.email=="undefined"||paramsArr.email=="")&&extractDataFromArray(component.contact_shortcuts[kk],["type"],"")=="email"&&(paramsArr.email=extractDataFromArray(component.contact_shortcuts[kk],["value"],"")),extractDataFromArray(component.contact_shortcuts[kk],["type"],"")=="mobile"&&(paramsArr.mobile=extractDataFromArray(component.contact_shortcuts[kk],["value"],""),(typeof paramsArr.number=="undefined"||paramsArr.number=="")&&(paramsArr.number=paramsArr.mobile),(typeof paramsArr.phone=="undefined"||paramsArr.phone=="")&&(paramsArr.phone=paramsArr.mobile)),extractDataFromArray(component.contact_shortcuts[kk],["type"],"")=="sms"&&(paramsArr.sms=extractDataFromArray(component.contact_shortcuts[kk],["value"],"")))}if(componentType=="social_link"&&typeof component.links=="object"){for(var kk in component.links)if(typeof component.links[kk]=="object"){let type=extractDataFromArray(component.links[kk],["type"],"");if(type!=""&&(typeof paramsArr[type+"_url"]=="undefined"||paramsArr[type+"_url"]=="")){if(empty(component.links[kk].url))continue;if(type=="email"){let em=component.links[kk].url;paramsArr[type+"_url"]=em.indexOf("@")==-1?EmailSignature.cleanUrls(em):"mailto:"+em}else paramsArr[type+"_url"]=HrefLinks(type,component.links[kk].url);
61paramsArr[type+"_icon_img"]=component.links[kk].icon_img}}}for(var kk in paramsLocal)if(paramsLocal.hasOwnProperty(kk)&&typeof paramsArr[kk]=="undefined"&&typeof paramsLocal[kk]!="object"){let val=extractDataFromArray(component,[kk],null);val!=null&&(paramsArr[kk]=val)}for(var kk in paramsGlobal)if(paramsGlobal.hasOwnProperty(kk)&&typeof paramsLocal[kk]=="undefined"&&paramsArr[kk]=="undefined"&&typeof paramsGlobal[kk]!="object"){let val=extractDataFromArray(component,[kk],null);val!=null&&(paramsArr[kk]=val)}}}if(styleComponent=extractDataFromArray(QRPageStyleComponents,["style"],null),styleComponent!=null){if(styleComponent.hasOwnProperty("font")&&typeof styleComponent.font=="string"&&styleComponent.font!=""){var fontObj=extractDataFromArray(QRPageStyleComponents,["styleComponentWrappers","font_style","fonts",styleComponent.font],null);fontObj!=null&&typeof fontObj.style=="string"&&(paramsArr.font_family=fontObj.style,typeof fontObj.src=="string"&&(paramsArr.font_family_src=fontObj.src))}for(var kk in paramsLocal)if(paramsLocal.hasOwnProperty(kk)&&typeof paramsArr[kk]=="undefined"&&typeof paramsLocal[kk]!="object"){let val=extractDataFromArray(styleComponent,[kk],null);val!=null&&(paramsArr[kk]=val)}for(var kk in paramsGlobal)if(paramsGlobal.hasOwnProperty(kk)&&typeof paramsLocal[kk]=="undefined"&&paramsArr[kk]=="undefined"&&typeof paramsGlobal[kk]!="object"){let val=extractDataFromArray(styleComponent,[kk],null);val!=null&&(paramsArr[kk]=val)}}for(var kk in paramsLocal)paramsLocal.hasOwnProperty(kk)&&typeof paramsArr[kk]=="undefined"&&typeof paramsLocal[kk]!="object"&&(paramsArr[kk]=paramsLocal[kk]);for(var kk in paramsGlobal)paramsGlobal.hasOwnProperty(kk)&&typeof paramsArr[kk]=="undefined"&&typeof paramsGlobal[kk]!="object"&&(paramsArr[kk]=paramsGlobal[kk]);if($("#qrcode_preview").length>0)var qrCode=$("#qrcode_preview").attr("src");else var qrCode=$(".qr_code_img_new").attr("src");qrCode=qrCode.replaceAll("//qrcodechimp.s3.amazonaws.com","//0030.cdnchimp.com"),paramsArr.qr_code=qrCode,empty(extractDataFromArray(paramsArr,["qr_code"],""))||(paramsArr.qr_code=wrapUrlWithVersion(paramsArr.qr_code,random_int())),EmailSignature.params=paramsArr},CopyEmbedCode:function(el){var html=EmailSignature.cleanHtmlUrls($("#email_sign_preview").html());navigator.clipboard.writeText(html),showSimpleToast(el,"👍 "+getTranslatedTxt("Copied Successfully"))},CopyRichText:function(el){const type="text/html";var html=EmailSignature.cleanHtmlUrls($("#email_sign_preview").html());const blob=new Blob([html],{type}),data=[new ClipboardItem({[type]:blob})];navigator.clipboard.write(data),showSimpleToast(el,"👍 "+getTranslatedTxt("Copied Successfully"))},cleanHtmlUrls:function(html){return typeof html!="string"||html==""?"":(html=html.replaceAll('url("/images/','url("https://www.qrcodechimp.com/images/'),html=html.replaceAll("url('/images/","url('https://www.qrcodechimp.com/images/"),html=html.replaceAll('src="/images/','src="https://www.qrcodechimp.com/images/'),html=html.replaceAll("src='/images/","src='https://www.qrcodechimp.com/images/"),html=html.replaceAll("src='//","src='https://"),html=html.replaceAll('src="//','src="https://'),html=html.replaceAll("url('//","url('https://"),html=html.replaceAll('url("//','url("https://'),html=html.replaceAll("https://"+window.location.host+"/images/","https://cdn0070.qrcodechimp.com/images/"),html=html.replaceAll("https://qrcodechimp.s3.amazonaws.com","https://0030.cdnchimp.com"),html)},cleanUrls:function(url){return typeof url=="string"&&url!=""&&!(url.toLowerCase().startsWith("http://")||url.toLowerCase().startsWith("https://"))&&(url.toLowerCase().startsWith("//")?url="https:"+url:url.toLowerCase().startsWith("/")?url="https://www.qrcodechimp.com"+url:url.indexOf("data:image")!=0&&(url="https://"+url)),url},DownloadImage:function(buttonSelector){typeof buttonSelector!="string"&&(buttonSelector="#downloadEmailSignatureImage"),$(buttonSelector).attr("disabled",!0),$(buttonSelector).addClass("downloading"),html2canvas($("#email_sign_preview .email_top_container")[0],{useCORS:!0,allowTaint:!0}).then(function(canvas){var img=canvas.toDataURL("image/png");EmailSignature.saveAs(img,"emailSignature.png"),$(buttonSelector).attr("disabled",!1),$(buttonSelector).removeClass("downloading")})},saveAs:function(uri,filename){var link=document.createElement("a");typeof link.download=="string"?(link.href=uri,link.download=filename,document.body.appendChild(link),link.click(),document.body.removeChild(link)):window.open(uri)}};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.