<commit_before># Sked-JS
JavaScript supplement to the [Sked PHP calendar library](https://github.com/CampusUnion/Sked-JS).

## Installation

Download sked.js and put it in a public folder on your website.

Sked-JS requires jQuery, so make sure you load both on your page:

```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script src="https://mysite.com/js/sked.js"></script>
```

Better yet, use a dependency loader like [RequireJS](http://requirejs.org/):

require.config.js
```js
    paths: {
        'jquery': '//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min',
        'sked': 'path/to/sked.js',
        // ...
    },
    shim: {
        'sked': {
            'deps': ['jquery']
        },
        // ...
    }
```

## Usage

Sked-JS automatically finds your `.sked-form` and adds some UI sugar, like
pluralizing intervals (day(s), week(s), and month(s)) and hiding the weekday
checkboxes when the "day(s)" interval is selected (if your event is every 3 days,
it doesn't make sense to select "Monday").
<commit_msg>update doc<commit_after># Sked-JS
JavaScript supplement to the [Sked PHP calendar library](https://github.com/CampusUnion/Sked).

## Installation

Download `sked.js` and put it in a public folder on your website.

**Sked-JS** requires jQuery, so be sure to load both on your page:

```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://mysite.com/js/sked.js"></script>
```

Better yet, use a dependency loader like [RequireJS](http://requirejs.org/):

_require.config.js_
```js
    paths: {
        'jquery': '//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min',
        'sked': 'path/to/sked.js',
        // ...
    },
    shim: {
        'sked': {
            'deps': ['jquery']
        },
        // ...
    }
```

_main.js_
```js
require([..., 'sked', ...], function(){
    // do your thing here
});
```

## Usage

**Sked-JS** automatically finds your `.sked-form` and adds some UI sugar, like
pluralizing intervals - day(s), week(s), and month(s) - and hiding the weekday
checkboxes when the "day(s)" interval is selected (if your event is every 3 days,
it doesn't make sense to select "Monday").

{'fraction_non_alphanumeric': 0.16985326811916407, 'fraction_numerical': 0.00755891507336594, 'mean_word_length': 2.9752650176678443, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1129562', 'n_tokens_mistral': 777, 'n_tokens_neox': 735, 'n_words': 214}