{"id":466,"date":"2012-01-26T02:00:31","date_gmt":"2012-01-26T02:00:31","guid":{"rendered":"http:\/\/lairdharrison.com\/fallenlake\/?page_id=466"},"modified":"2012-01-26T06:31:10","modified_gmt":"2012-01-26T06:31:10","slug":"subscribe-2","status":"publish","type":"page","link":"https:\/\/lairdharrison.com\/fallenlake\/subscribe-2\/","title":{"rendered":"Subscribe"},"content":{"rendered":"<p><!-- Begin MailChimp Signup Form -->\n<link href=\"http:\/\/cdn-images.mailchimp.com\/embedcode\/classic-081711.css\" rel=\"stylesheet\" type=\"text\/css\">\n<style type=\"text\/css\">\n\t#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }\n\t\/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.\n\t   We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. *\/\n<\/style>\n<div id=\"mc_embed_signup\">\n<form action=\"http:\/\/lairdharrison.us1.list-manage.com\/subscribe\/post?u=6ae6b9429685aa68c42b17394&amp;id=7d3a9eec57\" method=\"post\" id=\"mc-embedded-subscribe-form\" name=\"mc-embedded-subscribe-form\" class=\"validate\" target=\"_blank\">\n<h2>Sign up to hear about blog posts and other news of Fallen Lake.<\/h2>\n<div class=\"indicates-required\"><span class=\"asterisk\">*<\/span> indicates required<\/div>\n<div class=\"mc-field-group\">\n\t<label for=\"mce-EMAIL\">Email Address  <span class=\"asterisk\">*<\/span><br \/>\n<\/label><br \/>\n\t<input type=\"email\" value=\"\" name=\"EMAIL\" class=\"required email\" id=\"mce-EMAIL\">\n<\/div>\n<div class=\"mc-field-group\">\n\t<label for=\"mce-FNAME\">First Name <\/label><br \/>\n\t<input type=\"text\" value=\"\" name=\"FNAME\" class=\"\" id=\"mce-FNAME\">\n<\/div>\n<div class=\"mc-field-group\">\n\t<label for=\"mce-LNAME\">Last Name <\/label><br \/>\n\t<input type=\"text\" value=\"\" name=\"LNAME\" class=\"\" id=\"mce-LNAME\">\n<\/div>\n<div id=\"mce-responses\" class=\"clear\">\n<div class=\"response\" id=\"mce-error-response\" style=\"display:none\"><\/div>\n<div class=\"response\" id=\"mce-success-response\" style=\"display:none\"><\/div>\n<\/p><\/div>\n<div class=\"clear\"><input type=\"submit\" value=\"Subscribe\" name=\"subscribe\" id=\"mc-embedded-subscribe\" class=\"button\"><\/div>\n<\/form>\n<\/div>\n<p><script type=\"text\/javascript\">\nvar fnames = new Array();var ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';fnames[2]='LNAME';ftypes[2]='text';\ntry {\n    var jqueryLoaded=jQuery;\n    jqueryLoaded=true;\n} catch(err) {\n    var jqueryLoaded=false;\n}\nvar head= document.getElementsByTagName('head')[0];\nif (!jqueryLoaded) {\n    var script = document.createElement('script');\n    script.type = 'text\/javascript';\n    script.src = 'http:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.4.4\/jquery.min.js';\n    head.appendChild(script);\n    if (script.readyState && script.onload!==null){\n        script.onreadystatechange= function () {\n              if (this.readyState == 'complete') mce_preload_check();\n        }    \n    }\n}\nvar script = document.createElement('script');\nscript.type = 'text\/javascript';\nscript.src = 'http:\/\/downloads.mailchimp.com\/js\/jquery.form-n-validate.js';\nhead.appendChild(script);\nvar err_style = '';\ntry{\n    err_style = mc_custom_error_style;\n} catch(e){\n    err_style = '#mc_embed_signup input.mce_inline_error{border-color:#6B0505;} #mc_embed_signup div.mce_inline_error{margin: 0 0 1em 0; padding: 5px 10px; background-color:#6B0505; font-weight: bold; z-index: 1; color:#fff;}';\n}\nvar head= document.getElementsByTagName('head')[0];\nvar style= document.createElement('style');\nstyle.type= 'text\/css';\nif (style.styleSheet) {\n  style.styleSheet.cssText = err_style;\n} else {\n  style.appendChild(document.createTextNode(err_style));\n}\nhead.appendChild(style);\nsetTimeout('mce_preload_check();', 250);<\/p>\n<p>var mce_preload_checks = 0;\nfunction mce_preload_check(){\n    if (mce_preload_checks>40) return;\n    mce_preload_checks++;\n    try {\n        var jqueryLoaded=jQuery;\n    } catch(err) {\n        setTimeout('mce_preload_check();', 250);\n        return;\n    }\n    try {\n        var validatorLoaded=jQuery(\"#fake-form\").validate({});\n    } catch(err) {\n        setTimeout('mce_preload_check();', 250);\n        return;\n    }\n    mce_init_form();\n}\nfunction mce_init_form(){\n    jQuery(document).ready( function($) {\n      var options = { errorClass: 'mce_inline_error', errorElement: 'div', onkeyup: function(){}, onfocusout:function(){}, onblur:function(){}  };\n      var mce_validator = $(\"#mc-embedded-subscribe-form\").validate(options);\n      $(\"#mc-embedded-subscribe-form\").unbind('submit');\/\/remove the validator so we can get into beforeSubmit on the ajaxform, which then calls the validator\n      options = { url: 'http:\/\/lairdharrison.us1.list-manage.com\/subscribe\/post-json?u=6ae6b9429685aa68c42b17394&id=7d3a9eec57&c=?', type: 'GET', dataType: 'json', contentType: \"application\/json; charset=utf-8\",\n                    beforeSubmit: function(){\n                        $('#mce_tmp_error_msg').remove();\n                        $('.datefield','#mc_embed_signup').each(\n                            function(){\n                                var txt = 'filled';\n                                var fields = new Array();\n                                var i = 0;\n                                $(':text', this).each(\n                                    function(){\n                                        fields[i] = this;\n                                        i++;\n                                    });\n                                $(':hidden', this).each(\n                                    function(){\n                                        var bday = false;\n                                        if (fields.length == 2){\n                                            bday = true;\n                                            fields[2] = {'value':1970};\/\/trick birthdays into having years\n                                        }\n                                    \tif ( fields[0].value=='MM' && fields[1].value=='DD' && (fields[2].value=='YYYY' || (bday && fields[2].value==1970) ) ){\n                                    \t\tthis.value = '';\n\t\t\t\t\t\t\t\t\t    } else if ( fields[0].value=='' && fields[1].value=='' && (fields[2].value=='' || (bday && fields[2].value==1970) ) ){\n                                    \t\tthis.value = '';\n\t\t\t\t\t\t\t\t\t    } else {\n\t                                        this.value = fields[0].value+'\/'+fields[1].value+'\/'+fields[2].value;\n\t                                    }\n                                    });\n                            });\n                        return mce_validator.form();\n                    }, \n                    success: mce_success_cb\n                };\n      $('#mc-embedded-subscribe-form').ajaxForm(options);<\/p>\n<p>    });\n}\nfunction mce_success_cb(resp){\n    $('#mce-success-response').hide();\n    $('#mce-error-response').hide();\n    if (resp.result==\"success\"){\n        $('#mce-'+resp.result+'-response').show();\n        $('#mce-'+resp.result+'-response').html(resp.msg);\n        $('#mc-embedded-subscribe-form').each(function(){\n            this.reset();\n    \t});\n    } else {\n        var index = -1;\n        var msg;\n        try {\n            var parts = resp.msg.split(' - ',2);\n            if (parts[1]==undefined){\n                msg = resp.msg;\n            } else {\n                i = parseInt(parts[0]);\n                if (i.toString() == parts[0]){\n                    index = parts[0];\n                    msg = parts[1];\n                } else {\n                    index = -1;\n                    msg = resp.msg;\n                }\n            }\n        } catch(e){\n            index = -1;\n            msg = resp.msg;\n        }\n        try{\n            if (index== -1){\n                $('#mce-'+resp.result+'-response').show();\n                $('#mce-'+resp.result+'-response').html(msg);            \n            } else {\n                err_id = 'mce_tmp_error_msg';\n                html = '<\/p>\n<div id=\"'+err_id+'\" style=\"'+err_style+'\"> '+msg+'<\/div>\n<p>';<\/p>\n<p>                var input_id = '#mc_embed_signup';\n                var f = $(input_id);\n                if (ftypes[index]=='address'){\n                    input_id = '#mce-'+fnames[index]+'-addr1';\n                    f = $(input_id).parent().parent().get(0);\n                } else if (ftypes[index]=='date'){\n                    input_id = '#mce-'+fnames[index]+'-month';\n                    f = $(input_id).parent().parent().get(0);\n                } else {\n                    input_id = '#mce-'+fnames[index];\n                    f = $().parent(input_id).get(0);\n                }\n                if (f){\n                    $(f).append(html);\n                    $(input_id).focus();\n                } else {\n                    $('#mce-'+resp.result+'-response').show();\n                    $('#mce-'+resp.result+'-response').html(msg);\n                }\n            }\n        } catch(e){\n            $('#mce-'+resp.result+'-response').show();\n            $('#mce-'+resp.result+'-response').html(msg);\n        }\n    }\n}<\/p>\n<p><\/script><br \/>\n<!--End mc_embed_signup--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sign up to hear about blog posts and other news of Fallen Lake. * indicates required Email Address * First Name Last Name<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-466","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lairdharrison.com\/fallenlake\/wp-json\/wp\/v2\/pages\/466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lairdharrison.com\/fallenlake\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lairdharrison.com\/fallenlake\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lairdharrison.com\/fallenlake\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lairdharrison.com\/fallenlake\/wp-json\/wp\/v2\/comments?post=466"}],"version-history":[{"count":7,"href":"https:\/\/lairdharrison.com\/fallenlake\/wp-json\/wp\/v2\/pages\/466\/revisions"}],"predecessor-version":[{"id":474,"href":"https:\/\/lairdharrison.com\/fallenlake\/wp-json\/wp\/v2\/pages\/466\/revisions\/474"}],"wp:attachment":[{"href":"https:\/\/lairdharrison.com\/fallenlake\/wp-json\/wp\/v2\/media?parent=466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}