1jQuery(document).ready(function($) { 2 3 $('body a').first().after('<button type="button" class="sbe-follow-trigger-sr sbe-screen-reader-text">Subscribe By Email</button>'); 4 5 $('button.sbe-follow-trigger-sr').click(function() { 6 $('#sbe-follow-wrap').removeAttr('inert').removeAttr('aria-hidden').focus(); 7 $('.sbe-follow-link').attr('aria-expanded', 'true'); 8 return false; 9 }); 10 11 $('button.sbe-follow-dialog-close-sr').click(function() { 12 $('button.sbe-follow-trigger-sr').focus(); 13 $('#sbe-follow-wrap').attr('aria-hidden', 'true').attr('inert', ''); 14 $('.sbe-follow-link').attr('aria-expanded', 'false'); 15 return false; 16 }); 17 18 var follow_box_main = $('#sbe-follow'); 19 20 var sbe_opened = false; 21 var follow_box = $('#sbe-follow-wrap'); 22 23 var follow_box_height = follow_box.outerHeight() + 2; 24 if ( follow_box.hasClass('sbe-opened') ) { 25 sbe_opened = true; 26 } 27 if($('.sbe-follow-subscribe-confirmation').length > 0) { 28 follow_box.addClass('sbe-opened'); 29 $('.sbe-follow-link').attr('aria-expanded', 'true').find('span').text('Close Subscribe Form'); 30 follow_box_main.animate({ 31 bottom: 0 32 }); 33// setTimeout(function() { 34 $('#sbe-follow-wrap').removeAttr('inert').removeAttr('aria-hidden').focus(); 35// }, 200); 36 sbe_opened = true; 37 } 38 if ( ! sbe_opened ) { 39 follow_box_main.animate({ 40 bottom: '-' + follow_box_height + 'px' 41 },2000); 42 } 43 $('.sbe-follow-link').click(function() { 44 if ( sbe_opened ) { 45 follow_box.removeClass('sbe-opened'); 46 $(this).attr('aria-expanded', 'false').find('span').text('Subscribe'); 47 follow_box_main.animate({ 48 bottom: '-' + follow_box_height + 'px' 49 }); 50 follow_box.attr('aria-hidden', 'true').attr('inert', ''); 51 sbe_opened = false; 52 } 53 else { 54 follow_box.removeAttr('inert').removeAttr('aria-hidden').addClass('sbe-opened').show(); 55 $('.sbe-follow-email').focus(); 56 $(this).attr('aria-expanded', 'true').find('span').text('Close Subscribe Form'); 57 follow_box_main.animate({ 58 bottom: 0 59 }); 60 sbe_opened = true; 61 } 62 return false; 63 }); 64 65 $('#subscribe-by-email-button-form').submit(function(event) { 66 event.preventDefault(); 67 68 var form = $(this); 69 70 grecaptcha.ready(function() { 71 grecaptcha.execute(sbe_button.recaptcha_v3_site_key, {action:'sbe'}).then(function(token) { 72 form.find('.g-recaptcha-response').val(token); 73 74 form.off('submit').submit(); 75 }); 76 }); 77 }); 78 79});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.