Manage subscriptions
You can follow the discussion on Top 1% now own half the world’s wealth without having to leave a comment. Cool, huh? Just enter your email address in the form here below and you’re all set.
Manage subscriptionshttp://www.gizbeat.com/http://www.gizbeat.com/?page_id=9999999/You can follow the discussion on Top 1% now own half the world's wealth without having to leave a comment. Cool, huh? Just enter your email address in the form here below and you're all set.
...
<p>You can follow the discussion on <strong>Top 1% now own half the world's wealth</strong> without having to leave a comment. Cool, huh? Just enter your email address in the form here below and you're all set.</p> <form action="/comment-subscriptions/?srp=12761&srk=fd5a7374c0fc847a575bcacf142c3b0d&sra=s&srsrc=f"
method="post" name="sub-form">
<fieldset style="border:0">
<p><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>
</p>
</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"]');
/**
* Validate the email address.
* @since 09-Sep-2016
* @author reedyseth
*/
stcr_request_form.on('submit',function (event) {
var emailRegex = /^(([^<>()\[\]\\.,;:\[email protected]"]+(\.[^<>()\[\]\\.,;:\[email protected]"]+)*)|(".+"))@((\[[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 );
</script>
UserGizBeat