- function addGlobalPin (container, postURL, postTitle) {
- // build link
- var linkHTML = "<a class='global-pin' href='" + postURL + "'>" + postTitle + "</a>";
- var linkElement = document.createElement("span");
- linkElement.innerHTML = linkHTML;
- container.append(linkElement);
- }
- function buildGlobalPins () {
- if (checkTag("mjs-pin-to-right-sidebar")) {
- return;
- }
- var rightSidebar = document.querySelector(".sidebar--right .sidebar__content");
- if (!rightSidebar) {
- return;
- }
- var block = document.createElement("div");
- block.classList.add("block");
- block.classList.add("sidebar__block");
- block.classList.add("sidebar__right");
- block.classList.add("global-pins");
- block.innerHTML = "<div class='block__title'><h2>FAQ</h2></div>"
- blockInside = document.createElement("div");
- blockInside.classList.add("block__inside");
- addGlobalPin(blockInside, "/c/discussions/community-notifications-preferences", "Notifications Preferences 🔔");
- addGlobalPin(blockInside, "/c/discussions/how-to-get-featured-on-gumroad-discover", "Featuring on Discover 🔍");
- addGlobalPin(blockInside, "/c/product-updates/updated-getting-paid-by-gumroad", "Getting Paid 💲");
- block.append(blockInside);
- rightSidebar.prepend(block);
- }
- buildGlobalPins();
[text] Getting Paid fdp
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Editor
You can edit this paste and save as new:
File Description
- Getting Paid fdp
- Paste Code
- 17 Sep-2021
- 1.27 Kb
You can Share it:
Latest Code Pastes