Mercurial > hg > digilib-old
annotate client/digitallibrary/jquery/jquery-test-full.html @ 882:07926f0b9a1a jquery
make digilib.html use new jquery. sync jquery-1.5.1.js and jquery.js.
author | robcast |
---|---|
date | Tue, 22 Mar 2011 12:31:41 +0100 |
parents | 82e82774e0d7 |
children |
rev | line source |
---|---|
607 | 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> | |
670
11d96bc0ac09
birdview: nice animation for embedded mode, none for fullscreen
hertzhaft
parents:
668
diff
changeset
|
5 <title>Digilib jQuery Test: fullscreen</title> |
614 | 6 |
607 | 7 <style type="text/css"> |
8 body { | |
775 | 9 background: grey; |
607 | 10 } |
614 | 11 |
762 | 12 div.digilib { |
13 /* padding for buttons and bird-div */ | |
14 padding-right: 18px; | |
15 padding-bottom: 100px; | |
16 /* width: 220px; */ | |
17 } | |
18 | |
19 div.svg { | |
20 position: absolute; | |
21 background: transparent; | |
22 } | |
23 | |
24 td { | |
25 vertical-align: top; | |
26 } | |
27 | |
28 div#test:hover { | |
29 background-color: cornsilk; | |
30 } | |
31 | |
755 | 32 #debug { |
33 background-color: beige; | |
34 position: absolute; | |
35 opacity: 50%; | |
36 top: 4px; | |
37 left: 300px; | |
38 width: 500px; | |
39 padding: 0px 5px; | |
40 font-family: Arial; | |
41 font-size: 9px; | |
770 | 42 display: none; |
755 | 43 } |
44 | |
762 | 45 div._log { |
46 color: grey; | |
47 } | |
48 | |
49 div._debug { | |
50 color: darkgreen; | |
51 } | |
52 | |
53 div._error { | |
54 color: red; | |
55 } | |
607 | 56 </style> |
614 | 57 |
881
82e82774e0d7
testing with jQuery 1.5.1, porting my offset bugfix
hertzhaft
parents:
862
diff
changeset
|
58 <script type="text/javascript" src="jquery-1.5.1.js"></script> |
694 | 59 <script type="text/javascript" src="jquery.cookie.js"></script> |
607 | 60 <script type="text/javascript" src="jquery.digilib.js"></script> |
785 | 61 <script type="text/javascript" src="jquery.digilib.geometry.js"></script> |
795 | 62 <script type="text/javascript" src="jquery.digilib.birdseye.js"></script> |
792 | 63 <script type="text/javascript" src="jquery.digilib.regions.js"></script> |
808
ae8e98c479d5
stub for new plugins; overlay div for regions plugin
hertzhaft
parents:
795
diff
changeset
|
64 <script type="text/javascript" src="jquery.digilib.pluginstub.js"></script> |
729 | 65 <link rel="stylesheet" type="text/css" href="jquery.digilib.css" /> |
614 | 66 |
607 | 67 |
68 <script type="text/javascript"> | |
69 $(document).ready(function(){ | |
657 | 70 var opts = { |
71 interactionMode : 'fullscreen', | |
813 | 72 scalerBaseUrl : 'http://digilib.biblhertz.it/digilib04/servlet/Scaler', |
832
e4133946a9ad
display regions as HTML for use in digilib element
hertzhaft
parents:
823
diff
changeset
|
73 showRegionNumbers : true, |
850
47a6b93bde43
always show html-defined regions. wrong pos still not fixed
hertzhaft
parents:
835
diff
changeset
|
74 autoRegionLinks : false |
657 | 75 }; |
760
f0be4432f515
primitive plugin extension mechanism - unsure how useful this is
hertzhaft
parents:
755
diff
changeset
|
76 var $div = $('div.digilib'); |
f0be4432f515
primitive plugin extension mechanism - unsure how useful this is
hertzhaft
parents:
755
diff
changeset
|
77 $div.digilib(opts); |
607 | 78 }); |
79 | |
80 </script> | |
81 </head> | |
82 | |
83 <body> | |
614 | 84 |
729 | 85 <div id="digilib-1" class="digilib"> |
614 | 86 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/FransHals-WillemVanHeythuysen" /> |
607 | 87 </div> |
755 | 88 <div id="debug">DEBUG</div> |
862 | 89 <!-- |
855 | 90 <div class="keep regioncontent"> |
91 <a href="http://www.mpiwg-berlin.mpg.de" coords="0.1,0.1,0.4,0.1">MPI fuer Wissenschaftsgeschichte</a> | |
92 <a href="http://www.biblhertz.it" coords="0.5,0.8,0.4,0.1">Bibliotheca Hertziana</a> | |
93 <a coords="0.3,0.5,0.15,0.1" /> | |
94 </div> | |
862 | 95 --> |
607 | 96 </body> |
97 </html> | |
98 |