<commit_before># jQuery Actual Plugin

A jQuery plugin that centralizes DOM element.

## Description

This simple plugin helps you centralize your DOM element against their parent element or the window. You can also specify the top of the DOM element by passing customized settings.

## Requires
  - jQuery 1.2.6+

## Browser Compatibility
  - [Firefox](http://mzl.la/RNaI) 2.0+
  - [Internet Explorer](http://bit.ly/9fMgIQ) 6+
  - [Safari](http://bit.ly/gMhzVR) 3+
  - [Opera](http://bit.ly/fWJzaC) 10.6+
  - [Chrome](http://bit.ly/ePHvYZ) 8+

## Installation
  - First, make sure you are using valid [DOCTYPE](http://bit.ly/hQK1Rk)
  - Include nessesary JS files

<!-- -->

      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
      <script type="text/javascript" src="path-to-file/jquery.center.js"></script>

## options

#### against
- description: the element that the DOM element centralize against to 
- data type: string
- default value: 'window'
- possible value: 'window', 'parent', or '.someTarget'

#### top
- description: you can specify the top of the target element
- data type: integer
- default value: false
- possible value: 13, 20, 36 ... any number you want

#### topPercentage
- description: or specify the top in percentage of the target element
- data type: integer
- default value: 0.5
- possible value: 0.1, 0.4, 0.8 ...

## Usage
Example code:
      
      // centralize #some-element against the window
      $( '#some-element' ).center();
      
      // centralize .some-element against its parent element
      $( '.some-element' ).center({
        against : 'parent',
        top: 10
      });
      
      // centralize .some-element against '.some-target-element'
      // !IMPORTANT '.some-target-element' must be ".some-element"'s parents
      $( '.some-element' ).center({<commit_msg>change option topPercentage data type<commit_after># jQuery Actual Plugin

A jQuery plugin that centralizes DOM element.

## Description

This simple plugin helps you centralize your DOM element against their parent element or the window. You can also specify the top of the DOM element by passing customized settings.

## Requires
  - jQuery 1.2.6+

## Browser Compatibility
  - [Firefox](http://mzl.la/RNaI) 2.0+
  - [Internet Explorer](http://bit.ly/9fMgIQ) 6+
  - [Safari](http://bit.ly/gMhzVR) 3+
  - [Opera](http://bit.ly/fWJzaC) 10.6+
  - [Chrome](http://bit.ly/ePHvYZ) 8+

## Installation
  - First, make sure you are using valid [DOCTYPE](http://bit.ly/hQK1Rk)
  - Include nessesary JS files

<!-- -->

      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
      <script type="text/javascript" src="path-to-file/jquery.center.js"></script>

## options

#### against
- description: the element that the DOM element centralize against to 
- data type: string
- default value: 'window'
- possible value: 'window', 'parent', or '.someTarget'

#### top
- description: you can specify the top of the target element
- data type: integer
- default value: false
- possible value: 13, 20, 36 ... any number you want

#### topPercentage
- description: or specify the top in percentage of the target element
- data type: float
- default value: 0.5
- possible value: 0.1, 0.4, 0.8 ...

## Usage
Example code:
      
      // centralize #some-element against the window
      $( '#some-element' ).center();
      
      // centralize .some-element against its parent element
      $( '.some-element' ).center({
        against : 'parent',
        top: 10
      });
      
      // centralize .some-element against '.some-target-element'
      // !IMPORTANT '.some-target-element' must be ".some-element"'s parents
      $( '.some-element' ).center({
{'fraction_non_alphanumeric': 0.1439873417721519, 'fraction_numerical': 0.016877637130801686, 'mean_word_length': 3.022269353128314, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6024595', 'n_tokens_mistral': 1235, 'n_tokens_neox': 1166, 'n_words': 371}