PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-beta
Jetpack – WP Security, Backup, Speed, & Growth v16.3-beta
16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 All 507 releases
jetpack / _inc / blocks / sharing-buttons / view.js

view.js in Jetpack – WP Security, Backup, Speed, & Growth 16.3-beta, at _inc/blocks/sharing-buttons/view.js

1 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (()=>{var e={5971(){},79366(e,t,o){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(o.p=window.Jetpack_Block_Assets_Base_Url)},98490(e){"use strict";e.exports=window.wp.domReady}};const t={};function o(n){const s=t[n];if(void 0!==s)return s.exports;const r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}o.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.hasOwn(e,t),(()=>{"use strict";o(79366)})(),(()=>{"use strict";var e=o(98490),t=o.n(e);o(5971);let n;const s={};function r(e){return"string"!=typeof s[e]&&(s[e]=`wpcom${e}-${Math.random().toString(36).slice(2)}`),s[e]}"undefined"!=typeof window&&t()(()=>{const e=document.getElementsByClassName("wp-block-jetpack-sharing-buttons");for(const t of e)t.addEventListener("click",e=>{const t=e.target.closest("a"),o=t?.dataset?.service;var s;if(t&&t.classList.contains(`share-${o}`)&&"mail"!==o)if(e.preventDefault(),e.stopPropagation(),"share"!==o)"print"!==o?(n&&n.close(),n=window.open(t.getAttribute("href"),r(o),"menubar=1,resizable=1,width=600,height=400"),n&&n.focus()):window.print();else if(t?.href&&(s={url:t.href},navigator&&"function"==typeof navigator.share&&"function"==typeof navigator.canShare&&navigator.canShare(s)))navigator.share({url:t.href});else{const[e]=t.getElementsByClassName("tooltiptext");e&&e.style&&(e.style.display="initial",setTimeout(()=>{e.style.display="none"},2e3)),navigator?.clipboard?.writeText(t.href)}})})})()})();