Mercurial > hg > digilib
annotate client/digitallibrary/jquery/jquery-test-full.html @ 606:d08d095430c3 jquery
keeping img tag for embedded mode seems to work now
| author | robcast |
|---|---|
| date | Sun, 16 Jan 2011 00:56:59 +0100 |
| parents | 959bf7c3d684 |
| children | dc6b2e7f3621 |
| rev | line source |
|---|---|
| 600 | 1 <?xml version="1.0" ?> |
| 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| 3 <html xmlns="http://www.w3.org/1999/xhtml"> | |
| 4 <head> | |
| 5 <title>Digilib jQuery Test HTML</title> | |
| 6 | |
| 7 <style type="text/css"> | |
| 8 body { | |
| 9 background: silver; | |
| 10 } | |
| 11 | |
| 12 div.digilib { | |
| 13 float: left; | |
| 14 padding: 10px; | |
| 15 } | |
| 16 | |
| 605 | 17 div.buttons { |
| 18 position: fixed; | |
| 19 right: 5px; | |
| 20 top: 5px; | |
| 21 padding: 3px; | |
| 22 background-color: silver; | |
| 23 } | |
| 24 | |
| 25 | |
| 26 | |
| 600 | 27 </style> |
| 28 | |
| 29 <script type="text/javascript" src="jquery-1.4.4.js"></script> | |
| 602 | 30 <script type="text/javascript" src="dlGeometry.js"></script> |
| 600 | 31 <script type="text/javascript" src="jquery.digilib.js"></script> |
| 32 | |
| 33 | |
| 34 <script type="text/javascript"> | |
| 35 $(document).ready(function(){ | |
| 602 | 36 var opts = {interactionMode : 'fullscreen', |
|
606
d08d095430c3
keeping img tag for embedded mode seems to work now
robcast
parents:
605
diff
changeset
|
37 scalerBaseUrl : 'http://localhost:18080/digitallibrary/servlet/Scaler'}; |
| 602 | 38 $('div.digilib').digilib(opts); |
| 600 | 39 |
| 40 $('div.digilib').each(function(){ | |
| 41 console.log($(this).data('digilib').settings); | |
| 42 }); | |
| 43 }); | |
| 44 | |
| 45 </script> | |
| 46 </head> | |
| 47 | |
| 48 <body> | |
| 49 | |
| 50 <div id="digilib-1" class="digilib single"> | |
| 51 <img src="http://digilinx:18080/digitallibrary/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/FransHals-WillemVanHeythuysen" /> | |
| 52 </div> | |
| 53 </body> | |
| 54 </html> | |
| 55 |
