{"id":3694,"date":"2013-03-22T15:19:04","date_gmt":"2013-03-22T09:49:04","guid":{"rendered":"http:\/\/srinivasv.com\/?page_id=3694"},"modified":"2014-10-11T17:40:45","modified_gmt":"2014-10-11T12:10:45","slug":"stay-connected","status":"publish","type":"page","link":"https:\/\/srinivasv.com\/mapsofbecoming\/stay-connected\/","title":{"rendered":"Stay Connected"},"content":{"rendered":"<p><!-- Begin MailChimp Signup Form --><\/p>\n<div id=\"mc_embed_signup\">\n<form id=\"mc-embedded-subscribe-form\" class=\"validate\" action=\"http:\/\/srinivasv.us5.list-manage.com\/subscribe\/post?u=673cb7258a7b641fba50b56e4&amp;id=2fe1fa06f4\" method=\"post\" name=\"mc-embedded-subscribe-form\" novalidate=\"\" target=\"_blank\">\n<h2>Subscribe to our mailing list<\/h2>\n<p>Receive updates and special selections every fortnight.<br \/>\n(<a title=\"The Evolutionary Adventurer\" href=\"http:\/\/us5.campaign-archive1.com\/?u=673cb7258a7b641fba50b56e4&amp;id=f4a75ccaa3\" target=\"_blank\">an example<\/a>)<\/p>\n<div class=\"indicates-required\"><span class=\"asterisk\">*<\/span> indicates required<\/div>\n<div class=\"mc-field-group\"><label for=\"mce-EMAIL\">Email Address <span class=\"asterisk\">*<\/span><br \/>\n<\/label><br \/>\n<input id=\"mce-EMAIL\" class=\"required email\" name=\"EMAIL\" type=\"email\" value=\"\" \/><\/div>\n<div class=\"mc-field-group\"><label for=\"mce-FNAME\">First Name <\/label><br \/>\n<input id=\"mce-FNAME\" name=\"FNAME\" type=\"text\" value=\"\" \/><\/div>\n<div class=\"mc-field-group\"><label for=\"mce-LNAME\">Last Name <\/label><br \/>\n<input id=\"mce-LNAME\" name=\"LNAME\" type=\"text\" value=\"\" \/><\/div>\n<div id=\"mce-responses\" class=\"clear\"><\/div>\n<div class=\"clear\"><input id=\"mc-embedded-subscribe\" class=\"button\" name=\"subscribe\" type=\"submit\" value=\"Subscribe\" \/><\/div>\n<\/form>\n<\/div>\n<p><script>\/\/ <![CDATA[\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 &#038;&#038; 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);\n\nvar 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:\/\/srinivasv.us5.list-manage1.com\/subscribe\/post-json?u=673cb7258a7b641fba50b56e4&#038;id=2fe1fa06f4&#038;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' &#038;&#038; fields[1].value=='DD' &#038;&#038; (fields[2].value=='YYYY' || (bday &#038;&#038; fields[2].value==1970) ) ){\n                                    \t\tthis.value = '';\n\t\t\t\t\t\t\t\t\t    } else if ( fields[0].value=='' &#038;&#038; fields[1].value=='' &#038;&#038; (fields[2].value=='' || (bday &#038;&#038; 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                        return mce_validator.form();\n                    }, \n                    success: mce_success_cb\n                };\n      $('#mc-embedded-subscribe-form').ajaxForm(options);\n\n    });\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 = '\n\n\n\n<div id=\"'+err_id+'\" style=\"'+err_style+'\"> '+msg+'<\/div>\n\n\n\n\n';\n\n                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}\n\/\/ ]]><\/script><br \/>\n<!--End mc_embed_signup--><\/p>\n<p><span style=\"padding-left: 15px;\"><a href=\"http:\/\/srinivasv.us5.list-manage.com\/unsubscribe?u=673cb7258a7b641fba50b56e4&amp;id=2fe1fa06f4\">Unsubscribe<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Subscribe to our mailing list Receive updates and special selections every fortnight. (an example) * indicates required Email Address * First Name Last Name Unsubscribe<\/p>\n","protected":false},"author":6,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/srinivasv.com\/mapsofbecoming\/wp-json\/wp\/v2\/pages\/3694"}],"collection":[{"href":"https:\/\/srinivasv.com\/mapsofbecoming\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/srinivasv.com\/mapsofbecoming\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/srinivasv.com\/mapsofbecoming\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/srinivasv.com\/mapsofbecoming\/wp-json\/wp\/v2\/comments?post=3694"}],"version-history":[{"count":0,"href":"https:\/\/srinivasv.com\/mapsofbecoming\/wp-json\/wp\/v2\/pages\/3694\/revisions"}],"wp:attachment":[{"href":"https:\/\/srinivasv.com\/mapsofbecoming\/wp-json\/wp\/v2\/media?parent=3694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}