Manage subscriptions

You can follow the discussion on https://jonsview.com/text-mining-wikipedia-for-misspelled-words>Text Mining Wikipedia for Misspelled Words without having to leave a comment. Cool, huh? Just enter your email address in the form below and you’re all set.

<form action="/comment-subscriptions?srp=1272&#038;srk=d1984d545b47c9894af24344927cc492&#038;sra=s&#038;srsrc=f" method="post" name="sub-form">
    <fieldset style="border:0">
        <div>
            <label for="sre">Email</label>
            <input id='sre' type="text" class="subscribe-form-field" name="sre" value="email" size="22" />
            <input name="submit" type="submit" class="subscribe-form-button" value="Send" />
            <p class="notice-email-error" style='color: #f55252;font-weight:bold; display: none;'></p>
        </div>
    </fieldset>
</form>
<script type="text/javascript">
( function($){
    $(document).ready(function($){

        var stcr_request_form = $('form[name="sub-form"]');
        var email_input       = $('form[name="sub-form"] input[name="sre"]');           

        stcr_request_form.on('submit',function (event) {
            var emailRegex   = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
            var email = $('input[name="sre"]');

            if( email.val() !== "email" && email.val() === "" ) {
                event.preventDefault();
                $(".notice-email-error").html("<i class=\"fa fa-exclamation-triangle\"></i> Please enter your email").show().delay(4000).fadeOut(1000);
            } else if( emailRegex.test( email.val() ) === false ) {
                event.preventDefault();
                $(".notice-email-error").html("<i class=\"fa fa-exclamation-triangle\"></i> Email address is not valid").show().delay(4000).fadeOut(1000);
            }
        });

        email_input.focus(function(){
            if( $(this).val() == "email" ) {
                $(this).val("");
            }
        });

        email_input.blur(function(){
            if( $(this).val() == "" ) {
                $(this).val("email");
            }
        });
    });
} )( jQuery );