{"id":85,"date":"2013-12-03T01:00:22","date_gmt":"2013-12-03T01:00:22","guid":{"rendered":"http:\/\/karelhendee.com\/freerangestringband\/?page_id=85"},"modified":"2013-12-03T01:14:52","modified_gmt":"2013-12-03T01:14:52","slug":"subscribe-to-email-newsletter","status":"publish","type":"page","link":"https:\/\/karelhendee.com\/freerangestringband\/subscribe-to-email-newsletter\/","title":{"rendered":"Subscribe to email newsletter"},"content":{"rendered":"<p>Sign up to our email list to be notified of upcoming performances!<\/p>\n<p><!-- Begin MailChimp Signup Form -->\n<link href=\"\/\/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:\/\/karelhendee.us3.list-manage1.com\/subscribe\/post?u=19e597fca139d6fef8008dcd0&amp;id=ede923f8e4\" method=\"post\" id=\"mc-embedded-subscribe-form\" name=\"mc-embedded-subscribe-form\" class=\"validate\" target=\"_blank\" novalidate>\n<h2>Subscribe to our mailing list<\/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 class=\"mc-field-group input-group\">\n    <strong>Email Format <\/strong><\/p>\n<ul>\n<li><input type=\"radio\" value=\"html\" name=\"EMAILTYPE\" id=\"mce-EMAILTYPE-0\"><label for=\"mce-EMAILTYPE-0\">html<\/label><\/li>\n<li><input type=\"radio\" value=\"text\" name=\"EMAILTYPE\" id=\"mce-EMAILTYPE-1\"><label for=\"mce-EMAILTYPE-1\">text<\/label><\/li>\n<\/ul>\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<p>    <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups--><\/p>\n<div style=\"position: absolute; left: -5000px;\"><input type=\"text\" name=\"b_19e597fca139d6fef8008dcd0_ede923f8e4\" value=\"\"><\/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 = '\/\/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}<\/p>\n<p>var 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    var script = document.createElement('script');\n    script.type = 'text\/javascript';\n    script.src = 'http:\/\/downloads.mailchimp.com\/js\/jquery.form-n-validate.js';\n    head.appendChild(script);\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:\/\/karelhendee.us3.list-manage.com\/subscribe\/post-json?u=19e597fca139d6fef8008dcd0&id=ede923f8e4&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\t\t\t\t\t\t\t\t        if (\/\\[day\\]\/.test(fields[0].name)){\n    \t                                        this.value = fields[1].value+'\/'+fields[0].value+'\/'+fields[2].value;\t\t\t\t\t\t\t\t\t        \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\t                                    }\n                                    });\n                            });\n                        $('.phonefield-us','#mc_embed_signup').each(\n                            function(){\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                                        if ( fields[0].value.length != 3 || fields[1].value.length!=3 || fields[2].value.length!=4 ){\n                                    \t\tthis.value = '';\n\t\t\t\t\t\t\t\t\t    } else {\n\t\t\t\t\t\t\t\t\t        this.value = 'filled';\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 our email list to be notified of upcoming performances! Subscribe to our mailing list * indicates required Email Address * First Name Last Name Email Format html text<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-85","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/karelhendee.com\/freerangestringband\/wp-json\/wp\/v2\/pages\/85","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/karelhendee.com\/freerangestringband\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/karelhendee.com\/freerangestringband\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/karelhendee.com\/freerangestringband\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/karelhendee.com\/freerangestringband\/wp-json\/wp\/v2\/comments?post=85"}],"version-history":[{"count":2,"href":"https:\/\/karelhendee.com\/freerangestringband\/wp-json\/wp\/v2\/pages\/85\/revisions"}],"predecessor-version":[{"id":88,"href":"https:\/\/karelhendee.com\/freerangestringband\/wp-json\/wp\/v2\/pages\/85\/revisions\/88"}],"wp:attachment":[{"href":"https:\/\/karelhendee.com\/freerangestringband\/wp-json\/wp\/v2\/media?parent=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}