document.addEventListener("DOMContentLoaded", function(){ window.addEventListener( 'load', function() { UAGBButtonChild.init( '.uagb-block-0624e020' ); }); window.addEventListener( 'load', function() { UAGBButtonChild.init( '.uagb-block-6b2d53f9' ); }); window.addEventListener( 'load', function() { UAGBButtonChild.init( '.uagb-block-9abc41a2' ); }); var ssLinksParent = document.querySelector( '.uagb-block-4b5dedd1' ); ssLinksParent?.addEventListener( 'keyup', function ( e ) { var link = e.target.closest( '.uagb-ss__link' ); if ( link && e.keyCode === 13 ) { handleSocialLinkClick( link ); } }); ssLinksParent?.addEventListener( 'click', function ( e ) { var link = e.target.closest( '.uagb-ss__link' ); if ( link ) { handleSocialLinkClick( link ); } }); function handleSocialLinkClick( link ) { var social_url = link.dataset.href; var target = ""; if ( social_url == "mailto:?body=" ) { target = "_self"; } var request_url = ""; if ( social_url.indexOf("/pin/create/link/?url=") !== -1 ) { request_url = social_url + encodeURIComponent( window.location.href ) + "&media=" + ''; } else { request_url = social_url + encodeURIComponent( window.location.href ); } window.open( request_url, target ); } var ssLinksParent = document.querySelector( '.uagb-block-9733da23' ); ssLinksParent?.addEventListener( 'keyup', function ( e ) { var link = e.target.closest( '.uagb-ss__link' ); if ( link && e.keyCode === 13 ) { handleSocialLinkClick( link ); } }); ssLinksParent?.addEventListener( 'click', function ( e ) { var link = e.target.closest( '.uagb-ss__link' ); if ( link ) { handleSocialLinkClick( link ); } }); function handleSocialLinkClick( link ) { var social_url = link.dataset.href; var target = ""; if ( social_url == "mailto:?body=" ) { target = "_self"; } var request_url = ""; if ( social_url.indexOf("/pin/create/link/?url=") !== -1 ) { request_url = social_url + encodeURIComponent( window.location.href ) + "&media=" + ''; } else { request_url = social_url + encodeURIComponent( window.location.href ); } window.open( request_url, target ); } var ssLinksParent = document.querySelector( '.uagb-block-41b93cd7' ); ssLinksParent?.addEventListener( 'keyup', function ( e ) { var link = e.target.closest( '.uagb-ss__link' ); if ( link && e.keyCode === 13 ) { handleSocialLinkClick( link ); } }); ssLinksParent?.addEventListener( 'click', function ( e ) { var link = e.target.closest( '.uagb-ss__link' ); if ( link ) { handleSocialLinkClick( link ); } }); function handleSocialLinkClick( link ) { var social_url = link.dataset.href; var target = ""; if ( social_url == "mailto:?body=" ) { target = "_self"; } var request_url = ""; if ( social_url.indexOf("/pin/create/link/?url=") !== -1 ) { request_url = social_url + encodeURIComponent( window.location.href ) + "&media=" + ''; } else { request_url = social_url + encodeURIComponent( window.location.href ); } window.open( request_url, target ); } window.addEventListener("DOMContentLoaded", function(){ UAGBForms.init( {"block_id":"d276cdda","reCaptchaEnable":false,"reCaptchaType":"v2","reCaptchaSiteKeyV2":"","reCaptchaSiteKeyV3":"","afterSubmitToEmail":"abc@gmail.com","afterSubmitCcEmail":"","afterSubmitBccEmail":"","afterSubmitEmailSubject":"Form Submission","sendAfterSubmitEmail":true,"confirmationType":"message","hidereCaptchaBatch":false,"captchaMessage":"Please fill up the above captcha.","confirmationUrl":""}, '.uagb-block-d276cdda', 653 ); }); });