diff --git a/examples/helloworld/README.md b/examples/helloworld/README.md index 70d5e760b..8395733f3 100644 --- a/examples/helloworld/README.md +++ b/examples/helloworld/README.md @@ -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 diff --git a/examples/helloworld/hello.js b/examples/helloworld/hello.js index 0bf46311a..21799c33a 100644 --- a/examples/helloworld/hello.js +++ b/examples/helloworld/hello.js @@ -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 //