Remove stray tabs in source files. Should have no functionality change. See https...
authorMichael Ang <mang@archive.org>
Thu, 11 Feb 2010 03:41:04 +0000 (03:41 +0000)
committerMichael Ang <mang@archive.org>
Thu, 11 Feb 2010 03:41:04 +0000 (03:41 +0000)
BookReader/BookReader.css
BookReader/BookReader.js
BookReaderIA/datanode/BookReaderJSIA.php

index 84aaeeb..425006c 100644 (file)
@@ -144,9 +144,9 @@ a.BRicon {
     vertical-align: middle; 
 }
 
-a.BRwhite                      { color: #fff }
-a.BRwhite:hover                { text-decoration: none; }
-a.BRwhite:visited              { color: #fff }
+a.BRwhite               { color: #fff }
+a.BRwhite:hover         { text-decoration: none; }
+a.BRwhite:visited       { color: #fff }
 
 a.BRblack           { color: #000000 }
 a.BRblack:hover     { text-decoration: none; }
index ccbc528..2b6d701 100644 (file)
@@ -41,7 +41,7 @@ function BookReader() {
     this.mode    = 1; //1 or 2
     this.ui = 'full'; // UI mode
     
-    this.displayedIndices = [];        
+    this.displayedIndices = [];
     //this.indicesToDisplay = [];
     this.imgs = {};
     this.prefetchedImgs = {}; //an object with numeric keys cooresponding to page index
@@ -2121,13 +2121,13 @@ BookReader.prototype.search = function(term) {
     term = term.replace(/\//g, ' '); // strip slashes
     this.searchTerm = term;
     $('#BookReaderSearchScript').remove();
-       var script  = document.createElement("script");
-       script.setAttribute('id', 'BookReaderSearchScript');
-       script.setAttribute("type", "text/javascript");
-       script.setAttribute("src", 'http://'+this.server+'/BookReader/flipbook_search_br.php?url='+escape(this.bookPath + '_djvu.xml')+'&term='+term+'&format=XML&callback=br.BRSearchCallback');
-       document.getElementsByTagName('head')[0].appendChild(script);
-       $('#BookReaderSearchBox').val(term);
-       $('#BookReaderSearchResults').html('Searching...');
+    var script  = document.createElement("script");
+    script.setAttribute('id', 'BookReaderSearchScript');
+    script.setAttribute("type", "text/javascript");
+    script.setAttribute("src", 'http://'+this.server+'/BookReader/flipbook_search_br.php?url='+escape(this.bookPath + '_djvu.xml')+'&term='+term+'&format=XML&callback=br.BRSearchCallback');
+    document.getElementsByTagName('head')[0].appendChild(script);
+    $('#BookReaderSearchBox').val(term);
+    $('#BookReaderSearchResults').html('Searching...');
 }
 
 // BRSearchCallback()
@@ -2199,7 +2199,7 @@ BookReader.prototype.BRSearchCallback = function(txt) {
     $('#BookReaderSearchResults').append('</ul>');
 
     // $$$ update again for case of loading search URL in new browser window (search box may not have been ready yet)
-       $('#BookReaderSearchBox').val(this.searchTerm);
+    $('#BookReaderSearchBox').val(this.searchTerm);
 
     this.updateSearchHilites();
 }
index 9b5c88d..730249a 100755 (executable)
@@ -311,7 +311,7 @@ br.getEmbedCode = function() {
     return "<iframe src='" + this.getEmbedURL() + "' width='480px' height='430px'></iframe>";
 }
 
-br.pageW =             [
+br.pageW =  [
             <?
             $i=0;
             foreach ($scanData->pageData->page as $page) {
@@ -324,7 +324,7 @@ br.pageW =          [
             ?>
             ];
 
-br.pageH =             [
+br.pageH =  [
             <?
             $totalHeight = 0;
             $i=0;