APPLY! REQUEST GIVE!

Esig

Email Signatures

Instructions

  1. Enter your email address and press 'Enter' or click 'Generate'.
  2. If necessary, correct any fields, and choose badge options, then click 'Update'.
  3. 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

Please separate each year with a comma
Please separate with a /
Workforce Development Logo
US News Badge
$ ( function() { var re = /https:\/\/(www\.|msnha\.|shoalssymphony\.|sbdc\.|careers\.|jobs\.)?una\.edu(\/)?[-a-zA-Z0-9%._\+#]{1,256}/g; var person = {}; var sig = { id: '', email: '', name: '', gradYear: '', phone: '', phoneLink: '', cell: '', cellLink: '', pronouns: '', title1: '', title2: '', title3: '', department1: '', department2: '', department3: '', boxNumber: '', building: '', url: '', urlText: '', photo: '', priLogo: '', priLogoAlt: '', usnewsLogo: '', usnewsLogoAlt: '', bestCol: '', bestColAlt: '', accLogo: '', accLogoAlt: '', addLogo: '', addLogoAlt: '', tagLine: '' }; console.log('version 0.9986b'); $('#updateBtn, #copyBtn, #resetBtn').attr('disabled', 'disabled'); $(document).keydown ( function(event) { if(event.which === 13) { $('#generateBtn').click(); } } ); $('#generateBtn').click ( function() { if($('#email').val() != '') { var params = {'method': 'retrieveEmployeeByEmail', 'email': $('#email').val()}; $.ajax({data: params, type: 'POST', url: '/directory/api/api.php'}).done ( function(res) { console.log('response...'); console.log(res); var resObj = JSON.parse(res); if(resObj.length == 1) { console.log('updating person object...'); person = resObj[0]; /*person.id = res[0].id; person.first_name = res[0].first_name; person.last_name = res[0].last_name; person.middle_name = res[0].middle_name; person.pre = res[0].pre; person.email = res[0].email; person.phone = res[0].phone; person.address_1 = res[0].address_1; person.address_2 = res[0].address_2; person.city = res[0].city; person.state = res[0].state; person.zip = res[0].zip; person.department_1 = res[0].department_1; person.department_2 = res[0].department_2; person.department_3 = res[0].department_3; person.url = res[0].url; person.title_1 = res[0].title_1; person.title_2 = res[0].title_2; person.title_3 = res[0].title_3;*/ console.log(person); fillForm(); } console.log('length: ' + res.length); cleanup(); render(); $('#generateBtn').attr('disabled', 'disabled'); $('#updateBtn, #copyBtn, #resetBtn').prop('disabled', false); } ); /*$.getJSON ( 'https://una.edu/apps/api/directory/' + $('#email').val(), function(resp) { //person = resp.record[0]; if(resp.record.length == 1) { person = resp.record[0]; fillForm(); } cleanup(); render(); $('#generateBtn').attr('disabled', 'disabled'); $('#updateBtn, #copyBtn, #resetBtn').prop('disabled', false); } );*/ } } ); $('#updateBtn').click ( function() { console.log('update button clicked'); if($('.has-error').length > 0) { // we need to remove some error items... console.log('Errors: ' + $('.has-error').length); $('div.form-group.has-error span.help-block').remove(); $('div.form-group').removeClass('has-error'); } cleanup(); if($('.has-error').length == 0) { render(); var es = document.getElementById('emailSignature'); es.scrollIntoView(); } else { // focus on the first error $('.has-error input').focus(); } } ); $('#resetBtn').click ( function() { $('#updateBtn').attr('disabled', 'disabled'); $('#copyBtn').attr('disabled', 'disabled'); $('#resetBtn').attr('disabled', 'disabled'); $('#generateBtn').prop('disabled', false); clearForm(); $('#emailSignature').html('




') } ); $('#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 += '

'; //html += '
'; if($('input[type="radio"][name="priLogo"]:checked').val() == 'unaworks') { html += '' + sig.priLogoAlt + '

'; } else { html += '' + sig.priLogoAlt + ''; } if(sig.photo != '') { html += '' + sig.name + ''; } //html += 'US News and World Reports Badge - #19 Regional Universities'; //html += 'US News and World Reports Badge - Best Colleges - Regional Universities'; if(sig.usnewsLogo != '' && sig.usnewsLogoAlt != '') { html += '' + sig.usnewsLogoAlt + ''; } else { html += 'US News and World Reports Badge - Best Colleges - Regional Universities'; } if(sig.bestCol != '') { html += 'Great Colleges to work for'; } html += '

'; if(sig.accLogo != '' && sig.accLogoAlt != '') { html += '' + sig.accLogoAlt + ''; } if(sig.addLogo != '' && sig.addLogoAlt != '') { html += '' + sig.addLogoAlt + ''; } 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"; } } );