# callbacks


<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

## Audio Config

Web Audio API manager configuration for the review instance (all
features enabled).

## Auto-Play Toggle JS

Named function for the `A` key `KeyAction` — toggles auto-navigate
state, syncs the checkbox, and swaps `bg-error`/`bg-success` color
classes.

## Combined Callbacks Script

Wraps the card stack library’s JS generator with Web Audio API focus
change callback from `cjm-fasthtml-web-audio`.

------------------------------------------------------------------------

### generate_review_callbacks_script

``` python

def generate_review_callbacks_script(
    ids:CardStackHtmlIds, # Card stack HTML IDs
    button_ids:CardStackButtonIds, # Card stack button IDs
    config:CardStackConfig, # Card stack configuration
    urls:CardStackUrls, # Card stack URL bundle
    container_id:str, # ID of the review container (parent of card stack)
    focus_input_id:str, # ID of hidden input for focused segment index
)->any: # Script element with all JavaScript callbacks

```

*Generate JavaScript for review card stack with Web Audio API audition.*
