{"version":3,"file":"single.js","sources":["single.js"],"sourcesContent":["$(document).ready(function () {\n // Email share button\n $(\".share-email-button\").on(\"click\", function (e) {\n e.preventDefault();\n\n var subject = \"Hey! Check out this new post on lumosfiber.com\";\n var body =\n \"Hey! Check out this new post on lumosfiber.com: \" + window.location.href;\n window.location.href =\n \"mailto:?subject=\" +\n encodeURIComponent(subject) +\n \"&body=\" +\n encodeURIComponent(body);\n });\n\n // Copy to clipboard button\n $(\".share-copy-button\").on(\"click\", function (e) {\n e.preventDefault();\n\n navigator.clipboard.writeText(window.location.href).then(\n function () {\n // Show the alert and then fade it out\n var $alert = $(this).siblings(\".alert\");\n $alert.removeClass(\"d-none\").addClass(\"show\");\n setTimeout(function () {\n $alert.fadeOut(300, function () {\n $alert.addClass(\"d-none\").removeClass(\"show\").css(\"display\", \"\"); // reset the display property after fadeOut\n });\n }, 3000);\n }.bind(this),\n function (err) {\n console.error(\"Failed to copy text: \", err);\n }\n );\n });\n});\n"],"names":["$","document","ready","on","e","preventDefault","body","window","location","href","encodeURIComponent","navigator","clipboard","writeText","then","$alert","this","siblings","removeClass","addClass","setTimeout","fadeOut","css","bind","err"],"mappings":"AAAAA,EAAEC,QAAQ,EAAEC,MAAM,WAEhBF,EAAE,qBAAqB,EAAEG,GAAG,QAAS,SAAUC,GAC7CA,EAAEC,eAAe,EAGbC,EACF,mDAAqDC,OAAOC,SAASC,KACvEF,OAAOC,SAASC,KACd,mBACAC,mBALY,gDAKc,EAC1B,SACAA,mBAAmBJ,CAAI,CAC3B,CAAC,EAGDN,EAAE,oBAAoB,EAAEG,GAAG,QAAS,SAAUC,GAC5CA,EAAEC,eAAe,EAEjBM,UAAUC,UAAUC,UAAUN,OAAOC,SAASC,IAAI,EAAEK,KAClD,WAEE,IAAIC,EAASf,EAAEgB,IAAI,EAAEC,SAAS,QAAQ,EACtCF,EAAOG,YAAY,QAAQ,EAAEC,SAAS,MAAM,EAC5CC,WAAW,WACTL,EAAOM,QAAQ,IAAK,WAClBN,EAAOI,SAAS,QAAQ,EAAED,YAAY,MAAM,EAAEI,IAAI,UAAW,EAAE,CACjE,CAAC,CACH,EAAG,GAAI,CACT,EAAEC,KAAKP,IAAI,EACX,SAAUQ,IAGZ,CACF,CAAC,CACH,CAAC"}