← Back
Editing: view.js
(()=>{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(s){const n=t[s];if(void 0!==n)return n.exports;const r=t[s]={exports:{}};return e[s](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 s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},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 s;const n={};function r(e){return"string"!=typeof n[e]&&(n[e]=`wpcom${e}-${Math.random().toString(36).slice(2)}`),n[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 n;if(t&&t.classList.contains(`share-${o}`)&&("mail"!==o&&"wordpress"!==o))if(e.preventDefault(),e.stopPropagation(),"share"!==o)"print"!==o?(s&&s.close(),s=window.open(t.getAttribute("href"),r(o),"menubar=1,resizable=1,width=600,height=400"),s&&s.focus()):window.print();else if(t?.href&&(n={url:t.href},navigator&&"function"==typeof navigator.share&&"function"==typeof navigator.canShare&&navigator.canShare(n)))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)}})})})()})();
Save File
Cancel