HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CodePen - New Email Gen.</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css'>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- partial:index.partial.html -->
<!-- Single Signature 6/6/18 3:45 pm
Designer: Elana Weinberg
Developer: Jason Cross
Modified By: Luis Jimenez
Graphics: Christhian Torres
-->
<div class="container">
<div id="instructions" class="row">
<div class="alert alert-info" style="margin-bottom: 0px;">
<ol>
<li>Type your information into the form, and it will generate your email signature automatically.</li>
<li>If needed, refresh the page and start over (Keyboard: F5)</li>
<li style="font-style: italic; color:red;">IMPORTANT: This email signature generator works in Edge and Chrome.</li>
</ol>
</div>
</div>
<!-- <img class="img-responsive" src="" alt="" /> maybe need it later ->
</div>
</div> <!-- /instructions -->
<hr>
<div class="row">
<div id="signature-output" class="col-md-6">
<h2>Employee Information</h2>
<p>Fill out this form with your information to generate a custom Omni email signature.</p>
<!--<button id="reset-form" type="button" class="btn btn-default btn-xs">Reset Form</button> -->
<hr>
<form id="employee-information-form">
<fieldset>
<div class="input_full_name form-group">
<label>Full name:</label>
<input class="form-control" type="text" name="full_name" placeholder="Louis Armstrong" required>
</div>
<div class="input_position form-group">
<label>Job Title:</label>
<input class="form-control" type="text" name="position" placeholder="IT Technician" required>
</div>
<!--
<div class="input_email_address form-group">
<label>Email address:</label>
<input class="form-control" type="text" name="email_address" placeholder="[email protected]">
</div>
-->
<div class="input_phone_office form-group">
<label>Main:</label>
<input class="form-control" type="tel" name="phone_office" placeholder="(XXX) XXX-XXXX" pattern="[(][0-9]{3}[)]\s[0-9]{3}-[0-9]{4}">
<span class="help-block">Use <mark>hyphens</mark> for your separator. Example: (661) 459-1900</span>
</div>
<div class="input_phone_mobile form-group">
<label>Direct:</label>
<input class="form-control" type="tel" name="phone_mobile" placeholder="(XXX) XXX-XXXX">
<span class="help-block">Use <mark>hyphens</mark> for your separator. Example: (661) 707-7070</span>
</div>
<div class="input_cell_number form-group">
<label>Cell:</label>
<input class="form-control" type="tel" name="cell_number" placeholder="Optional">
<span class="help-block">Use <mark>hyphens</mark> for your separator. Example: (661) 707-7070</span>
</div>
<div class="input_fax_number form-group">
<label>Fax:</label>
<input class="form-control" type="tel" name="fax_number" placeholder="Optional">
<span class="help-block">Use <mark>hyphens</mark> for your separator. Example: (661) 707-7070</span>
</div>
<div class="input_address_first_line form-group">
<label>Address:</label>
<input class="form-control" type="text" name="address_first_line" placeholder="4900 Californa Avenue, Suite 400B" required>
<span class="help-block">Example: 4900 California Avenue, Suite 400B</span>
</div>
<!--
<div class="input_address_second_line form-group"> -->
<!--<label></label>
<input class="form-control" type="tel" name="address_second_line" placeholder="Bakersfield, CA 93309">
<span class="help-block">Example: Bakersfield, CA 93309</span>
</div>
-->
<div class="input_address_city form-group">
<!--<label></label>-->
<input class="form-control" type="text" name="address_city" placeholder="Bakersfield" required>
<span class="help-block">Example: Bakersfield</span>
</div>
<div class="input_address_state form-group">
<!--<label></label>-->
<input class="form-control" type="text" name="address_state" placeholder="CA" required>
<span class="help-block">Example: CA</span>
</div>
<div class="input_address_zip form-group">
<!--<label></label>-->
<input class="form-control" type="tel" name="address_zip" placeholder="93309" required>
<span class="help-block">Example: 93309</span>
</div>
</fieldset>
<input type="submit" value="Submit">
</form>
</div>
<div id="signature-output" class="col-md-6">
<h2>Generated Signatures</h2>
<p>Copy the signature you want to use and paste into your email program.</p>
<hr>
<ul id="html-signature-full-tabs" class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a role="tab" href="#signature-full-visual">Desktop Signature</a></li>
<li role="presentation"><a role="tab" href="#signature-mobile">Mobile Phone Signature</a></li>
<li role="presentation"><a role="tab" href="#signature-out-of-office">Out-of-Office Signature</a></li>
</ul>
<div class="tab-content">
<div id="signature-full-visual" class="tab-pane active" role="tabpanel">
<table cellpadding="0" cellspacing="0" border="0" style="background: none; border-width: 0px; border: 0px; margin: 0; padding: 0;">
<tr>
<td valign="top" style="padding-top: 0; padding-bottom: 0; padding-left: 0; padding-right: 10px; border-top: 0; border-bottom: 0: border-left: 0; border-right: solid 3px #1586C3"><img src="https://omnifamilyhealth.org/wp-content/uploads/2021/12/E020221_OFH_Email_Signature_Images_Logo.png" alt="Omni Family Health"></td>
<td style="padding-top: 0; padding-bottom: 0; padding-left: 12px; padding-right: 0;">
<table cellpadding="0" cellspacing="0" border="0" style="background: none; border-width: 0px; border: 0px; margin: 0; padding: 0;" class="data-table">
<td colspan="2" style="color: #1586c3; font-size: 11pt; font-family: Century Gothic, helvetica, sans-serif; font-weight: bold; text-transform:uppercase;">
<span class="output_full_name"></span>
</td>
</tr>
</tr>
<tr>
<td colspan="2" style="color: #333333; font-size: 10pt; font-family: Century Gothic, helvetica, sans-serif; font-weight: normal; text-transform:capitalize;">
<span style="font-style: italic;" class="output_position"></span>
</td>
</tr>
<tr>
<td colspan="2" style="color: #333333; font-size: 11.5pt; font-family: Arial, Helvetica, sans-serif;">
</td>
</tr>
<tr>
<th colspan="2" align="left" style="color: #333333; font-size: 11pt; font-family: Century Gothic, helvetica, sans-serif;">Omni Family Health
</th>
</tr>
<tr>
<td width="20" valign="top" style="vertical-align: top; width: 20px; color: #1586c3; font-size: 10pt; font-family: Century Gothic, helvetica, sans-serif;">
<span class="1">Main:</span>
</td>
<td valign="top" style="vertical-align: top; color: #333333; font-size: 10pt; font-family: Century Gothic, helvetica, sans-serif;">
<span class="output_phone_office"></span>
</td>
</tr>
<tr>
<td width="20" valign="top" style="vertical-align: top; width: 20px; color: #1586c3; font-size: 10pt; font-family: Century Gothic, helvetica, sans-serif;">
<span class="2">Direct:</span>
</td>
<td valign="top" style="vertical-align: top; color: #333333; font-size: 10pt; font-family: Century Gothic, helvetica, sans-serif;">
<span class="output_phone_mobile"></span>
</td>
</tr>
<tr>
<td width="20" valign="top" style="vertical-align: top; width: 20px; color: #1586c3; font-size: 10pt; font-family: Century Gothic, helvetica, sans-serif;">
<span class="3">Cell:</span>
</td>
<td valign="top" style="vertical-align: top; color: #333333; font-size: 10pt; font-family: Century Gothic, helvetica, sans-serif;">
<span class="output_cell_number"></span>
</td>
</tr>
<tr>
<td width="20" valign="top" style="vertical-align: top; width: 20px; color: #1586c3; font-size: 10pt; font-family: Century Gothic, helvetica, sans-serif;"><span class="4">Fax:</span>
</td>
<td valign="top" style="vertical-align: top; color: #333333; font-size: 10pt; font-family: Century Gothic, helvetica, sans-serif;">
<span class="output_fax_number"></span>
</td>
</tr>
<tr>
<!--<td width="80" valign="top" style="vertical-align: top; width: 80px; color: #1586c3; font-size: 10.5pt; font-family: arial, helvetica, sans-serif;">Address: </td>
<td valign="top"style="color: #1586c3; font-size: 10pt; font-family: arial, helvetica, sans-serif; font-weight: normal; text-transform:capitalize;">Address: </td>
<td colspan="2" valign="top" style="vertical-align: top; color: #333333; font-size: 10pt; font-family: Arial, Helvetica, sans-serif;">
<span class="output_address_first_line"></span></td>-->
<td valign="top" style="vertical-align: top; width: 60px; color: #1586c3; font-size: 10.5pt; font-family: Century Gothic, helvetica, sans-serif;">Address: </td>
<td colspan="2" style="width:300px; color: #333333; font-size: 10.5pt; font-family: Century Gothic, helvetica, sans-serif; font-weight: normal; text-transform:capitalize;">
<span class="output_address_first_line"></span>
</td>
</tr>
<tr>
<td valign="top" style="vertical-align: top; width: 60px; color: #1586c3; font-size: 8.5pt; font-family: Arial, helvetica, sans-serif;"></td>
<td colspan="2" style="vertical-align: top; width:300px; color: #333333; font-size: 10.5pt; font-family: Century Gothic, helvetica, sans-serif; font-weight: normal; text-transform:capitalize;">
<span class="output_address_city"></span>
<span class="output_address_state"></span>
<span class="output_address_zip"></span>
</td>
</tr>
<tr>
<td colspan="2" style="color: #333333; font-size: 11.5pt; font-family: Century Gothic, helvetica, sans-serif;">
</td>
</tr>
<tr>
<td valign="top" style="vertical-align: top; width: 60px; color: #1586C3; font-size: 14px; font-family: Century Gothic, helvetica, sans-serif;">Website:
</td>
<td valign="top" style="vertical-align: top; width:300px; color: #333333; font-size: 14px; font-family: Century Gothic, helvetica, sans-serif;">www.<x>OmniFamilyHealth.</x>org
</td>
</tr>
</table>
</td>
</tr>
</table><br />
<table cellpadding="0" cellspacing="0" border="0" style="background: none; border-width: 0px; border: 0px; margin: 0; padding: 0;">
<tr>
<td colspan="6"><img src="https://omnifamilyhealth.org/wp-content/uploads/2021/12/E020221_OFH_Email_Signature_Images-V2-Counties.png" alt="Our family serving yours since 1978. Kern Kings, Tulare, and Fresno conties. Medical, Dental, Behavioral Health, Pharmacy, and more!" /></td>
</tr>
<tr>
<td colspan="6" style="color: #333333; font-size: 5pt; font-family: Century Gothic, Helvetica, sans-serif;">
</td>
</tr>
<tr>
<td width="219" align="right"><img src="https://omnifamilyhealth.org/wp-content/uploads/2021/12/E020221_OFH_Email_Signature_Images-V2-Follow-us.png" title="Follow us on online" alt="Follow us online" /> </td>
<td width="35" align="left"><a href="https://www.facebook.com/omnifamilyhealth.org/?utm_source=email-signature&utm_medium=email&utm_campaign=signature" title="Follow us on Facebook" target="_blank"><img width="30" height="30" src="https://omnifamilyhealth.org/wp-content/uploads/2021/12/E020221_OFH_Email_Signature_Images_FB.png" alt="Facebook" /></a></td>
<td width="35" align="left"><a href="https://www.linkedin.com/company/omni-family-health?utm_source=email-signature&utm_medium=email&utm_campaign=signature" title="Follow us on LinkedIn" target="_blank"><img width="30" height="30" src="https://omnifamilyhealth.org/wp-content/uploads/2021/12/E020221_OFH_Email_Signature_Images_LinkedIn.png" alt="LinkedIn" /></a></td>
<td width="35" align="left"><a href="https://www.youtube.com/channel/UCbDBY18SQt4nglewbKbKPNA?utm_source=email-signature&utm_medium=email&utm_campaign=signature" title="Follow us on YouTube" target="_blank"><img width="30" height="30" src="https://omnifamilyhealth.org/wp-content/uploads/2021/12/E020221_OFH_Email_Signature_Images_YT.png" alt="LinkedIn" /></a></td>
<td width="35" align="left"><a href="https://www.instagram.com/omnifamilyhealth/?utm_source=email-signature&utm_medium=email&utm_campaign=signature" title="Follow us on Instagram" title="Follow us on Instagram" target="_blank"><img width="30" height="30" src="https://omnifamilyhealth.org/wp-content/uploads/2022/01/E020222A_OFH_Email_Signature_Images_Instagram.png" alt="Instagram" /></a></td>
<td width="136" align="left"> </td>
</tr>
</table>
<br />
<br />
<em>
<span style="font-size: 9pt; color: grey; font-style: italic; font-family: Century Gothic, helvetica, sans-serif;">NOTICE: This e-mail message is intended for the sole use of the recipient(s) named above. It may contain information that is protected, privileged, or confidential. Any unauthorized review, use, disclosure, or distribution is strictly prohibited if you have received this transmission in error. If you are not the intended recipient, please contact the sender immediately by reply e-mail and delete this message and its attachments, if any.</span></em><br /><br /><br />
</div>
<!-- /signature-full-visual -->
<div id="signature-mobile" class="tab-pane" role="tabpanel">
<!--<textarea class="form-control" rows="10"></textarea>-->
<td style="padding: 0px 0px 0px 9px;">
<table id="table" width="100%" cellpadding="0" cellspacing="0" border="0" style="background: none; border: 0px; margin: 0px; padding: 0px; font-family: Arial, Helvetica, sans-serif;" class="data-table">
<tbody>
<td>
<span class="output_full_name" style="padding-bottom: 5px; font-size: 11pt; font-weight:bold; color: #333333; text-transform:uppercase; font-family: Arial, Helvetica, sans-serif;"></span>
</td>
</tr>
<tr>
<td>
<span class="output_position" style="font-style: italic; color: #333333; font-size: 10pt; font-family: Arial, Helvetica, sans-serif;"></span>
</td>
<tr>
<td style="color: #333333; font-weight:bold; font-size: 11.5pt;">
</td>
</tr>
<tr>
<td style="color: #333333; font-weight:bold; font-size: 11.5pt;">Omni Family Health
</td>
</tr>
<tr>
<td class="1"><span style="font-size: 10.5pt;">Main: </span><span class="output_phone_office" style="font-size: 10.5pt;"></span></span>
</td>
</tr>
<tr>
<td class="2"><span style="font-size: 10.5pt;">Direct: </span><span class="output_phone_mobile" style="font-size: 10.5pt;"></span></span>
</td>
</tr>
<tr>
<td class="3"><span style="font-size: 10.5pt;">Cell: </span><span class="output_cell_number" style="font-size: 10.5pt;"></span></span>
</td>
</tr>
<tr>
<td class="4"><span style="font-size: 10.5pt;">Fax: </span><span class="output_fax_number" style="font-size: 10.5pt;"></span></span>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 80px; font-size: 10.5pt;"><span style="vertical-align: top; width: 80px; font-size: 10.5pt;">Address: </span><span class="output_address_first_line" style="color: #333333; font-size: 11pt; font-weight: normal;"></span>,
<span class="output_address_city" style="color: #333333;font-size: 10.5pt; font-weight: normal; text-transform:capitalize;"></span>
<span class="output_address_state" style="color: #333333;font-size: 10.5pt; font-weight: normal; text-transform:capitalize;"></span>
<span class="output_address_zip" style="color: #333333;font-size: 10.5pt; font-weight: normal; text-transform:capitalize;"></span>
</td>
</tr>
<tr>
<td valign="top" style="vertical-align: top; width: 80px; font-size: 10.5pt; font-family: arial, helvetica, sans-serif;">Website: www.omnifamilyhealth.org</td>
</tr>
<tr>
<td style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"> <br /></td>
</tr>
<tr>
<td valign="top" style="vertical-align: top; width: 80px; font-size: 10.5pt; font-family: arial, helvetica, sans-serif;">Omni Family Health | Our Family Serving Yours Since 1978</td>
</tr>
</tbody>
</table>
<br>
<span style="font-size: 9pt; color: black;font-style: italic; font-family: Arial, Helvetica, sans-serif;">NOTICE: This e-mail message is intended for the sole use of the recipient(s) named above. It may contain information that is protected, privileged, or confidential. Any unauthorized review, use, disclosure, or distribution is strictly prohibited if you have received this transmission in error. If you are not the intended recipient, please contact the sender immediately by reply e-mail and delete this message and its attachments, if any.</span></em><br /><br /><br />
</div>
<!-- /signature-full-html -->
<div id="signature-out-of-office" class="tab-pane" role="tabpanel">
<!--<textarea class="form-control" rows="10"></textarea>-->
<p>Hello,</p>
<p>Thank you for your email. I am currently out of the office, returning <span style="color:red;">[date]</span>. For immediate assistance, please contact <span style="color:red;">[Name, Title]</span> at <span style="color:red;">[phone]</span> or <span style="color:red;">[email]</span>. I will do my best to respond promptly to your email upon my return to the office.</p>
<p>Thank you,</p>
<td style="padding: 0px 0px 0px 9px;">
<table id="table" width="100%" cellpadding="0" cellspacing="0" border="0" style="background: none; border: 0px; margin: 0px; padding: 0px; font-family: Arial, Helvetica, sans-serif;" class="data-table">
<tbody>
<td>
<span class="output_full_name" style="padding-bottom: 5px; font-size: 11pt; font-weight:bold; color: #333333; text-transform:uppercase; font-family: Arial, Helvetica, sans-serif;"></span>
</td>
</tr>
<tr>
<td>
<span class="output_position" style="font-style: italic; color: #333333; font-size: 10pt; font-family: Arial, Helvetica, sans-serif;"></span>
</td>
<tr>
<td style="color: #333333; font-weight:bold; font-size: 11.5pt;">
</td>
</tr>
<tr>
<td style="color: #333333; font-weight:bold; font-size: 11.5pt;">Omni Family Health
</td>
</tr>
<tr>
<td class="1"><span style="font-size: 10.5pt;">Main: </span><span class="output_phone_office" style="font-size: 10.5pt;"></span></span>
</td>
</tr>
<tr>
<td class="2"><span style="font-size: 10.5pt;">Direct: </span><span class="output_phone_mobile" style="font-size: 10.5pt;"></span></span>
</td>
</tr>
<tr>
<td class="3"><span style="font-size: 10.5pt;">Cell: </span><span class="output_cell_number" style="font-size: 10.5pt;"></span></span>
</td>
</tr>
<tr>
<td class="4"><span style="font-size: 10.5pt;">Fax: </span><span class="output_fax_number" style="font-size: 10.5pt;"></span></span>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 80px; font-size: 10.5pt;"><span style="vertical-align: top; width: 80px; font-size: 10.5pt;">Address: </span><span class="output_address_first_line" style="color: #333333; font-size: 11pt; font-weight: normal;"></span>,
<span class="output_address_city" style="color: #333333;font-size: 10.5pt; font-weight: normal; text-transform:capitalize;"></span>
<span class="output_address_state" style="color: #333333;font-size: 10.5pt; font-weight: normal; text-transform:capitalize;"></span>
<span class="output_address_zip" style="color: #333333;font-size: 10.5pt; font-weight: normal; text-transform:capitalize;"></span>
</td>
</tr>
<tr>
<td valign="top" style="vertical-align: top; width: 80px; font-size: 10.5pt; font-family: arial, helvetica, sans-serif;">Website: www.omnifamilyhealth.org</td>
</tr>
<tr>
<td style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"> <br /></td>
</tr>
<tr>
<td valign="top" style="vertical-align: top; width: 80px; font-size: 10.5pt; font-family: arial, helvetica, sans-serif;">Omni Family Health | Our Family Serving Yours Since 1978</td>
</tr>
</tbody>
</table>
<br>
<span style="font-size: 9pt; color: black;font-style: italic; font-family: Arial, Helvetica, sans-serif;">NOTICE: This e-mail message is intended for the sole use of the recipient(s) named above. It may contain information that is protected, privileged, or confidential. Any unauthorized review, use, disclosure, or distribution is strictly prohibited if you have received this transmission in error. If you are not the intended recipient, please contact the sender immediately by reply e-mail and delete this message and its attachments, if any.</span></em><br /><br /><br />
</div>
<!-- /signature-out-of-office -->
</div>
<!-- /tab-content -->
<!--
<h3>2) HTML Horizontal</h3>
<ul id="html-signature-horizontal-tabs" class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a role="tab" href="#signature-horizontal-visual">Visual</a></li>
<li role="presentation"><a role="tab" href="#signature-horizontal-html">HTML</a></li>
</ul>
<div class="tab-content">
<div id="signature-horizontal-visual" class="tab-pane active" role="tabpanel">
<table style="font-family:'Open Sans', sans-serif;color:#162a33;font-style:normal;font-size:14px;margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;line-height:1.15;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr border="0" cellpadding="0" cellspacing="0">
<td border="0" cellpadding="0" cellspacing="0">
<strong style="font-size:13px;"><span class="output_full_name"></span></strong><br>
<span style="color:#40bac8;font-size:10px;text-transform:uppercase;" class="output_position"></span><br><br>
</td>
</tr>
<tr border="0" cellpadding="0" cellspacing="0">
<td border="0" cellpadding="0" cellspacing="0">
<strong style="color:#eb6126;font-size:10px;">E:</strong> <a class="email_address_anchor" style="color:#a0a3a5;font-size:10px;text-decoration:none;" href="mailto:"><span class="output_email_address"></span></a>
<span class="phone_numbers_element">
<span class="phone_office_element"><strong style="color:#eb6126;font-size:10px;">O:</strong> <span style="color:#a0a3a5;font-size:10px;text-decoration:none;" class="output_phone_office"></span> </span>
<span class="phone_mobile_element"><strong style="color:#eb6126;font-size:10px;">M:</strong> <span style="color:#a0a3a5;font-size:10px;text-decoration:none;" class="output_phone_mobile"></span></span>
</span>
<br>
</td>
</tr>
<tr border="0" cellpadding="0" cellspacing="0">
<td border="0" cellpadding="0" cellspacing="0">
<font style="margin:0;padding:0;font-size:10px;color:#a0a3a5;">
<strong style="color:#162a33;"><span class="output_company_name"></span></strong>
<span class="output_address_horizontal"></span>
</font>
<br><br>
</td>
</tr>
<tr border="0" cellpadding="0" cellspacing="0">
<td border="0" cellpadding="0" cellspacing="0">
<font style="margin:0;padding:0;">
<span style="font-family: arial, sans-serif; font-size: 10px; color: #dbdad6;">
<a href="https://wpengine.com/" style=" color: #40bac8;"> wpengine.com</a> |
<a href="https://wpengine.com/blog/" style=" color: #40bac8;">blog</a> |
<a href="https://twitter.com/wpengine" style=" color: #40bac8;">twitter</a> |
<a href="http://wpengine-careers.com/" style=" color: #40bac8;">careers</a> |
<a href="http://torquemag.io/" style=" color: #40bac8;">torquemag.io</a>
</span>
</font>
<br>
</td>
</tr>
</tbody>
</table>
</div> /signature-horizontal-visual -->
<!--
<div id="signature-horizontal-html" class="tab-pane" role="tabpanel">
<textarea class="form-control" rows="10"></textarea>
</div> <!-- /signature-horizontal-html
</div><!-- /tab-content
-->
<!--
<hr>
<h3>3) Plaintext</h3>
<div id="plaintext-signature" class="well">
<strong><span class="output_full_name"></span></strong>, <span class="output_position"></span><br>
<span class="output_email_address"></span><br>
<span class="phone_numbers_element">
<span class="phone_office_element">O: <span class="output_phone_office"></span> </span>
<span class="phone_mobile_element">M: <span class="output_phone_mobile"></span></span>
<br>
</span>
<span class="twitter_element">T: @<span class="output_twitter_username"></span><br></span>
<br>
<strong><span class="output_company_name"></span></strong><br>
<span class="output_address_full"></span>
<br>
<span class="promo_line_element">
<br>
<span class="output_promo_line"></span>
</span>
</div> -->
</div>
<!-- /signature-output -->
</div>
<!-- /row -->
</div>
<!-- /container -->
</div>
</div>
<!-- partial -->
<script src='https://code.jquery.com/jquery-2.2.4.min.js'></script>
<script src='https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js'></script>
<script src="./script.js"></script>
</body>
</html>
* {
font-style: normal;
}
.container {
margin-top: 40px;
margin-bottom: 40px;
}
.well {
background: none;
border: 1px solid #dddddd;
margin-bottom: 20px;
}
#plaintext-signature {
font-size: 12px;
}
.help-block {
font-size: 12px;
}
.form-group {
margin-bottom: 22px;
}
.alert ol,
.alert ul {
margin-bottom: 0;
}
.tab-pane {
padding: 50px 20px 20px;
border: 1px solid #dddddd;
border-top: 0 none;
}
a:focus {
outline: none !important;
}
#instructions {
background: #f5f5f5;
padding: 15px;
border: 1px solid #31708f;
}
#instructions img {
border: 1px solid #dfdfdf;
}
#instructions li {
margin-bottom: 1em;
}
.input_full_name {
float: left;
width: 50%;
padding: 0px 5px 0px 0px;
}
.input_position {
float: left;
width: 50%;
padding: 0px 5px 0px 0px;
}
.input_phone_office {
float: left;
width: 50%;
padding: 0px 5px 0px 0px;
}
.input_phone_mobile {
float: left;
width: 50%;
padding: 0px 5px 0px 0px;
}
.input_fax_number {
float: left;
width: 50%;
padding: 0px 5px 0px 0px;
}
.input_cell_number {
float: left;
width: 50%;
padding: 0px 5px 0px 0px;
}
.input_address_city {
float: left;
width: 33.33%;
padding: 0px 5px 0px 0px;
}
.input_address_state {
float: left;
width: 33.33%;
padding: 0px 5px 0px 0px;
}
.input_address_zip {
float: left;
width: 33.33%;
padding: 0px 5px 0px 0px;
}
.input_phone_office2 {
float: left;
width: 50%;
padding: 0px 5px 0px 0px;
}
.input_phone_mobile2 {
float: left;
width: 50%;
padding: 0px 5px 0px 0px;
}
.input_fax_number2 {
float: left;
width: 50%;
padding: 0px 5px 0px 0px;
}
.input_cell_number2 {
float: left;
width: 50%;
padding: 0px 5px 0px 0px;
}
.input_address_city2 {
float: left;
width: 33.33%;
padding: 0px 5px 0px 0px;
}
.input_address_state2 {
float: left;
width: 33.33%;
padding: 0px 5px 0px 0px;
}
.input_address_zip2 {
float: left;
width: 33.33%;
padding: 0px 5px 0px 0px;
}
input[type="button"],
input[type="submit"],
input[type="reset"] {
background-color: #04aa6d;
width: 100%;
border: none;
color: white;
padding: 16px 32px;
text-decoration: none;
margin: 4px 2px;
cursor: pointer;
border-radius: 25px;
}
/*Single Signature 6/15/18 9:59 pm
WP Engine Email Signature Generator
http://wpeng.in/signature
Designer: Elana Weinberg
Developer: Jason Cross
Modified By: Luis Jimenez
Graphics: Christhian Torres
*/
////////////////////////
// KNOWN ISSUES
////////////////////////
// 1. Refactor
// 2. Type into any optional field (phone numbers, twitter), then erase your text. The raw HTML for that thing in the generated output is still there, just hidden.
// 3. Good MVP, but this code is messy. Could be better as a React app, mayhaps.
////////////////////////
// FUNCTIONS
////////////////////////
//
/* Place raw HTML of each version into appropriate containers
function updateHtmlSigRaw() {
get_html_signature_full_visual = document.getElementById("signature-full-visual").innerHTML;
get_html_signature_horizontal_visual = document.getElementById("signature-horizontal-visual").innerHTML;
$("#signature-full-html textarea").text(get_html_signature_full_visual);
$("#signature-horizontal-html textarea").text(get_html_signature_horizontal_visual);
}
*/
//disable the tab key
$(document).on("keydown", function (event) {
if (event.keyCode == 9) {
//tab pressed
event.preventDefault(); // stops its action
}
});
///
// Reset form
function resetForm() {
document.getElementById("employee-information-form").reset();
//initialize_dummy_data();
}
/////////////////////
// INITIALIZE
/////////////////////
//
// Reset form, even on soft page refreshes
// Put new functionality BELOW this
resetForm();
//
// Reset form button functionality
$("#reset-form").click(function (e) {
e.preventDefault();
resetForm();
});
//
// Activate Bootstrap tabs
$("#html-signature-full-tabs a").click(function (e) {
e.preventDefault();
$(this).tab("show");
});
$("#html-signature-horizontal-tabs a").click(function (e) {
e.preventDefault();
$(this).tab("show");
});
//
// Set variables and defaults
var employee = {
/*******site 1********/
site1: "Buttonwillow",
full_name: "Louis Armstrong",
position: "IT Technician",
phone_office: "",
phone_mobile: "",
fax_number: "",
cell_number: "",
address_first_line: "4900 California Avenue, Suite 400B",
address_city: "Bakersfield,",
address_state: "CA",
address_zip: "93309",
company_name: "Omni Family Health."
};
/*
function initialize_dummy_data() {
//
// Assign default variables on DOM load
for (var key in employee) {
if(employee.hasOwnProperty(key)) {
$("span.output_"+key).html(employee[key]);
}
}
}
initialize_dummy_data(); */
////////////////////////
// FORM FIELDS
////////////////////////
// Full name
// Check input field for data
$(".input_full_name input").on("change keyup paste", function () {
var full_name = $(this).val();
if (full_name) {
$("span.output_full_name").html(full_name);
} else if (!full_name) {
$("span.output_full_name").html(employee.full_name);
}
updateHtmlSigRaw();
});
//
// Position
// Check input field for datata
$(".input_position input").on("change keyup paste", function () {
var position = $(this).val();
if (position) {
$("span.output_position").html(position);
} else {
$("span.output_position").html(employee.position);
}
updateHtmlSigRaw();
});
//
/********************************* Site 1 ***************************************/
// Check input field for data
$(".input_site1 input").on("change keyup paste", function () {
var site1 = $(this).val();
if (site1) {
$("span.output_site1").html(site1);
} else if (!site1) {
$("span.output_site1").html(employee.site1);
}
updateHtmlSigRaw();
});
// Address_first
// Check input field for data
$(".input_address_first_line input").on("change keyup paste", function () {
var address_first_line = $(this).val();
if (address_first_line) {
$("span.output_address_first_line").html(address_first_line);
} else {
$("span.output_address_first_line").html(employee.address_first_line);
}
updateHtmlSigRaw();
});
// Address_CITY
// Check input field for data
$(".input_address_city input").on("change keyup paste", function () {
var address_city = $(this).val();
if (address_city) {
$("span.output_address_city").html(address_city + ",");
} else {
$("span.output_address_city").html(employee.address_city);
}
updateHtmlSigRaw();
});
// Address_state
// Check input field for data
$(".input_address_state input").on("change keyup paste", function () {
var address_state = $(this).val();
if (address_state) {
$("span.output_address_state").html(address_state);
} else {
$("span.output_address_state").html(employee.address_state);
}
updateHtmlSigRaw();
});
// Address_zip
// Check input field for data
$(".input_address_zip input").on("change keyup paste", function () {
var address_zip = $(this).val();
if (address_zip) {
$("span.output_address_zip").html(address_zip);
} else {
$("span.output_address_zip").html(employee.address_zip);
}
updateHtmlSigRaw();
});
// Hide optional phone numbers on DOM load
$(".1").hide();
//$("span.output_phone_office").hide();
$(".2").hide();
//$("span.output_phone_mobile").hide();
$(".3").hide();
//$("span.output_cell_number").hide();
$(".4").hide();
//$("span.output_fax_number").hide(); //
var phone_office = "";
var phone_mobile = "";
var fax_number = "";
var cell_number = "";
// Office phone number
// Field is optional. Hide on DOM load
//$(".phone_office_element").hide(); ////////
// Check input field for data
$(".input_phone_office input").on("change keyup paste", function () {
//phone_office = $(this).val();
var phone_office = $(this).val();
var output;
phone_office = phone_office.replace(/[^0-9]/g, "");
var area = phone_office.substr(0, 3);
var pre = phone_office.substr(3, 3);
var tel = phone_office.substr(6, 4);
if (area.length < 3 && !area.length == 0) {
output = "(" + area;
} else if (area.length == 3 && pre.length < 3) {
output = "(" + area + ")" + " " + pre;
} else if (area.length == 3 && pre.length == 3) {
output = "(" + area + ")" + " " + pre + "-" + tel;
}
if (output && output.length > 1) {
$(".1").show();
//$(".phone_office_element").show();
$("span.output_phone_office").html(output); //
} else if (!output || output.length == 0) {
//alert("phone office there's nothing here");
$(".1").hide();
//alert("removing the row");
//alert("i see the span");
$("span.output_phone_office").html(output).empty(); //
//alert("i'm deleting the span");
//alert("detaching the whole row");
}
});
// DIRECT phone number
// Field is optional. Hide on DOM load
//$(".phone_mobile_element").hide(); //////
// Check input field for data
$(".input_phone_mobile input").on("change keyup paste", function () {
var phone_mobile = $(this).val();
var output;
phone_mobile = phone_mobile.replace(/[^0-9]/g, "");
var area = phone_mobile.substr(0, 3);
var pre = phone_mobile.substr(3, 3);
var tel = phone_mobile.substr(6, 4);
if (area.length < 3 && !area.length == 0) {
output = "(" + area;
} else if (area.length == 3 && pre.length < 3) {
output = "(" + area + ")" + " " + pre;
} else if (area.length == 3 && pre.length == 3) {
output = "(" + area + ")" + " " + pre + "-" + tel;
}
if (output && output.length > 1) {
$(".2").show();
$("span.output_phone_mobile").html(output);
} else if (!output || output.length <= 0) {
$(".2").hide();
$("span.output_phone_mobile").html(output).empty();
}
});
// fax phone number
// Field is optional. Hide on DOM load
//$(".fax_number_element").hide(); /////////
// Check input field for data
$(".input_fax_number input").on("change keyup paste", function () {
var fax_number = $(this).val();
var output;
fax_number = fax_number.replace(/[^0-9]/g, "");
var area = fax_number.substr(0, 3);
var pre = fax_number.substr(3, 3);
var tel = fax_number.substr(6, 4);
if (area.length < 3 && !area.length == 0) {
// testing the length
output = "(" + area;
} else if (area.length == 3 && pre.length < 3) {
output = "(" + area + ")" + " " + pre;
} else if (area.length == 3 && pre.length == 3) {
output = "(" + area + ")" + " " + pre + "-" + tel;
}
if (output && output.length > 1) {
$(".4").show();
$("span.output_fax_number").html(output);
} else if (!output || output.length <= 0) {
$(".4").hide();
$("span.output_fax_number").html(output).empty();
}
});
// cell phone number
// Field is optional. Hide on DOM load
//$(".cell_number_element").hide(); ///////////
// Check input field for data
$(".input_cell_number input").on("change keyup paste", function () {
var cell_number = $(this).val();
var output;
cell_number = cell_number.replace(/[^0-9]/g, "");
var area = cell_number.substr(0, 3);
var pre = cell_number.substr(3, 3);
var tel = cell_number.substr(6, 4);
if (area.length < 3 && !area.length == 0) {
output = "(" + area;
} else if (area.length == 3 && pre.length < 3) {
output = "(" + area + ")" + " " + pre;
} else if (area.length == 3 && pre.length == 3) {
output = "(" + area + ")" + " " + pre + "-" + tel;
}
if (output && output.length > 1) {
$(".3").show();
$("span.output_cell_number").html(output);
} else if (!output || output.length <= 0) {
$(".3").hide();
$("span.output_cell_number").html(output).empty();
} //
});
// Clean the HTML code from empty <tr> (rows) on form submission
$("form").on("submit", function () {
// Stop form submission
event.preventDefault();
// Target tables with all the data fields
$(".data-table tr").each(function () {
// Select the span element related to data typed in
var span_el = $(this).find("td:last span:last");
// Fields related to phone numbers
var phone_fields = [
"output_phone_office",
"output_phone_mobile",
"output_cell_number",
"output_fax_number"
];
// Process only span elements related to phone number
if (phone_fields.indexOf(span_el.attr("class")) > -1) {
// Get the phone number
var span_text = span_el.text().trim();
// Remove the whole <tr> (row) if the phone number is empty
if (!span_text) {
jQuery(this).remove();
}
}
});
alert("Form Submitted!");
});
Also see: Tab Triggers