<commit_before># Scale.js
### Index
- [Include] (https://github.com/Rawnly/scale.js/blob/master/README.md#include)
- [Usage] (https://github.com/Rawnly/scale.js/blob/master/README.md#usage)
- [Note] (https://github.com/Rawnly/scale.js/blob/master/README.md#note)
- [Changelog] (https://github.com/Rawnly/scale.js/blob/master/README.md#changelog)
- [LICENSE] (https://github.com/Rawnly/scale.js/blob/master/README.md#license)


## Include
-----
Download the file and include `scale.js` in your document after including jQuery.
```html
	<!-- Your <head> -->
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
	<script src="https://rawgit.com/Rawnly/scale.js/master/dist/scale.js" > </script>
```
## Usage
--------
### Via data attributes
To easily scale an element, add `data-scale` to the element you want to use, and specify a scale factor ( see the example below), then you can also specify a unit for responsive text  ( like `vh` or `vh` or something else ) by adding `data-unit` to the same element.

**Syntax:**
```html
<p data-scale="factor" data-unit="unit" style=" font-size='10px' "> Sample </p>
<!-- Text size will be -->
<!-- 10 x factor = result unit -->
```

**Example:**

```html
<p data-scale="0.2" data-unit="vw" style=" font-size='10px' "> Hello World </p>
<!-- Text size will be -->
<!-- 10 x 0.2 = 2vw -->
```

### Via Javascript
To call the scale plugin manually, simply select your target element with **jQuery** and do the following:
```javascript
	$("selector").scale( factor, { unit: 'unit' } );
```
**Example:**<commit_msg>:construction: ReadMe File<commit_after># Scale.js
### Index
- [Include] (https://github.com/Rawnly/scale.js/blob/master/README.md#include)
- [Usage] (https://github.com/Rawnly/scale.js/blob/master/README.md#usage)
- [Note] (https://github.com/Rawnly/scale.js/blob/master/README.md#note)
- [Changelog] (https://github.com/Rawnly/scale.js/blob/master/README.md#changelog)
- [LICENSE] (https://github.com/Rawnly/scale.js/blob/master/README.md#license)


## Include
-----
Download the file and include `scale.js` in your document after including jQuery.
```html
	<!-- Your <head> -->
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
	<script src="soon available" > </script>
```
## Usage
--------
### Via data attributes
To easily scale an element, add `data-scale` to the element you want to use, and specify a scale factor ( see the example below), then you can also specify a unit for responsive text  ( like `vh` or `vh` or something else ) by adding `data-unit` to the same element.

**Syntax:**
```html
<p data-scale="factor" data-unit="unit" style=" font-size='10px' "> Sample </p>
<!-- Text size will be -->
<!-- 10 x factor = result unit -->
```

**Example:**

```html
<p data-scale="0.2" data-unit="vw" style=" font-size='10px' "> Hello World </p>
<!-- Text size will be -->
<!-- 10 x 0.2 = 2vw -->
```

### Via Javascript
To call the scale plugin manually, simply select your target element with **jQuery** and do the following:
```javascript
	$("selector").scale( factor, { unit: 'unit' } );
```
**Example:**
{'fraction_non_alphanumeric': 0.2006997455470738, 'fraction_numerical': 0.010178117048346057, 'mean_word_length': 3.9140625, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 13, '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': '580866', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1040, 'n_words': 294}