Permalink
Browse files

style

  • Loading branch information...
1 parent d3bc51d commit cbe3dafe4672b933ada31f8e5aab68508a8bae00 @edsu committed Sep 13, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/hathitime.js
View
6 js/hathitime.js
@@ -1,7 +1,7 @@
function init() {
$('input[type="submit"]').click(search);
if (location.hash) {
- var q = location.hash.slice(1);
+ var q = location.hash.slice(1);
$('input[name="q"]').val(q);
search();
}
@@ -20,9 +20,9 @@ function drawGraph(response) {
var counts = [];
var percents = [];
var result = response.facet_counts.facet_fields.publishDate;
- for (var i=0; i < result.length; i=i+2) {
+ for (var i = 0; i < result.length; i = i + 2) {
var year = result[i];
- var count = result[i+1];
+ var count = result[i + 1];
if (year > 2012 || year <= 1600) continue;
var percent = parseInt(count / allCounts[year] * 100);
counts.push([parseInt(year), parseInt(count)]);

0 comments on commit cbe3daf

Please sign in to comment.