Commit 0f58641a authored by Sacha's avatar Sacha Committed by SXibolet@2PITAU
Browse files

opening dataset, trends opened, style tweaks

parent 148ef7b2
......@@ -3,12 +3,41 @@
API specification
~~~~~~~~~~~~~~~~~
.. sidebar:: docs t.o.c.
If you're viewing this page on GitHub, please consider switching to our HTML version here: https://ocha.2pitau.org/docs.html
.. sidebar:: docs toc
.. contents::
:depth: 3
You must be logged in to query any of these endpoints.
**New**: we've opened the trend API such that logins aren't required!
trends
------
**GET** ``/api/trend``
.. include:: documents/trend.json
:code: javascript
:number-lines:
Where ``['result']['trending']`` is a key-value pair list where the key is the query and the value is the amount of search traffic towards that query. ``['result']['top-5']`` is a ranked list of the most popular queries. ``top-5`` will always be a (non-proper) subset of trending.
``/api/trend/<k>``. Where ``<k>`` is an element of ``/api/trend``'s ``trending`` list (a keyword that's been searched for before).
.. include:: documents/trendk.json
:code: javascript
:number-lines:
**GET** ``/api/trend/<k>.png`` will generate a trendline (if there's enough data) of the controversy of a keyword versus time. Here's an example (not based on the ``json`` above):
.. image:: documents/romney.png
If you don't want a normalized plot, do ``<k>.png?nonorm``.
You must be logged in to query any of the *below* endpoints (i.e. trends don't require logins).
errors
------
......@@ -41,26 +70,3 @@ user search-history
:number-lines:
trends
------
**GET** ``/api/trend``
.. include:: documents/trend.json
:code: javascript
:number-lines:
Where ``['result']['trending']`` is a key-value pair list where the key is the query and the value is the amount of search traffic towards that query. ``['result']['top-5']`` is a ranked list of the most popular queries. ``top-5`` will always be a (non-proper) subset of trending.
``/api/trend/<k>``. Where ``<k>`` is an element of ``/api/trend``'s ``trending`` list (a keyword that's been searched for before).
.. include:: documents/trendk.json
:code: javascript
:number-lines:
**GET** ``/api/trend/<k>.png`` will generate a trendline (if there's enough data) of the controversy of a keyword versus time. Here's an example (not based on the ``json`` above):
.. image:: documents/romney.png
If you don't want a normalized plot, do ``<k>.png?nonorm``.
......@@ -38,7 +38,7 @@ def loggedin():
@api.before_request
def restrict():
if not loggedin():
if not loggedin() and 'trend' not in request.url_rule.rule:
raise UsageError('not logged in')
if QUERY_PARAM not in request.args and request.url_rule == '/api/':
raise UsageError('missing-keyword')
......
......@@ -227,4 +227,4 @@ def pretty_date(u):
if __name__ == '__main__':
application.run(host='0.0.0.0',
port=4040,
debug=DEBUG)
debug=True)
.borderless,table.borderless td,table.borderless th{border:0}table.borderless td,table.borderless th{padding:0 .5em 0 0!important}.first{margin-top:0!important}.last,.with-subtitle{margin-bottom:0!important}.hidden{display:none}a.toc-backref{text-decoration:none;color:black}blockquote.epigraph{margin:2em 5em}dl.docutils dd{margin-bottom:.5em}object[type="image/svg+xml"],object[type="application/x-shockwave-flash"]{overflow:hidden}div.abstract{margin:2em 5em}div.abstract p.topic-title{font-weight:bold;text-align:center}div.admonition,div.attention,div.caution,div.danger,div.error,div.hint,div.important,div.note,div.tip,div.warning{margin:2em;border:medium outset;padding:1em}div.admonition p.admonition-title,div.hint p.admonition-title,div.important p.admonition-title,div.note p.admonition-title,div.tip p.admonition-title{font-weight:bold;font-family:sans-serif}div.attention p.admonition-title,div.caution p.admonition-title,div.danger p.admonition-title,div.error p.admonition-title,div.warning p.admonition-title,.code .error{color:red;font-weight:bold;font-family:sans-serif}div.dedication{margin:2em 5em;text-align:center;font-style:italic}div.dedication p.topic-title{font-weight:bold;font-style:normal}div.figure{margin-left:2em;margin-right:2em}div.footer,div.header{clear:both;font-size:smaller}div.line-block{display:block;margin-top:1em;margin-bottom:1em}div.line-block div.line-block{margin-top:0;margin-bottom:0;margin-left:1.5em}div.sidebar{margin:0 0 .5em 1em;border:medium outset;padding:1em;background-color:#ffe;width:40%;float:right;clear:right}div.sidebar p.rubric{font-family:sans-serif;font-size:medium}div.system-messages{margin:5em}div.system-messages h1{color:red}div.system-message{border:medium outset;padding:1em}div.system-message p.system-message-title{color:red;font-weight:bold}div.topic{margin:2em}h1.section-subtitle,h2.section-subtitle,h3.section-subtitle,h4.section-subtitle,h5.section-subtitle,h6.section-subtitle{margin-top:.4em}h1.title{text-align:center}h2.subtitle{text-align:center}hr.docutils{width:75%}img.align-left,.figure.align-left,object.align-left{clear:left;float:left;margin-right:1em}img.align-right,.figure.align-right,object.align-right{clear:right;float:right;margin-left:1em}img.align-center,.figure.align-center,object.align-center{display:block;margin-left:auto;margin-right:auto}.align-left{text-align:left}.align-center{clear:both;text-align:center}.align-right{text-align:right}div.align-right{text-align:inherit}ol.simple,ul.simple{margin-bottom:1em}ol.arabic{list-style:decimal}ol.loweralpha{list-style:lower-alpha}ol.upperalpha{list-style:upper-alpha}ol.lowerroman{list-style:lower-roman}ol.upperroman{list-style:upper-roman}p.attribution{text-align:right;margin-left:50%}p.caption{font-style:italic}p.credits{font-style:italic;font-size:smaller}p.label{white-space:nowrap}p.rubric{font-weight:bold;font-size:larger;color:maroon;text-align:center}p.sidebar-title{font-family:sans-serif;font-weight:bold;font-size:larger}p.sidebar-subtitle{font-family:sans-serif;font-weight:bold}p.topic-title{font-weight:bold}pre.address{margin-bottom:0;margin-top:0;font:inherit}pre.literal-block,pre.doctest-block,pre.math,pre.code{margin-left:2em;margin-right:2em}pre.code .ln{color:grey}pre.code,code{background-color:#eee}pre.code .comment,code .comment{color:#5c6576}pre.code .keyword,code .keyword{color:#3b0d06;font-weight:bold}pre.code .literal.string,code .literal.string{color:#0c5404}pre.code .name.builtin,code .name.builtin{color:#352b84}pre.code .deleted,code .deleted{background-color:#deb0a1}pre.code .inserted,code .inserted{background-color:#a3d289}span.classifier{font-family:sans-serif;font-style:oblique}span.classifier-delimiter{font-family:sans-serif;font-weight:bold}span.interpreted{font-family:sans-serif}span.option{white-space:nowrap}span.pre{white-space:pre}span.problematic{color:red}span.section-subtitle{font-size:80%}table.citation{border-left:solid 1px gray;margin-left:1px}table.docinfo{margin:2em 4em}table.docutils{margin-top:.5em;margin-bottom:.5em}table.footnote{border-left:solid 1px black;margin-left:1px}table.docutils td,table.docutils th,table.docinfo td,table.docinfo th{padding-left:.5em;padding-right:.5em;vertical-align:top}table.docutils th.field-name,table.docinfo th.docinfo-name{font-weight:bold;text-align:left;white-space:nowrap;padding-left:0}table.docutils.booktabs{border:0;border-top:2px solid;border-bottom:2px solid;border-collapse:collapse}table.docutils.booktabs *{border:0}table.docutils.booktabs th{border-bottom:thin solid;text-align:left}h1 tt.docutils,h2 tt.docutils,h3 tt.docutils,h4 tt.docutils,h5 tt.docutils,h6 tt.docutils{font-size:100%}ul.auto-toc{list-style-type:none}
\ No newline at end of file
......@@ -8,6 +8,7 @@ import content
import datetime
import time
import forms
import json
from error import UsageError
import nltk.data
import itertools
......@@ -128,6 +129,13 @@ def submitted():
return render_template('mturk_submitted.html', **locals())
@mturk.route('/dataset')
def dataset():
css = digest('mturk/highlight.css')
return render_template('mturk_dataset.html', **locals())
def get_db():
client = MongoClient('localhost', MONGO_PORT)
return client.controversy
......
......@@ -43,9 +43,7 @@ div.article {
margin-bottom: 2px;
font-size: 28px;
display: block;
&:hover, &:active {
background-color: rgba(255, 255, 255, 0);
border-bottom: none; }
border-bottom: none;
}
p.url {
padding: 5px;
......@@ -57,9 +55,7 @@ div.article {
display: block;
margin-bottom: -10px;
a {
&:hover, &:active {
background-color: rgba(0, 0, 0, 0);
border-bottom: none; }
border-bottom: none;
color: #04bff4;
text-decoration: none;
width: 385px;
......
@import 'reset';
@import 'vars';
html {
font-family: Open Sans, Myriad Pro, Calibri, Droid Sans, Trebuchet MS, Sans-serif;
font-family: Verdana, Open Sans, Myriad Pro, Calibri, Droid Sans, Trebuchet MS, sans-serif;
font-size: .8em;
height: 100%; }
input {
outline: 0;
......@@ -11,20 +12,13 @@ img {
height: auto;
margin: auto; }
a {
border-bottom: 0px solid #ccc; // hack for Firefox flashing colors
color: #61748c;
font-weight: 700;
outline: 0;
line-height: 130%;
word-wrap: break-word;
color: #303c3c;
border-bottom: 1px solid #808080;
text-decoration: none;
@include transition(0.1s); }
a:hover, a:active {
text-decoration: none;
background-color: #eee;
color: #800; }
a:active {
border-bottom: 1px solid #ccc; }
input.field {
font-size: 16px;
padding: 6px 12px;
color: #555;
border-bottom: 1px dashed $grey;
......@@ -35,7 +29,6 @@ input.field {
width: 70%;
text-align: center; }
input[type="submit"] {
font-size: 90%;
cursor: pointer;
min-width: 100px;
height: 40px;
......
html,ul,body,header,input,span,form{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}html{font-family:Open Sans, Myriad Pro, Calibri, Droid Sans, Trebuchet MS, Sans-serif;height:100%}input{outline:0;box-shadow:none}img{max-width:100%;height:auto;margin:auto}a{border-bottom:0px solid #ccc;color:#61748c;font-weight:700;outline:0;text-decoration:none;-webkit-transition:all 0.1s ease-in-out 0s;-moz-transition:all 0.1s ease-in-out 0s;-ms-transition:all 0.1s ease-in-out 0s;transition:all 0.1s ease-in-out 0s}a:hover,a:active{text-decoration:none;background-color:#eee;color:#800}a:active{border-bottom:1px solid #ccc}input.field{font-size:16px;padding:6px 12px;color:#555;border-bottom:1px dashed #d9d9d9;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;border-radius:1px;margin:0 auto;margin-bottom:5px;height:20px;width:70%;text-align:center}input[type="submit"]{font-size:90%;cursor:pointer;min-width:100px;height:40px;background-color:#e9e9e9;border:1px solid #c3c3c3;color:#333;padding:4px;outline:0;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;-webkit-transition:all 0.15s ease-in-out 0s;-moz-transition:all 0.15s ease-in-out 0s;-ms-transition:all 0.15s ease-in-out 0s;transition:all 0.15s ease-in-out 0s}input[type="submit"]:hover{border:1px solid #a3a3a3}input[type="submit"]:focus,input[type="submit"]:active{outline:0}input[type="submit"]:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}input::-moz-focus-inner{border:0}footer{margin:5em 0 0.5em 0;width:95%;color:#b0b0b0;font-size:12px;text-align:center}footer p{padding-top:10px}div#message,div#error{position:fixed;font-size:90%;overflow:hidden;padding:3px;top:0;background-color:#a3a3a3;color:#fff;text-align:center;width:100%}div#message a,div#error a{color:#fff}div#error{background-color:#edb43a}html,ul,body,header,input,span,form{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}html{font-family:Open Sans, Myriad Pro, Calibri, Droid Sans, Trebuchet MS, Sans-serif;height:100%}input{outline:0;box-shadow:none}img{max-width:100%;height:auto;margin:auto}a{border-bottom:0px solid #ccc;color:#61748c;font-weight:700;outline:0;text-decoration:none;-webkit-transition:all 0.1s ease-in-out 0s;-moz-transition:all 0.1s ease-in-out 0s;-ms-transition:all 0.1s ease-in-out 0s;transition:all 0.1s ease-in-out 0s}a:hover,a:active{text-decoration:none;background-color:#eee;color:#800}a:active{border-bottom:1px solid #ccc}input.field{font-size:16px;padding:6px 12px;color:#555;border-bottom:1px dashed #d9d9d9;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;border-radius:1px;margin:0 auto;margin-bottom:5px;height:20px;width:70%;text-align:center}input[type="submit"]{font-size:90%;cursor:pointer;min-width:100px;height:40px;background-color:#e9e9e9;border:1px solid #c3c3c3;color:#333;padding:4px;outline:0;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;-webkit-transition:all 0.15s ease-in-out 0s;-moz-transition:all 0.15s ease-in-out 0s;-ms-transition:all 0.15s ease-in-out 0s;transition:all 0.15s ease-in-out 0s}input[type="submit"]:hover{border:1px solid #a3a3a3}input[type="submit"]:focus,input[type="submit"]:active{outline:0}input[type="submit"]:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}input::-moz-focus-inner{border:0}footer{margin:5em 0 0.5em 0;width:95%;color:#b0b0b0;font-size:12px;text-align:center}footer p{padding-top:10px}div#message,div#error{position:fixed;font-size:90%;overflow:hidden;padding:3px;top:0;background-color:#a3a3a3;color:#fff;text-align:center;width:100%}div#message a,div#error a{color:#fff}div#error{background-color:#edb43a}ul.articles,ul.tweets{margin:0 auto;width:400px}ul.articles li,ul.tweets li{-webkit-column-break-inside:avoid;-moz-column-break-inside:avoid;-ms-column-break-inside:avoid;column-break-inside:avoid;list-style:none}ul.articles{-webkit-column-count:1;-moz-column-count:1;column-count:1;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px}ul.articles li{width:400px;margin-bottom:2em}ul.tweets{margin-top:2em;width:310px;-webkit-column-count:2;-moz-column-count:2;column-count:2;-webkit-column-gap:5px;-moz-column-gap:5px;column-gap:5px}ul.tweets li{width:150px;margin-bottom:5px}div.article,div.tweet{padding-bottom:10px;background-color:#fff;border:2px solid #efefef;position:relative;font-size:14px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px}div.article p{padding:5px}div.article a.title{color:#000;padding:3px 5px 5px 5px;margin-top:5px;margin-bottom:2px;font-size:28px;display:block}div.article a.title:hover,div.article a.title:active{background-color:rgba(255,255,255,0);border-bottom:none}div.article p.url{padding:5px;border-top:1px solid #e5e5e5;background-image:url("img/url.png");background-repeat:no-repeat;padding:10px 0 0 30px;height:30px;display:block;margin-bottom:-10px}div.article p.url a{color:#04bff4;text-decoration:none;width:385px;display:block;position:relative}div.article p.url a:hover,div.article p.url a:active{background-color:transparent;border-bottom:none}div.article img{width:100%}div.tweet{-webkit-transition:all 0.4s ease-in-out 0s;-moz-transition:all 0.4s ease-in-out 0s;-ms-transition:all 0.4s ease-in-out 0s;transition:all 0.4s ease-in-out 0s;padding:2px;overflow:hidden}div.tweet a{color:inherit;text-decoration:none}div.mad{border:2px solid #f90101}div.happy{border:2px solid #00933b}div.hovering{color:#000}div.no-hover{color:#c3c3c3;border:2px solid #f9f9f9}div.most-controversial{border:3px solid #f90101}div.least-controversial{border:3px solid #00933b}@media (min-width: 920px){ul.tweets{width:850px;-webkit-column-count:4;-moz-column-count:4;column-count:4}ul.tweets li{width:180px}}@media (max-width: 550px){ul.articles{width:320px}ul.articles li{width:315px}}footer{display:none}header{z-index:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;cursor:default;width:100%;height:55px;line-height:55px;background:#fff;border-bottom:1px solid #efefef;position:fixed;font-size:14px}header>div{padding:0 15px 0 5px;display:inline}header>div>a.mini{display:none}header>div a:active,header>div a:hover{border-bottom:none}header>div h1{text-align:left;display:inline;font-size:25px;opacity:0.8;font-variant:small-caps}header>div span#subtitle{opacity:0.4;padding-left:5px}header>div span#right-header{float:right;padding-right:10px}header>div form{display:inline}header>div>form input{font-size:16px;padding:6px 12px;line-height:1.5;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;border-bottom:1px solid #d9d9d9;margin:0 auto;height:15px;width:30%}header>div>form input:focus{background-color:#f1f8fb;color:#2b6dad}header input[type='text'].top_loading{background:url("img/loading.gif") no-repeat;background-position:98% 50%;background-size:20px 20px}main{padding:6em 1em}main input.loading{background:url("img/loading.gif") no-repeat;background-size:20px 20px;padding:10px 10px 10px 36px;background-position:10% 50%}main>form{margin-bottom:10px;text-align:center}main>form input[type="text"]{margin-bottom:10px;width:275px;border-bottom:1px solid #d9d9d9}main>form input[type="text"]:focus{color:#2b6dad;background-color:#f1f8fb}main div.featured_keywords{display:table;padding-bottom:1em;margin:0 auto}main div.featured_keywords dl.left{float:left;width:50%}main div.featured_keywords dl.right{float:right;width:50%}main div.featured_keywords dt{float:left;width:7.5em;padding:1ex .5em 0 .5em;text-align:right;font-weight:bold}main div.featured_keywords dd{margin:0 0 0 8.5em;padding:1ex 0.5em;text-align:left;border-left:1px solid #888}main div.featured_keywords dd span{white-space:nowrap}main ul.details{-webkit-column-break-inside:avoid;-moz-column-break-inside:avoid;-ms-column-break-inside:avoid;column-break-inside:avoid;list-style:none;margin:0 0 10px 0;padding:0}main ul.details li{display:inline}main ul.details li>span{line-height:30px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;border:1px solid #d9d9d9;padding:2px}main article{text-align:justify}main article a,main article a:hover,main article a:active{border-bottom:none;color:#fff;background-color:#337ab7}main article a{font-weight:700}main article a:hover,main article a:active{background-color:#2e6da4}main article+p{-webkit-transition:all 0.3s ease-in-out 0s;-moz-transition:all 0.3s ease-in-out 0s;-ms-transition:all 0.3s ease-in-out 0s;transition:all 0.3s ease-in-out 0s;opacity:0.6}main article+p:hover{opacity:1.0}main mark{line-height:25px;color:#2b6dad;background-color:#f1f8fb;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;padding:2px}main .disabled{cursor:not-allowed;background-color:#f9f9f9}main .disabled:active{color:#fff;background-color:#edb43a}span.danger{color:#fff;background-color:#d43f3a;padding:2px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px}figcaption{margin:10px 0 10px 0}@media (max-width: 700px){header>div h1{font-size:22px}header>div span#right-header,header>div>a{font-size:12px}.non-essentials{display:none}}@media (max-width: 520px){main div.featured_keywords dl.left,main div.featured_keywords dl.right{float:none}span.danger{display:block}input[type='text'].top_loading{height:40px}}@media (max-width: 415px){header>div>a.mini{display:inline}header>div>a.lg{display:none}}main{padding:4em 1em}ul{margin:10px 10px 4em 10px;list-style:square}ul li{margin-left:20px}ul p{float:right;text-align:right}h3{border-bottom:1px dashed #d9d9d9;padding:5px;font-variant:small-caps;font-weight:400}ul.issues_list{list-style:none}form{padding:5px;border:1px solid #e9e9e9;display:inline-block}form #bug b{color:#f90101}form input{color:#edb43a}@media (max-width: 650px){input{display:block}}
html,ul,body,header,input,span,form{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}html{font-family:Verdana, Open Sans, Myriad Pro, Calibri, Droid Sans, Trebuchet MS, sans-serif;font-size:.8em;height:100%}input{outline:0;box-shadow:none}img{max-width:100%;height:auto;margin:auto}a{line-height:130%;word-wrap:break-word;color:#303c3c;border-bottom:1px solid #808080;text-decoration:none;-webkit-transition:all 0.1s ease-in-out 0s;-moz-transition:all 0.1s ease-in-out 0s;-ms-transition:all 0.1s ease-in-out 0s;transition:all 0.1s ease-in-out 0s}input.field{padding:6px 12px;color:#555;border-bottom:1px dashed #d9d9d9;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;border-radius:1px;margin:0 auto;margin-bottom:5px;height:20px;width:70%;text-align:center}input[type="submit"]{cursor:pointer;min-width:100px;height:40px;background-color:#e9e9e9;border:1px solid #c3c3c3;color:#333;padding:4px;outline:0;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;-webkit-transition:all 0.15s ease-in-out 0s;-moz-transition:all 0.15s ease-in-out 0s;-ms-transition:all 0.15s ease-in-out 0s;transition:all 0.15s ease-in-out 0s}input[type="submit"]:hover{border:1px solid #a3a3a3}input[type="submit"]:focus,input[type="submit"]:active{outline:0}input[type="submit"]:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}input::-moz-focus-inner{border:0}footer{margin:5em 0 0.5em 0;width:95%;color:#b0b0b0;font-size:12px;text-align:center}footer p{padding-top:10px}div#message,div#error{position:fixed;font-size:90%;overflow:hidden;padding:3px;top:0;background-color:#a3a3a3;color:#fff;text-align:center;width:100%}div#message a,div#error a{color:#fff}div#error{background-color:#edb43a}html,ul,body,header,input,span,form{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}html{font-family:Verdana, Open Sans, Myriad Pro, Calibri, Droid Sans, Trebuchet MS, sans-serif;font-size:.8em;height:100%}input{outline:0;box-shadow:none}img{max-width:100%;height:auto;margin:auto}a{line-height:130%;word-wrap:break-word;color:#303c3c;border-bottom:1px solid #808080;text-decoration:none;-webkit-transition:all 0.1s ease-in-out 0s;-moz-transition:all 0.1s ease-in-out 0s;-ms-transition:all 0.1s ease-in-out 0s;transition:all 0.1s ease-in-out 0s}input.field{padding:6px 12px;color:#555;border-bottom:1px dashed #d9d9d9;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;border-radius:1px;margin:0 auto;margin-bottom:5px;height:20px;width:70%;text-align:center}input[type="submit"]{cursor:pointer;min-width:100px;height:40px;background-color:#e9e9e9;border:1px solid #c3c3c3;color:#333;padding:4px;outline:0;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;-webkit-transition:all 0.15s ease-in-out 0s;-moz-transition:all 0.15s ease-in-out 0s;-ms-transition:all 0.15s ease-in-out 0s;transition:all 0.15s ease-in-out 0s}input[type="submit"]:hover{border:1px solid #a3a3a3}input[type="submit"]:focus,input[type="submit"]:active{outline:0}input[type="submit"]:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}input::-moz-focus-inner{border:0}footer{margin:5em 0 0.5em 0;width:95%;color:#b0b0b0;font-size:12px;text-align:center}footer p{padding-top:10px}div#message,div#error{position:fixed;font-size:90%;overflow:hidden;padding:3px;top:0;background-color:#a3a3a3;color:#fff;text-align:center;width:100%}div#message a,div#error a{color:#fff}div#error{background-color:#edb43a}ul.articles,ul.tweets{margin:0 auto;width:400px}ul.articles li,ul.tweets li{-webkit-column-break-inside:avoid;-moz-column-break-inside:avoid;-ms-column-break-inside:avoid;column-break-inside:avoid;list-style:none}ul.articles{-webkit-column-count:1;-moz-column-count:1;column-count:1;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px}ul.articles li{width:400px;margin-bottom:2em}ul.tweets{margin-top:2em;width:310px;-webkit-column-count:2;-moz-column-count:2;column-count:2;-webkit-column-gap:5px;-moz-column-gap:5px;column-gap:5px}ul.tweets li{width:150px;margin-bottom:5px}div.article,div.tweet{padding-bottom:10px;background-color:#fff;border:2px solid #efefef;position:relative;font-size:14px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px}div.article p{padding:5px}div.article a.title{color:#000;padding:3px 5px 5px 5px;margin-top:5px;margin-bottom:2px;font-size:28px;display:block;border-bottom:none}div.article p.url{padding:5px;border-top:1px solid #e5e5e5;background-image:url("img/url.png");background-repeat:no-repeat;padding:10px 0 0 30px;height:30px;display:block;margin-bottom:-10px}div.article p.url a{border-bottom:none;color:#04bff4;text-decoration:none;width:385px;display:block;position:relative}div.article img{width:100%}div.tweet{-webkit-transition:all 0.4s ease-in-out 0s;-moz-transition:all 0.4s ease-in-out 0s;-ms-transition:all 0.4s ease-in-out 0s;transition:all 0.4s ease-in-out 0s;padding:2px;overflow:hidden}div.tweet a{color:inherit;text-decoration:none}div.mad{border:2px solid #f90101}div.happy{border:2px solid #00933b}div.hovering{color:#000}div.no-hover{color:#c3c3c3;border:2px solid #f9f9f9}div.most-controversial{border:3px solid #f90101}div.least-controversial{border:3px solid #00933b}@media (min-width: 920px){ul.tweets{width:850px;-webkit-column-count:4;-moz-column-count:4;column-count:4}ul.tweets li{width:180px}}@media (max-width: 550px){ul.articles{width:320px}ul.articles li{width:315px}}footer{display:none}header{z-index:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;cursor:default;width:100%;height:55px;line-height:55px;background:#fff;border-bottom:1px solid #efefef;position:fixed}header>div{padding:0 15px 0 5px;display:inline}header>div>a.mini{display:none}header>div h1{text-transform:lowercase;text-align:left;display:inline;font-size:1.2em}header>div span#subtitle{opacity:0.4;padding-left:5px}header>div span#right-header{float:right;padding-right:10px}header>div form{display:inline}header>div>form input{padding:6px 12px;line-height:1.5;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;border-bottom:1px solid #d9d9d9;margin:0 auto;height:15px;width:30%}header>div>form input:focus{background-color:#f1f8fb;color:#2b6dad}header input[type='text'].top_loading{background:url("img/loading.gif") no-repeat;background-position:98% 50%;background-size:20px 20px}main{padding:6em 1em}main input.loading{background:url("img/loading.gif") no-repeat;background-size:20px 20px;padding:10px 10px 10px 36px;background-position:10% 50%}main>form{margin-bottom:10px;text-align:center}main>form input[type="text"]{margin-bottom:10px;width:275px;border-bottom:1px solid #d9d9d9}main>form input[type="text"]:focus{color:#2b6dad;background-color:#f1f8fb}main div.featured_keywords{display:table;padding-bottom:1em;margin:0 auto}main div.featured_keywords dl.left{float:left;width:50%}main div.featured_keywords dl.right{float:right;width:50%}main div.featured_keywords dt{float:left;width:7.5em;padding:1ex .5em 0 .5em;text-align:right;font-weight:bold}main div.featured_keywords dd{margin:0 0 0 8.5em;padding:1ex 0.5em;text-align:left;border-left:1px solid #888}main div.featured_keywords dd span{white-space:nowrap}main ul.details{-webkit-column-break-inside:avoid;-moz-column-break-inside:avoid;-ms-column-break-inside:avoid;column-break-inside:avoid;list-style:none;margin:0 0 10px 0;padding:0}main ul.details li{display:inline}main ul.details li>span{line-height:30px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;border:1px solid #d9d9d9;padding:2px}main article{text-align:justify;line-height:150%}main article a,main article a:hover,main article a:active{border-bottom:none;color:#fff;background-color:#337ab7}main article a{font-weight:700}main article a:hover,main article a:active{background-color:#2e6da4}main article+p{-webkit-transition:all 0.3s ease-in-out 0s;-moz-transition:all 0.3s ease-in-out 0s;-ms-transition:all 0.3s ease-in-out 0s;transition:all 0.3s ease-in-out 0s;opacity:0.6}main article+p:hover{opacity:1.0}main mark{line-height:25px;color:#2b6dad;background-color:#f1f8fb;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;padding:2px}main .disabled{cursor:not-allowed;background-color:#f9f9f9}main .disabled:active{color:#fff;background-color:#edb43a}span.danger{color:#fff;background-color:#d43f3a;padding:2px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px}figcaption{margin:10px 0 10px 0}@media (max-width: 700px){header>div span#right-header,header>div>a{font-size:12px}.non-essentials{display:none}}@media (max-width: 520px){main div.featured_keywords dl.left,main div.featured_keywords dl.right{float:none}span.danger{display:block}input[type='text'].top_loading{height:40px}}@media (max-width: 415px){header>div>a.mini{display:inline}header>div>a.lg{display:none}}main{padding:4em 1em}ul{margin:10px 10px 4em 10px;list-style:square}ul li{margin-left:20px}ul p{float:right;text-align:right}h3{border-bottom:1px dashed #d9d9d9;padding:5px;font-variant:small-caps;font-weight:400}ul.issues_list{list-style:none}form{padding:5px;border:1px solid #e9e9e9;display:inline-block}form #bug b{color:#f90101}form input{color:#edb43a}@media (max-width: 650px){input{display:block}}
/*# sourceMappingURL=account.css.map */
This diff is collapsed.
html,ul,body,header,input,span,form{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}html{font-family:Open Sans, Myriad Pro, Calibri, Droid Sans, Trebuchet MS, Sans-serif;height:100%}input{outline:0;box-shadow:none}img{max-width:100%;height:auto;margin:auto}a{border-bottom:0px solid #ccc;color:#61748c;font-weight:700;outline:0;text-decoration:none;-webkit-transition:all 0.1s ease-in-out 0s;-moz-transition:all 0.1s ease-in-out 0s;-ms-transition:all 0.1s ease-in-out 0s;transition:all 0.1s ease-in-out 0s}a:hover,a:active{text-decoration:none;background-color:#eee;color:#800}a:active{border-bottom:1px solid #ccc}input.field{font-size:16px;padding:6px 12px;color:#555;border-bottom:1px dashed #d9d9d9;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;border-radius:1px;margin:0 auto;margin-bottom:5px;height:20px;width:70%;text-align:center}input[type="submit"]{font-size:90%;cursor:pointer;min-width:100px;height:40px;background-color:#e9e9e9;border:1px solid #c3c3c3;color:#333;padding:4px;outline:0;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;-webkit-transition:all 0.15s ease-in-out 0s;-moz-transition:all 0.15s ease-in-out 0s;-ms-transition:all 0.15s ease-in-out 0s;transition:all 0.15s ease-in-out 0s}input[type="submit"]:hover{border:1px solid #a3a3a3}input[type="submit"]:focus,input[type="submit"]:active{outline:0}input[type="submit"]:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}input::-moz-focus-inner{border:0}footer{margin:5em 0 0.5em 0;width:95%;color:#b0b0b0;font-size:12px;text-align:center}footer p{padding-top:10px}div#message,div#error{position:fixed;font-size:90%;overflow:hidden;padding:3px;top:0;background-color:#a3a3a3;color:#fff;text-align:center;width:100%}div#message a,div#error a{color:#fff}div#error{background-color:#edb43a}ul.articles,ul.tweets{margin:0 auto;width:400px}ul.articles li,ul.tweets li{-webkit-column-break-inside:avoid;-moz-column-break-inside:avoid;-ms-column-break-inside:avoid;column-break-inside:avoid;list-style:none}ul.articles{-webkit-column-count:1;-moz-column-count:1;column-count:1;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px}ul.articles li{width:400px;margin-bottom:2em}ul.tweets{margin-top:2em;width:310px;-webkit-column-count:2;-moz-column-count:2;column-count:2;-webkit-column-gap:5px;-moz-column-gap:5px;column-gap:5px}ul.tweets li{width:150px;margin-bottom:5px}div.article,div.tweet{padding-bottom:10px;background-color:#fff;border:2px solid #efefef;position:relative;font-size:14px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px}div.article p{padding:5px}div.article a.title{color:#000;padding:3px 5px 5px 5px;margin-top:5px;margin-bottom:2px;font-size:28px;display:block}div.article a.title:hover,div.article a.title:active{background-color:rgba(255,255,255,0);border-bottom:none}div.article p.url{padding:5px;border-top:1px solid #e5e5e5;background-image:url("img/url.png");background-repeat:no-repeat;padding:10px 0 0 30px;height:30px;display:block;margin-bottom:-10px}div.article p.url a{color:#04bff4;text-decoration:none;width:385px;display:block;position:relative}div.article p.url a:hover,div.article p.url a:active{background-color:transparent;border-bottom:none}div.article img{width:100%}div.tweet{-webkit-transition:all 0.4s ease-in-out 0s;-moz-transition:all 0.4s ease-in-out 0s;-ms-transition:all 0.4s ease-in-out 0s;transition:all 0.4s ease-in-out 0s;padding:2px;overflow:hidden}div.tweet a{color:inherit;text-decoration:none}div.mad{border:2px solid #f90101}div.happy{border:2px solid #00933b}div.hovering{color:#000}div.no-hover{color:#c3c3c3;border:2px solid #f9f9f9}div.most-controversial{border:3px solid #f90101}div.least-controversial{border:3px solid #00933b}@media (min-width: 920px){ul.tweets{width:850px;-webkit-column-count:4;-moz-column-count:4;column-count:4}ul.tweets li{width:180px}}@media (max-width: 550px){ul.articles{width:320px}ul.articles li{width:315px}}footer{display:none}header{z-index:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;cursor:default;width:100%;height:55px;line-height:55px;background:#fff;border-bottom:1px solid #efefef;position:fixed;font-size:14px}header>div{padding:0 15px 0 5px;display:inline}header>div>a.mini{display:none}header>div a:active,header>div a:hover{border-bottom:none}header>div h1{text-align:left;display:inline;font-size:25px;opacity:0.8;font-variant:small-caps}header>div span#subtitle{opacity:0.4;padding-left:5px}header>div span#right-header{float:right;padding-right:10px}header>div form{display:inline}header>div>form input{font-size:16px;padding:6px 12px;line-height:1.5;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;border-bottom:1px solid #d9d9d9;margin:0 auto;height:15px;width:30%}header>div>form input:focus{background-color:#f1f8fb;color:#2b6dad}header input[type='text'].top_loading{background:url("img/loading.gif") no-repeat;background-position:98% 50%;background-size:20px 20px}main{padding:6em 1em}main input.loading{background:url("img/loading.gif") no-repeat;background-size:20px 20px;padding:10px 10px 10px 36px;background-position:10% 50%}main>form{margin-bottom:10px;text-align:center}main>form input[type="text"]{margin-bottom:10px;width:275px;border-bottom:1px solid #d9d9d9}main>form input[type="text"]:focus{color:#2b6dad;background-color:#f1f8fb}main div.featured_keywords{display:table;padding-bottom:1em;margin:0 auto}main div.featured_keywords dl.left{float:left;width:50%}main div.featured_keywords dl.right{float:right;width:50%}main div.featured_keywords dt{float:left;width:7.5em;padding:1ex .5em 0 .5em;text-align:right;font-weight:bold}main div.featured_keywords dd{margin:0 0 0 8.5em;padding:1ex 0.5em;text-align:left;border-left:1px solid #888}main div.featured_keywords dd span{white-space:nowrap}main ul.details{-webkit-column-break-inside:avoid;-moz-column-break-inside:avoid;-ms-column-break-inside:avoid;column-break-inside:avoid;list-style:none;margin:0 0 10px 0;padding:0}main ul.details li{display:inline}main ul.details li>span{line-height:30px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;border:1px solid #d9d9d9;padding:2px}main article{text-align:justify}main article a,main article a:hover,main article a:active{border-bottom:none;color:#fff;background-color:#337ab7}main article a{font-weight:700}main article a:hover,main article a:active{background-color:#2e6da4}main article+p{-webkit-transition:all 0.3s ease-in-out 0s;-moz-transition:all 0.3s ease-in-out 0s;-ms-transition:all 0.3s ease-in-out 0s;transition:all 0.3s ease-in-out 0s;opacity:0.6}main article+p:hover{opacity:1.0}main mark{line-height:25px;color:#2b6dad;background-color:#f1f8fb;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;padding:2px}main .disabled{cursor:not-allowed;background-color:#f9f9f9}main .disabled:active{color:#fff;background-color:#edb43a}span.danger{color:#fff;background-color:#d43f3a;padding:2px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px}figcaption{margin:10px 0 10px 0}@media (max-width: 700px){header>div h1{font-size:22px}header>div span#right-header,header>div>a{font-size:12px}.non-essentials{display:none}}@media (max-width: 520px){main div.featured_keywords dl.left,main div.featured_keywords dl.right{float:none}span.danger{display:block}input[type='text'].top_loading{height:40px}}@media (max-width: 415px){header>div>a.mini{display:inline}header>div>a.lg{display:none}}
html,ul,body,header,input,span,form{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}html{font-family:Verdana, Open Sans, Myriad Pro, Calibri, Droid Sans, Trebuchet MS, sans-serif;font-size:.8em;height:100%}input{outline:0;box-shadow:none}img{max-width:100%;height:auto;margin:auto}a{line-height:130%;word-wrap:break-word;color:#303c3c;border-bottom:1px solid #808080;text-decoration:none;-webkit-transition:all 0.1s ease-in-out 0s;-moz-transition:all 0.1s ease-in-out 0s;-ms-transition:all 0.1s ease-in-out 0s;transition:all 0.1s ease-in-out 0s}input.field{padding:6px 12px;color:#555;border-bottom:1px dashed #d9d9d9;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;border-radius:1px;margin:0 auto;margin-bottom:5px;height:20px;width:70%;text-align:center}input[type="submit"]{cursor:pointer;min-width:100px;height:40px;background-color:#e9e9e9;border:1px solid #c3c3c3;color:#333;padding:4px;outline:0;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;-webkit-transition:all 0.15s ease-in-out 0s;-moz-transition:all 0.15s ease-in-out 0s;-ms-transition:all 0.15s ease-in-out 0s;transition:all 0.15s ease-in-out 0s}input[type="submit"]:hover{border:1px solid #a3a3a3}input[type="submit"]:focus,input[type="submit"]:active{outline:0}input[type="submit"]:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}input::-moz-focus-inner{border:0}footer{margin:5em 0 0.5em 0;width:95%;color:#b0b0b0;font-size:12px;text-align:center}footer p{padding-top:10px}div#message,div#error{position:fixed;font-size:90%;overflow:hidden;padding:3px;top:0;background-color:#a3a3a3;color:#fff;text-align:center;width:100%}div#message a,div#error a{color:#fff}div#error{background-color:#edb43a}ul.articles,ul.tweets{margin:0 auto;width:400px}ul.articles li,ul.tweets li{-webkit-column-break-inside:avoid;-moz-column-break-inside:avoid;-ms-column-break-inside:avoid;column-break-inside:avoid;list-style:none}ul.articles{-webkit-column-count:1;-moz-column-count:1;column-count:1;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px}ul.articles li{width:400px;margin-bottom:2em}ul.tweets{margin-top:2em;width:310px;-webkit-column-count:2;-moz-column-count:2;column-count:2;-webkit-column-gap:5px;-moz-column-gap:5px;column-gap:5px}ul.tweets li{width:150px;margin-bottom:5px}div.article,div.tweet{padding-bottom:10px;background-color:#fff;border:2px solid #efefef;position:relative;font-size:14px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px}div.article p{padding:5px}div.article a.title{color:#000;padding:3px 5px 5px 5px;margin-top:5px;margin-bottom:2px;font-size:28px;display:block;border-bottom:none}div.article p.url{padding:5px;border-top:1px solid #e5e5e5;background-image:url("img/url.png");background-repeat:no-repeat;padding:10px 0 0 30px;height:30px;display:block;margin-bottom:-10px}div.article p.url a{border-bottom:none;color:#04bff4;text-decoration:none;width:385px;display:block;position:relative}div.article img{width:100%}div.tweet{-webkit-transition:all 0.4s ease-in-out 0s;-moz-transition:all 0.4s ease-in-out 0s;-ms-transition:all 0.4s ease-in-out 0s;transition:all 0.4s ease-in-out 0s;padding:2px;overflow:hidden}div.tweet a{color:inherit;text-decoration:none}div.mad{border:2px solid #f90101}div.happy{border:2px solid #00933b}div.hovering{color:#000}div.no-hover{color:#c3c3c3;border:2px solid #f9f9f9}div.most-controversial{border:3px solid #f90101}div.least-controversial{border:3px solid #00933b}@media (min-width: 920px){ul.tweets{width:850px;-webkit-column-count:4;-moz-column-count:4;column-count:4}ul.tweets li{width:180px}}@media (max-width: 550px){ul.articles{width:320px}ul.articles li{width:315px}}footer{display:none}header{z-index:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;cursor:default;width:100%;height:55px;line-height:55px;background:#fff;border-bottom:1px solid #efefef;position:fixed}header>div{padding:0 15px 0 5px;display:inline}header>div>a.mini{display:none}header>div h1{text-transform:lowercase;text-align:left;display:inline;font-size:1.2em}header>div span#subtitle{opacity:0.4;padding-left:5px}header>div span#right-header{float:right;padding-right:10px}header>div form{display:inline}header>div>form input{padding:6px 12px;line-height:1.5;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;border-bottom:1px solid #d9d9d9;margin:0 auto;height:15px;width:30%}header>div>form input:focus{background-color:#f1f8fb;color:#2b6dad}header input[type='text'].top_loading{background:url("img/loading.gif") no-repeat;background-position:98% 50%;background-size:20px 20px}main{padding:6em 1em}main input.loading{background:url("img/loading.gif") no-repeat;background-size:20px 20px;padding:10px 10px 10px 36px;background-position:10% 50%}main>form{margin-bottom:10px;text-align:center}main>form input[type="text"]{margin-bottom:10px;width:275px;border-bottom:1px solid #d9d9d9}main>form input[type="text"]:focus{color:#2b6dad;background-color:#f1f8fb}main div.featured_keywords{display:table;padding-bottom:1em;margin:0 auto}main div.featured_keywords dl.left{float:left;width:50%}main div.featured_keywords dl.right{float:right;width:50%}main div.featured_keywords dt{float:left;width:7.5em;padding:1ex .5em 0 .5em;text-align:right;font-weight:bold}main div.featured_keywords dd{margin:0 0 0 8.5em;padding:1ex 0.5em;text-align:left;border-left:1px solid #888}main div.featured_keywords dd span{white-space:nowrap}main ul.details{-webkit-column-break-inside:avoid;-moz-column-break-inside:avoid;-ms-column-break-inside:avoid;column-break-inside:avoid;list-style:none;margin:0 0 10px 0;padding:0}main ul.details li{display:inline}main ul.details li>span{line-height:30px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;border:1px solid #d9d9d9;padding:2px}main article{text-align:justify;line-height:150%}main article a,main article a:hover,main article a:active{border-bottom:none;color:#fff;background-color:#337ab7}main article a{font-weight:700}main article a:hover,main article a:active{background-color:#2e6da4}main article+p{-webkit-transition:all 0.3s ease-in-out 0s;-moz-transition:all 0.3s ease-in-out 0s;-ms-transition:all 0.3s ease-in-out 0s;transition:all 0.3s ease-in-out 0s;opacity:0.6}main article+p:hover{opacity:1.0}main mark{line-height:25px;color:#2b6dad;background-color:#f1f8fb;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;padding:2px}main .disabled{cursor:not-allowed;background-color:#f9f9f9}main .disabled:active{color:#fff;background-color:#edb43a}span.danger{color:#fff;background-color:#d43f3a;padding:2px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px}figcaption{margin:10px 0 10px 0}@media (max-width: 700px){header>div span#right-header,header>div>a{font-size:12px}.non-essentials{display:none}}@media (max-width: 520px){main div.featured_keywords dl.left,main div.featured_keywords dl.right{float:none}span.danger{display:block}input[type='text'].top_loading{height:40px}}@media (max-width: 415px){header>div>a.mini{display:inline}header>div>a.lg{display:none}}
/*# sourceMappingURL=home.css.map */
......@@ -73,7 +73,7 @@ cApp.controller('SearchController', function($scope, $http, $rootScope, $locatio
if (!$rootScope.keyword) return;
$http.get('/api/trend/' + $rootScope.keyword)
.success(function(res) {
$scope.trend_available = (res['error'] || res['result'].length < 4);
$scope.trend_available = !(res['error'] || res['result'].length < 4);
}).error(function(res) {
return;
});
......
......@@ -14,18 +14,15 @@ header {
background: #fff;
border-bottom: 1px solid #efefef;
position: fixed;
font-size: 14px;
>div {
>a.mini { display: none; }
a:active, a:hover { border-bottom: none; }
padding: 0 15px 0 5px;
display: inline;
h1 {
text-transform: lowercase;
text-align: left;
display: inline;
font-size: 25px;
opacity: 0.8;
font-variant: small-caps;
font-size: 1.2em;
}
span#subtitle {
opacity: 0.4;
......@@ -37,7 +34,6 @@ header {
}
form { display: inline; }
>form input {
font-size: 16px;
padding: 6px 12px;
line-height: 1.5;
@include border-radius(2px);
......@@ -122,6 +118,7 @@ main {
article {
text-align: justify;
line-height: 150%;
%def {
border-bottom: none;
color: #fff;
......@@ -161,7 +158,6 @@ span.danger {
@include border-radius(2px); }
figcaption { margin:10px 0 10px 0; }
@media (max-width: 700px) {
header>div h1 { font-size: 22px; }
header>div span#right-header, header>div >a { font-size: 12px; }
.non-essentials { display: none; }
}
......
html,ul,body,header,input,span,form{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}html{font-family:Open Sans, Myriad Pro, Calibri, Droid Sans, Trebuchet MS, Sans-serif;height:100%}input{outline:0;box-shadow:none}img{max-width:100%;height:auto;margin:auto}a{border-bottom:0px solid #ccc;color:#61748c;font-weight:700;outline:0;text-decoration:none;-webkit-transition:all 0.1s ease-in-out 0s;-moz-transition:all 0.1s ease-in-out 0s;-ms-transition:all 0.1s ease-in-out 0s;transition:all 0.1s ease-in-out 0s}a:hover,a:active{text-decoration:none;background-color:#eee;color:#800}a:active{border-bottom:1px solid #ccc}input.field{font-size:16px;padding:6px 12px;color:#555;border-bottom:1px dashed #d9d9d9;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;border-radius:1px;margin:0 auto;margin-bottom:5px;height:20px;width:70%;text-align:center}input[type="submit"]{font-size:90%;cursor:pointer;min-width:100px;height:40px;background-color:#e9e9e9;border:1px solid #c3c3c3;color:#333;padding:4px;outline:0;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;-webkit-transition:all 0.15s ease-in-out 0s;-moz-transition:all 0.15s ease-in-out 0s;-ms-transition:all 0.15s ease-in-out 0s;transition:all 0.15s ease-in-out 0s}input[type="submit"]:hover{border:1px solid #a3a3a3}input[type="submit"]:focus,input[type="submit"]:active{outline:0}input[type="submit"]:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}input::-moz-focus-inner{border:0}footer{margin:5em 0 0.5em 0;width:95%;color:#b0b0b0;font-size:12px;text-align:center}footer p{padding-top:10px}div#message,div#error{position:fixed;font-size:90%;overflow:hidden;padding:3px;top:0;background-color:#a3a3a3;color:#fff;text-align:center;width:100%}div#message a,div#error a{color:#fff}div#error{background-color:#edb43a}div#login{padding:1px 5px 20px 5px;text-align:center;-webkit-box-shadow:0 1px 2px 2px #eee;-moz-box-shadow:0 1px 2px 2px #eee;-ms-box-shadow:0 1px 2px 2px #eee;box-shadow:0 1px 2px 2px #eee;width:450px;margin:5em auto 0 auto}div#login form{margin-top:10px}div#login center{margin-top:1em}div#login div.g-recaptcha{display:table;margin:0 auto}div#login span#details{font-size:16px}div#login h1{font-size:26px;font-variant:small-caps;margin:20px 0 5px 0}@media (max-width: 520px){div#login{width:350px}div#login h1{font-size:22px}div#login span#details{font-size:14px}}@media (max-width: 390px){div#login{width:320px}}@media (max-width: 330px){div#login{width:290px}}
html,ul,body,header,input,span,form{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}html{font-family:Verdana, Open Sans, Myriad Pro, Calibri, Droid Sans, Trebuchet MS, sans-serif;font-size:.8em;height:100%}input{outline:0;box-shadow:none}img{max-width:100%;height:auto;margin:auto}a{line-height:130%;word-wrap:break-word;color:#303c3c;border-bottom:1px solid #808080;text-decoration:none;-webkit-transition:all 0.1s ease-in-out 0s;-moz-transition:all 0.1s ease-in-out 0s;-ms-transition:all 0.1s ease-in-out 0s;transition:all 0.1s ease-in-out 0s}input.field{padding:6px 12px;color:#555;border-bottom:1px dashed #d9d9d9;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;border-radius:1px;margin:0 auto;margin-bottom:5px;height:20px;width:70%;text-align:center}input[type="submit"]{cursor:pointer;min-width:100px;height:40px;background-color:#e9e9e9;border:1px solid #c3c3c3;color:#333;padding:4px;outline:0;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px;-webkit-transition:all 0.15s ease-in-out 0s;-moz-transition:all 0.15s ease-in-out 0s;-ms-transition:all 0.15s ease-in-out 0s;transition:all 0.15s ease-in-out 0s}input[type="submit"]:hover{border:1px solid #a3a3a3}input[type="submit"]:focus,input[type="submit"]:active{outline:0}input[type="submit"]:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}input::-moz-focus-inner{border:0}footer{margin:5em 0 0.5em 0;width:95%;color:#b0b0b0;font-size:12px;text-align:center}footer p{padding-top:10px}div#message,div#error{position:fixed;font-size:90%;overflow:hidden;padding:3px;top:0;background-color:#a3a3a3;color:#fff;text-align:center;width:100%}div#message a,div#error a{color:#fff}div#error{background-color:#edb43a}div#login{padding:1px 5px 20px 5px;text-align:center;-webkit-box-shadow:0 1px 2px 2px #eee;-moz-box-shadow:0 1px 2px 2px #eee;-ms-box-shadow:0 1px 2px 2px #eee;box-shadow:0 1px 2px 2px #eee;width:450px;margin:5em auto 0 auto}div#login form{margin-top:10px}div#login center{margin-top:1em}div#login div.g-recaptcha{display:table;margin:0 auto}div#login h2{font-size:1.1em;margin:20px 0 5px 0}@media (max-width: 520px){div#login{width:350px}}@media (max-width: 390px){div#login{width:320px}}@media (max-width: 330px){div#login{width:290px}}
/*# sourceMappingURL=login.css.map */
......@@ -11,17 +11,13 @@ div#login {
div.g-recaptcha {
display: table;
margin: 0 auto; }
span#details { font-size: 16px; }
h1 {
font-size: 26px;
font-variant: small-caps;
h2 {
font-size: 1.1em;
margin: 20px 0 5px 0; }
}
@media (max-width: 520px) {
div#login {
width: 350px;
h1 { font-size: 22px; }
span#details { font-size: 14px; }
}
}
@media (max-width: 390px) {
......
@import url(bootstrap.min.css);*{font-family:'Open Sans', Roboto, Ubuntu, 'Source Sans Pro', 'Helvetica Nueue', Helvetica, sans-serif}h1{font-weight:700}blockquote{font-size:16px}blockquote.good{background-color:#dff0d8;border-left:5px solid #3c763d}blockquote.bad{background-color:#f2dede;border-left:5px solid #a94442}.col-md-3{color:#ddd;background-color:rgba(245,245,245,0.3)}div#full_article{font-size:16px}div#full_article span{cursor:pointer}div#full_article span.controversial{color:#bada55;background-color:#800}#copyright{margin-bottom:14em}.btn{font-weight:700}.top_bar{height:8px;background-color:#d9d9d9;margin-bottom:12px}#full_article{text-align:justify}#bot_bar{position:fixed;z-index:1;bottom:0}#bot_bar .col-md-12{padding:8px;background-color:#eee;margin-top:8px;text-align:right;height:61px}#bot_bar .col-md-12 .pull-left{padding:8px}@media (max-height: 400px){#bot_bar{position:relative}}@media (min-width: 1200px){#bot_bar{width:1170px}}@media (min-width: 992px){#bot_bar{width:970}}@media (min-width: 768px){#bot_bar{width:750}}
@import url(bootstrap.min.css);*{font-family:Verdana, 'Open Sans', Roboto, Ubuntu, 'Source Sans Pro', 'Helvetica Nueue', Helvetica, sans-serif}h1{font-weight:700}blockquote{font-size:16px}blockquote.good{background-color:#dff0d8;border-left:5px solid #3c763d}blockquote.bad{background-color:#f2dede;border-left:5px solid #a94442}.col-md-3{color:#ddd;background-color:rgba(245,245,245,0.3)}div#full_article{font-size:16px}div#full_article span{cursor:pointer}div#full_article span.controversial{color:#bada55;background-color:#800}#copyright{margin-bottom:14em}.btn{font-weight:700}.top_bar{height:8px;background-color:#d9d9d9;margin-bottom:12px}#full_article{text-align:justify}#bot_bar{position:fixed;z-index:1;bottom:0}#bot_bar .col-md-12{padding:8px;background-color:#eee;margin-top:8px;text-align:right;height:61px}#bot_bar .col-md-12 .pull-left{padding:8px}@media (max-height: 400px){#bot_bar{position:relative}}@media (min-width: 1200px){#bot_bar{width:1170px}}@media (min-width: 992px){#bot_bar{width:970}}@media (min-width: 768px){#bot_bar{width:750}}
/*# sourceMappingURL=highlight.css.map */
@import 'bootstrap.min.css';
* { font-family: 'Open Sans', Roboto, Ubuntu, 'Source Sans Pro', 'Helvetica Nueue', Helvetica, sans-serif; }
* {
font-family: Verdana, 'Open Sans', Roboto, Ubuntu, 'Source Sans Pro', 'Helvetica Nueue', Helvetica, sans-serif; }
h1 {
font-weight: 700; }
blockquote {
......
......@@ -23,23 +23,22 @@
{% endif %}
{% endwith %}
<div id=login>
<h1>Controversy</h1>
<h2>welcome to controversy</h2>
<span id=details>
<a href="training">Annotate articles</a> to help us build a dataset for future study!
<a href="training">annotate articles</a> to help us build a dataset for future study!
<center>
<a href="https://github.com/gdyer/controversy">&star; on GitHub</a>
&middot;
<a href="https://github.com/gdyer/controversy/issues" id=bugs_a>Known bugs</a>
<a href="https://github.com/gdyer/controversy/issues" id=bugs_a>known Bugs</a>
<small>
( <img id=loading_bugs src="{{ url_for('static', filename='img/small-loading.gif') }}" />
<span style="display:none" id=n_bugs></span> )
</small>
</center>
<hr>
Please login or <a href="register">create a free account</a> to use the demo.
We recommend using the latest version of Chrome, Chromium, or Opera.
login or <a href="register">create one</a>; best with chrom{e,ium} or opera
</span>
<p><noscript><tt>Requires JavaScript</tt></noscript></p>
<p><noscript><tt>requires javascript</tt></noscript></p>
<form style="display:none" method=POST>
{{ form.hidden_tag() }}
{{ form.email(value=username, type="email", class_="field", placeholder="email (username)", required="required") }}
......
......@@ -5,7 +5,6 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="{{ url_for('static', filename='img/fav.ico') }}" />
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,600,700" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="{{ css }}" type="text/css" />
<title>Training &middot; Controversy</title>
<!--[if lt IE 9]>
......
{% extends "mturk_base.html" %}
{% block content %}
<div class="row">
<div class="col-md-12">
<p><b>Thank you for your interest</b>. While we have not yet employed mturk works to annotate our training articles, a small subset of the set has been annotated by volunteers.</p>
<p>The data are compiled dynamically and will update with new annotations as we receive them. There are </p>
<p class=text-danger>As of April 3rd 2016, downloads aren't ready</p>
<p style="line-height: 275%">
<b>download &hellip;</b>
<button class="btn btn-success" type="submit">annotated only (json)</button>
<button class="btn btn-danger" type="submit">annotated &amp; unannotated (json, 0.953GB)</button>
</p>
<p>copyright (&copy;) 2015-2016 I Lourentzou, G Dyer, A Sharma, CX Zhai with some rights reserved under a CC BY-NC-SA 4.0. see <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">here</a> for details.</p>
{% endblock %}
{% extends "mturk_base.html" %}
{% block content %}
<div class="page-header">
<h1>Controversial sentences</h1>
<h1>controversial sentences</h1>
</div>
<div class="row">
<div class="col-md-12">
<p>(<b class=text-danger>!</b>) See <a href="dataset">here</a> if you're a researcher interested in this data.</p>
</div>
<div class="col-md-12">
<p class="lead">Each HIT involves reading an article from <em>The New York Times</em>. You must be fluent in English to particiate.</p>
<p class="lead">While reading on the next page, click any sentences which you believe to be controversial, i.e. expressing an opinion or qualified fact (e.g. <q>terrible losses</q>) that you believe could be debated. Use your knowledge of current events while determining whether a sentence is controversial. When done, click <b><q>Submit</q></b>. You have unlimited time to read, however there is a minimum time shown at the bottom that is determined by the length of the article. You may not submit before this time or with no or too many highlights. Examples are below.</p>
......@@ -35,7 +38,7 @@
<br>
</div>
<div class="col-md-4">
<p>Problems preventing submission of an HIT are unlikely. Should they nevertheless occur, email us your browser info: <b><tt>gdyer</tt>@<tt>seznam</tt>.<tt>cz</tt></b></p>
<p>Problems preventing submission of an HIT are unlikely. Should they nevertheless occur, email us your browser info: <b><tt>mturk</tt>@<tt>2pitau</tt>.<tt>org</tt></b></p>
<br>
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment