diff --git a/README.md b/README.md index 1b520318..1f65e1a6 100644 --- a/README.md +++ b/README.md @@ -32,22 +32,28 @@ Diva.js is an image viewer compatible with IIIF Presentation API versions [2](ht ### From a CDN (hosted) -If you prefer to use a hosted version of Diva, copy and paste the following into the `` of any webpage to include all the files necessary to use Diva.js. +If you prefer to use a hosted version of Diva, copy and paste the following into the `` of any webpage to +include all the files necessary to use Diva.js. ```html - - + + ``` ### Locally (release package) -Download the [latest release](https://github.com/DDMAL/diva.js/releases) of Diva. In the `diva.js` directory you can find a pre-compiled version. The `build` directory contains the files necessary to use Diva. Simply include `build/diva.css` and `build/diva.js` in the `` of your webpage, as shown in the HTML source of the example [index page](https://github.com/DDMAL/diva.js/blob/develop/index.html). +Download the [latest release](https://github.com/DDMAL/diva.js/releases) of Diva. In the `diva.js` directory you can +find a pre-compiled version. The `build` directory contains the files necessary +to use Diva. Simply include `build/diva.css` and `build/diva.js` in the `` +of your webpage, as shown in the HTML source of the example [index page](https://github.com/DDMAL/diva.js/blob/develop/index.html). ### From npm -You can also run `npm install diva.js` in order to install Diva as a node package. Then, Diva will be located under `node_modules/diva.js/`, and you can access the `build` directory the same as above. +You can also run `npm install diva.js` in order to install Diva as a node package. Then, Diva will be located +under `node_modules/diva.js/`, and you can access the `build` directory the same as above. ## Basic setup ### HTML -After including the necessary files, the most basic Diva viewer is instantiated with one (IIIF) required parameter and several optional settings parameters. Diva must target a parent div, in this case diva-wrapper: +After including the necessary files, the most basic Diva viewer is instantiated with one (IIIF) required parameter +and several optional settings parameters. Diva must target a parent div, in this case diva-wrapper: ```html