Browse Source

One more cosmetic tweak and fix 'make lint' complaints.

gigaherz 13 years ago
parent
commit
ecaf467a13
  1. 1
      web/viewer.css
  2. 14
      web/viewer.js

1
web/viewer.css

@ -400,7 +400,6 @@ canvas { @@ -400,7 +400,6 @@ canvas {
display: inline-block;
border: 1px solid black;
clear: both;
padding: 1px;
line-height: 0;
}

14
web/viewer.js

@ -36,10 +36,10 @@ var ProgressBar = (function ProgressBarClosure() { @@ -36,10 +36,10 @@ var ProgressBar = (function ProgressBarClosure() {
function sizeBar(bar, num, width, height, units) {
var progress = bar.querySelector('#progress');
var remaining = bar.querySelector('#remaining');
progress.style.height=height + units;
remaining.style.height=height + units;
progress.style.width=num + units;
remaining.style.width=(width - num) + units;
progress.style.height = height + units;
remaining.style.height = height + units;
progress.style.width = num + units;
remaining.style.width = (width - num) + units;
}
function ProgressBar(element, min, max, width, height, units) {
@ -304,8 +304,10 @@ var PDFView = { @@ -304,8 +304,10 @@ var PDFView = {
document.title = this.url = url;
// FIXME: Probably needs a better place to get initialized
if(!PDFView.loadingProgress) {
PDFView.loadingProgress = new ProgressBar(document.getElementById('loadingBar'), 0, 100, 15, 1.5, 'em');
if (!PDFView.loadingProgress) {
PDFView.loadingProgress = new ProgressBar(
document.getElementById('loadingBar'),
0, 100, 15, 1.5, 'em');
}
var self = this;

Loading…
Cancel
Save