<commit_before>Fay jQuery
==========

jQuery bindings for Fay. This project is experimental and not suitable for
production purposes.

The short-term goals of this project are to help discover the real world
requirements of Fay and to invite bikeshedding over the fay-jquery API. That
means that names and types may change in rapid and annoying ways until
conventions settle down.

The one consistent convention in the library is that the jQuery object on which
methods operate is the *last* parameter to every function. This allows simple
monadic composition:

```haskell
makeSquare :: JQuery -> Fay JQuery
makeSquare = addClass "square" >=>
             setWidth 400 >=>
             setHeight 400

main :: Fay ()
main = do
    makeSquare $ select "#elementToMakeSquare"
    return ()
```

Usage
-----

To use this with fay, cabal install the package which will put the
source files in fay ~/.cabal/share/fay-jquery-0.1.0.0/src. You can then
compile with fay using

```
fay --include=~/.cabal/share/fay-jquery-0.1.0.0/src MyFile.hs
```

Supported API calls
-------------------

This binding is a work in progress. I'm adding calls by section of the jQuery
docs. There is some overlap in the sections, but the following sections are
(mostly) complete.

- Attributes
- Core
- CSS
- Manipulation
- Traversing

Still to do
-----------

- Ajax
- Data
- Deferred Object
- Effects
- Events
- Forms
- Internals
- Miscellaneous
- Offset
- Plugins
- Properties
- Utilities

Not Applicable
--------------

- Selectors
<commit_msg>Update README with newly implemented API calls<commit_after>Fay jQuery
==========

jQuery bindings for Fay. This project is experimental and not suitable for
production purposes.

The short-term goals of this project are to help discover the real world
requirements of Fay and to invite bikeshedding over the fay-jquery API. That
means that names and types may change in rapid and annoying ways until
conventions settle down.

The one consistent convention in the library is that the jQuery object on which
methods operate is the *last* parameter to every function. This allows simple
monadic composition:

```haskell
makeSquare :: JQuery -> Fay JQuery
makeSquare = addClass "square" >=>
             setWidth 400 >=>
             setHeight 400

main :: Fay ()
main = do
    makeSquare $ select "#elementToMakeSquare"
    return ()
```

Usage
-----

To use this with fay, cabal install the package which will put the
source files in fay ~/.cabal/share/fay-jquery-0.1.0.0/src. You can then
compile with fay using

```
fay --include=~/.cabal/share/fay-jquery-0.1.0.0/src MyFile.hs
```

Supported API calls
-------------------

This binding is a work in progress. I'm adding calls by section of the jQuery
docs. There is some overlap in the sections, but the following sections are
(mostly) complete.

- Ajax
- Attributes
- Core
- CSS
- Effects (Basic, Fading)
- Manipulation
- Traversing

Still to do
-----------

- Data
- Deferred Object
- Effects (Custom, Sliding)
- Events
- Forms
- Internals
- Miscellaneous
- Offset
- Plugins
- Properties
- Utilities

Not Applicable
--------------

- Selectors

{'fraction_non_alphanumeric': 0.10548252645078551, 'fraction_numerical': 0.008977236293683874, 'mean_word_length': 3.051948051948052, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '1129170', 'n_tokens_mistral': 934, 'n_tokens_neox': 884, 'n_words': 393}