Blueprint Not Copying Correctly
Posted: Wed Dec 04, 2024 1:29 pm
Code: Select all
0eNptUdtuwyAM/Rc/0yohl5X8SjUhwmhmjeAISLuqyr/PpJO2h74Y25hzjg8PGP3qloghw/AAtBQSDOcHJJyC8aUXzOxggGjQwyYAw4f7hqHexIsha+JEh5uZKPybldu7ABcyZnRP9L2467DOo4sMJl4BCFgo8RtOmYFxDrVUAu6cyFoeq6pRVS+7rWCb0TvtacKU0SZ9+0SuZ7pimGC4GJ+cAIrIvOYJWAmwtNy1JU9RXyLNOvOKQadMCww5rq5M8GUhf2qc9jju0TDEsVUnFiHrjo+67ZteNlXbn966ffcrs1FkuWH1vljA0PaLGUNwtqj4dbp0i6E8gdnN7MLfnwi4uph2xV0vVatU1yp56ttq234AdraQ/Q== Copy blueprint var button = document.currentScript.previousElementSibling; button.id = button.id + '_' + Math.random().toString(36).substr(2, 9); button.addEventListener("click", function (event) { var copyTarget = document.createElement("input"); bptext = this.previousElementSibling.innerHTML.replace(/(]+)>)/gi, ""); copyTarget.setAttribute("value", bptext); document.body.appendChild(copyTarget); copyTarget.select(); document.execCommand("copy"); document.body.removeChild(copyTarget); return false; });
Ahah you're right, there was no slash! Thanksboskid wrote: Wed Dec 04, 2024 1:31 pm It looks like some weird artifact of using opening bp tag to close bp section.