<commit_before># a11yfy

Accessibilyfy Library Functions - Make your jQuery site accessible

## core

The core of the a11yfy library provides some utilitu functions for use a11y as well as for sharing common functionality across a11yfy utilities themselves

### jQuery(selector).a11yfy

Execute an accessibility core function on the element(s) targeted by the jQuery selector

#### Synopsis

    jQuery(selector).a11yfy(method, arguments)

#### Parameters

1. method - a String specifying which method to execute on the element(s)
2. arguments - optional set of arguments to be passed to the method

#### Methods

##### focus

focus the selected element(s) in a way that will work on all platforms

##### Synopsis

    jQuery(selector).a11yfy("focus");

##### Example

    jQuery("#confirm_button_1").a11yfy("focus");

##### showAndFocus

Show the targeted element and then set focus to the element (normally within it, but this is not enforced) identified by the first argument

##### Synopsis

    jQuery(selector).a11yfy("showAndFocus", selector);<commit_msg>Additional documentation tweaks for focus functions<commit_after># a11yfy

Accessibilyfy Library Functions - Make your jQuery site accessible

## core

The core of the a11yfy library provides some utilitu functions for use a11y as well as for sharing common functionality across a11yfy utilities themselves

### jQuery(selector).a11yfy()

Execute an accessibility core function on the element(s) targeted by the jQuery selector

#### Synopsis

    jQuery(selector).a11yfy(method, arguments)

#### Parameters

1. method - a String specifying which method to execute on the element(s). The valid methods are:
1.1 "focus"
1.2 "showAndFocus"
2. arguments - optional set of arguments to be passed to the method

#### Methods

##### focus

focus the selected element(s) in a way that will work on all platforms

##### Synopsis

    jQuery(selector).a11yfy("focus");

##### Example

    jQuery("#confirm_button_1").a11yfy("focus");

##### showAndFocus

Show the targeted element and then set focus to the element (normally within it, but this is not enforced) identified by the first argument

##### Synopsis

    jQuery(selector).a11yfy("showAndFocus", selector);
{'fraction_non_alphanumeric': 0.09193330328977016, 'fraction_numerical': 0.020730058584948176, 'mean_word_length': 4.826771653543307, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '585510', 'n_tokens_mistral': 630, 'n_tokens_neox': 582, 'n_words': 260}