Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="blog_subscription-2" class="et_pb_widget jetpack_subscription_widget"><h4 class="widgettitle">Subscribe to Blog via Email</h4>
- <form action="#" method="post" accept-charset="utf-8" id="subscribe-blog-blog_subscription-2">
- <div id="subscribe-text"><p>Enter your email address to subscribe to my blog and receive notifications of new posts by email.</p>
- </div> <p id="subscribe-email">
- <label id="jetpack-subscribe-label" for="subscribe-field-blog_subscription-2" style="clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden;">
- Email Address </label>
- <input type="email" name="email" required="required" class="required" value="" id="subscribe-field-blog_subscription-2" placeholder="Email Address">
- </p>
- <p id="subscribe-submit">
- <input type="hidden" name="action" value="subscribe">
- <input type="hidden" name="source" value="https://katyhood.com/my-creative-haven/">
- <input type="hidden" name="sub-type" value="widget">
- <input type="hidden" name="redirect_fragment" value="blog_subscription-2">
- <input type="submit" value="Subscribe" name="jetpack_subscriptions_widget">
- </p>
- </form>
- <script>
- /*
- Custom functionality for safari and IE
- */
- (function( d ) {
- // In case the placeholder functionality is available we remove labels
- if ( ( 'placeholder' in d.createElement( 'input' ) ) ) {
- var label = d.querySelector( 'label[for=subscribe-field-blog_subscription-2]' );
- label.style.clip = 'rect(1px, 1px, 1px, 1px)';
- label.style.position = 'absolute';
- label.style.height = '1px';
- label.style.width = '1px';
- label.style.overflow = 'hidden';
- }
- // Make sure the email value is filled in before allowing submit
- var form = d.getElementById('subscribe-blog-blog_subscription-2'),
- input = d.getElementById('subscribe-field-blog_subscription-2'),
- handler = function( event ) {
- if ( '' === input.value ) {
- input.focus();
- if ( event.preventDefault ){
- event.preventDefault();
- }
- return false;
- }
- };
- if ( window.addEventListener ) {
- form.addEventListener( 'submit', handler, false );
- } else {
- form.attachEvent( 'onsubmit', handler );
- }
- })( document );
- </script>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement