{"id":1537,"date":"2015-03-19T19:21:49","date_gmt":"2015-03-19T19:21:49","guid":{"rendered":"http:\/\/freshinbox.com\/blog\/?p=1537"},"modified":"2015-11-09T11:26:51","modified_gmt":"2015-11-09T11:26:51","slug":"reader-mode-email-pagination","status":"publish","type":"post","link":"https:\/\/freshinbox.com\/blog\/reader-mode-email-pagination\/","title":{"rendered":"Reader Mode &#8211; Mobile Email Pagination"},"content":{"rendered":"<p>Here&#8217;s an experimental mobile email technique that allows you to paginate a content heavy email so readers can navigate from article to article without scrolling. I hacked it up over a few days as an entry to Litmus&#8217; <a href=\"https:\/\/litmus.com\/community\/discussions\/1086-community-contest-creative-navigation-in-email\" target=\"_blank\">Creative Navigation in Email Community Contest<\/a>.<\/p>\n<p>Responsive email design has made emails easier to read on mobile devices. However a drawback of responsive emails is that content heavy emails tend to be narrow and tall, requiring the user to scroll and scroll to get to a piece of content at the bottom. This is an attempt at addressing the problem by allowing recipients to quickly navigate content in an email.<\/p>\n<div style=\"border:2px solid #888888;border-radius:5px;width:350px;max-width:100%;margin:0px auto;padding:8px;\"><img decoding=\"async\" src=\"https:\/\/freshinbox.com\/examples\/reader\/reader-anim.gif\" alt=\"Reader Mode - Mobile Email Pagination\" width=\"350\" \/><\/div>\n<div id=\"email-me\">\n  <input type=email id=\"email-me-email\" placeholder=\"Email address\"> <input id=\"email-me-btn\" type=button value=\"See Example In Your Inbox\" style=\"-webkit-appearance: none;\">\n<\/div>\n<p><BR><\/p>\n<p>This version only works on iPhone Mail although I&#8217;m working on getting it working on Android shortly. Don&#8217;t you think the fact Apple mysteriously <a href=\"https:\/\/discussions.apple.com\/thread\/6548063\" target=\"_blank\">broke anchor links within email in iOS 8<\/a> makes this a timely solution? :)<\/p>\n<p><b>Update:<\/b> Fixed a bug where it doesn&#8217;t work in iOS7 <i>(issues with calc() &#8211; thanks <a href=\"http:\/\/clintonwilmott.com\" target=_new>Clinton<\/a>!)<\/i><BR><BR><\/p>\n<h4>Reader Mode<\/h4>\n<p>I&#8217;m calling this technique Reader Mode. It allows the user in a push of a button to convert the email into a reading pane where content are formatted as separate pages and the user can access them by clicking on arrows or through a &#8220;table of contents&#8221; menu.<\/p>\n<p><b>Activation<\/b><br \/>\nThe reader mode button is wrapped with a label that toggles a checkbox with the id navbox. Using the :checked pseudoclass the Reader mode elements are displayed, with the menu being set at position:fixed at the top of the pane.<\/p>\n<pre class=\"lang:default decode:true \" >&lt;style&gt;\r\n.toolbar-container{\r\n  position:fixed;\r\n  top:0px; left:0px;\r\n  display:none;\r\n  ...\r\n}\r\n\r\n#navbox:checked ~ .toolbar-container{\r\n  display:block!important;\r\n}\r\n\r\n#navbox:checked ~ .articles-container{\r\n  height:100%;\r\n  overflow:hidden;\r\n  position:fixed;\r\n  top:50px;\r\n  left:0px;\r\n}\r\n&lt;\/style&gt;\r\n\r\n&lt;input id=\"navbox\" type=\"checkbox\"&gt;\r\n&lt;label for=\"navbox\" &gt;Activate Reader Mode&lt;\/label&gt;\r\n\r\n&lt;div class=\"toolbar-container\"&gt;...hidden toolbar content ... &lt;div&gt;\r\n&lt;div class=\"articles-container\"&gt;\r\n  article1, article2, article3...\r\n&lt;\/div&gt;<\/pre>\n<p><BR><\/p>\n<p><b>Article pagination<\/b><br \/>\nThe articles are wrapped in two containers. When the :checked selector is triggered on the navbox checkbox, the  outer container is set to display the full width and height of the viewport. The outer container is also set to a fixed position at top of the email minus the space held by the menu.  <\/p>\n<p>The inner container is set to the width of the viewport times the number of articles. The articles are set to the width of the viewport and floated left.  This allows the articles to be arranged in a horizontal position, with only a single article being displayed at one time.<\/p>\n<p>We then then create a radio element for each article, that when the :checked selector is triggered for a specific radio element, the inner container is shifted to left or right by the number of &#8220;view port widths&#8221; (vw) of each article. Adding a transition to the container allows for a sliding effect.<\/p>\n<pre class=\"lang:default decode:true \" >#navbox:checked ~ #a1radio:checked ~ .articles-cont .articles{\r\n  left:0px;\r\n}\r\n#navbox:checked ~ #a2radio:checked ~ .articles-cont .articles{\r\n  left:-100vw;\r\n}\r\n#navbox:checked ~ #a3radio:checked ~ .articles-cont .articles{\r\n  left:-200vw;\r\n}<\/pre>\n<p>Apparently vw does not work on the Android client so we may either have to resort to <a href=\"https:\/\/freshinbox.com\/blog\/image-carousel-in-email-part-1-mobile\/\">stacking the articles on top of each other<\/a> and showing each article either by selective hiding or adjusting their z-index.<BR><BR><\/p>\n<p><b>Navigating between articles<\/b><br \/>\nFor the right and left arrows, we create a pair of right and left labels for each article that triggers the radio of the next and previous article when tapped. These labels are initially hidden and only the pair associated with the current visible article is displayed.<\/p>\n<pre class=\"lang:default decode:true \" >&lt;style&gt;\r\n#navbox:checked ~ #a1radio:checked ~ .toolbar-cont .a1nav,\r\n#navbox:checked ~ #a2radio:checked ~ .toolbar-cont .a2nav,\r\n#navbox:checked ~ #a3radio:checked ~ .toolbar-cont .a3nav{\r\n  display:block;\r\n}\r\n&lt;\/style&gt;\r\n\r\n&lt;div class=\"nav-arrows a1nav\"&gt;\r\n   &lt;label&gt;&amp;nbsp;&lt;\/label&gt;&lt;label for=\"a2radio\"&gt;&amp;raquo;&lt;\/label&gt;\r\n&lt;\/div&gt;\r\n&lt;div class=\"nav-arrows a2nav\"&gt;\r\n   &lt;label for=\"a1radio\"&gt;&amp;laquo;&lt;\/label&gt;&lt;label for=\"a3radio\"&gt;&amp;raquo;&lt;\/label&gt;\r\n&lt;\/div&gt;\r\n&lt;div class=\"nav-arrows a3nav\"&gt;\r\n   &lt;label for=\"a2radio\"&gt;&amp;laquo;&lt;\/label&gt;&lt;label&gt;&amp;nbsp;&lt;\/label&gt;\r\n&lt;\/div&gt;<\/pre>\n<p><BR><\/p>\n<p><b>Article index menu<\/b><br \/>\nThe article index menu contains a list of labels associated with the articles in a hidden absolutely positioned div and is displayed when the user taps on the menu trigger using the :hover selector.<\/p>\n<p>One interesting thing I noticed was that if the menu hides immediately after an item is selected, the email client ignores the selection. I found out that adding a transition and a transition delay solved that problem. I&#8217;m sure there&#8217;s a more elegant fix for this but for now that works.<BR><BR><\/p>\n<h4>Code<\/h4>\n<p>Here&#8217;s the code!<br \/>\n(The code was modified to remove the use of vw (viewport widths) in calculation as it stopped working in iOS9).<\/p>\n<pre class=\"height-set:true lang:default decode:true \" >&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\"&gt;\r\n&lt;html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"&gt;\r\n&lt;head&gt;\r\n&lt;meta name=\"viewport\" content=\"width=device-width\" \/&gt;\r\n&lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=UTF-8\" \/&gt;\r\n&lt;style&gt;\r\n* { \r\n  margin:0;\r\n  padding:0;  \r\n  font-family: \"Helvetica Neue\", \"Helvetica\", Helvetica, Arial, sans-serif; \r\n  font-size: 100%;\r\n  line-height: 1.5;\r\n  color:#333333;\r\n}\r\nimg{\r\n  max-width:100%;\r\n}\r\nbody {\r\n  -webkit-text-size-adjust:none; \r\n  width: 100%!important; \r\n  height: 100%;\r\n}\r\nh1,h2{\r\n  margin-bottom:15px;\r\n  line-height: 1.3;\r\n  font-weight:300; \r\n}\r\nh1 {\r\n  font-size: 32px;\r\n}\r\nh2 {\r\n  font-size: 22px;\r\n}\r\ninput{\r\n  max-height:0;\r\n  display:none;\r\n}\r\n@media screen and (max-width: 900px) {\r\n  .qmenu-cont{\r\n    max-height:none!important;\r\n    overflow:visible!important;\r\n    z-index:10;\r\n    width:100%;\r\n    position:fixed;\r\n    top:0px;\r\n    left:0px;\r\n    display:none;\r\n    height:50px; \r\n    background-color:#eeeeee;\r\n    border-bottom:1px solid #222222; \r\n  }\r\n  .qmenu{\r\n    height:50px;\r\n    line-height:50px;\r\n    display:block;\r\n    text-decoration:none;\r\n  }\r\n  .qmenu-menu{\r\n    z-index:10;\r\n    text-align:center;\r\n    position:fixed;\r\n    top:51px;\r\n    overflow:hidden;\r\n    transition: all 0.3s;\r\n    -webkit-transition: all 0.3s;\r\n    transform: rotateX(90deg);\r\n    -webkit-transform: rotateX(90deg);\r\n    transform-origin: top;\r\n    -webkit-transform-origin: top;\r\n    -webkit-transition-delay: 0.5s;\r\n    transition-delay: 0.5s;\r\n  }\r\n  .qmenu-menu label{\r\n    display:block;\r\n    padding:5px 20px 5px 20px;\r\n  }\r\n  .qmenu:hover + .qmenu-menu{\r\n    display:block;\r\n    transform: rotateX(0deg);\r\n    -webkit-transform: rotateX(0deg);\r\n  } \r\n  .articles-cont{\r\n    background-color:#ffffff;\r\n  }\r\n  #navbox:checked + #main .articles-cont{\r\n    width:100%;\r\n    height:100%;\r\n    overflow:hidden;\r\n    position:fixed;\r\n    top:50px;\r\n    left:0px;\r\n  }\r\n  #navbox:checked + #main .articles-cont .articles{\r\n    position:absolute;\r\n    left:0px;\r\n    width:100%;\r\n    height:100%;\r\n  }\r\n  #navbox:checked + #main .articles-cont .articles .art{\r\n    background-color:#ffffff;\r\n    position:absolute;\r\n    top:0px;\r\n    left:0px;\r\n    width:100%;\r\n    height:1000px;\r\n    overflow:hidden;  \r\n    z-index:1;\r\n    opacity:0;\r\n  }\r\n  #navbox:checked + #main .articles-cont .articles .art div{\r\n    width:85%;\r\n    margin:20px auto;\r\n  }\r\n  .nav-arrows{\r\n    float:right;\r\n    display:none;\r\n  }\r\n  .nav-arrows label{\r\n    display:inline-block;\r\n    vertical-align:middle;\r\n    text-align:center;\r\n    height:50px;\r\n    width:50px;\r\n    font-size:30px;\r\n    font-weight:bold;\r\n  }\r\n  #navbox:checked + #main #a1radio:checked + div .articles-cont #a1,\r\n  #navbox:checked + #main #a2radio:checked + div .articles-cont #a2,\r\n  #navbox:checked + #main #a3radio:checked + div .articles-cont #a3{\r\n    z-index:2;\r\n    height:100%;\r\n    overflow-y:scroll;\r\n    opacity:1;\r\n    transition: opacity 1s;\r\n    -webkit-transition: opacity 1s;\r\n  }\r\n  #navbox:checked + #main #a1radio:checked + div .qmenu-cont #a1nav,\r\n  #navbox:checked + #main #a2radio:checked + div .qmenu-cont #a2nav,\r\n  #navbox:checked + #main #a3radio:checked + div .qmenu-cont #a3nav{\r\n    display:block;\r\n  }\r\n  #navbox:checked + #main #a1radio:checked + div #a1label,\r\n  #navbox:checked + #main #a2radio:checked + div #a2label,\r\n  #navbox:checked + #main #a3radio:checked + div #a3label{\r\n    background-color:#98AECA;\r\n  }  \r\n  .closer{\r\n    display:inline-block;\r\n    vertical-align:middle;\r\n    text-align:center;\r\n    line-height:50px;\r\n    width:50px;\r\n    font-size:20px;\r\n    font-weight:bold;\r\n    float:left;\r\n  }\r\n\r\n  #cbox-capable:checked ~ .opener div{\r\n    margin:10px auto;\r\n    background-color:#1abc9c;\r\n    color:#ffffff;\r\n    border-radius:5px;\r\n    display: block !important;\r\n    max-height:none !important; \r\n    line-height:50px;\r\n    text-align:center;\r\n    vertical-align:middle;\r\n  }\r\n  #navbox:checked + #main .opener{\r\n    display:none;\r\n  }\r\n  #navbox:checked + #main .qmenu-cont{\r\n    display:block!important;\r\n  }\r\n}  \r\n&lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;!-- this NEEDS to be absolute so .articles-cont can be 100% screen, otherwise it will only populate half of the screen if relative??? ALSO android requires a parent with position absolute or relative or else it don't position elements absolutely --&gt;\r\n&lt;body style=\"position:absolute;top:0px;left:0px;\"&gt;\r\n&lt;div &gt;\r\n&lt;input id=\"navbox\" type=\"checkbox\" style=\"display:none!important;max-height:0;visibility:hidden;\"&gt;\r\n&lt;div id=\"main\" style=\"padding:20px;\"&gt;\r\n&lt;input id=\"a1radio\" name=\"qradio\" type=\"radio\" checked style=\"display:none!important;max-height:0;visibility:hidden;\"&gt;\r\n&lt;div&gt;\r\n&lt;input id=\"a2radio\" name=\"qradio\" type=\"radio\" style=\"display:none!important;max-height:0;visibility:hidden;\"&gt;\r\n&lt;div&gt;\r\n&lt;input id=\"a3radio\" name=\"qradio\" type=\"radio\" style=\"display:none!important;max-height:0;visibility:hidden;\"&gt;\r\n&lt;div&gt;\r\n&lt;h1&gt;Newsletter&lt;\/h1&gt;\r\n&lt;div style=\"dislay:block;width:350px;margin:0px auto;max-width:100%\"&gt;\r\n&lt;img src=\"http:\/\/placehold.it\/350x150\"&gt;\r\n&lt;\/div&gt;\r\n&lt;!--[if !mso 9]&gt;&lt;!--&gt;\r\n&lt;input id=\"cbox-capable\" type=\"checkbox\" style=\"display:none!important;max-height:0;visibility:hidden;\" checked&gt;\r\n&lt;label for=\"navbox\" class=\"opener\"&gt;\r\n&lt;div style=\"display:none;max-height:0px;overflow:hidden;\"&gt;Reader Mode&lt;\/div&gt;&lt;\/label&gt;\r\n&lt;div class=\"qmenu-cont\" style=\"display:none;max-height:0px;overflow:hidden;\"&gt;\r\n  &lt;label for=\"navbox\" class=\"closer\"&gt;x&lt;\/label&gt;\r\n  &lt;div class=\"nav-arrows\" id=\"a1nav\"&gt;\r\n     &lt;label&gt;&amp;nbsp;&lt;\/label&gt;&lt;label for=\"a2radio\"&gt;&amp;raquo;&lt;\/label&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class=\"nav-arrows\" id=\"a2nav\"&gt;\r\n     &lt;label for=\"a1radio\"&gt;&amp;laquo;&lt;\/label&gt;&lt;label for=\"a3radio\"&gt;&amp;raquo;&lt;\/label&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class=\"nav-arrows\" id=\"a3nav\"&gt;\r\n     &lt;label for=\"a2radio\"&gt;&amp;laquo;&lt;\/label&gt;&lt;label&gt;&amp;nbsp;&lt;\/label&gt;\r\n  &lt;\/div&gt;\r\n\r\n  &lt;a href=\"#\" class=\"qmenu\"&gt;Article Index...&lt;\/a&gt;\r\n  &lt;div class=\"qmenu-menu\" style=\"text-align:left;background-color:#C8DEFA;border:1px solid #888888;font-size:15px;\"&gt;\r\n      &lt;label id=\"a1label\" for=\"a1radio\"&gt;The 10 least expensive new cars to insure&lt;\/label&gt;&lt;BR&gt;\r\n      &lt;label id=\"a2label\" for=\"a2radio\"&gt;What Should Your College Major Have Been, Really?&lt;\/label&gt;&lt;BR&gt;\r\n      &lt;label id=\"a3label\" for=\"a3radio\"&gt;Fitness Trackers vs. Smartphones&lt;\/label&gt;&lt;BR&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;!--&lt;![endif]--&gt;\r\n&lt;BR&gt;\r\n&lt;div class=\"articles-cont\"&gt;\r\n  &lt;div class=\"articles\"&gt;\r\n    &lt;div class=\"art\" id=\"a1\"&gt;&lt;div&gt;\r\n    &lt;h2&gt;The 10 least expensive new cars to insure&lt;\/h2&gt;\r\n    Lorem ipsum dolor sit amet, consectetur adipiscing 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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;BR&gt;&lt;BR&gt;\r\n    Lorem ipsum dolor sit amet, consectetur adipiscing 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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;BR&gt;&lt;BR&gt;\r\n    &lt;HR&gt;&lt;BR&gt;&lt;BR&gt;\r\n    &lt;\/div&gt;&lt;\/div&gt;\r\n    &lt;div class=\"art\" id=\"a2\"&gt;&lt;div&gt;\r\n    &lt;h2&gt;What Should Your College Major Have Been, Really?&lt;\/h2&gt;\r\n    Lorem ipsum dolor sit amet, consectetur adipiscing 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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;BR&gt;&lt;BR&gt;\r\n    Lorem ipsum dolor sit amet, consectetur adipiscing 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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;BR&gt;&lt;BR&gt;\r\n    &lt;HR&gt;&lt;BR&gt;&lt;BR&gt;\r\n    &lt;\/div&gt;&lt;\/div&gt;\r\n    &lt;div class=\"art\" id=\"a3\"&gt;&lt;div&gt;\r\n    &lt;h2&gt;Fitness Trackers vs. Smartphones&lt;\/h2&gt;\r\n    Lorem ipsum dolor sit amet, consectetur adipiscing 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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;BR&gt;&lt;BR&gt;\r\n    Lorem ipsum dolor sit amet, consectetur adipiscing 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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;BR&gt;&lt;BR&gt;\r\n    &lt;HR&gt;&lt;BR&gt;&lt;BR&gt;\r\n    &lt;\/div&gt;&lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p><BR><\/p>\n<h4>Next steps<\/h4>\n<p>Next step is to get this working for Android clients though if their new Lollipop version gains traction, this may be moot as <a href=\"https:\/\/litmus.com\/community\/discussions\/764-google-just-killed-responsive-emails-on-android\" target=\"_blank\">Lollipop only comes with Gmail<\/a> and Gmail doesn&#8217;t support any of these techniques!<\/p>\n<p>I can see other uses for this, for example showing brief snippets in the regular layout but showing the full article or more of it when in reader mode. Another use might be to convert attachments into HTML and then encode them as hidden articles so recipients on clients that support modern HTML can read those attachments in the email itself!<\/p>\n<p>I haven&#8217;t done a ton of tests on this but feel free to experiment with this and let me know what you think!<\/p>\n<div style=\"padding:10px; border: 2px solid #99C731;background-color:#FFF8DC;border-radius:5px;\">\n<form action=\"https:\/\/freshinbox1.createsend.com\/t\/i\/s\/adrmi\/\" method=\"post\" id=\"subForm\">\n<span class=\"fisub_header\" style=\"font-weight:bold;\">Subscribe to the #EmailGeeks Newsletter<\/span>\n<p><input id=\"fieldEmail\" name=\"cm-adrmi-adrmi\" type=\"email\" style=\"width:90%\" required placeholder=\"Your Email Address\" \/><\/p>\n<p><button type=\"submit\">Subscribe<\/button><\/p>\n<\/form>\n<\/div>\n<style>\n#email-me-email {\n  width:170px;\n  height:20px;\n  margin-bottom: 5px;\n  background-color: #FAFCEF;\n  font-size: 14px;\n  padding: 3px 5px;\n  display:inline-block;\n  border-radius:3px;\n  margin-left:20px;\n}\n#email-me-btn {\n  cursor: pointer;\n  font-size: 14px;\n  color: white;\n  text-decoration:none;\n  text-shadow:#555555 0 1px;\n  background-color: #7DC442;\n  padding: 5px 12px;\n  border:1px solid #559621;\n  border-radius: 5px;\n  display:inline-block;\n}\n#email-me-btn:hover {\n  background-color: #78D62C;\n}\n#email-me{\n  width: 420px;\n  padding:20px;\n  xborder:3px solid #888888;\n  xborder-radius: 5px;\n  margin:0px auto;\n}\n<\/style>\n<p><script src=\"\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.10.2\/jquery.min.js\"><\/script><br \/>\n<script>\n  var theEmail = null;\n  $(document).ready(function(){\n    $('#email-me-btn').click(function(){\n      theEmail = $('#email-me-email').val();\n      sendEmail(theEmail);\n    });\n    $(\"#email-me-email\").keypress(function(e) {\n      if(e.which == 13) {\n        theEmail = $('#email-me-email').val();        \n        sendEmail(theEmail);\n      }\n    });\n  });\n  var sendEmail = function(emailAddr){\n    if(!emailAddr || emailAddr.length < 12){\n      alert('Please enter an email');\n      return;\n    }\n    $('#email-me-email').val('sending...');\n    $.ajax({\n      url: \"https:\/\/freshinbox.com\/examples\/reader\/mail_example.php\",\n      data: {\n        email: emailAddr\n      },\n      success: function( data ) {\n        if(data == null || data.indexOf(\"ERROR\") != -1){\n          alert(\"There was a problem sending the email \\n\"+data);\n        }else{\n          alert(\"An email has been sent to \"+emailAddr+\"!\\n (Be sure to check the spam folder just in case)\");          \n        }\n        $('#email-me-email').val('');\n      }\n    });\n  }\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s an experimental mobile email technique that allows you to paginate a content heavy email so readers can navigate from article to article without scrolling. I hacked it up over a few days as an entry to Litmus&#8217; Creative Navigation in Email Community Contest&#8230;<\/p>\n","protected":false},"author":2,"featured_media":1575,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[24,25],"tags":[],"_links":{"self":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/1537"}],"collection":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/comments?post=1537"}],"version-history":[{"count":51,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/1537\/revisions"}],"predecessor-version":[{"id":1577,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/1537\/revisions\/1577"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/media\/1575"}],"wp:attachment":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/media?parent=1537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/categories?post=1537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/tags?post=1537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}