ep_readability
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "ep_readability", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Calculates the FLESCH readability index, client based.", | ||
@@ -5,0 +5,0 @@ "author": "Erik <ep_readability@web.de>", |
@@ -191,2 +191,3 @@ // ---------------------------------------------------------------------------- | ||
} | ||
var colorOrder = ['-1000', '10', '20', '35', '50', '60', '80', '90']; | ||
@@ -244,6 +245,7 @@ // do not calculate index if no key has been pressed | ||
result = fleschReadingEase( text ); | ||
jQuery.each(color, function(index, item) { | ||
if(result.flesch > index) { | ||
myColor = item.color; | ||
myCategory = window._(item.resultCategory); | ||
jQuery.each(colorOrder, function(index, item) { | ||
alert(result.flesch +" - "+ item) | ||
if(result.flesch > item) { | ||
myColor = color[item].color; | ||
myCategory = window._(color[item].resultCategory); | ||
resultFlesch = result.flesch; | ||
@@ -250,0 +252,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15229
284