Spaces:
Paused
Paused
File size: 1,027 Bytes
b2d5d3a 07e9e9f b2d5d3a 07e9e9f b2d5d3a 07e9e9f b2d5d3a 07e9e9f b2d5d3a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | /**
* Buy Me a Coffee — plain static link (first-party, no third-party JS).
* The BMC widget/button scripts are NOT loaded (they use document.write and
* can wipe the page). This only appends one ordinary <a> element.
*/
(function () {
function addLink() {
if (document.querySelector("a.bmc-link")) return;
var a = document.createElement("a");
a.href = "https://www.buymeacoffee.com/2btainment";
a.target = "_blank";
a.rel = "noopener noreferrer";
a.className = "bmc-link";
a.textContent = "Buy me a coffee";
a.setAttribute(
"style",
"position:fixed;right:16px;bottom:16px;z-index:9999;background:#FFDD00;color:#000;" +
"padding:8px 14px;border-radius:999px;font:600 14px/1.2 system-ui,-apple-system,sans-serif;" +
"text-decoration:none;box-shadow:0 2px 8px rgba(0,0,0,.25)"
);
document.body.appendChild(a);
}
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", addLink);
} else {
addLink();
}
})();
|