Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

style

  • Loading branch information...
commit cbe3dafe4672b933ada31f8e5aab68508a8bae00 1 parent d3bc51d
Ed Summers authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 js/hathitime.js
6 js/hathitime.js
... ... @@ -1,7 +1,7 @@
1 1 function init() {
2 2 $('input[type="submit"]').click(search);
3 3 if (location.hash) {
4   - var q = location.hash.slice(1);
  4 + var q = location.hash.slice(1);
5 5 $('input[name="q"]').val(q);
6 6 search();
7 7 }
@@ -20,9 +20,9 @@ function drawGraph(response) {
20 20 var counts = [];
21 21 var percents = [];
22 22 var result = response.facet_counts.facet_fields.publishDate;
23   - for (var i=0; i < result.length; i=i+2) {
  23 + for (var i = 0; i < result.length; i = i + 2) {
24 24 var year = result[i];
25   - var count = result[i+1];
  25 + var count = result[i + 1];
26 26 if (year > 2012 || year <= 1600) continue;
27 27 var percent = parseInt(count / allCounts[year] * 100);
28 28 counts.push([parseInt(year), parseInt(count)]);

0 comments on commit cbe3daf

Please sign in to comment.
Something went wrong with that request. Please try again.