Add state handler implementations and documentation
Some checks failed
CI/CD Pipeline / Test & Lint (16.x) (push) Has been cancelled
CI/CD Pipeline / Test & Lint (18.x) (push) Has been cancelled
CI/CD Pipeline / Test & Lint (20.x) (push) Has been cancelled
CI/CD Pipeline / Security Audit (push) Has been cancelled
CI/CD Pipeline / Release (push) Has been cancelled

- Implemented StateHandler class with methods for entering, exiting, and updating states.
- Created TypeStateHandler for handling typing state with appropriate animations and transitions.
- Developed WaitStateHandler for managing idle state with quirk animations.
- Added JSDoc documentation for all new classes and methods.
- Included CSS styles for documentation formatting and syntax highlighting.
This commit is contained in:
2025-05-24 12:31:01 +02:00
parent e217642174
commit f4e3d318ee
65 changed files with 27834 additions and 5 deletions

View File

@ -0,0 +1,25 @@
/* global document */
(() => {
const source = document.getElementsByClassName('prettyprint source linenums')
let i = 0
let lineNumber = 0
let lineId
let lines
let totalLines
let anchorHash
if (source && source[0]) {
anchorHash = document.location.hash.substring(1)
lines = source[0].getElementsByTagName('li')
totalLines = lines.length
for (; i < totalLines; i++) {
lineNumber++
lineId = `line${lineNumber}`
lines[i].id = lineId
if (lineId === anchorHash) {
lines[i].className += ' selected'
}
}
}
})()