User:Ajhg/common.js: Revision history

From Makerpedia

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

24 March 2025

23 March 2025

22 March 2025

  • curprev 22:3122:31, 22 March 2025Ajhg talk contribs 3,686 bytes +3,686 Created page with "class MuseElement extends HTMLElement { constructor() { super(); } makeTransitionState (stateName, loseName) { var _this = this; var capFirst = (string)=>string.charAt(0).toUpperCase() + string.slice(1); var capped = capFirst(stateName); if (typeof _this[stateName] != 'undefined') var oldState = _this[stateName]; var lost = `${capped}_state_lost`; var lose = (loseName) ? `on${capFirst(loseName)}` : `onLose${capped}`; var got = `..."