Skip to content

Commit

Permalink
story count
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemcdonald committed Jun 6, 2014
1 parent bb5945d commit 8ac613c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion views/index.ejs
Expand Up @@ -20,6 +20,8 @@
}
$.getJSON('data.json', function(data) {
$(document).ready(function(){
$('#count').text('all ' + data.length + ' stories');
// setup autocomplete
["client", "where", "medium"].forEach(function(x) {
$('#'+x).autocomplete({
Expand Down Expand Up @@ -151,7 +153,7 @@

<div id="learn" class="section">
<h2>Learn from the experience of others.</h2>
<p class="subtext">Refresh for a new selection, or click "Show all" for more.</p>
<p class="subtext">Refresh for a new selection, or click "Show all" for <span id="count">more</span>.</p>
<ul id="reports">
<noscript><li>Please enable JavaScript to see the reports.</li></noscript>
</ul>
Expand Down

0 comments on commit 8ac613c

Please sign in to comment.