Skip to content

Instantly share code, notes, and snippets.

Erin emwiles

Block or report user

Report or block emwiles

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@emwiles
emwiles / Bullet proof email button - image free
Created Feb 9, 2014
Bullet proof button with Silverpop tracking code - original button code courtesy of @stigm (http://buttons.cm/). NOTE: do not view in design view within Silverpop - button loses its bullet proof-ness.
View Bullet proof email button - image free
<div align="center">
<!--[if mso]>
<a href="#" xt="SPCLICK" name="main_article1_outlook" style="color:#E97F1D; text-decoration: underline;" >
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="#" style="height:30px;v-text-anchor:middle;width:130px;" arcsize="14%" strokecolor="#fdb515" fillcolor="#E97F1D">
<w:anchorlock/>
<center style="color:#ffffff;font-family:sans-serif;font-size:13px;font-weight:bold;">Read article</center>
</v:roundrect>
</a>
<![endif]--><![if !mso]>
@emwiles
emwiles / Redirect script
Last active Aug 29, 2015
Script to force a web page to open a different URL
View Redirect script
<script>
var h = window.location.host;
var f = 'http://yoururl.com';
window.location.replace(f);
</script>
@emwiles
emwiles / Autopopulate Javascript
Last active Aug 29, 2015
Autopopulate a form field from an email URL
View Autopopulate Javascript
Email hyperlink: http://mysite.com/?fieldID1=AutopopulateA&fieldID2=AutopopulateB
Landing page fields:
<table cellpadding=0 cellspacing=0 >
<tr><td style="padding: 5px 0px 0px 5px;">
<div style="position: relative; width:250px;" id="fieldID1"><div style="width: 250px;"><div class="fieldLabel" style="width: 250px; margin: 5px 3px; "><span style="color:#265b80; font-family: arial font-size: 12pt"><strong >Field One:<span class="required">*</span></strong></span></div></div><input type="text" name="Field One" id ="fieldID1" label="Field One" class="textInput defaultText" style="margin: 0 3px 5px 3px; height: 20px; width: 200px;"></div></td>
<td width="40px">&nbsp;</td>
@emwiles
emwiles / Erins-Card-o-matic.markdown
Last active Aug 29, 2015
Working with Women's Coding Collective to learn a few things about JavaScript.
@emwiles
emwiles / iOS link styling in emails
Created Feb 9, 2014
iOS link styling for HTML emails. Add class in the head and then put span tag around the number, link, or date and voila! You have properly styled links in iOS devices.
View iOS link styling in emails
@emwiles
emwiles / Super small superscript for email
Created Feb 9, 2014
Super small superscript for emails - makes sure line height is not exceeded.
View Super small superscript for email
<td align="left" style="padding:20px; color:#666; font-size:15px;">
<div style="color:#474747; font-size:17px; mso-line-height-rule:exactly; line-height: 125%;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<sup style="font-size: 15px; line-height: 0; vertical-align: 3px">2</sup
</div>
</td>
You can’t perform that action at this time.