Esig
Email Signatures
Instructions
- Enter your email address and press 'Enter' or click 'Generate'.
- If necessary, correct any fields, and choose badge options, then click 'Update'.
- Click the 'Copy' button, then paste the signature into Outlook.
Adjustments can be made once the signature is pasted into Outlook. For more information click here
') } ); $('#copyBtn').click ( function() { console.log('copy button clicked'); copy(); } ); function fillForm() { $('#id').val(person.id); $('#name').val((person.pre.trim() != '' ? person.pre.trim() + ' ' : '') + person.first_name + (person.middle_name != '' ? ' ' + person.middle_name : '') + ' ' + person.last_name); $('#phone').val(person.phone); $('#title1').val(person.title_1); $('#title2').val(person.title_2); $('#title3').val(person.title_3); $('#department1').val(person.department_1); $('#department2').val(person.department_2); $('#department3').val(person.department_3); $('#boxNumber').val(person.address_1); $('#building').val(person.address_2); $('#url').val((person.url != 'undefined' ? (person.url.includes('https') ? person.url : person.url.replace('http', 'https')) : 'https://www.una.edu')); $('#urlText').val($('#url').val()); $('input[name="priLogo"]:checked').removeAttr('checked'); if(person.department_1 == 'Athletics' || person.department_1 == 'Baseball' || person.department_1 == 'Football' || person.department_1 == 'Soccer' || person.department_1 == 'Softball' || person.department_1 == 'Volleyball' || person.department_1 == "Tennis (Men's)" || person.department_1 == "Tennis (Women's)" || person.department_1 == "Cross Country (Men's)" || person.department_1 == "Cross Country (Women's)" || person.department_1 == "Golf (Men's)" || person.department_1 == "Golf (Women's)" || person.department_1 == "Basketball (Men's)" || person.department_1 == "Basketball (Women's)") { // athletics logo $('input[name="priLogo"][value="athletics"]').attr('checked', 'checked'); } else { $('input[name="priLogo"][value="default"]').attr('checked', 'checked'); } //$('input[name="bestCol"]:checked').removeAttr('checked'); //$('input[name="bestCol"][value="bestCol"]').attr('checked', 'checked'); $('input[name="usnews"]:checked').removeAttr('checked'); $('input[name="usnews"][value="default"]').attr('checked', 'checked'); $('input[name="accLogo"]:checked').removeAttr('checked'); if(person.department_1 == 'Management & Marketing' || person.department_2 == 'Management & Marketing' || person.department_3 == 'Management & Marketing' || person.department_1 == 'Accounting & Business Law' || person.department_2 == 'Accounting & Business Law' || person.department_3 == 'Accounting & Business Law' || person.department_1 == 'Computer Science & Information Systems' || person.department_2 == 'Computer Science & Information Systems' || person.department_3 == 'Computer Science & Information Systems' || person.department_1 == 'College of Business' || person.department_2 == 'College of Business' || person.department_3 == 'College of Business' || person.department_1 == 'Finance, Economics, & Data Analytics' || person.department_2 == 'Finance, Economics, & Data Analytics' || person.department_3 == 'Finance, Economics, & Data Analytics') { $('input[name="usnews"][value="business"]').attr('checked', 'checked'); // aacsb logo $('input[name="accLogo"][value="aacsb"]').attr('checked', 'checked'); } else if(person.department_1 == 'Engineering and Technology' || person.department_2 == 'Engineering and Technology' || person.department_3 == 'Engineering and Technology') { // abet-etac logo $('input[name="accLogo"][value="abetEtac"]').attr('checked', 'checked'); } else if(person.department_1 == 'Anderson College of Nursing & Health Professions' || person.department_2 == 'Anderson College of Nursing & Health Professions' || person.department_3 == 'Anderson College of Nursing & Health Professions' || person.department_1 == 'Anderson College of Nursing & Health Professions - Undergraduate Programs' || person.department_2 == 'Anderson College of Nursing & Health Professions - Undergraduate Programs' || person.department_3 == 'Anderson College of Nursing & Health Professions - Undergraduate Programs' || person.department_1 == 'Anderson College of Nursing & Health Professions - Graduate Programs' || person.department_2 == 'Anderson College of Nursing & Health Professions - Graduate Programs' || person.department_3 == 'Anderson College of Nursing & Health Professions - Graduate Programs') { $('input[name="accLogo"][value="ccne"]').attr('checked', 'checked'); } $('input[name="addLogo"]:checked').removeAttr('checked'); if(person.department_1 == 'Computer Science & Information Systems' || person.department_2 == 'Computer Science & Information Systems' || person.department_3 == 'Computer Science & Information Systems') { // abet-cac logo $('input[name="addLogo"][value="abetCac"]').attr('checked', 'checked'); } else if(person.department_1 == 'Small Business Development Center (SBDC)' || person.department_2 == 'Small Business Development Center (SBDC)' || person.department_3 == 'Small Business Development Center (SBDC)') { // sbdc logo $('input[name="addLogo"][value="sbdc"]').attr('checked', 'checked'); } else if(person.department_1 == 'Alabama Math, Science, and Technology Initiative (AMSTI)' || person.department_2 == 'Alabama Math, Science, and Technology Initiative (AMSTI)' || person.department_3 == 'Alabama Math, Science, and Technology Initiative (AMSTI)') { // amsti logo $('input[name="addLogo"][value="amsti"]').attr('checked', 'checked'); } $('input[name="tagLine"]:checked').removeAttr('checked'); if(person.department_1 == 'Advancement' || person.department_1 == 'Alumni Relations' || person.department_1 == 'University Communications & Marketing') { $('#logo').val('https://www.una.edu/images/sig/advancement-platinum-2023.png'); $('input[name="tagLine"][value="advancement"]').attr('checked', 'checked'); $('#tagLine').val('Your passion. Your philanthropy. Every giver. Every gift. Matters.'); } else { $('#tagLine, #logo').val(''); } if(person.id == '') { person.photo = ''; } else { var imgSrc = 'https://una.edu/directory/sig/' + person.id + '-sig.jpg'; person.photo = imgSrc; } } function cleanup() { // id sig.id = $('#id').val(); // photo sig.photo = person.photo; // email sig.email = $('#email').val().trim(); // name sig.name = $('#name').val().trim(); // gradYr var tmp = $('#gradYear').val(); var gradYears = tmp.split(','); var gradYear = ''; if(gradYears.length >= 1 && gradYears[0] != '') { for(var i = 0; i < gradYears.length; i++) { var cur = gradYears[i].trim(); if(cur.charAt(0) == "'") { cur = cur.substring(1, cur.length); } if(cur.length == 4) { cur = cur.substring(2, 4); } if(i > 0) { gradYear += " "; } gradYear += "'" + cur; } } sig.gradYear = gradYear; // phone var tmp = $('#phone').val(); var tmpLink = ''; tmp.replaceAll('(', '').replaceAll(')', '').replaceAll('-', '').replaceAll(' ', '').replaceAll('.', ''); switch(tmp.length) { case 7: tmpLink = 'tel:+1256' + tmp; tmp = '256.' + tmp.substring(0, 3) + '.' + tmp.substring(3, 7); break; case 10: tmpLink = 'tel:+1' + tmp; tmp = tmp.substring(0, 3) + '.' + tmp.substring(3, 6) + '.' + tmp.substring(6, 10); break; } sig.phone = tmp; sig.phoneLink = tmpLink; // cell var tmp = $('#cell').val(); if(tmp.length > 0) { var tmpLink = ''; tmp.replaceAll('(', '').replaceAll(')', '').replaceAll('-', '').replaceAll(' ', '').replaceAll('.', ''); switch(tmp.length) { case 7: tmpLink = 'tel:+1256' + tmp; tmp = '256.' + tmp.substring(0, 3) + '.' + tmp.substring(3, 7); break; case 10: tmpLink = 'tel:+1' + tmp; tmp = tmp.substring(0, 3) + '.' + tmp.substring(3, 6) + '.' + tmp.substring(6, 10); break; } sig.cell = tmp; sig.cellLink = tmpLink; } else { sig.cell = ''; sig.cellLink = ''; } // pronouns var tmp = $('#pronouns').val(); var tmpPronouns = tmp.split('/'); var pronouns = ''; for(var i = 0; i < tmpPronouns.length; i++) { var cur = tmpPronouns[i].trim(); cur = cur.charAt(0).toUpperCase() + cur.substring(1, cur.length); if(i > 0 && (i != tmpPronouns.length - 1 || tmpPronouns.length == 2)) { pronouns += '/'; } pronouns += cur; } sig.pronouns = pronouns; // titles var t1 = $('#title1').val().trim(); var t2 = $('#title2').val().trim(); var t3 = $('#title3').val().trim(); sig.title1 = t1; sig.title2 = t2; sig.title3 = t3; // departments var d1 = $('#department1').val().trim(); var d2 = $('#department2').val().trim(); var d3 = $('#department3').val().trim(); sig.department1 = d1; sig.department2 = d2; sig.department3 = d3; // boxNumber var boxNumber = $('#boxNumber').val().trim(); sig.boxNumber = boxNumber // building var building = $('#building').val().trim(); sig.building = building; // url var url = $('#url').val().trim(); var urlText = $('#urlText').val().trim(); var rexp = new RegExp(re); if(url.match(rexp)) { sig.url = url; sig.urlText = urlText; } else { var $uPar = $('input#url').parent(); $uPar.addClass('has-error').append($('').attr('class', 'help-block').text('Invalid URL')); } // logos if($('input[name="priLogo"]:checked').val() != undefined) { var priLogo = $('input[name="priLogo"]:checked').parent()[0].getElementsByTagName('img')[0]; } else { $('input[name="priLogo"][value="default"]').attr('checked', 'checked'); var priLogo = $('input[name="priLogo"]:checked').parent()[0].getElementsByTagName('img')[0]; } sig.priLogo = priLogo.src; sig.priLogoAlt = priLogo.alt; var usnewsLogo = {src: '', alt: ''}; if($('input[name="usnews"]:checked').val() != undefined) { var usnewsLogo = $('input[name="usnews"]:checked').parent()[0].getElementsByTagName('img')[0]; } sig.usnewsLogo = usnewsLogo.src; sig.usnewsLogoAlt = usnewsLogo.alt; var bestCol = {src: '', alt: ''}; //if($('input[name="bestCol"]:checked').val() != 'none') //{ // var bestCol = $('input[name="bestCol"]:checked').parent()[0].getElementsByTagName('img')[0]; //} //sig.bestCol = bestCol.src; //sig.bestColAlt = bestCol.alt; var accLogo = {src: '', alt: ''}; if($('input[name="accLogo"]:checked').val() != undefined) { var accLogo = $('input[name="accLogo"]:checked').parent()[0].getElementsByTagName('img')[0]; } sig.accLogo = accLogo.src; sig.accLogoAlt = accLogo.alt; var addLogo = {src: '', alt: ''}; if($('input[name="addLogo"]:checked').val() != undefined) { var addLogo = $('input[name="addLogo"]:checked').parent()[0].getElementsByTagName('img')[0]; } sig.addLogo = addLogo.src; sig.addLogoAlt = addLogo.alt; // tag line var tagLine = ''; if($('input[name="tagLine"][value="advancement"]:checked').val() != undefined) { sig.accLogo = $('#logo').val(); sig.accLogoAlt = 'Platinum Transparency 2023'; tagLine = $('#tagLine').val(); } sig.tagLine = tagLine; } function render() { var html = ''; html += '
'; html += '
';
html += '';
html += '';
html += sig.name + (sig.gradYear != '' ? ' ' + sig.gradYear : '');
html += '';
html += '';
html += ' | ';
html += '';
html += '';
html += sig.phone;
html += '';
html += '';
if(sig.cell != '' && sig.cellLink != '')
{
html += ' | ';
html += '';
html += '';
html += sig.cell;
html += '';
html += '';
}
html += '
';
if(sig.pronouns != '')
{
html += '';
html += 'Pronouns: ';
html += '';
html += '';
html += sig.pronouns;
html += '';
html += ' ';
html += '';
html += 'What\'s this?';
html += '';
html += '
';
}
html += '';
html += '';
html += sig.title1;
if(sig.title2 != '')
{
html += '
';
html += sig.title2;
}
if(sig.title3 != '')
{
html += '
';
html += sig.title3;
}
html += '';
html += '';
html += '
';
html += sig.department1;
if(sig.department2 != '')
{
html += '
';
html += sig.department2;
}
if(sig.department3 != '')
{
html += '
';
html += sig.department3;
}
html += '
';
// •
html += sig.boxNumber + ' | ' + sig.building + ' • Florence, AL 35632';
html += '
';
if(sig.url != '' && sig.urlText != '')
{
html += '';
html += sig.urlText;
html += '';
html += '
';
}
html += '
';
html += '
'; if($('input[type="radio"][name="priLogo"]:checked').val() == 'unaworks') { html += '
'; } else { html += ''; } if(sig.photo != '') { html += ''; } //html += ''; //html += ''; if(sig.usnewsLogo != '' && sig.usnewsLogoAlt != '') { html += ''; } else { html += ''; } if(sig.bestCol != '') { html += ''; } html += '
'; if(sig.accLogo != '' && sig.accLogoAlt != '') { html += ''; } if(sig.addLogo != '' && sig.addLogoAlt != '') { html += ''; } if(sig.tagLine != '') { html += '
'; html += sig.tagLine; html += '
'; } html += ''; html += '
'; $('#emailSignature').html(html); } function copy() { var emailSig = $('#emailSignature').html(); function listener(e) { e.clipboardData.setData("text/html", emailSig); e.clipboardData.setData("text/plain", emailSig); e.preventDefault(); } document.addEventListener("copy", listener); document.execCommand("copy"); document.removeEventListener("copy", listener); } function clearForm() { //window.location.href = "https://una.edu/emdc/brand/email-signature/"; window.location.href = "https://una.edu/emdc/esig.html"; } } );