Commit baa0b4bb authored by Sacha's avatar Sacha
Browse files

see diff

parent 3f90d492
......@@ -150,7 +150,7 @@ class Article(object):
response = opener.open(urllib2.Request(self.url))
soup = BeautifulSoup(response.read(), 'html.parser')
body = soup.findAll('p', {
'class' : ['css-18sbwfn', 'css-1ygdjhk']
'class' : ['css-18sbwfn', 'css-1ygdjhk', 'css-exrw3m']
})
# we'll split into paragraphs for easier reading if training
res = ('|*^*|' if training else ' ').join(p.text for p in body)
......
......@@ -204,9 +204,9 @@ cApp.controller('ReadController', function($scope, $rootScope, $location, $route
var value = $window.innerWidth;
$scope.lim = 130;
if (value < 500)
$scope.lim = 20;
$scope.lim = 15;
else if (value < 600)
$scope.lim = 40;
$scope.lim = 32;
else if (value < 750)
$scope.lim = 50;
......
......@@ -32,7 +32,7 @@
</div>
</div>
<div class='col-md-6' id='copyright'>
<p class='text-muted'>If you supply your name or some moniker (perhaps one that&rsquo;s not <i>too</i> vulgar), we&rsquo;ll thank you in any publications that use the labour you&rsquo;ve performed here.</p>
<p class='text-muted'>If you supply your name or some moniker (perhaps one that&rsquo;s not <i>too</i> obscene), we&rsquo;ll thank you in any publications that use the labour you&rsquo;ve performed here.</p>
<p class='text-muted'>Study from the University of Illinois at Urbana&ndash;Champaign. Articles &copy; The New York Times Company <img width='17px' src='{{ url_for("static", filename="img/NYT.svg") }}' />. All rights reserved.</p>
</div>
<div class='row' id='bot_bar'>
......
......@@ -17,7 +17,7 @@
<p>Worried about unemployment and political <b>unrest</b>, the government pushed back when Avtovaz, the maker of Lada cars, <b>moved quickly to cut</b> workers as the economy slowed.</p>
<p>In 1994, a pilot <b>let</b> his <b>16-year-old son</b> fly an Airbus that <b>promptly</b> crashed, killing <b>all</b> 75 aboard.</p>
</blockquote>
<p>The following non-controversial sentence just states numbers:</p>
<p>The following non-controversial sentence just states numbers (which is certainly not to say that &lsquo;just&rsquo; stating numbers/facts is &lsquo;non-ideological&rsquo;):</p>
<blockquote class='bad'>
<p><strike>During a demonstration flight in 2012, the plane crashed into a mountain in Indonesia with 37 aviation executives and journalists and eight crew members aboard.</strike></p>
</blockquote>
......
......@@ -39,7 +39,7 @@
</ul>
<article ng-bind-html='highlight(article.full, article.sentences)'></article>
<p>
&copy; 2017&ndash;8, {% endraw %} <img width='100px' src='{{ url_for("static", filename="img/NYT.svg") }}' /> {% raw %}
&copy; {{ article['published'] | date: 'yyyy' }}, {% endraw %} <img width='100px' src='{{ url_for("static", filename="img/NYT.svg") }}' /> {% raw %}
&mdash; <a target='_blank' href='{{ article.url }}'>article</a>.
</p>
</main>
......
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