Spaces:
Paused
Paused
Download bmc-loader.js from 2Btainment/node-red: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/spaces/2Btainment/node-red/resolve/main/bmc-loader.js
- Command line
-
hf download hf://spaces/2Btainment/node-red/bmc-loader.js
-
curl -L -o bmc-loader.js https://huggingface.co/spaces/2Btainment/node-red/resolve/main/bmc-loader.js
1.03 kB
| /** | |
| * 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(); | |
| } | |
| })(); | |