Commit 385c2e98 authored by Sacha's avatar Sacha
Browse files

see diff; minor changes

parent c3467fdc
......@@ -45,7 +45,7 @@ def restrict():
def justmime(r, status=200):
return Response(r, mimetype="application/json", status=status)
return Response(r, mimetype='application/json', status=status)
def success(r):
......@@ -99,8 +99,8 @@ def trending():
hist = map(lambda x : x['Term'], db.histories())
if not hist:
return jsonify({
"trending" : None,
"top-5": None
'trending' : None,
'top-5': None
})
freq = Counter(hist)
s = sum(freq.values())
......@@ -109,9 +109,9 @@ def trending():
return success({
"trending" : freq,
"controversial": get_largest_for_key(db.most_controversial(), 4),
"top-5" : sorted(freq, key=freq.get, reverse=True)[:5]
'trending' : freq,
'controversial': get_largest_for_key(db.most_controversial(), 4),
'top-5' : sorted(freq, key=freq.get, reverse=True)[:5]
})
......
......@@ -10,6 +10,16 @@ body {
.logo, h1, h2, h3, h4, h5 {
font-family: $display;
}
.collective_logo {
padding: 2px;
font-weight: bold;
}
.collective_logo:hover {
color: #fff;
background: #ed0000;
text-decoration: none;
border: none;
}
input, .sans {
font-family: $sans_serif;
}
......@@ -119,7 +129,7 @@ footer {
line-height: 150%;
}
}
div#message {
div#message, div#error {
position: fixed;
font-size: 90%;
overflow: hidden;
......@@ -132,7 +142,6 @@ div#message {
a { color: #fff; }
}
div#error {
@extend div#message;
background-color: $warn;
}
@media (max-width: 400px) {
......
This diff is collapsed.
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;-webkit-text-size-adjust:100%}body{font-family:"Libre Baskerville","Palatino","Garamond",serif;font-variant-numeric:slashed-zero;text-rendering:optimizeLegibility;font-size:0.9em;word-wrap:break-word}.logo,h1,h2,h3,h4,h5{font-family:"Linux Biolinum","Zapf Humanist 601","Optima","Nunito Sans",sans-serif}input,.sans{font-family:"Nunito Sans","Calibri",sans-serif}.logo,h1,h2,h3,h4,h5{font-weight:700 !important}h1,h2,h3,h4,h5{text-transform:uppercase}h1{font-size:130%}h2{font-size:110%}h3{font-size:90%}h4{font-size:75%}h5{font-size:60%}input{outline:0;box-shadow:none;-webkit-tap-highlight-color:transparent}img{max-width:100%;height:auto;margin:auto}a{-webkit-tap-highlight-color:transparent;text-decoration:none;color:inherit;border-bottom:1px dotted;line-height:130%;word-wrap:break-word}a:hover,a:active{color:#ed0000;border-bottom:1px solid;text-decoration:none}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"],a.btn{cursor:pointer;min-width:100px;height:40px;color:#333;padding:4px;outline:0;border-radius:0;-webkit-appearance:none;-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;background-color:#e9e9e9;border:1px solid #c3c3c3}input[type="submit"]:hover,a.btn:hover{border-color:#a3a3a3}input[type="submit"]:focus,input[type="submit"]:active,a.btn:focus,a.btn:active{outline:0}input[type="submit"]:active,a.btn: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[type="submit"].small,a.btn.small{height:auto}a.btn{padding:.5px;min-width:0px;max-height:500px;font-size:0.75em;background:#fff;border-radius:2px;vertical-align:middle}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;line-height:150%}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}@media (max-width: 400px){div#error,div#message,div#error{font-size:smaller;opacity:0.9}}ul#articles,ul#tweets{list-style:none}ul#articles li,ul#tweets li{page-break-inside:avoid;-webkit-column-break-inside:avoid;-moz-column-break-inside:avoid;-ms-column-break-inside:avoid;column-break-inside:avoid;break-inside:avoid-column}ul#articles li div.article,ul#tweets li div.tweet{background-color:#fff;border:2px solid #efefef;font-size:14px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px}ul#articles{-webkit-column-gap:10px;-moz-column-gap:10px;column-gap:10px;-webkit-column-width:350px;-moz-column-width:350px;column-width:350px}ul#articles li{width:100%;margin-bottom:2em}ul#articles li div.article p{padding:5px}ul#articles li div.article a.title{padding:3px 5px 5px 5px;margin-top:5px;margin-bottom:2px;font-size:28px;display:block;border-bottom:none}ul#articles li div.article a.title:hover{color:#000}ul#articles li div.article p.url{margin:0;padding:0;border-top:1px solid #ddd;font-style:italic;text-align:right;background:#eee}ul#articles li div.article p.url a{padding:5px 0px;width:100%;display:block;border-bottom:none}ul#articles li div.article p.url a:after{padding-right:5px;content:"read →"}ul#articles li div.article img{width:100%}ul#tweets{margin-top:2em;-webkit-column-width:150px;-moz-column-width:150px;column-width:150px;-webkit-column-gap:5px;-moz-column-gap:5px;column-gap:5px}ul#tweets li{width:100%;margin-bottom:5px}ul#tweets li div.tweet{padding:2px;overflow:hidden}ul#tweets li div.tweet a{color:inherit;text-decoration:none}ul#tweets li div.mad{border:2px solid #f90101}ul#tweets li div.happy{border:2px solid #00933b}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 a{-webkit-touch-callout:none}header>div{padding:0 15px 0 5px;display:inline}header>div a:not(.sans){font-size:12px}header>div>a.mini{display:none}header>div h1{text-align:left;display:inline;font-size:1.2em}header>div span#subtitle{opacity:0.4;padding-left:5px;font-size:smaller;font-style:italic}header>div .sans{font-size:14px}header>div span#right-header{font-size:12px;float:right;padding-right:10px}header>div span#article_title{font-style:italic}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:20px;width:30%}header input[type='text'].top_loading{background:url("../img/loading.gif") no-repeat;background-position:98% 50%;background-size:20px 20px}header#sub{height:25px;line-height:25px;background:#ffecec;overflow:auto;white-space:nowrap;overflow-y:hidden;color:#ed0000;border-bottom:1px solid #efefef;position:fixed;top:56px;min-width:100%;text-align:center;font-size:smaller;font-style:italic}main{padding:4em 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 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:#d53f3f}main article a{text-decoration:none;font-weight:700}main article a:hover,main article a:active{background-color:#bf3636}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 img{width:20px;vertical-align:bottom}main article+p:hover{opacity:1.0}main mark{line-height:25px;color:#ed0000;background:#ffecec;-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#sub{font-size:12px;top:41px}.non-essentials{display:none}header{height:40px;line-height:40px}header h1{font-size:.7em}}@media (max-width: 620px){main div.featured_keywords dt{writing-mode:vertical-rl}}@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 */
html,ul,body,header,input,span,form{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;-webkit-text-size-adjust:100%}body{font-family:"Libre Baskerville","Palatino","Garamond",serif;font-variant-numeric:slashed-zero;text-rendering:optimizeLegibility;font-size:.9em;word-wrap:break-word}.logo,h1,h2,h3,h4,h5{font-family:"Linux Biolinum","Zapf Humanist 601","Optima","Nunito Sans",sans-serif}.collective_logo{padding:2px;font-weight:bold}.collective_logo:hover{color:#fff;background:#ed0000;text-decoration:none;border:none}input,.sans{font-family:"Nunito Sans","Calibri",sans-serif}.logo,h1,h2,h3,h4,h5{font-weight:700 !important}h1,h2,h3,h4,h5{text-transform:uppercase}h1{font-size:130%}h2{font-size:110%}h3{font-size:90%}h4{font-size:75%}h5{font-size:60%}input{outline:0;box-shadow:none;-webkit-tap-highlight-color:transparent}img{max-width:100%;height:auto;margin:auto}a{-webkit-tap-highlight-color:transparent;text-decoration:none;color:inherit;border-bottom:1px dotted;line-height:130%;word-wrap:break-word}a:hover,a:active{color:#ed0000;border-bottom:1px solid;text-decoration:none}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],a.btn{cursor:pointer;min-width:100px;height:40px;color:#333;padding:4px;outline:0;border-radius:0;-webkit-appearance:none;-webkit-transition:all .15s ease-in-out 0s;-moz-transition:all .15s ease-in-out 0s;-ms-transition:all .15s ease-in-out 0s;transition:all .15s ease-in-out 0s;background-color:#e9e9e9;border:1px solid #c3c3c3}input[type=submit]:hover,a.btn:hover{border-color:#a3a3a3}input[type=submit]:focus,input[type=submit]:active,a.btn:focus,a.btn:active{outline:0}input[type=submit]:active,a.btn:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}input[type=submit].small,a.btn.small{height:auto}a.btn{padding:.5px;min-width:0;max-height:500px;font-size:.75em;background:#fff;border-radius:2px;vertical-align:middle}input::-moz-focus-inner{border:0}footer{margin:5em 0 .5em 0;width:95%;color:#b0b0b0;font-size:12px;text-align:center}footer p{padding-top:10px;line-height:150%}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}@media(max-width: 400px){div#error,div#message{font-size:smaller;opacity:.9}}ul#tweets,ul#articles{list-style:none}ul#tweets li,ul#articles li{page-break-inside:avoid;-webkit-column-break-inside:avoid;-moz-column-break-inside:avoid;-ms-column-break-inside:avoid;column-break-inside:avoid;break-inside:avoid-column}ul#tweets li div.tweet,ul#articles li div.article{background-color:#fff;border:2px solid #efefef;font-size:14px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;border-radius:2px}ul#articles{-webkit-column-gap:10px;-moz-column-gap:10px;column-gap:10px;-webkit-column-width:350px;-moz-column-width:350px;column-width:350px}ul#articles li{width:100%;margin-bottom:2em}ul#articles li div.article p{padding:5px}ul#articles li div.article a.title{padding:3px 5px 5px 5px;margin-top:5px;margin-bottom:2px;font-size:28px;display:block;border-bottom:none}ul#articles li div.article a.title:hover{color:#000}ul#articles li div.article p.url{margin:0;padding:0;border-top:1px solid #ddd;font-style:italic;text-align:right;background:#eee}ul#articles li div.article p.url a{padding:5px 0;width:100%;display:block;border-bottom:none}ul#articles li div.article p.url a:after{padding-right:5px;content:"read →"}ul#articles li div.article img{width:100%}ul#tweets{margin-top:2em;-webkit-column-width:150px;-moz-column-width:150px;column-width:150px;-webkit-column-gap:5px;-moz-column-gap:5px;column-gap:5px}ul#tweets li{width:100%;margin-bottom:5px}ul#tweets li div.tweet{padding:2px;overflow:hidden}ul#tweets li div.tweet a{color:inherit;text-decoration:none}ul#tweets li div.mad{border:2px solid #f90101}ul#tweets li div.happy{border:2px solid #00933b}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 a{-webkit-touch-callout:none}header > div{padding:0 15px 0 5px;display:inline}header > div a:not(.sans){font-size:12px}header > div > a.mini{display:none}header > div h1{text-align:left;display:inline;font-size:1.2em}header > div span#subtitle{opacity:.4;padding-left:5px;font-size:smaller;font-style:italic}header > div .sans{font-size:14px}header > div span#right-header{font-size:12px;float:right;padding-right:10px}header > div span#article_title{font-style:italic}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:20px;width:30%}header input[type=text].top_loading{background:url("../img/loading.gif") no-repeat;background-position:98% 50%;background-size:20px 20px}header#sub{height:25px;line-height:25px;background:#ffecec;overflow:auto;white-space:nowrap;overflow-y:hidden;color:#ed0000;border-bottom:1px solid #efefef;position:fixed;top:56px;min-width:100%;text-align:center;font-size:smaller;font-style:italic}main{padding:4em 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 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 .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:hover,main article a:active,main article a{border-bottom:none;color:#fff;background-color:#d53f3f}main article a{text-decoration:none;font-weight:700}main article a:hover,main article a:active{background-color:#bf3636}main article + p{-webkit-transition:all .3s ease-in-out 0s;-moz-transition:all .3s ease-in-out 0s;-ms-transition:all .3s ease-in-out 0s;transition:all .3s ease-in-out 0s;opacity:.6}main article + p img{width:20px;vertical-align:bottom}main article + p:hover{opacity:1}main mark{line-height:25px;color:#ed0000;background:#ffecec;-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#sub{font-size:12px;top:41px}.non-essentials{display:none}header{height:40px;line-height:40px}header h1{font-size:.7em}}@media(max-width: 620px){main div.featured_keywords dt{writing-mode:vertical-rl}}@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 */
html,ul,body,header,input,span,form{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;-webkit-text-size-adjust:100%}body{font-family:"Libre Baskerville","Palatino","Garamond",serif;font-variant-numeric:slashed-zero;text-rendering:optimizeLegibility;font-size:0.9em;word-wrap:break-word}.logo,h1,h2,h3,h4,h5{font-family:"Linux Biolinum","Zapf Humanist 601","Optima","Nunito Sans",sans-serif}input,.sans{font-family:"Nunito Sans","Calibri",sans-serif}.logo,h1,h2,h3,h4,h5{font-weight:700 !important}h1,h2,h3,h4,h5{text-transform:uppercase}h1{font-size:130%}h2{font-size:110%}h3{font-size:90%}h4{font-size:75%}h5{font-size:60%}input{outline:0;box-shadow:none;-webkit-tap-highlight-color:transparent}img{max-width:100%;height:auto;margin:auto}a{-webkit-tap-highlight-color:transparent;text-decoration:none;color:inherit;border-bottom:1px dotted;line-height:130%;word-wrap:break-word}a:hover,a:active{color:#ed0000;border-bottom:1px solid;text-decoration:none}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"],a.btn{cursor:pointer;min-width:100px;height:40px;color:#333;padding:4px;outline:0;border-radius:0;-webkit-appearance:none;-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;background-color:#e9e9e9;border:1px solid #c3c3c3}input[type="submit"]:hover,a.btn:hover{border-color:#a3a3a3}input[type="submit"]:focus,input[type="submit"]:active,a.btn:focus,a.btn:active{outline:0}input[type="submit"]:active,a.btn: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[type="submit"].small,a.btn.small{height:auto}a.btn{padding:.5px;min-width:0px;max-height:500px;font-size:0.75em;background:#fff;border-radius:2px;vertical-align:middle}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;line-height:150%}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}@media (max-width: 400px){div#error,div#message,div#error{font-size:smaller;opacity:0.9}}div.login_alert{position:fixed;bottom:0.5em;right:0.5em;min-width:90px;max-width:315px;padding:1em 1.25em;background:#fff;border:1px solid #e7e7e5;font-size:0.75rem;line-height:1.5;z-index:2}div.login_alert span.close,div.login_alert div.close{cursor:pointer;position:absolute;top:0;right:0;padding:0.5em 0.75em;line-height:1;font-size:1.25rem;text-align:center}div.login_alert div.body{margin-top:0.5em}div.login_alert div.title{font-weight:bold}div.login_alert.dangerous{color:#fff;background:#ed0000}html{border-top:3px solid #ed0000}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:3em 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 h1{font-weight:400 !important;text-transform:none;margin:20px 0 5px 0}div#login h1 b{text-transform:uppercase}@media (max-width: 520px){div#login{width:350px;font-size:14px}div#login input[type="submit"]{height:35px}}@media (max-width: 390px){div#login{width:320px;margin-top:2em}}@media (max-width: 320px){div#login{width:290px;margin:1em auto}html,body{margin:0}}
/*# sourceMappingURL=login.css.map */
html,ul,body,header,input,span,form{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;-webkit-text-size-adjust:100%}body{font-family:"Libre Baskerville","Palatino","Garamond",serif;font-variant-numeric:slashed-zero;text-rendering:optimizeLegibility;font-size:.9em;word-wrap:break-word}.logo,h1,h2,h3,h4,h5{font-family:"Linux Biolinum","Zapf Humanist 601","Optima","Nunito Sans",sans-serif}.collective_logo{padding:2px;font-weight:bold}.collective_logo:hover{color:#fff;background:#ed0000;text-decoration:none;border:none}input,.sans{font-family:"Nunito Sans","Calibri",sans-serif}.logo,h1,h2,h3,h4,h5{font-weight:700 !important}h1,h2,h3,h4,h5{text-transform:uppercase}h1{font-size:130%}h2{font-size:110%}h3{font-size:90%}h4{font-size:75%}h5{font-size:60%}input{outline:0;box-shadow:none;-webkit-tap-highlight-color:transparent}img{max-width:100%;height:auto;margin:auto}a{-webkit-tap-highlight-color:transparent;text-decoration:none;color:inherit;border-bottom:1px dotted;line-height:130%;word-wrap:break-word}a:hover,a:active{color:#ed0000;border-bottom:1px solid;text-decoration:none}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],a.btn{cursor:pointer;min-width:100px;height:40px;color:#333;padding:4px;outline:0;border-radius:0;-webkit-appearance:none;-webkit-transition:all .15s ease-in-out 0s;-moz-transition:all .15s ease-in-out 0s;-ms-transition:all .15s ease-in-out 0s;transition:all .15s ease-in-out 0s;background-color:#e9e9e9;border:1px solid #c3c3c3}input[type=submit]:hover,a.btn:hover{border-color:#a3a3a3}input[type=submit]:focus,input[type=submit]:active,a.btn:focus,a.btn:active{outline:0}input[type=submit]:active,a.btn:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}input[type=submit].small,a.btn.small{height:auto}a.btn{padding:.5px;min-width:0;max-height:500px;font-size:.75em;background:#fff;border-radius:2px;vertical-align:middle}input::-moz-focus-inner{border:0}footer{margin:5em 0 .5em 0;width:95%;color:#b0b0b0;font-size:12px;text-align:center}footer p{padding-top:10px;line-height:150%}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}@media(max-width: 400px){div#error,div#message{font-size:smaller;opacity:.9}}div.login_alert{position:fixed;bottom:.5em;right:.5em;min-width:90px;max-width:315px;padding:1em 1.25em;background:#fff;border:1px solid #e7e7e5;font-size:.75rem;line-height:1.5;z-index:2}div.login_alert span.close,div.login_alert div.close{cursor:pointer;position:absolute;top:0;right:0;padding:.5em .75em;line-height:1;font-size:1.25rem;text-align:center}div.login_alert div.body{margin-top:.5em}div.login_alert div.title{font-weight:bold}div.login_alert.dangerous{color:#fff;background:#ed0000}html{border-top:3px solid #ed0000}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:3em 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 h1{font-weight:400 !important;text-transform:none;margin:20px 0 5px 0}div#login h1 b{text-transform:uppercase}@media(max-width: 520px){div#login{width:350px}div#login input[type=submit]{height:35px}footer,div#login{font-size:smaller}footer tt{font-size:12px}}@media(max-width: 390px){div#login{width:320px;margin-top:2em}}@media(max-width: 320px){div#login{width:290px;margin:1em auto}html,body{margin:0}}/*# sourceMappingURL=login.css.map */
......@@ -33,9 +33,16 @@ div#login {
input[type="submit"] {
height: 35px;
}
width: 350px;
font-size: 14px;
width: 350px;
}
footer, div#login {
font-size: smaller;
}
footer {
tt {
font-size: 12px;
}
}
}
@media (max-width: 390px) {
div#login {
......
@import url(bootstrap.min.css);body{font-family:'Verdana', sans-serif;border-top:10px solid #d9d9d9;padding-top:10px}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}#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}#bot_bar .col-md-12 .pull-left input[type='text']{width:230px;font-size:smaller;height:30px;vertical-align:middle}#error{display:none}@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';body{font-family:"Verdana",sans-serif;border-top:10px solid #d9d9d9;padding-top:10px}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,.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}#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}#bot_bar .col-md-12 .pull-left input[type=text]{width:230px;font-size:smaller;height:30px;vertical-align:middle}#error{display:none}@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 */
......@@ -25,10 +25,11 @@ def keyword_trend(keyword, x, y):
"""
fig = Figure(facecolor='white')
ax = fig.add_subplot(111)
ax.set_title('"%s" controversy vs. time' % keyword)
ax.set_ylabel('controversy entropy-based score')
ax.set_title(u'‘%s controversy vs. time' % keyword)
ax.set_ylabel('CONTROVERSY entropy-based score')
ax.set_xlabel('time')
ax.plot_date(x, y, fmt='bo-', color='#ed0000')
ax.plot_date(x, y, fmt='bo-', color='#eeeeee',
mec='#ed0000', mfc='#ed0000', ms=2)
ax.xaxis.set_major_formatter(DateFormatter('%Y-%m-%d'))
ax.grid(True)
......
......@@ -86,14 +86,14 @@ function dismiss_error() {
<p>This is <span class='logo'>CONTROVERSY</span>, available <a target='_blank' href='http://framagit.org/gdyer/CONTROVERSY'>on Framagit</a>.</p>
<p>We've setup an annotation system for people to select pieces of news articles they believe to be controversial: <a href='../training'>training</a>.</p>
<p>We&rsquo;ve setup an annotation system for people to select pieces of news articles they believe to be controversial: <a href='../training'>training</a>.</p>
<p>We encrypt passwords with a one-way hash. As of fall 2015, we force SSL as you browse the site.</p>
<p>We encrypt passwords with a one-way hash. As of fall 2015, we force SSL as you browse the project.</p>
<p>We'd like to thank the NSF and NIH for <a target='_blank' href='https://www.nsf.gov/awardsearch/showAward?AWD_ID=1027965'>supporting</a> this work.</p>
<p>We&rsquo;d like to thank the NSF and NIH for <a target='_blank' href='https://www.nsf.gov/awardsearch/showAward?AWD_ID=1027965'>supporting</a> this work.</p>
<div>
<p>Found a bug? <a target='_blank' href='https://framagit.org/gdyer/CONTROVERSY/issues/new'>Please file a report</a>.</p>
<p>Found a bug? <a target='_blank' href='https://issues.2pitau.org/controversy'>Please file a report</a> (anonymously).</p>
<ul ng-controller='IssuesController' class='issues_list'>
Known problems &hellip;
{% raw %}
......
......@@ -23,9 +23,9 @@
<p>
<em><a href='https://graham.2pitau.org/_static/pdf/big-data-2015.pdf' target='_blank'>Hotspots of News Articles: Joint Mining of News Text &amp; Social Media to Discover Controversial Points in News</a></em>
<br>
Ismini Lourentzou, Graham Dyer, Abhishek Sharma, ChengXiang Zhai &mdash; <tt>{lourent2, gdyer2, sharma51, czhai}@illinois.edu</tt> &mdash; University of Illinois, Urbana&ndash;Champaign.
Ismini Lourentzou, Graham Dyer, Abhishek Sharma, ChengXiang Zhai &mdash; <code>{lourent2, gdyer2, sharma51, czhai}@illinois.edu</code> &mdash; University of Illinois, Urbana&ndash;Champaign.
<br>
<span class='logo'>CONTROVERSY</span> is a <a href='https://2pitau.org' target='_blank'>2πτ</a> project.
<span class='logo'>CONTROVERSY</span> is a <a class='collective_logo' href='https://2pitau.org' target='_blank'>2&pi;&tau;</a> project.
</p>
</footer>
......
......@@ -13,7 +13,7 @@
<blockquote class='good'>
<p>Across Russia, companies are <i>being forced</i> to prioritize patriotism over profits.</p>
</blockquote>
<p>This sentence is controversial because it expresses a value-judgement, implying strongly that <q>patriotism</q> should be subordinate to <q>profits</q>. This obsession with profits is typical of American capitalism (much to the detriment of education, working conditions, healthcare, the environment, and so on), but perhaps not Russian capitalism. It also implies that governments should have minimal intervention in corporate affairs, which is also far from a law of nature. The choice of words puts readers on the side of the ostensibly victimized corporation. This is ideologically revealing, considering the company in question (Aeroflot) is majority owned by the Russian government (is it not a capitalist principle that shareholders dictate policy?). So, it's a value judgement from the <i>Times</i>:</p>
<p>This sentence is controversial because it expresses a value-judgement, implying strongly that <q>patriotism</q> should be subordinate to <q>profits</q>. This prioritisation is typical of (American) capitalism&mdash;much to the detriment of schools, working conditions, health, the environment, and so on&mdash;but perhaps there exists a different hierarchy in Russian capitalism. Moreover, it implies that governments should have minimal intervention in corporate affairs, which is also far from a law of nature. The choice of words puts readers on the side of the ostensibly victimised corporation. This is ideologically revealing, considering the company in question (Aeroflot) is majority owned by the Russian government (is it not a capitalist principle that shareholders dictate policy?). So, it's a value-judgement from the <i>Times</i>.</p>
<p>Other examples of controversial sentences:</p>
<blockquote class='good'>
<p>The abortion clinic was destroyed soon after local Catholic extremist groups expressed <i>deep-seated hatred</i> for women's rights.</p>
......
......@@ -43,11 +43,13 @@ function dismiss_error() {
<span id='details'>
<span class='logo'>CONTROVERSY</span> seeks to build computational techniques to evaluate the controversy of news articles.
<a href='{{ url_for("/training.index") }}'>Annotate articles</a> to help us build a dataset for future study!
<center>
<a href='https://framagit.org/gdyer/CONTROVERSY'>&star; on Framagit</a>
&middot;
<center>
<a target='_blank' href='https://framagit.org/gdyer/CONTROVERSY'>sourcecode</a>
&nbsp;&middot;&nbsp;
<a href='{{ url_for("register") }}'>register an account</a>
</center>
&nbsp;&middot;&nbsp;
<a target='_blank' href='https://issues.2pitau.org/controversy'>file an issue</a>
</center>
<hr>
</span>
<p><noscript><span class='logo'>CONTROVERSY</span> <i>requires JavaScript. We&rsquo;re not doing anything fishy: the project is free (as in freedom) software, and you may view the source files here: <a href='https://framagit.org/gdyer/CONTROVERSY' target='_blank'>https://framagit.org/gdyer/CONTROVERSY</a></i></noscript></p>
......
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