Ability to post in Forum
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
Sam Russell
|
||||
Captured Sun
|
||||
11.24.25 - Fixing onClick because it was reversed, adding event to onHover params
|
||||
11.23.25 - Added onSubmit() event for form submission, added marginHorizontal() and marginVertical()
|
||||
11.20.25 - Added "pct" style unit, added alignVertical and alignHorizontal for flex boxes
|
||||
11.19.25 - Allowing for "auto" values in otherwise numeric styles, adding vmin and vmax units
|
||||
@@ -496,7 +497,6 @@ HTMLElement.prototype.alignVertical = function (value) {
|
||||
}
|
||||
|
||||
if (direction === "column" || direction === "column-reverse") {
|
||||
console.log("using justify")
|
||||
this.style.justifyContent = value;
|
||||
} else {
|
||||
this.style.alignItems = value;
|
||||
@@ -824,8 +824,8 @@ HTMLElement.prototype.onAppear = function(func) {
|
||||
};
|
||||
|
||||
HTMLElement.prototype.onClick = function(func) {
|
||||
const onMouseDown = () => func.call(this, true);
|
||||
const onMouseUp = () => func.call(this, false);
|
||||
const onMouseDown = () => func.call(this, false);
|
||||
const onMouseUp = () => func.call(this, true);
|
||||
this._storeListener("mousedown", onMouseDown);
|
||||
this._storeListener("mouseup", onMouseUp);
|
||||
return this;
|
||||
@@ -847,8 +847,8 @@ HTMLElement.prototype.onRightClick = function(func) {
|
||||
};
|
||||
|
||||
HTMLElement.prototype.onHover = function(cb) {
|
||||
const onEnter = () => cb.call(this, true);
|
||||
const onLeave = () => cb.call(this, false);
|
||||
const onEnter = (e) => cb.call(this, true, e);
|
||||
const onLeave = (e) => cb.call(this, false, e);
|
||||
this._storeListener("mouseover", onEnter);
|
||||
this._storeListener("mouseleave", onLeave);
|
||||
return this;
|
||||
|
||||
8
ui/_/code/zod.js
Normal file
8
ui/_/code/zod.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user