]> git.parisson.com Git - pdf.js.git/commitdiff
Addressing comments by Vivien
authorArtur Adib <arturadib@gmail.com>
Thu, 15 Sep 2011 18:14:55 +0000 (11:14 -0700)
committerArtur Adib <arturadib@gmail.com>
Fri, 16 Sep 2011 15:28:42 +0000 (08:28 -0700)
examples/helloworld/README.md
examples/helloworld/hello.js

index 70d5e760b8773b348f635049cb4eead13f5c339b..8395733f3d989b90ee617381c119f47beff400b1 100644 (file)
@@ -1,11 +1,14 @@
 ## "Hello World" overview
 
-This example is a minimalistic application of the pdf.js project. The file `helloworld.pdf` is from the GNUpdf project (see [Introduction to PDF at GNUpdf](http://gnupdf.org/Introduction_to_PDF), and contains a simple and human-readable PDF.
+This example is a minimalistic application of the pdf.js project. The file 
+`helloworld.pdf` is from the GNUpdf project (see [Introduction to PDF at GNUpdf](http://gnupdf.org/Introduction_to_PDF), and contains a simple and 
+human-readable PDF.
 
 
 ## Getting started
 
-Point your browser to `index.html`. Voila. Take a peek at `hello.js` to see how to make basic calls to `pdf.js`.
+Point your browser to `index.html`. Voila. Take a peek at `hello.js` to see 
+how to make basic calls to `pdf.js`.
 
 
 ## Additional resources
index 0bf46311a4dd2f0b4567ab3d0a6a639cba177446..21799c33a6641db53d359580669a9088b1097e13 100644 (file)
@@ -4,10 +4,10 @@
 
 
 //
-// Ajax GET request for binary files
+// Ajax GET request, for binary files
 // (like jQuery's $.get(), but supports the binary type ArrayBuffer)
 //
-var binaryGet = function(url, callback){
+var ajaxGet = function(url, callback){
   var xhr = new XMLHttpRequest();
   xhr.open('GET', url);
   xhr.mozResponseType = xhr.responseType = 'arraybuffer';
@@ -26,7 +26,7 @@ var binaryGet = function(url, callback){
 //
 // This is where the fun happens
 //
-binaryGet('helloworld.pdf', function(data){
+ajaxGet('helloworld.pdf', function(data){
   //
   // Instantiate PDFDoc with PDF data
   //