From 4cbbc04d2e3e4559167dee1807935331986309f5 Mon Sep 17 00:00:00 2001 From: Alex Meyer Date: Thu, 10 Nov 2016 15:16:25 -0600 Subject: [PATCH] added new content html CSS JS --- public/css/style.css | 43 ++++++++++++++++++++++++++++--------------- views/index.ejs | 39 ++++++++++++++++++++++++++++++++++++--- 2 files changed, 64 insertions(+), 18 deletions(-) diff --git a/public/css/style.css b/public/css/style.css index 9d36a182..e434d206 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -1366,7 +1366,7 @@ pre[class*=" language-"] { .summary--emotion { background-color: #f9f9f9; padding: 1rem; - height: 17rem; } + height: 21.5rem; } @media (min-width: 768px) { .summary--emotion { width: 31.91489%; @@ -1377,15 +1377,15 @@ pre[class*=" language-"] { margin-top: 0rem; } } @media (min-width: 768px) { .summary--emotion { - height: 17rem; } } + height: 21.5rem; } } @media (min-width: 1200px) { .summary--emotion { - height: 16.5rem; } } + height: 21.5rem; } } .summary--writing { background-color: #f9f9f9; padding: 1rem; - height: 17rem; } + height: 21.5rem; } @media (min-width: 768px) { .summary--writing { width: 31.91489%; @@ -1396,15 +1396,15 @@ pre[class*=" language-"] { margin-top: 0rem; } } @media (min-width: 768px) { .summary--writing { - height: 17rem; } } + height: 21.5rem; } } @media (min-width: 1200px) { .summary--writing { - height: 16.5rem; } } + height: 21.5rem; } } .summary--social { background-color: #f9f9f9; padding: 1rem; - height: 17rem; } + height: 21.5rem; } @media (min-width: 768px) { .summary--social { width: 31.91489%; @@ -1415,10 +1415,10 @@ pre[class*=" language-"] { margin-top: 0rem; } } @media (min-width: 768px) { .summary--social { - height: 17rem; } } + height: 21.5rem; } } @media (min-width: 1200px) { .summary--social { - height: 16.5rem; } } + height: 21.5rem; } } @media (min-width: 768px) { .summary--social { width: auto; @@ -1584,7 +1584,7 @@ pre[class*=" language-"] { .summary-emotion-graph--label-container:hover .bar-graph--tooltip { visibility: visible; opacity: 1; -} +} .summary-emotion-graph--percentage-label-likeliness { font-weight: light; font-size: 0.5rem; } @@ -1979,11 +1979,18 @@ pre[class*=" language-"] { position: absolute; right: 0rem; } .original-text--legend-block_low { - right: 9rem; } + right: 9rem; + text-align: center; + padding-top: .5em;} .original-text--legend-block_med { - right: 4.5rem; } + right: 4.5rem; + text-align: center; + padding-top: .5em; } .original-text--legend-block_high { - right: 0rem; } + right: 0rem; + text-align: center; + color: #ffffff; + padding-top: .5em;} .original-text--legend-block_anger-low { background-color: #FFF; } .original-text--legend-block_anger-medium { @@ -2007,6 +2014,7 @@ pre[class*=" language-"] { .original-text--legend-block_joy-medium { background-color: #FFF173; } .original-text--legend-block_joy-high { + color: #000000; background-color: #FFD629; } .original-text--legend-block_sadness-low { background-color: #FFF; } @@ -2037,31 +2045,36 @@ pre[class*=" language-"] { .original-text--legend-block_openness-medium { background-color: #94FFEF; } .original-text--legend-block_openness-high { + color: #000000; background-color: #1AE5CD; } .original-text--legend-block_conscientiousness-low { background-color: #FFF; } .original-text--legend-block_conscientiousness-medium { background-color: #94FFEF; } .original-text--legend-block_conscientiousness-high { + color: #000000; background-color: #1AE5CD; } .original-text--legend-block_extraversion-low { background-color: #FFF; } .original-text--legend-block_extraversion-medium { background-color: #94FFEF; } .original-text--legend-block_extraversion-high { + color: #000000; background-color: #1AE5CD; } .original-text--legend-block_agreeableness-low { background-color: #FFF; } .original-text--legend-block_agreeableness-medium { background-color: #94FFEF; } .original-text--legend-block_agreeableness-high { - background-color: #1AE5CD; } + background-color: #1AE5CD; + color: #000000; } .original-text--legend-block_emotional-range-low { background-color: #FFF; } .original-text--legend-block_emotional-range-medium { background-color: #94FFEF; } .original-text--legend-block_emotional-range-high { - background-color: #1AE5CD; } + background-color: #1AE5CD; + color: #000000; } .original-text--legend-label { margin-top: 0.35rem; position: absolute; diff --git a/views/index.ejs b/views/index.ejs index f9acefa9..ce60bcc2 100755 --- a/views/index.ejs +++ b/views/index.ejs @@ -369,6 +369,10 @@ .vote { margin-left: .5em; } + .score_desc { + line-height: .5; + font-size: .9em; + } @media (max-width: 700px) { .left-box { @@ -512,18 +516,36 @@

Output

The Tone Analyzer Service analyzes text at the document level and the sentence level. Use the document level analysis to get a sense of the overall tone of the document, and use the sentence level analysis to identify specific areas of your content where tones are the strongest.

+

To understand how to interpret your tone score, see Understand your Tone Score.

Document-level

+ +
Emotion
+

+ < .5 = not likely present
+ ≥ .5 = likely present
+ > .75 = very likely present
+

Language Style
+

+ < .5 = not likely present
+ ≥ .5 = likely present
+ > .75 = very likely present
+

@@ -535,6 +557,7 @@

The Language Style and Social Tendencies graphs represent the amount of a language or social tone present in the text. Learn more.

+

For details on how Tone Analyzer detects tone in text see, The Science Behind the Tone Analyzer Service.

<%= (item.score / 100).toFixed(2) %> +
+ + <%= item.likeliness %> +
<% }); %> @@ -748,6 +775,10 @@
<%= (item.score / 100).toFixed(2) %> +
+ + <%= item.likeliness %> +
@@ -804,9 +835,10 @@