Merge pull request #1 from nguyricky/patch-1

Added Button shape for Sidebar
This commit is contained in:
Sam Russell
2024-04-29 12:34:48 -05:00
committed by GitHub

View File

@@ -604,6 +604,20 @@ window.Triangle = function() {
return div
}
window.Button = function(content = "") {
let div = document.createElement("div");
div.innerHTML = content;
div.style.color = "white";
div.style.textAlign = "center";
div.style.display = "flex";
div.style.alignItems = "center";
div.style.justifyContent = "center";
div.style.cursor = "pointer";
Registry.render(div);
return div;
}
/* PROTOTYPE FUNCTIONS */
Array.prototype.last = function() {