# HG changeset patch # User hertzhaft # Date 1382173675 -7200 # Node ID 423b826afd5f4196c471ccc7b73cc65efc50c2cf # Parent d9d004f706ef8748f6cad0f05db821340ba9e884 maven choked on
tag in the text diff -r d9d004f706ef -r 423b826afd5f doc/src/site/markdown/client-integration.md --- a/doc/src/site/markdown/client-integration.md Fri Oct 18 17:43:32 2013 +0200 +++ b/doc/src/site/markdown/client-integration.md Sat Oct 19 11:07:55 2013 +0200 @@ -10,9 +10,11 @@ Insert an image reference into your html code, referencing the "Scaler" servlet path in your digilib environment (servlet/Scaler, relative to your context). The image filename and path are specified in the `fn` parameter of the querystring. +```html +``` Don't forget to specify at least one of the `dw` and `dh` parameters! They inform the servlet about the desired size (in pixel) of the scaled image. Otherwise you'll get an error image. @@ -24,19 +26,24 @@ To embed one or more scaled images with controls into your site, add one `div` element for each image to your HTML code. Set the image to load and its size in the scaler parameters `fn / pn` and `dw / dh`. These will be picked up by Digilib. +```html
+``` Apart from jQuery and jquery.digilib.js (the digilib plugin for jQuery) the digilib plugins `geometry` and `buttons` are needed. They must be loaded _after_ digilib. See [plugins](plugins.html) for the plugin documentation. +```html +``` Add a jQuery `ready` event handler for the Javascript `document` object. In the handler the initialization function `digilib()` should be called. Set the `ìnteractionMode` option to "embedded" and the `digilibBaseUrl` option to the digilib context path. +```html +``` -For the standard controls (contained in the buttons plugin) to be displayed next to the image, the
should have a `position: relative` CSS property and a fixed width. +For the standard controls (contained in the buttons plugin) to be displayed next to the image, the `
` should have a `position: relative` CSS property and a fixed width. +```css div.mydiv { position: relative; width: 250px; } +``` An example file called _embedded.html_ is provided in your digilib context root directory.