Adding buttons to market

This commit is contained in:
metacryst
2025-11-06 02:22:44 -06:00
parent 8a8fb7f4b1
commit cb526b5ec0
5 changed files with 54 additions and 31 deletions

View File

@@ -1,3 +1,10 @@
/*
Sam Russell
Captured Sun
11.6.25 - adding default value for "button()" "children" parameter
10.29.25 - adding "gap()" and "label()" functions
*/
/* $ NAVIGATION */
let oldPushState = history.pushState;
history.pushState = function pushState() {
@@ -601,7 +608,7 @@ window.span = function (innerText) {
return el
}
window.button = function (children) {
window.button = function (children = "") {
let el = document.createElement("button")
quill.setChildren(el, children)
quill.render(el)