<commit_before>timecalc.js
===========

### Try it now!
If you're just here to calculate some times, go for it!  
Try it here: http://makhani.de/timecalc (will soon be updated!)

### Currently supported time formats
* `hh:mm:ss`
    * ` 1:40:15` - 1 Hour, 40 Minutes, 15 Seconds
    * `03:2:7`  - 3 Hours, 2 Minutes, 7 Seconds
    * `02:180:75` - 4 Hours, 1 Minute, 15 Seconds
    * `1:40` - 1 Hour, 40 Minutes, 0 Seconds
    * `:1:40` - 0 Hours, 1 Minute, 40 Seconds
* hh as decimal value
    * `4` - 4 Hours
    * `2.5` - 2 Hours, 30 Minutes
    * `2,5` - 2 Hours, 30 Minutes (European Format)
* hh Hours mm Minutes ss Seconds

### Basic API-Usage:  
1. Include jQuery and timecalc.js:
    ```html
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
    <script src="js/timecalc.js"></script>
    ```

2. Let timecalc do all the work:
    ```javascript
    $('#time-input').timecalc( $('#time-output') );
    ```
    
    The total time is now bind to `$('#time-output')`. It will be refreshed in as soon as the input changes.
	
### Advanced API-Usage

You can also handle the update event yourself and do with whatever you want to do with the data.  
Here are some examples: 

```javascript
$('#time-input').timecalc();
$('#time-input').on('timecalcupdate', function ( event ) {
   $('#time-output').text('My Time: ' event.formattedTime);
}
```

```javascript
$('#time-input').timecalc();
$('#time-input').on('timecalcupdate', function ( event ) {
   $('#time-output-hr').text(event.hours + ' Hours');
   $('#time-output-min').text(event.minutes + ' Minutes');
   $('#time-output-sec').text(event.seconds + ' Seconds');
});
```

(will be updated in the future).

### Download:  
coming soon!


© 2014 <NAME> (http://makhani.de)

Licensed under MIT
<commit_msg>Updated Links<commit_after>timecalc.js
===========

### Try it now!
If you're just here to calculate some times, go for it!  
Try it here: http://makhani.de/timecalc

### Currently supported time formats
* `hh:mm:ss`
    * ` 1:40:15` - 1 Hour, 40 Minutes, 15 Seconds
    * `03:2:7`  - 3 Hours, 2 Minutes, 7 Seconds
    * `02:180:75` - 4 Hours, 1 Minute, 15 Seconds
    * `1:40` - 1 Hour, 40 Minutes, 0 Seconds
    * `:1:40` - 0 Hours, 1 Minute, 40 Seconds
* hh as decimal value
    * `4` - 4 Hours
    * `2.5` - 2 Hours, 30 Minutes
    * `2,5` - 2 Hours, 30 Minutes (European Format)
* hh Hours mm Minutes ss Seconds

### Basic API-Usage:  
1. Include jQuery and timecalc.js:
    ```html
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
    <script src="js/timecalc.js"></script>
    ```

2. Let timecalc do all the work:
    ```javascript
    $('#time-input').timecalc( $('#time-output') );
    ```
    
    The total time is now bind to `$('#time-output')`. It will be refreshed in as soon as the input changes.
	
### Advanced API-Usage

You can also handle the update event yourself and do with whatever you want to do with the data.  
Here are some examples: 

```javascript
$('#time-input').timecalc();
$('#time-input').on('timecalcupdate', function ( event ) {
   $('#time-output').text('My Time: ' event.formattedTime);
}
```

```javascript
$('#time-input').timecalc();
$('#time-input').on('timecalcupdate', function ( event ) {
   $('#time-output-hr').text(event.hours + ' Hours');
   $('#time-output-min').text(event.minutes + ' Minutes');
   $('#time-output-sec').text(event.seconds + ' Seconds');
});
```

(will be updated in the future).

### Download:  
http://plugins.jquery.com/timecalc/


© 2014 <NAME> (http://makhani.de)

Licensed under MIT

{'fraction_non_alphanumeric': 0.18668515950069348, 'fraction_numerical': 0.03495145631067961, 'mean_word_length': 3.3815309842041312, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6357887', 'n_tokens_mistral': 1343, 'n_tokens_neox': 1213, 'n_words': 374}