Skip to content

Instantly share code, notes, and snippets.

@jaicab
Created March 14, 2014 09:33
Show Gist options
  • Save jaicab/9544772 to your computer and use it in GitHub Desktop.
Save jaicab/9544772 to your computer and use it in GitHub Desktop.
textarea {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
body {
padding-top: 20px;
background: #f4f4f4;
}
#editingSpan {
min-height: 600px;
min-width: 610px;
height: 100%;
height: 600px;
padding-bottom: 40px;
overflow-y: hidden;
}
#editor-wrapper {
position: relative;
font-size: 24px;
line-height: 30px;
font-family: Georgia, "Times New Roman", serif;
word-wrap: break-word;
color: #0D0D0D;
}
#editor-highlighter {
position: absolute;
top: 0;
left: 0;
width: 600px;
min-width: 600px;
height: 630px;
min-height: 630px;
cursor: text;
border: 0;
border: none;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: moz-none;
-ms-user-select: none;
user-select: none;
z-index: 1;
padding: 0;
margin: 0;
margin-left: calc(50% - 300px);
margin-left: -moz-calc(50% - 300px);
font: inherit;
overflow-y: hidden;
overflow-x: hidden;
white-space: pre-wrap;
color: rgba(1,1,1,0);
}
#editor {
position: absolute;
top: 0;
left: 0;
width: 600px;
min-width: 600px;
height: 630px;
min-height: 630px;
border-radius: 0;
background-color: transparent;
resize: none;
border: 0;
border: none;
box-shadow: none;
z-index: 100;
padding: 0;
margin: 0;
margin-left: calc(50% - 300px);
margin-left: -moz-calc(50% - 300px);
overflow-y: hidden;
overflow-x: hidden;
font: inherit;
white-space: pre-wrap;
opacity: 0.6;
outline: none;
}
@-moz-document url-prefix() {
#editor {
width: 602px;
min-width: 602px;
}
}
#editor-highlighter p {
margin-top: 30px;
}
#editor-highlighter p:first-child {
margin-top: 0;
}
#right-panel-ui {
/* display: none; */
font-size: 16px;
}
#logo {
font: bold 32px 'Adobe Garamond Pro', 'Adobe Garamond', Garamond, Georgia, serif;
letter-spacing: -1px;
margin: 0 auto;
width: 155px;
}
#left-menu {
margin-top: 30px;
opacity: 0.8;
}
#readability {
margin-top: 30px;
}
#readability-score {
font-size: 28px;
font-weight: bold;
display: inline-block;
width: 80%;
margin: 6px 0 0 0;
text-align: center;
}
#readability-word {
display: inline-block;
width: 80%;
margin: 6px 0 10px 0;
text-align: center;
}
#readability-bar {
width: 80%;
min-width: 80%;
height: 6px;
border-radius: 3px;
border: 1px solid #ccc;
background: #178c3a; /* Old browsers */
background: -moz-linear-gradient(left, #178c3a 0%, #cecc22 40%, #951e26 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#178c3a), color-stop(40%,#cecc22), color-stop(100%,#951e26)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, #178c3a 0%,#cecc22 40%,#951e26 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(left, #178c3a 0%,#cecc22 40%,#951e26 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(left, #178c3a 0%,#cecc22 40%,#951e26 100%); /* IE10+ */
background: linear-gradient(to right, #178c3a 0%,#cecc22 40%,#951e26 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#178c3a', endColorstr='#951e26',GradientType=1 ); /* IE6-9 */
}
#readability-arrow {
width: 0px;
height: 0px;
border-style: solid;
border-width: 0 8px 12px 8px;
border-color: transparent transparent #178c3a transparent;
position: relative;
left: -4px;
top: -10px;
}
#readability-goal {
width: 2px;
background: #898989;
height: 14px;
font-size: 6px;
position: relative;
top: -11px;
left: 22.8%;
}
#readability-mark {
opacity: 0.8;
}
span {
word-break: normal;
word-wrap: normal;
}
#editor-highlighter span {
min-height: 27px;
}
#editor-highlighter p {
min-height: 27px;
}
#yellowSentenceToggle, #redSentenceToggle, #adverbToggle, #stuffyToggle, #passiveToggle {
display: none;
}
#hemingwayContainer {
min-height: 650px;
height: calc(100% - 44px);
}
@-moz-document url-prefix() {
#hemingwayContainer {
min-height: 650px;
height: 94%
}
}
#footer {
background-color: #E0E0E0;
color: #8F8F8F;
width: 100%;
font-size: 11px;
text-align: center;
margin-top:20px;
padding: 2px 0;
}
em { /* highlighting -ly words */
font: inherit;
text-decoration: none;
font-style: normal;
}
s { /* protecting titles from splitting senteces */
text-decoration: none;
font-style: normal;
}
s:after {
content: ".";
}
i { /*protect -ly words */
font: inherit;
text-decoration: none;
font-style: normal;
}
u {
text-decoration: none;
}
u.spacer:after {
content: "\2005";
}
b {
font-weight: normal;
font: inherit;
font-style: normal;
font-variant: normal;
background: #E3B7E8;
color: #743C7A;
}
q {
margin: 0;
padding: 0;
font-style: normal;
font-variant: normal;
font-weight: normal;
font: inherit;
background: #C4ED9D;
color: #5C8F2E;
}
.passive {
font-style: normal;
font-variant: normal;
font-weight: normal;
font: inherit;
background: #C4ED9D;
color: #5C8F2E;
border-radius: 4px;
}
.stuffy {
font-weight: normal;
font: inherit;
font-style: normal;
font-variant: normal;
background: #E3B7E8;
color: #743C7A;
border-radius: 4px;
}
.badge-breen {
background: #4c9e00;
border-color: #4c9e00;
}
.badge-purple {
background: #A911BA;
border-color: #A911BA;
}
#right-panel-ui > .row {
margin-top: 20px;
}
.alert {
padding: 0;
border: none;
}
.ui-toggle {
display: inline;
}
.ui-toggle-col {
margin-left: 0;
}
.hideHighlight {
background: none;
color: inherit;
}
.partialRule {
width: 80%;
}
.more-info {
text-decoration: underline;
cursor: default;
}
div[class="tooltip-inner"] {
font-size: 16px;
font-weight: normal;
text-decoration: none;
text-shadow: none;
color: rgba(255,255,255,1);
background-color: rgba(1, 1, 1, 0.8);
opacity: 1;
}
.tooltip {
margin-left: 12px;
}
.tooltip-arrow {
opacity: 0.6;
}
.notification {
height: 30px;
margin-top: -20;
text-align: center;
padding-top: 10px;
display: none;
}
.notification a {
text-decoration: underline;
}
.notification a:hover {
text-decoration: none;
}
.popover-content {
font-weight: normal;
font-size: 16px;
padding: 20px;
}
.tab-graph {
margin-top: -10px !important;
}
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background-color: #e4e4e4;
}
::-webkit-scrollbar-thumb {
background-color: #b9b9b9;
}
::-webkit-scrollbar-button {
display: none;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"/>
</head>
<body>
<div id="editingSpan" class="span7">
<div id="editor-wrapper">
<div id="editor-highlighter"></div>
<textarea id="editor" placeholder="Enter text ..." autofocus>Hemingway makes your writing bold and clear.
Hemingway highlights long, complex sentences and common errors; if you see a yellow highlight, shorten the sentence or split it. If you see a red highlight, your sentence is so dense and complicated that your readers will get lost trying to follow its meandering, splitting logic &mdash; try editing this sentence to remove the red.
Adverbs are helpfully shown in blue. Get rid of them and pick verbs with force instead.
You can utilize a shorter word in place of a purple one. Mouse over it for hints.
Phrases in green have been marked to show passive voice.
Paste in something you're working on and edit away. Or, click the Write button to compose something new.</textarea>
</div>
</div>
</body>
</html>
var words = ["edit", "on", "setTimeout", "toggle", "button", "#btn-edit", "load", "focus", "#editor", "body", "click", "#editor-highlighter", "keyup", "keyCode", "ctrlKey", "metaKey", "selectionStart", "selectionEnd", "val", "substring", "\x09", "preventDefault", "keydown", "paste", "send", "event", "UI", "Text Pasted", "Pasted in Edit Mode", "Pasted in Write Mode", "scroll", "scrollTop", "active", "hasClass", "write", "delay", "opacity", "css", "Write Button Clicked", "#btn-write", "fadeIn", "#right-panel-ui", "Edit Button Clicked", "Overlay Toggled", "Yellow Sentences turned on", "#yellowSentenceOn", "off", "Yellow Sentences turned off", "#yellowSentenceOff", "Red Sentences turned on", "#redSentenceOn", "Red Sentences turned off", "#redSentenceOff", "Adverbs turned on", "#adverbsOn", "Adverbs turned off", "#adverbsOff", "Stuffy Phrases turned on", "#stuffyOn", "Stuffy Phrases turned off", "#stuffyOff", "Passive Voice turned on", "#passiveOn", "#passiveOff", "hover", "#yellowSentenceContainer", "#redSentenceContainer", "#adverbContainer", "#stuffyContainer", "#passiveContainer", "mousemove", "tooltip", ".more-info", "popover", "#readability-mark", "mouseover", "Right Explanation Hovers", "Readability Explained", "Yellow Tools Explained", "#yellowMoreInfo", "Red Sentences Explained", "#redMoreInfo", "Adverbs Explained", "#adverbMoreInfo", "Wordy Phrases Explained", "#stuffyMoreInfo", "Passives Explained", "#passiveMoreInfo", "show", "Demand Testing", "Desktop Version", "Clicked on desktop version button", "#desktopModal", "#yesToDesktop", "#noToDesktop", "loading", "reset", "Voted yes to desktop at 4.99", "location", "email-form.html", "Voted no to desktop at 4.99", "Tweet Button Clicked", ".twitter-share-button", "scrollHeight", "overflow-y", "#editingSpan", "height", "length", "#spell-highlighter", "Grade ", "Words and Readability", "Updates", "fadeOut", "a number of", "Many, some", "abundance", "Enough, plenty", "accede to", "Allow, agree to", "accelerate", "Speed up", "accentuate", "Stress", "accompany", "Go with, with", "accomplish", "Do", "accorded", "Given", "accrue", "Add, gain", "acquiesce", "Agree", "acquire", "Get", "additional", "More, extra", "adjacent to", "Next to", "adjustment", "Change", "admissible", "Allowed, accepted", "advantageous", "Helpful", "adversely impact", "Hurt", "advise", "Tell", "aforementioned", "Remove", "aggregate", "Total, add", "aircraft", "Plane", "all of", "All", "alleviate", "Ease, reduce", "allocate", "Divide", "along the lines of", "Like, as in", "already existing", "Existing", "alternatively", "Or", "ameliorate", "Improve, help", "anticipate", "Expect", "apparent", "Clear, plain", "appreciable", "Many", "as a means of", "To", "as of yet", "Yet", "as to", "on, about", "as yet", "ascertain", "Find out, learn", "assistance", "Help", "at this time", "Now", "attain", "Meet", "attributable to", "Because", "authorize", "Allow, let", "because of the fact that", "because", "belated", "late", "benefit from", "enjoy", "bestow", "give, award", "by virtue of", "by, under", "cease", "stop", "close proximity", "near", "commence", "Begin or start", "comply with", "follow", "concerning", "about, on", "consequently", "so", "consolidate", "join, merge", "constitutes", "is, forms, makes up", "demonstrate", "prove, show", "depart", "leave, go", "designate", "choose, name", "discontinue", "drop, stop", "due to the fact that", "because, since", "each and every", "Each", "economical", "cheadropp", "eliminate", "cut, drop, end", "elucidate", "explain", "employ", "use", "endeavor", "try", "enumerate", "count", "equitable", "fair", "equivalent", "equal", "evaluate", "test, check", "evidenced", "showed", "exclusively", "only", "expedite", "hurry", "expend", "spend", "expiration", "end", "facilitate", "ease, help", "factual evidence", "facts, evidence", "feasible", "workable", "finalize", "complete, finish", "first and foremost", "first", "for the purpose of,", "to", "forfeit", "lose, give up", "formulate", "plan", "honest truth", "truth", "however", "but, yet", "if and when", "use either word; not both", "impacted", "affected, harmed, changed", "implement", "install, put in place; tool", "in a timely manner", "on time", "in accordance with", "in addition", "also, besides, too", "in all likelihood", "probably", "in an effort to", "in between", "between", "in excess of", "more than", "in lieu of", "instead", "in light of the fact that", "in many cases", "often", "in order to", "in regard to", "about, concerning, on", "in some instances ", "sometimes", "in terms of", "omit; for, as, with", "in the near future", "soon", "in the process of", "omit", "inception", "start", "incumbent upon", "must", "indicate", "say, state, or show", "indication", "sign", "initiate", "is applicable to", "applies to", "is authorized to", "may", "is responsible for", "handles", "it is essential", "must, need to", "magnitude", "size", "maximum", "greatest, largest, most", "methodology", "method", "minimize", "cut", "minimum", "least, smallest, small", "modify", "change", "monitor", "check, watch, track", "multiple", "many", "necessitate", "cause, need", "nevertheless", "still, besides, even so", "not certain", "uncertain", "not many", "few", "not often", "rarely", "not unless", "only if", "not unlike", "similar, alike", "notwithstanding", "in spite of, still", "null and void", "use either null or void", "numerous", "objective", "aim, goal", "obligate", "bind, compel", "obtain", "get", "on the contrary", "but, so", "on the other hand", "omit; but, so", "one particular", "one", "optimum", "best, greatest, most", "overall", "owing to the fact that", "participate", "take part", "particulars", "details", "pass away", "die", "pertaining to", "about, of, on", "point in time", "time, point, moment, now", "portion", "part", "possess", "have, own", "preclude", "prevent", "previously", "before", "prior to", "prioritize", "rank, focus on", "procure", "buy, get", "proficiency", "skill", "provided that", "if", "purchase", "buy, sale", "put simply", "readily apparent", "clear", "refer back", "refer", "regarding", "relocate", "move", "remainder", "rest", "remuneration", "payment", "require", "must, need", "requirement", "need, rule", "reside", "live", "residence", "house", "retain", "keep", "satisfy", "meet, please", "shall", "must, will", "should you wish", "if you want", "similar to", "like", "solicit", "ask for, request", "span across", "span, cross", "strategize", "subsequent", "later, next, after, then", "substantial", "large, much", "successfully complete", "complete, pass", "sufficient", "enough", "terminate", "end, stop", "the month of", "therefore", "thus, so", "time period", "time, period", "took advantage of", "preyed on", "transmit", "transpire", "happen", "until such time as", "until", "utilization", "use", "utilize", "validate", "confirm", "various different", "various, different", "very", "whether or not", "whether", "with respect to", "with the exception of", "except for", "witnessed", "saw, seen", "awoken", "awoke", "beaten", "beat", "begun", "began", "bent", "bitten", "bit", "bled", "blown", "blew", "broken", "broke", "brought", "built", "bought", "caught", "chosen", "chose", "dealt", "done", "did", "drawn", "drew", "driven", "drove", "eaten", "ate", "fed", "felt", "fought", "found", "forbidden", "forbade", "forgotten", "forgot", "forgiven", "forgave", "frozen", "froze", "gotten", "got", "given", "gave", "ground", "ground, grinded", "hung", "heard", "hidden", "hid", "hit", "held", "hurt", "kept", "known", "knew", "laid", "led", "left", "let", "lost", "made", "meant", "met", "paid", "proven", "proved", "put", "read", "ridden", "rode", "rung", "rang", "run", "ran", "said", "seen", "saw", "sold", "sent", "shaken", "shook", "shaved", "shot", "shown", "shut", "sung", "sunk", "slain", "slew", "slid", "spoken", "spoke", "spent", "spun", "split", "spread", "stolen", "stole", "struck", "swept", "swung", "taken", "took", "taught", "torn", "tore", "told", "thought", "thrown", "threw", "undergone", "underwent", "understood", "upset", "woken", "woke", "worn", "wore", "won", "withdrawn", "withdrew", "written", "wrote", "<i>$1</i>$2<i>$3</i>", "replace", "match", "log", "", "<br/>", "$1$3", "</span></p><p>$1<span>", "<s>$1</s> ", "<s>$1</s>$3$4$5", ".$1</span><span>$2", "?$1</span><span>$2", "!$1</span><span>$2", "</span></p><p class=\"tab-graph\"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", "$1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", "<br/>&nbsp;", "</span><br/><span>", "<u> </u><u>$1</u>", "<b>$1</b>", "<q>$1$2$3$5</q>", "<i>$2</i>y", "$1<em class=\"alert alert-info\">$2</em>$3", "<p><span>", "</span></p>", "html", "#editor-highlighter p", "children", "words", "data", "chars", "removeData", "#editor-highlighter span", "text", "alert", "addClass", "alert-error", "removeClass", "remove", "round", "toLowerCase", "charAt", "s", "word", "grep", "push", "sort", "slice", "empty", "#wordFreq", "<strong>Most common words:</strong><br/>", " (", ")<br>", "append", "span.alert-error", "span.alert", "#sentenceYellow", "#sentenceRed", "span.sentenceCount", "not", "hideHighlight", "em", "#adverbCount", "#adverbTarget", "b", "q", "#readability-score", "Not enough text", "hide", "#readability-word", "color", "#951e26", "Bad", "#readability-word-score", "border-color", "transparent transparent #951e26 transparent", "#readability-arrow", "#cecc22", "OK", "transparent transparent #cecc22 transparent", "#178c3a", "Good", "transparent transparent #178c3a transparent", "%", "<strong>Paragraphs: </strong>", "<br><strong>Sentences: </strong>", "<br><strong>Words: </strong>", "<br><strong>Characters: </strong>", "#stats", "#yellowSentenceToggle", "#redSentenceToggle", "#adverbToggle", "#stuffyToggle", "#passiveToggle", "#editor-highlighter b", "#stuffyCount", "#editor-highlighter q", "#passiveCount", "#passiveGoal", "pageX", "pageY", "offset", "top", "outerWidth", "outerHeight", "trim","e", "d", "Change to Active Voice Someone [", "] something.", "orig", " ", "title", "attr", "destroy", "Stayed", "Stayed 30 Seconds", "Stayed 120 Seconds"];
var writeState = words[0];
var yellowSentenceState = words[1];
var redSentenceState = words[1];
var adverbState = words[1];
var stuffyState = words[1];
var passiveState = words[1];
var purpleTooltipActive = false;
var greenTooltipActive = false;
var lastAnalysis = [];
var updateCount = 0;
var s;
window[words[2]](stayed30Secs, 30000);
window[words[2]](stayed120Secs, 120000);
updateAll();
$(words[5])[words[4]](words[3]);
$(words[9])[words[1]](words[6], function () {
$(words[8])[words[7]]();
});
$(words[11])[words[1]](words[10], function () {
$(words[8])[words[7]]();
});
$(words[8])[words[1]](words[12], function (_0x2c3axc) {
if (writeState == words[0] && _0x2c3axc[words[13]] != 16 && _0x2c3axc[words[13]] != 17) {
if (_0x2c3axc[words[13]] == 13) {
updateAll();
scaleTextBoxes();
} else {
updateAll();
}
}
var _0x2c3axd = _0x2c3axc[words[14]] || _0x2c3axc[words[15]];
if (_0x2c3axd && _0x2c3axc[words[13]] == 90) {
updateAll();
}
});
$(words[8])[words[22]](function (_0x2c3axc) {
if (_0x2c3axc[words[13]] === 9) {
var _0x2c3axe = this[words[16]];
var _0x2c3axf = this[words[17]];
var _0x2c3ax10 = $(this);
var _0x2c3ax11 = _0x2c3ax10[words[18]]();
_0x2c3ax10[words[18]](_0x2c3ax11[words[19]](0, _0x2c3axe) + words[20] + _0x2c3ax11[words[19]](_0x2c3axf));
this[words[16]] = this[words[17]] = _0x2c3axe + 1;
_0x2c3axc[words[21]]();
};
});
$(words[8])[words[1]](words[23], function () {
if (writeState == words[0]) {
window[words[2]](updateAll, 110);
ga(words[24], words[25], words[26], words[27], words[28]);
} else {
ga(words[24], words[25], words[26], words[27], words[29]);
};
window[words[2]](scaleTextBoxes, 30);
scrollFix();
});
$(words[8])[words[1]](words[30], function () {
$(words[11])[words[31]]($(words[8])[words[31]]());
});
$(words[39])[words[1]](words[10], function () {
if (!$(this)[words[33]](words[32])) {
writeState = words[34];
clearAll();
var _0x2c3ax12 = $(words[8])[words[31]]();
$(words[8])[words[35]](50)[words[7]]();
$(words[8])[words[31]](_0x2c3ax12);
$(words[8])[words[37]](words[36], 1);
ga(words[24], words[25], words[26], words[38]);
};
});
$(words[5])[words[1]](words[10], function () {
if (!$(this)[words[33]](words[32])) {
writeState = words[0];
$(words[11])[words[40]](200);
$(words[41])[words[40]](200);
scrollFix();
updateAll();
var _0x2c3ax12 = $(words[8])[words[31]]();
$(words[8])[words[35]](50)[words[7]]();
$(words[8])[words[31]](_0x2c3ax12);
$(words[8])[words[37]](words[36], 0.6);
ga(words[24], words[25], words[26], words[42]);
};
});
$(words[45])[words[1]](words[10], function () {
if (!$(this)[words[33]](words[32])) {
yellowSentenceState = words[1];
showYellowSentences();
ga(words[24], words[25], words[26], words[43], words[44]);
};
});
$(words[48])[words[1]](words[10], function () {
if (!$(this)[words[33]](words[32])) {
yellowSentenceState = words[46];
hideYellowSentences();
ga(words[24], words[25], words[26], words[43], words[47]);
};
});
$(words[50])[words[1]](words[10], function () {
if (!$(this)[words[33]](words[32])) {
redSentenceState = words[1];
showRedSentences();
ga(words[24], words[25], words[26], words[43], words[49]);
};
});
$(words[52])[words[1]](words[10], function () {
if (!$(this)[words[33]](words[32])) {
redSentenceState = words[46];
hideRedSentences();
ga(words[24], words[25], words[26], words[43], words[51]);
};
});
$(words[54])[words[1]](words[10], function () {
if (!$(this)[words[33]](words[32])) {
adverbState = words[1];
showAdverbs();
ga(words[24], words[25], words[26], words[43], words[53]);
};
});
$(words[56])[words[1]](words[10], function () {
if (!$(this)[words[33]](words[32])) {
adverbState = words[46];
hideAdverbs();
ga(words[24], words[25], words[26], words[43], words[55]);
};
});
$(words[58])[words[1]](words[10], function () {
if (!$(this)[words[33]](words[32])) {
stuffyState = words[1];
showStuffy();
ga(words[24], words[25], words[26], words[43], words[57]);
};
});
$(words[60])[words[1]](words[10], function () {
if (!$(this)[words[33]](words[32])) {
stuffyState = words[46];
hideStuffy();
ga(words[24], words[25], words[26], words[43], words[59]);
};
});
$(words[62])[words[1]](words[10], function () {
if (!$(this)[words[33]](words[32])) {
passiveState = words[1];
showPassive();
ga(words[24], words[25], words[26], words[43], words[61]);
};
});
$(words[63])[words[1]](words[10], function () {
if (!$(this)[words[33]](words[32])) {
passiveState = words[46];
hidePassive();
ga(words[24], words[25], words[26], words[43], words[61]);
};
});
$(words[65])[words[64]](showYellowToggle, hideYellowToggle);
$(words[66])[words[64]](showRedToggle, hideRedToggle);
$(words[67])[words[64]](showAdverbToggle, hideAdverbToggle);
$(words[68])[words[64]](showStuffyToggle, hideStuffyToggle);
$(words[69])[words[64]](showPassiveToggle, hidePassiveToggle);
$(words[8])[words[70]](checkHover);
$(words[72])[words[71]]();
$(words[74])[words[73]]();
$(words[74])[words[1]](words[75], function () {
ga(words[24], words[25], words[26], words[76], words[77]);
});
$(words[79])[words[1]](words[75], function () {
ga(words[24], words[25], words[26], words[76], words[78]);
});
$(words[81])[words[1]](words[75], function () {
ga(words[24], words[25], words[26], words[76], words[80]);
});
$(words[83])[words[1]](words[75], function () {
ga(words[24], words[25], words[26], words[76], words[82]);
});
$(words[85])[words[1]](words[75], function () {
ga(words[24], words[25], words[26], words[76], words[84]);
});
$(words[87])[words[1]](words[75], function () {
ga(words[24], words[25], words[26], words[76], words[86]);
});
$(words[92])[words[1]](words[88], function () {
ga(words[24], words[25], words[89], words[90], words[91]);
});
$(words[93])[words[4]]();
$(words[94])[words[4]]();
$(words[93])[words[1]](words[10], function () {
var _0x2c3ax13 = $(this);
_0x2c3ax13[words[4]](words[95]);
setTimeout(function () {
_0x2c3ax13[words[4]](words[96]);
}, 3000);
ga(words[24], words[25], words[89], words[90], words[97]);
window[words[98]] = words[99];
});
$(words[94])[words[1]](words[10], function () {
var _0x2c3ax13 = $(this);
_0x2c3ax13[words[4]](words[95]);
setTimeout(function () {
_0x2c3ax13[words[4]](words[96]);
}, 3000);
ga(words[24], words[25], words[89], words[90], words[100]);
window[words[2]](closeDesktopModal, 500);
});
$(words[102])[words[1]](words[10], function () {
ga(words[24], words[25], words[89], words[101]);
});
function scaleTextBoxes() {
var _0x2c3ax15 = $(words[8])[0][words[103]];
_0x2c3ax15 += 30;
if (_0x2c3ax15 > 600) {
$(words[105])[words[37]](words[104], words[30]);
};
$(words[8])[words[106]](_0x2c3ax15);
$(words[11])[words[106]](_0x2c3ax15);
if ($(words[108])[words[107]] > 0) {
$(words[108])[words[106]](_0x2c3ax15);
};
};
function scrollFix() {
window[words[2]](function () {
$(words[11])[words[31]]($(words[8])[words[31]]());
}, 110);
};
function updateAll() {
var _0x2c3ax18 = $(words[8])[words[18]]();
applyText(_0x2c3ax18);
var _0x2c3ax19 = analyzeS();
var _0x2c3ax1a = analyze(_0x2c3ax19);
sentenceUI(_0x2c3ax1a[2]);
adverbUI(_0x2c3ax1a[3]);
statsUI(_0x2c3ax1a);
readabilityUI(_0x2c3ax1a[4], _0x2c3ax1a[2]);
stuffyUI();
passiveUI(_0x2c3ax1a[2]);
lastAnalysis = _0x2c3ax1a;
updateCount++;
var _0x2c3ax1b = updateCount % 10;
if (updateCount == 4) {
var _0x2c3ax1c = words[109] + _0x2c3ax1a[4];
ga(words[24], words[25], words[110], words[111], _0x2c3ax1c, _0x2c3ax1a[1]);
} else {
if (_0x2c3ax1b == 0) {
ga(words[24], words[25], words[110], words[111], _0x2c3ax1c, _0x2c3ax1a[1]);
};
};
};
function clearAll() {
$(words[11])[words[112]](200);
$(words[41])[words[112]](200);
};
var simpleList = [];
simpleList = [{
orig: words[113],
replace: words[114]
}, {
orig: words[115],
replace: words[116]
}, {
orig: words[117],
replace: words[118]
}, {
orig: words[119],
replace: words[120]
}, {
orig: words[121],
replace: words[122]
}, {
orig: words[123],
replace: words[124]
}, {
orig: words[125],
replace: words[126]
}, {
orig: words[127],
replace: words[128]
}, {
orig: words[129],
replace: words[130]
}, {
orig: words[131],
replace: words[132]
}, {
orig: words[133],
replace: words[134]
}, {
orig: words[135],
replace: words[136]
}, {
orig: words[137],
replace: words[138]
}, {
orig: words[139],
replace: words[140]
}, {
orig: words[141],
replace: words[142]
}, {
orig: words[143],
replace: words[144]
}, {
orig: words[145],
replace: words[146]
}, {
orig: words[147],
replace: words[148]
}, {
orig: words[149],
replace: words[150]
}, {
orig: words[151],
replace: words[152]
}, {
orig: words[153],
replace: words[154]
}, {
orig: words[155],
replace: words[156]
}, {
orig: words[157],
replace: words[158]
}, {
orig: words[159],
replace: words[160]
}, {
orig: words[161],
replace: words[162]
}, {
orig: words[163],
replace: words[164]
}, {
orig: words[165],
replace: words[166]
}, {
orig: words[167],
replace: words[168]
}, {
orig: words[169],
replace: words[170]
}, {
orig: words[171],
replace: words[172]
}, {
orig: words[173],
replace: words[174]
}, {
orig: words[175],
replace: words[176]
}, {
orig: words[177],
replace: words[178]
}, {
orig: words[179],
replace: words[180]
}, {
orig: words[181],
replace: words[178]
}, {
orig: words[182],
replace: words[183]
}, {
orig: words[184],
replace: words[185]
}, {
orig: words[186],
replace: words[187]
}, {
orig: words[188],
replace: words[189]
}, {
orig: words[190],
replace: words[191]
}, {
orig: words[192],
replace: words[193]
}, {
orig: words[194],
replace: words[195]
}, {
orig: words[196],
replace: words[197]
}, {
orig: words[198],
replace: words[199]
}, {
orig: words[200],
replace: words[201]
}, {
orig: words[202],
replace: words[203]
}, {
orig: words[204],
replace: words[205]
}, {
orig: words[206],
replace: words[207]
}, {
orig: words[208],
replace: words[209]
}, {
orig: words[210],
replace: words[211]
}, {
orig: words[212],
replace: words[213]
}, {
orig: words[214],
replace: words[215]
}, {
orig: words[216],
replace: words[217]
}, {
orig: words[218],
replace: words[219]
}, {
orig: words[220],
replace: words[221]
}, {
orig: words[222],
replace: words[223]
}, {
orig: words[224],
replace: words[225]
}, {
orig: words[226],
replace: words[227]
}, {
orig: words[228],
replace: words[229]
}, {
orig: words[230],
replace: words[231]
}, {
orig: words[232],
replace: words[233]
}, {
orig: words[234],
replace: words[235]
}, {
orig: words[236],
replace: words[237]
}, {
orig: words[238],
replace: words[239]
}, {
orig: words[240],
replace: words[241]
}, {
orig: words[242],
replace: words[243]
}, {
orig: words[244],
replace: words[245]
}, {
orig: words[246],
replace: words[247]
}, {
orig: words[248],
replace: words[249]
}, {
orig: words[250],
replace: words[251]
}, {
orig: words[252],
replace: words[253]
}, {
orig: words[254],
replace: words[255]
}, {
orig: words[256],
replace: words[257]
}, {
orig: words[258],
replace: words[259]
}, {
orig: words[260],
replace: words[261]
}, {
orig: words[262],
replace: words[263]
}, {
orig: words[264],
replace: words[265]
}, {
orig: words[266],
replace: words[267]
}, {
orig: words[268],
replace: words[269]
}, {
orig: words[270],
replace: words[271]
}, {
orig: words[272],
replace: words[273]
}, {
orig: words[274],
replace: words[275]
}, {
orig: words[276],
replace: words[277]
}, {
orig: words[278],
replace: words[279]
}, {
orig: words[280],
replace: words[281]
}, {
orig: words[282],
replace: words[283]
}, {
orig: words[284],
replace: words[285]
}, {
orig: words[286],
replace: words[287]
}, {
orig: words[288],
replace: words[203]
}, {
orig: words[289],
replace: words[290]
}, {
orig: words[291],
replace: words[292]
}, {
orig: words[293],
replace: words[271]
}, {
orig: words[294],
replace: words[295]
}, {
orig: words[296],
replace: words[297]
}, {
orig: words[298],
replace: words[299]
}, {
orig: words[300],
replace: words[195]
}, {
orig: words[301],
replace: words[302]
}, {
orig: words[303],
replace: words[271]
}, {
orig: words[304],
replace: words[305]
}, {
orig: words[306],
replace: words[307]
}, {
orig: words[308],
replace: words[309]
}, {
orig: words[310],
replace: words[311]
}, {
orig: words[312],
replace: words[313]
}, {
orig: words[314],
replace: words[315]
}, {
orig: words[316],
replace: words[317]
}, {
orig: words[318],
replace: words[319]
}, {
orig: words[320],
replace: words[321]
}, {
orig: words[322],
replace: words[315]
}, {
orig: words[323],
replace: words[324]
}, {
orig: words[325],
replace: words[326]
}, {
orig: words[327],
replace: words[328]
}, {
orig: words[329],
replace: words[330]
}, {
orig: words[331],
replace: words[332]
}, {
orig: words[333],
replace: words[334]
}, {
orig: words[335],
replace: words[336]
}, {
orig: words[337],
replace: words[338]
}, {
orig: words[339],
replace: words[340]
}, {
orig: words[341],
replace: words[342]
}, {
orig: words[343],
replace: words[344]
}, {
orig: words[345],
replace: words[346]
}, {
orig: words[347],
replace: words[348]
}, {
orig: words[349],
replace: words[350]
}, {
orig: words[351],
replace: words[352]
}, {
orig: words[353],
replace: words[354]
}, {
orig: words[355],
replace: words[356]
}, {
orig: words[357],
replace: words[358]
}, {
orig: words[359],
replace: words[360]
}, {
orig: words[361],
replace: words[362]
}, {
orig: words[363],
replace: words[364]
}, {
orig: words[365],
replace: words[346]
}, {
orig: words[366],
replace: words[367]
}, {
orig: words[368],
replace: words[369]
}, {
orig: words[370],
replace: words[371]
}, {
orig: words[372],
replace: words[373]
}, {
orig: words[374],
replace: words[375]
}, {
orig: words[376],
replace: words[377]
}, {
orig: words[378],
replace: words[379]
}, {
orig: words[380],
replace: words[313]
}, {
orig: words[381],
replace: words[229]
}, {
orig: words[382],
replace: words[383]
}, {
orig: words[384],
replace: words[385]
}, {
orig: words[386],
replace: words[387]
}, {
orig: words[388],
replace: words[389]
}, {
orig: words[390],
replace: words[391]
}, {
orig: words[392],
replace: words[393]
}, {
orig: words[394],
replace: words[395]
}, {
orig: words[396],
replace: words[397]
}, {
orig: words[398],
replace: words[399]
}, {
orig: words[400],
replace: words[399]
}, {
orig: words[401],
replace: words[402]
}, {
orig: words[403],
replace: words[404]
}, {
orig: words[405],
replace: words[406]
}, {
orig: words[407],
replace: words[408]
}, {
orig: words[409],
replace: words[410]
}, {
orig: words[411],
replace: words[313]
}, {
orig: words[412],
replace: words[413]
}, {
orig: words[414],
replace: words[415]
}, {
orig: words[416],
replace: words[389]
}, {
orig: words[417],
replace: words[418]
}, {
orig: words[419],
replace: words[420]
}, {
orig: words[421],
replace: words[422]
}, {
orig: words[423],
replace: words[424]
}, {
orig: words[425],
replace: words[426]
}, {
orig: words[427],
replace: words[428]
}, {
orig: words[429],
replace: words[430]
}, {
orig: words[431],
replace: words[432]
}, {
orig: words[433],
replace: words[434]
}, {
orig: words[435],
replace: words[436]
}, {
orig: words[437],
replace: words[438]
}, {
orig: words[439],
replace: words[440]
}, {
orig: words[441],
replace: words[442]
}, {
orig: words[443],
replace: words[444]
}, {
orig: words[445],
replace: words[275]
}, {
orig: words[446],
replace: words[447]
}, {
orig: words[448],
replace: words[449]
}, {
orig: words[450],
replace: words[451]
}, {
orig: words[452],
replace: words[453]
}, {
orig: words[454],
replace: words[455]
}, {
orig: words[456],
replace: words[313]
}, {
orig: words[457],
replace: words[458]
}, {
orig: words[459],
replace: words[460]
}, {
orig: words[461],
replace: words[462]
}, {
orig: words[463],
replace: words[24]
}, {
orig: words[464],
replace: words[465]
}, {
orig: words[466],
replace: words[467]
}, {
orig: words[468],
replace: words[469]
}, {
orig: words[470],
replace: words[239]
}, {
orig: words[471],
replace: words[472]
}, {
orig: words[473],
replace: words[474]
}, {
orig: words[475],
replace: words[313]
}, {
orig: words[476],
replace: words[477]
}, {
orig: words[478],
replace: words[180]
}, {
orig: words[479],
replace: words[480]
}, {
orig: words[481],
replace: words[482]
}];
var passiveList = [];
passiveList = [{
orig: words[483],
replace: words[484]
}, {
orig: words[485],
replace: words[486]
}, {
orig: words[487],
replace: words[488]
}, {
orig: words[489],
replace: words[489]
}, {
orig: words[490],
replace: words[491]
}, {
orig: words[492],
replace: words[492]
}, {
orig: words[493],
replace: words[494]
}, {
orig: words[495],
replace: words[496]
}, {
orig: words[497],
replace: words[497]
}, {
orig: words[498],
replace: words[498]
}, {
orig: words[499],
replace: words[499]
}, {
orig: words[500],
replace: words[500]
}, {
orig: words[501],
replace: words[502]
}, {
orig: words[338],
replace: words[338]
}, {
orig: words[503],
replace: words[503]
}, {
orig: words[504],
replace: words[505]
}, {
orig: words[506],
replace: words[507]
}, {
orig: words[508],
replace: words[509]
}, {
orig: words[510],
replace: words[511]
}, {
orig: words[512],
replace: words[512]
}, {
orig: words[513],
replace: words[513]
}, {
orig: words[514],
replace: words[514]
}, {
orig: words[515],
replace: words[515]
}, {
orig: words[516],
replace: words[517]
}, {
orig: words[518],
replace: words[519]
}, {
orig: words[520],
replace: words[521]
}, {
orig: words[522],
replace: words[523]
}, {
orig: words[524],
replace: words[525]
}, {
orig: words[526],
replace: words[527]
}, {
orig: words[528],
replace: words[528]
}, {
orig: words[528],
replace: words[529]
}, {
orig: words[530],
replace: words[530]
}, {
orig: words[531],
replace: words[531]
}, {
orig: words[532],
replace: words[533]
}, {
orig: words[534],
replace: words[534]
}, {
orig: words[535],
replace: words[535]
}, {
orig: words[536],
replace: words[536]
}, {
orig: words[537],
replace: words[537]
}, {
orig: words[538],
replace: words[539]
}, {
orig: words[540],
replace: words[540]
}, {
orig: words[541],
replace: words[541]
}, {
orig: words[542],
replace: words[542]
}, {
orig: words[543],
replace: words[543]
}, {
orig: words[544],
replace: words[544]
}, {
orig: words[545],
replace: words[545]
}, {
orig: words[546],
replace: words[546]
}, {
orig: words[547],
replace: words[547]
}, {
orig: words[548],
replace: words[548]
}, {
orig: words[549],
replace: words[550]
}, {
orig: words[551],
replace: words[551]
}, {
orig: words[552],
replace: words[552]
}, {
orig: words[553],
replace: words[554]
}, {
orig: words[555],
replace: words[556]
}, {
orig: words[557],
replace: words[558]
}, {
orig: words[559],
replace: words[559]
}, {
orig: words[560],
replace: words[561]
}, {
orig: words[562],
replace: words[562]
}, {
orig: words[563],
replace: words[563]
}, {
orig: words[564],
replace: words[565]
}, {
orig: words[566],
replace: words[566]
}, {
orig: words[567],
replace: words[567]
}, {
orig: words[568],
replace: words[251]
}, {
orig: words[569],
replace: words[569]
}, {
orig: words[570],
replace: words[570]
}, {
orig: words[571],
replace: words[571]
}, {
orig: words[572],
replace: words[573]
}, {
orig: words[574],
replace: words[574]
}, {
orig: words[575],
replace: words[576]
}, {
orig: words[577],
replace: words[577]
}, {
orig: words[578],
replace: words[578]
}, {
orig: words[579],
replace: words[579]
}, {
orig: words[580],
replace: words[580]
}, {
orig: words[581],
replace: words[582]
}, {
orig: words[583],
replace: words[583]
}, {
orig: words[584],
replace: words[584]
}, {
orig: words[585],
replace: words[585]
}, {
orig: words[586],
replace: words[587]
}, {
orig: words[588],
replace: words[588]
}, {
orig: words[589],
replace: words[590]
}, {
orig: words[591],
replace: words[591]
}, {
orig: words[592],
replace: words[592]
}, {
orig: words[593],
replace: words[594]
}, {
orig: words[595],
replace: words[596]
}, {
orig: words[597],
replace: words[597]
}, {
orig: words[598],
replace: words[598]
}, {
orig: words[599],
replace: words[600]
}, {
orig: words[601],
replace: words[602]
}, {
orig: words[603],
replace: words[603]
}, {
orig: words[604],
replace: words[605]
}, {
orig: words[606],
replace: words[607]
}];
function applyText(_0x2c3ax18) {
_0x2c3ax18 = _0x2c3ax18[words[609]](/(<)([^>]*)(>)/g, words[608]);
var _0x2c3ax21 = _0x2c3ax18[words[610]](/^(\n)+/);
if (_0x2c3ax21) {
var _0x2c3ax22 = _0x2c3ax21[0][words[579]](/\n/);
console[words[611]](_0x2c3ax22[words[107]]);
var _0x2c3ax23 = words[612];
for (var _0x2c3ax24 = 0; _0x2c3ax24 < _0x2c3ax22[words[107]] - 1; _0x2c3ax24++) {
_0x2c3ax23 += words[613];
};
_0x2c3ax18 = _0x2c3ax18[words[609]](/^(\n)+/, _0x2c3ax23);
};
_0x2c3ax18 = _0x2c3ax18[words[609]](/(\n\n)( )+(\n\n)/g, words[614]);
_0x2c3ax18 = _0x2c3ax18[words[609]](/((\n\n)*)(\n\n)/g, words[615]);
_0x2c3ax18 = _0x2c3ax18[words[609]](/\b(Mr|Ms|Mrs|Dr|U\.S|Col|Sgt|Lt|Adm|Maj|Sen|Rep|Jan|Feb|Apr|Mar|Jun|Jul|Aug|Sep|Sept|Oct|Nov|Dec|Pvt|Cpl|Capt|Gen|Ave|St|inc|ft|Gov|Jr|Sr|ltd|Rev|M|Mme|Prof|Pres|Hon|[A-Z])(\.)\s/g, words[616]);
_0x2c3ax18 = _0x2c3ax18[words[609]](/(etc|vs|\.\.|e\.g|i\.e|a\.m|p\.m)(\.)(\"|\â€)?(\s)?([a-z])/g, words[617]);
_0x2c3ax18 = _0x2c3ax18[words[609]](/\.(\)|\"|\â€|\')?( |\n)/g, words[618]);
_0x2c3ax18 = _0x2c3ax18[words[609]](/\?(\)|\"|\â€|\')?( |\n)/g, words[619]);
_0x2c3ax18 = _0x2c3ax18[words[609]](/!(\)|\"|\â€|\')?( |\n)/g, words[620]);
_0x2c3ax18 = _0x2c3ax18[words[609]](/\n\t/g, words[621]);
_0x2c3ax18 = _0x2c3ax18[words[609]](/(•)\t/g, words[622]);
_0x2c3ax18 = _0x2c3ax18[words[609]](/\t/g, words[623]);
_0x2c3ax18 = _0x2c3ax18[words[609]](/\n$/, words[624]);
_0x2c3ax18 = _0x2c3ax18[words[609]](/\n/g, words[625]);
_0x2c3ax18 = _0x2c3ax18[words[609]](/\s(\s)/g, words[626]);
_0x2c3ax18 = _0x2c3ax18[words[609]](/\b(a number of|abundance|accede to|accelerate|accentuate|accompany|accomplish|accorded|accrue|acquiesce|acquire|additional|adjacent to|adjustment|admissible|advantageous|adversely impact|advise|aforementioned|aggregate|aircraft|all of|alleviate|allocate|along the lines of|already existing|alternatively|ameliorate|anticipate|apparent|appreciable|as a means of|as of yet|as to|as yet|ascertain|assistance|at this time|attain|attributable to|authorize|because of the fact that|belated|benefit from|bestow|by virtue of|cease|close proximity|commence|comply with|concerning|consequently|consolidate|constitutes|demonstrate|depart|designate|discontinue|due to the fact that|each and every|economical|eliminate|elucidate|employ|endeavor|enumerate|equitable|equivalent|evaluate|evidenced|exclusively|expedite|expend|expiration|facilitate|factual evidence|feasible|finalize|first and foremost|for the purpose of|forfeit|formulate|honest truth|however|if and when|impacted|implement|in a timely manner|in accordance with|in addition|in all likelihood|in an effort to|in between|in excess of|in lieu of|in light of the fact that|in many cases|in order to|in regard to|in some instances|in terms of|in the near future|in the process of|inception|incumbent upon|indicate|indication|initiate|is applicable to|is authorized to|is responsible for|it is essential|magnitude|maximum|methodology|minimize|minimum|modify|monitor|multiple|necessitate|nevertheless|not certain|not many|not often|not unless|not unlike|notwithstanding|null and void|numerous|objective|obligate|obtain|on the contrary|on the other hand|one particular|optimum|overall|owing to the fact that|participate|particulars|pass away|pertaining to|point in time|portion|possess|preclude|previously|prior to|prioritize|procure|proficiency|provided that|purchase|put simply|readily apparent|refer back|regarding|relocate|remainder|remuneration|require|requirement|reside|residence|retain|satisfy|shall|should you wish|similar to|solicit|span across|strategize|subsequent|substantial|successfully complete|sufficient|terminate|the month of|therefore|time period|took advantage of|transmit|transpire|until such time as|utilization|utilize|validate|various different|very|whether or not|with respect to|with the exception of|witnessed)\b/gi, words[627]);
_0x2c3ax18 = _0x2c3ax18[words[609]](/\b(is|are|was|were|be|been|being)(\s)(([a-z]+ed)|awoken|beaten|begun|bent|bitten|bled|blown|broken|brought|built|bought|caught|chosen|cut|dealt|done|drawn|driven|eaten|fed|felt|fought|found|flown|forbidden|forgotten|forgiven|frozen|gotten|given|ground|hung|heard|hidden|hit|held|hurt|kept|known|laid|led|left|let|lost|made|meant|met|paid|proven|put|read|ridden|rung|run|said|seen|sold|sent|shaken|shaved|shot|shown|shut|sung|sunk|slain|slid|spoken|spent|spun|split|spread|stolen|struck|swept|swung|taken|taught|torn|told|thought|thrown|undergone|understood|upset|woken|worn|won|withdrawn|written)(\sby)?\b/gi, words[628]);
_0x2c3ax18 = _0x2c3ax18[words[609]](/(\b)(famil|ugl|onl|definitel|unfortunatel|friendl|especiall|finall|likel|sill|lonel|earl|exactl|recentl|ital|jul|latel|immediatel|shortl|chill|currentl|allegedl|dail|nightl|weekl|hourl|monthl|yearl|quarterl|rarel|additionall|roughl|deadl|completel|all|anomal|assembl|bell|rall|repl|appl|timel|previousl|bel|elderl|compl|impl|multipl|rel|repl|exclusivel|suppl|tall|bull|hol|doll|doil|alternativel|gull|hillbill|consequentl|holl|homil|jell|lil|monopol|mentall|panopl|potbell|underbell|butterfl|dragonfl|firefl|gadfl|horsefl|moll|troll|foll|bubbl|worldl|bristl|crinkl|crumbl|cuddl|luckil|giggl|jiggl|smell|sparkl|wrinkl|presumabl|approximatel|usuall|particularl|emil|ashel|ashl|bail|bradl|bill|carl|charl|karl|doll|ell|hill|sill|dill|hall|hail|harl|holl|jill|joll|kell|karl|lill|loll|lil|moll|poll|pual|paull|shell|sall|shirl|tall|waverl|will)(y)(\b)/gi, words[629]);
_0x2c3ax18 = _0x2c3ax18[words[609]](/(\b)([a-z]{2,}ly)(\b)/gi, words[630]);
$(words[11])[words[633]](words[631] + _0x2c3ax18 + words[632]);
};
function analyze(_0x2c3ax19) {
var _0x2c3ax26 = _0x2c3ax19[1],
_0x2c3ax27 = _0x2c3ax19[0];
var _0x2c3ax28 = _0x2c3ax19[2];
var _0x2c3ax29 = $(words[634]);
var _0x2c3ax2a = _0x2c3ax29[words[107]];
var _0x2c3ax2b = null;
if (_0x2c3ax27 > 0) {
_0x2c3ax2b = getReadingLevel(_0x2c3ax2a, _0x2c3ax28, _0x2c3ax26, _0x2c3ax27);
};
if (_0x2c3ax2b < 0 || _0x2c3ax2b === null) {
_0x2c3ax2b = 0;
};
var _0x2c3ax1a = [_0x2c3ax27, _0x2c3ax26, _0x2c3ax28, _0x2c3ax2a, _0x2c3ax2b];
return _0x2c3ax1a;
};
function analyzeP() {
var _0x2c3ax29 = $(words[634]);
for (var _0x2c3ax24 = 0; _0x2c3ax24 < _0x2c3ax29[words[107]]; _0x2c3ax24++) {
var _0x2c3ax2d = $(_0x2c3ax29[_0x2c3ax24])[words[635]]();
var _0x2c3ax2e = 0,
_0x2c3ax2f = 0;
for (var _0x2c3ax30 = 0; _0x2c3ax30 < _0x2c3ax2d[words[107]]; _0x2c3ax30++) {
_0x2c3ax2f += $(_0x2c3ax2d[_0x2c3ax30])[words[637]](words[636]);
_0x2c3ax2e += $(_0x2c3ax2d[_0x2c3ax30])[words[637]](words[638]);
};
$(_0x2c3ax29[_0x2c3ax24])[words[639]]();
$(_0x2c3ax29[_0x2c3ax24])[words[637]](words[636], _0x2c3ax2f);
$(_0x2c3ax29[_0x2c3ax24])[words[637]](words[638], _0x2c3ax2e);
};
};
function analyzeS() {
s = $(words[640]);
var _0x2c3ax32 = 0,
_0x2c3ax33 = 0,
_0x2c3ax34 = s[words[107]];
for (var _0x2c3ax24 = 0; _0x2c3ax24 < s[words[107]]; _0x2c3ax24++) {
var _0x2c3ax35 = $(s[_0x2c3ax24])[words[641]]();
var _0x2c3ax36 = _0x2c3ax35[words[609]](/['";:,.?¿\-\—!¡]+/g, words[612])[words[610]](/\S+/g);
if (_0x2c3ax36) {
_0x2c3ax36 = _0x2c3ax36[words[107]];
};
var _0x2c3ax37 = _0x2c3ax35[words[609]](/\s/g, words[612])[words[107]];
_0x2c3ax32 += _0x2c3ax36;
_0x2c3ax33 += _0x2c3ax37;
var _0x2c3ax38 = getReadingLevel(1, 1, _0x2c3ax36, _0x2c3ax37);
if (_0x2c3ax38 > 12 && _0x2c3ax38 <= 16 && _0x2c3ax36 > 14) {
$(s[_0x2c3ax24])[words[643]](words[642]);
} else {
if (_0x2c3ax38 > 16 && _0x2c3ax36 > 14) {
$(s[_0x2c3ax24])[words[643]](words[642]);
$(s[_0x2c3ax24])[words[643]](words[644]);
} else {
if ($(s[_0x2c3ax24])[words[33]](words[642])) {
$(s[_0x2c3ax24])[words[645]](words[642]);
if ($(s[_0x2c3ax24])[words[33]](words[644])) {
$(s[_0x2c3ax24])[words[645]](words[644]);
};
};
};
}; if (_0x2c3ax36 === null) {
_0x2c3ax34--;
if (_0x2c3ax24 != s[words[107]] - 1) {
$(s[_0x2c3ax24])[words[646]]();
};
};
};
return [_0x2c3ax33, _0x2c3ax32, _0x2c3ax34];
};
function getReadingLevel(_0x2c3ax29, s, _0x2c3ax3a, _0x2c3ax3b) {
var _0x2c3ax3c = Math[words[647]]((4.75 * (_0x2c3ax3b / _0x2c3ax3a)) + (0.5 * (_0x2c3ax3a / s)) - 21.43);
return _0x2c3ax3c;
};
function wordFreq(_0x2c3ax3e) {
var _0x2c3ax3a = _0x2c3ax3e[words[609]](/['";:,.?¿\-!¡]+/g, words[612])[words[610]](/\S+/g);
var _0x2c3ax3f = [];
if (_0x2c3ax3a === null) {
_0x2c3ax3a = 0;
};
for (var _0x2c3ax24 = 0; _0x2c3ax24 < _0x2c3ax3a[words[107]]; _0x2c3ax24++) {
var _0x2c3ax40 = _0x2c3ax3a[_0x2c3ax24];
_0x2c3ax40 = _0x2c3ax40[words[648]]();
if (_0x2c3ax40[words[649]](_0x2c3ax40[words[107]] - 1) == words[650]) {
_0x2c3ax40 = _0x2c3ax40[words[19]](0, _0x2c3ax40[words[107]] - 1);
};
if (_0x2c3ax40[words[107]] > 3) {
var _0x2c3ax21 = $[words[652]](_0x2c3ax3f, function (_0x2c3axc) {
return _0x2c3axc[words[651]] == _0x2c3ax40;
});
if (_0x2c3ax21[words[107]] > 0) {
_0x2c3ax21[0][words[243]]++;
} else {
_0x2c3ax3f[words[653]](new wordObj(_0x2c3ax40, 1));
};
};
};
_0x2c3ax3f[words[654]](compare);
var _0x2c3ax41 = _0x2c3ax3f[words[655]](0, 10);
$(words[657])[words[656]]();
$(words[657])[words[633]](words[658]);
for (_0x2c3ax24 = 0; _0x2c3ax24 < _0x2c3ax41[words[107]]; _0x2c3ax24++) {
$(words[657])[words[661]](_0x2c3ax41[_0x2c3ax24][words[651]] + words[659] + _0x2c3ax41[_0x2c3ax24][words[243]] + words[660]);
};
};
function wordObj(_0x2c3ax43, _0x2c3ax44) {
this[words[651]] = _0x2c3ax43;
this[words[243]] = _0x2c3ax44;
};
function compare(_0x2c3ax46, _0x2c3ax47) {
if (_0x2c3ax46[words[243]] < _0x2c3ax47[words[243]]) {
return 1;
};
if (_0x2c3ax46[words[243]] > _0x2c3ax47[words[243]]) {
return -1;
};
return 0;
};
function sentenceUI(_0x2c3ax34) {
var _0x2c3ax49 = $(words[662])[words[107]];
var _0x2c3ax4a = $(words[663])[words[107]] - _0x2c3ax49;
$(words[664])[words[641]](_0x2c3ax4a);
$(words[665])[words[641]](_0x2c3ax49);
$(words[666])[words[641]](_0x2c3ax34);
};
function hideYellowSentences() {
var _0x2c3ax4c = $(words[663])[words[667]](words[662]);
if (_0x2c3ax4c === null) {
_0x2c3ax4c = 0;
};
for (var _0x2c3ax24 = 0; _0x2c3ax24 < _0x2c3ax4c[words[107]]; _0x2c3ax24++) {
$(_0x2c3ax4c[_0x2c3ax24])[words[643]](words[668]);
};
};
function showYellowSentences() {
var _0x2c3ax4c = $(words[663])[words[667]](words[662]);
if (_0x2c3ax4c === null) {
_0x2c3ax4c = 0;
};
for (var _0x2c3ax24 = 0; _0x2c3ax24 < _0x2c3ax4c[words[107]]; _0x2c3ax24++) {
if ($(_0x2c3ax4c[_0x2c3ax24])[words[33]](words[668])) {
$(_0x2c3ax4c[_0x2c3ax24])[words[645]](words[668]);
};
};
};
function hideRedSentences() {
var _0x2c3ax4f = $(words[662]);
if (_0x2c3ax4f === null) {
_0x2c3ax4f = 0;
};
for (var _0x2c3ax24 = 0; _0x2c3ax24 < _0x2c3ax4f[words[107]]; _0x2c3ax24++) {
$(_0x2c3ax4f[_0x2c3ax24])[words[643]](words[668]);
};
};
function showRedSentences() {
var _0x2c3ax4f = $(words[662]);
if (_0x2c3ax4f === null) {
_0x2c3ax4f = 0;
};
for (var _0x2c3ax24 = 0; _0x2c3ax24 < _0x2c3ax4f[words[107]]; _0x2c3ax24++) {
if ($(_0x2c3ax4f[_0x2c3ax24])[words[33]](words[668])) {
$(_0x2c3ax4f[_0x2c3ax24])[words[645]](words[668]);
};
};
};
function adverbUI(_0x2c3ax29) {
var _0x2c3ax52 = $(words[669])[words[107]];
var _0x2c3ax53 = _0x2c3ax29;
if (_0x2c3ax52 === null) {
_0x2c3ax52 = 0;
};
$(words[670])[words[641]](_0x2c3ax52);
if (_0x2c3ax53 === null) {
_0x2c3ax53 = 0;
};
var _0x2c3ax54 = Math[words[647]](_0x2c3ax53 / 3);
$(words[671])[words[641]](_0x2c3ax54);
};
function hideAdverbs() {
var _0x2c3ax56 = $(words[669]);
if (_0x2c3ax56 === null) {
_0x2c3ax56 = 0;
};
for (var _0x2c3ax24 = 0; _0x2c3ax24 < _0x2c3ax56[words[107]]; _0x2c3ax24++) {
$(_0x2c3ax56[_0x2c3ax24])[words[643]](words[668]);
};
};
function showAdverbs() {
var _0x2c3ax56 = $(words[669]);
if (_0x2c3ax56 === null) {
_0x2c3ax56 = 0;
};
for (var _0x2c3ax24 = 0; _0x2c3ax24 < _0x2c3ax56[words[107]]; _0x2c3ax24++) {
if ($(_0x2c3ax56[_0x2c3ax24])[words[33]](words[668])) {
$(_0x2c3ax56[_0x2c3ax24])[words[645]](words[668]);
};
};
};
function hideStuffy() {
var _0x2c3ax59 = $(words[672]);
if (_0x2c3ax59 === null) {
_0x2c3ax59 = 0;
};
for (var _0x2c3ax24 = 0; _0x2c3ax24 < _0x2c3ax59[words[107]]; _0x2c3ax24++) {
$(_0x2c3ax59[_0x2c3ax24])[words[643]](words[668]);
};
};
function showStuffy() {
var _0x2c3ax59 = $(words[672]);
if (_0x2c3ax59 === null) {
_0x2c3ax59 = 0;
};
for (var _0x2c3ax24 = 0; _0x2c3ax24 < _0x2c3ax59[words[107]]; _0x2c3ax24++) {
if ($(_0x2c3ax59[_0x2c3ax24])[words[33]](words[668])) {
$(_0x2c3ax59[_0x2c3ax24])[words[645]](words[668]);
};
};
};
function hidePassive() {
var _0x2c3ax5c = $(words[673]);
if (_0x2c3ax5c === null) {
_0x2c3ax5c = 0;
};
for (var _0x2c3ax24 = 0; _0x2c3ax24 < _0x2c3ax5c[words[107]]; _0x2c3ax24++) {
$(_0x2c3ax5c[_0x2c3ax24])[words[643]](words[668]);
};
};
function showPassive() {
var _0x2c3ax5c = $(words[673]);
if (_0x2c3ax5c === null) {
_0x2c3ax5c = 0;
};
for (var _0x2c3ax24 = 0; _0x2c3ax24 < _0x2c3ax5c[words[107]]; _0x2c3ax24++) {
if ($(_0x2c3ax5c[_0x2c3ax24])[words[33]](words[668])) {
$(_0x2c3ax5c[_0x2c3ax24])[words[645]](words[668]);
};
};
};
function readabilityUI(_0x2c3ax2b, _0x2c3ax28) {
if (_0x2c3ax28 > 1) {
$(words[674])[words[633]](words[109] + _0x2c3ax2b);
setReadColor(_0x2c3ax2b);
} else {
$(words[674])[words[633]](words[675]);
hideReadWord();
};
positionArrow(_0x2c3ax2b);
};
function hideReadWord() {
$(words[677])[words[676]]();
};
function setReadColor(_0x2c3ax2b) {
$(words[677])[words[88]]();
if (_0x2c3ax2b > 16) {
$(words[674])[words[37]](words[678], words[679]);
$(words[681])[words[641]](words[680]);
$(words[684])[words[37]](words[682], words[683]);
} else {
if (_0x2c3ax2b > 10) {
$(words[674])[words[37]](words[678], words[685]);
$(words[681])[words[641]](words[686]);
$(words[684])[words[37]](words[682], words[687]);
} else {
$(words[674])[words[37]](words[678], words[688]);
$(words[681])[words[641]](words[689]);
$(words[684])[words[37]](words[682], words[690]);
};
};
};
function positionArrow(_0x2c3ax2b) {
var _0x2c3ax62 = (_0x2c3ax2b - 4) * 5;
if (_0x2c3ax62 < 0) {
_0x2c3ax62 = 0;
};
if (_0x2c3ax62 > 100) {
_0x2c3ax62 = 100;
};
var _0x2c3ax63 = (_0x2c3ax62 / 100) * 76;
var _0x2c3ax64 = _0x2c3ax63 + words[691];
$(words[684])[words[37]](words[542], _0x2c3ax64);
};
function statsUI(_0x2c3ax1a) {
var _0x2c3ax27 = _0x2c3ax1a[0];
var _0x2c3ax26 = _0x2c3ax1a[1];
var _0x2c3ax28 = _0x2c3ax1a[2];
var _0x2c3ax2a = _0x2c3ax1a[3];
$(words[696])[words[633]](words[692] + _0x2c3ax2a + words[693] + _0x2c3ax28 + words[694] + _0x2c3ax26 + words[695] + _0x2c3ax27);
};
function showYellowToggle() {
$(words[697])[words[40]](100);
};
function hideYellowToggle() {
$(words[697])[words[112]](100);
};
function showRedToggle() {
$(words[698])[words[40]](100);
};
function hideRedToggle() {
$(words[698])[words[112]](100);
};
function showAdverbToggle() {
$(words[699])[words[40]](100);
};
function hideAdverbToggle() {
$(words[699])[words[112]](100);
};
function showStuffyToggle() {
$(words[700])[words[40]](100);
};
function hideStuffyToggle() {
$(words[700])[words[112]](100);
};
function showPassiveToggle() {
$(words[701])[words[40]](100);
};
function hidePassiveToggle() {
$(words[701])[words[112]](100);
};
function stuffyUI() {
var _0x2c3ax71 = $(words[702])[words[107]];
$(words[703])[words[633]](_0x2c3ax71);
};
function passiveUI(_0x2c3ax28) {
var _0x2c3ax73 = $(words[704])[words[107]];
if (_0x2c3ax73 === null) {
_0x2c3ax73 = 0;
};
$(words[705])[words[633]](_0x2c3ax73);
var _0x2c3ax74 = 0;
if (_0x2c3ax73 != 0 && _0x2c3ax28 != 0) {
_0x2c3ax74 = Math[words[647]](_0x2c3ax28 / 5);
};
$(words[706])[words[633]](_0x2c3ax74);
};
function checkHover(_0x2c3ax76) {
var _0x2c3ax30 = _0x2c3ax76[words[707]];
var _0x2c3ax77 = _0x2c3ax76[words[708]];
var _0x2c3ax78 = $(words[702]);
var _0x2c3ax79 = $(words[704]);
checkLongHover(_0x2c3ax78, _0x2c3ax30, _0x2c3ax77);
checkPassiveHover(_0x2c3ax79, _0x2c3ax30, _0x2c3ax77);
};
function checkLongHover(_0x2c3ax78, _0x2c3ax30, _0x2c3ax77) {
for (var _0x2c3ax24 = 0; _0x2c3ax24 < _0x2c3ax78[words[107]]; _0x2c3ax24++) {
var _0x2c3ax7b = $(_0x2c3ax78[_0x2c3ax24])[words[709]]();
var _0x2c3ax7c = _0x2c3ax7b[words[542]];
var _0x2c3ax7d = _0x2c3ax7b[words[710]];
var _0x2c3ax7e = $(_0x2c3ax78[_0x2c3ax24])[words[711]]();
var _0x2c3ax7f = $(_0x2c3ax78[_0x2c3ax24])[words[712]]();
var _0x2c3ax80 = _0x2c3ax7c + _0x2c3ax7e;
var _0x2c3ax81 = _0x2c3ax7d + _0x2c3ax7f;
if (_0x2c3ax77 > _0x2c3ax7d && _0x2c3ax77 < _0x2c3ax81 && _0x2c3ax30 > _0x2c3ax7c && _0x2c3ax30 < _0x2c3ax80) {
showSimple(_0x2c3ax78[_0x2c3ax24]);
break;
} else {
hideTooltip(_0x2c3ax78[_0x2c3ax24]);
if (_0x2c3ax24 == _0x2c3ax78[words[107]] - 1) {
purpleTooltipActive = false;
};
};
};
};
function checkPassiveHover(_0x2c3ax79, _0x2c3ax30, _0x2c3ax77) {
for (var _0x2c3ax24 = 0; _0x2c3ax24 < _0x2c3ax79[words[107]]; _0x2c3ax24++) {
var _0x2c3ax7b = $(_0x2c3ax79[_0x2c3ax24])[words[709]]();
var _0x2c3ax7c = _0x2c3ax7b[words[542]];
var _0x2c3ax7d = _0x2c3ax7b[words[710]];
var _0x2c3ax7e = $(_0x2c3ax79[_0x2c3ax24])[words[711]]();
var _0x2c3ax7f = $(_0x2c3ax79[_0x2c3ax24])[words[712]]();
var _0x2c3ax80 = _0x2c3ax7c + _0x2c3ax7e;
var _0x2c3ax81 = _0x2c3ax7d + _0x2c3ax7f;
if (_0x2c3ax77 > _0x2c3ax7d && _0x2c3ax77 < _0x2c3ax81 && _0x2c3ax30 > _0x2c3ax7c && _0x2c3ax30 < _0x2c3ax80) {
showPassiveTooltip(_0x2c3ax79[_0x2c3ax24]);
break;
} else {
hideTooltip(_0x2c3ax79[_0x2c3ax24]);
if (_0x2c3ax24 == _0x2c3ax79[words[107]] - 1) {
greenTooltipActive = false;
};
};
};
};
function showPassiveTooltip(_0x2c3ax84) {
var _0x2c3ax85 = $(_0x2c3ax84)[words[641]]();
_0x2c3ax85 = _0x2c3ax85[words[610]](/(\b)(\s)(\w)+(by)?/i)[0][words[648]]();
_0x2c3ax85 = $[words[713]](_0x2c3ax85);
if (_0x2c3ax85[words[649]](_0x2c3ax85[words[107]] - 2) == words[714] && _0x2c3ax85[words[649]](_0x2c3ax85[words[107]] - 1) == words[715]) {
var _0x2c3ax86 = words[716] + _0x2c3ax85 + words[717];
showGreenTooltip(_0x2c3ax86, _0x2c3ax84);
} else {
for (var _0x2c3ax24 = 0; _0x2c3ax24 < passiveList[words[107]]; _0x2c3ax24++) {
var _0x2c3ax87 = passiveList[_0x2c3ax24][words[718]];
if (_0x2c3ax85 == _0x2c3ax87) {
var _0x2c3ax86 = passiveList[_0x2c3ax24][words[609]];
var _0x2c3ax88 = words[716] + _0x2c3ax86 + words[717];
showGreenTooltip(_0x2c3ax88, _0x2c3ax84);
};
};
};
};
function showSimple(_0x2c3ax84) {
var _0x2c3ax18 = $(_0x2c3ax84)[words[641]]();
_0x2c3ax18 = _0x2c3ax18[words[648]]();
for (var _0x2c3ax24 = 0; _0x2c3ax24 < simpleList[words[107]]; _0x2c3ax24++) {
var _0x2c3ax87 = simpleList[_0x2c3ax24][words[718]];
_0x2c3ax87 = $[words[713]](_0x2c3ax87);
_0x2c3ax87 = _0x2c3ax87[words[648]]();
if (_0x2c3ax87 == _0x2c3ax18) {
var _0x2c3ax86 = simpleList[_0x2c3ax24][words[609]];
_0x2c3ax86 = $[words[713]](_0x2c3ax86);
var _0x2c3ax88 = words[719] + _0x2c3ax86;
showPurpleTooltip(_0x2c3ax88, _0x2c3ax84);
};
};
};
function showPurpleTooltip(_0x2c3ax8b, _0x2c3ax84) {
if (purpleTooltipActive == false) {
$(_0x2c3ax84)[words[721]](words[720], _0x2c3ax8b);
$(_0x2c3ax84)[words[71]](words[88]);
purpleTooltipActive = true;
};
};
function showGreenTooltip(_0x2c3ax8b, _0x2c3ax84) {
if (greenTooltipActive == false) {
$(_0x2c3ax84)[words[721]](words[720], _0x2c3ax8b);
$(_0x2c3ax84)[words[71]](words[88]);
greenTooltipActive = true;
};
};
function hideTooltip(_0x2c3ax84) {
$(_0x2c3ax84)[words[71]](words[722]);
};
function stayed30Secs() {
ga(words[24], words[25], words[26], words[723], words[724]);
};
function stayed120Secs() {
ga(words[24], words[25], words[26], words[723], words[725]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment