summaryrefslogtreecommitdiff
path: root/web/static/dartboat.js
Commit message (Collapse)AuthorAgeFilesLines
* web: display darts for comp as player 1David Vazgenovich Shakaryan2022-05-191-0/+9
|
* web: overlay virtual keyboard on chromeDavid Vazgenovich Shakaryan2022-05-161-0/+3
| | | | | | This prevents everything from getting resized when an input field is focused. Ideally we'd make the page scrollable when the keyboard appears, but the inputs are all at the top so it's not crucial.
* web: support ending ongoing match; ui/colour tweaksDavid Vazgenovich Shakaryan2022-05-161-0/+1
| | | | | | Ending a match while the computer is throwing currently results in data being written to the prompt because any scheduled C calls are not being cleared yet.
* web: disable back button when installed as a PWADavid Vazgenovich Shakaryan2022-05-131-0/+13
|
* web: support installing as progressive web app™David Vazgenovich Shakaryan2022-05-121-0/+3
|
* web: add prettier iconsDavid Vazgenovich Shakaryan2022-05-111-1/+1
| | | | | | | The icons come from the lovely people at Bootstrap, who've shared them under a permissive licence. To avoid loading a large file consisting almost entirely of icons we'll never display, I've generated the icon font myself, limiting it to only the glyphs we use.
* web: bloody chromium…David Vazgenovich Shakaryan2022-05-101-3/+4
|
* web: add exit dialogue while match is activeDavid Vazgenovich Shakaryan2022-05-101-0/+11
|
* web: ui improvements, mainly for mobileDavid Vazgenovich Shakaryan2022-05-101-2/+3
| | | | | | | | Using a `100vh' height results in the bottom bit of the UI being cropped until scrolling down, while using `100%' results in the address bar always wasting space. By combining these with a fixed-position element, we're able to have the UI grow and shrink as the address bar visibility changes.
* web: add support for child DOM elements and text nodesDavid Vazgenovich Shakaryan2022-05-091-11/+29
|
* web: dynamically generate (list-mode) keypad keysDavid Vazgenovich Shakaryan2022-05-091-3/+6
| | | | | This is currently only for match mode selection, but we'll reuse it to implement more menus.
* web: remember layout settingDavid Vazgenovich Shakaryan2022-05-071-2/+6
|
* web: allow controls side to be chosen by userDavid Vazgenovich Shakaryan2022-05-071-2/+9
|
* formattingDavid Vazgenovich Shakaryan2022-05-041-7/+14
|
* web: move opt logic to cDavid Vazgenovich Shakaryan2022-05-041-14/+8
|
* web: oi from cDavid Vazgenovich Shakaryan2022-05-031-17/+1
|
* web: use generic JS function for updating opt elemsDavid Vazgenovich Shakaryan2022-05-031-14/+10
|
* web: reuse elem array appending for drawing visitsDavid Vazgenovich Shakaryan2022-05-031-23/+11
|
* web: bloody JS scope…David Vazgenovich Shakaryan2022-05-031-1/+1
|
* web: more use of generic JS functionsDavid Vazgenovich Shakaryan2022-05-031-19/+7
|
* web: use generic JS functions for manipulating DOMDavid Vazgenovich Shakaryan2022-05-031-62/+24
|
* web: buffer and flush promptDavid Vazgenovich Shakaryan2022-05-031-9/+9
|
* web: more renamingDavid Vazgenovich Shakaryan2022-05-021-2/+2
|
* web: buffer player info and flush on state changeDavid Vazgenovich Shakaryan2022-05-021-3/+3
| | | | | Constant calls from Wasm to JS to replace unchanged elements in the DOM is not very efficient.
* web: clean up svg generation codeDavid Vazgenovich Shakaryan2022-04-291-23/+3
|
* web: javascript needs more pointersDavid Vazgenovich Shakaryan2022-04-291-0/+24
|
* web: less javascript, more cDavid Vazgenovich Shakaryan2022-04-281-0/+24
|
* web: the bot should have his own dartboardDavid Vazgenovich Shakaryan2022-04-281-18/+19
|
* web: use technical terminologyDavid Vazgenovich Shakaryan2022-04-271-1/+1
|
* web: no need to expose horizontal and vertical stdevs individuallyDavid Vazgenovich Shakaryan2022-04-271-4/+2
|
* web: use targeted event listenersDavid Vazgenovich Shakaryan2022-04-271-29/+22
|
* web: use short alias for selectors; make key label function genericDavid Vazgenovich Shakaryan2022-04-271-49/+42
|
* web: let's use our new functionDavid Vazgenovich Shakaryan2022-04-271-15/+11
|
* web: malloc c strings explicitly; pass null pointer when emptyDavid Vazgenovich Shakaryan2022-04-271-1/+13
|
* web: move some memory management to c; use ccall wrapper lessDavid Vazgenovich Shakaryan2022-04-271-14/+6
|
* web: handle race condition on loadDavid Vazgenovich Shakaryan2022-04-271-0/+8
| | | | | This is incredibly unlikely to ever matter unless your browser is a potato.
* web: rid HTML of inline JSDavid Vazgenovich Shakaryan2022-04-261-6/+21
| | | | | Maybe I'll change this to use targeted event listeners when I'm not lazy.
* web: expand on help textDavid Vazgenovich Shakaryan2022-04-261-4/+0
|
* web: prevent player info boxes flashing on loadDavid Vazgenovich Shakaryan2022-04-261-11/+7
|
* web: round away floating-point nonsenseDavid Vazgenovich Shakaryan2022-04-261-1/+2
|
* web: support quick rematch, fix checkout pointsDavid Vazgenovich Shakaryan2022-04-261-19/+30
|
* web: rewrite prompt handlers in cDavid Vazgenovich Shakaryan2022-04-261-108/+27
|
* web: more cleanupDavid Vazgenovich Shakaryan2022-04-251-2/+2
|
* web: use a common function to determine the next actionDavid Vazgenovich Shakaryan2022-04-251-4/+4
|
* web: better separate match control and display logicDavid Vazgenovich Shakaryan2022-04-251-4/+4
|
* web: refactor parts of c codeDavid Vazgenovich Shakaryan2022-04-241-1/+1
|
* web: enforce double out; hide suggested for bot; ui updatesDavid Vazgenovich Shakaryan2022-04-241-48/+50
|
* web: change coloursDavid Vazgenovich Shakaryan2022-04-241-1/+1
|
* web: make active prompt more prominentDavid Vazgenovich Shakaryan2022-04-241-0/+2
|
* web: minor style updatesDavid Vazgenovich Shakaryan2022-04-241-4/+8
|