Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ronniechong/jquery-statmytext
Statistics of characters in your text
https://github.com/ronniechong/jquery-statmytext
Last synced: about 1 month ago
JSON representation
Statistics of characters in your text
- Host: GitHub
- URL: https://github.com/ronniechong/jquery-statmytext
- Owner: ronniechong
- License: mit
- Created: 2014-04-27T21:33:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-06T13:52:47.000Z (over 10 years ago)
- Last Synced: 2024-04-14T12:59:02.624Z (9 months ago)
- Language: JavaScript
- Size: 344 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
##jquery-statmytext##
A simple characters statistic plugin###Demo###
http://ronniechong.github.io/jquery-statmytext/###History Log###
Ver 1.0.1 (6th June 2014)
- Added Grunt tasksVer 1.0 (22nd May 2014)
- Version 1.0.0 released###How to use###
#### Markup ####
Add the jQuery and CSS scripts
Add the HTML markup
Enter your text here
#### jQuery Call ####
$(function(e){
$('#statmytext').statMyText();
});
###Available settings###
$(function(e){
$('#statmytext').statMyText({
'displayInfo':false,
onSortComplete:function(e){
//Do something fancy
}
});
});
Properties | Description | Type | Values
---|---|---|---
displayInfo | Display statistics | Boolean | true (default) or false
displayController | Display controllers| Boolean | true (default) or false
excludeHTML | Omit HTML markups| Boolean | true (default) or false
excludeNum | Omit numerics | Boolean | true or false (default)
caseSensitive| Case sensitive | Boolean | true or false (default),
sortBy | Sort by alphanumeric or frequency| string | alpha (default) or freq
sortOrder | Sort ascending or descending | string | asc (default) or desc
statsOutputClass | class for stats output | string | result-stats (default)
chartOutputClass | class for chart | string | result-output (default)
controllerOutputClass | class for controller | string | stats-controller (default)
listSortByClass | class for Sort By list | string | sortBy (default)
listSortOrderClass | class for Sort Order list | string | sortOrder (default)
sortOrderText | Sort Order text | array | `['Ascending','Descending']` (default)
sortByText | Sort By text | array | `['Alphabetical','Frequency']` (default)
onSortComplete | call back on sort completion | function | returns e.sortBy and e.sortOrder string