Mercurial > hg > digilib-old
annotate client/digitallibrary/jquery/jquery-test-full.html @ 712:823f0050f7eb jquery
'reset' should reset fitwidth/fitheight, too
author | hertzhaft |
---|---|
date | Sun, 30 Jan 2011 16:38:54 +0100 |
parents | d533bdf0e64e |
children | c1b1c463bc44 |
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 { | |
9 background: silver; | |
10 } | |
614 | 11 |
607 | 12 div.digilib { |
13 } | |
614 | 14 |
612 | 15 div.buttons { |
16 position: fixed; | |
17 right: 5px; | |
18 top: 5px; | |
19 padding: 3px; | |
712 | 20 background-color: transparent; |
21 z-index: 20; | |
614 | 22 } |
612 | 23 |
614 | 24 img.button:hover { |
25 background-image: url('../greyskin/corona.png'); | |
26 } | |
27 | |
654 | 28 div.digilib div.mark { |
29 position: absolute; | |
30 color: white; | |
31 background: url('../greyskin/mark-bg-16.png'); | |
32 font-family: Verdana, Arial, Helvetica, sans-serif; | |
33 font-weight: bold; | |
34 font-size:11px; | |
35 height: 15px; | |
36 width: 16px; | |
37 padding-top: 1px; | |
38 text-align: center; | |
39 z-index: 10; | |
40 } | |
41 | |
42 div.digilib div.zoomrect { | |
43 position: absolute; | |
44 /* border: 2px solid #ffa060; */ | |
45 border: 2px solid #ff0000; | |
712 | 46 z-index: 100; |
654 | 47 } |
668 | 48 |
615 | 49 div.birdview { |
50 border: 1px solid white; | |
51 position: fixed; | |
52 bottom: 8px; | |
53 right: 48px; | |
617
cd846b5c8be8
toggle view event handlers for bird's eye and 'about windows
hertzhaft
parents:
616
diff
changeset
|
54 display: none; |
615 | 55 z-index: 1; |
56 } | |
57 | |
616 | 58 div.about { |
59 position: absolute; | |
60 width: 200px; | |
61 top: 100px; | |
62 left: 350px; | |
63 height: 200px; | |
64 padding: 0px 2px; | |
65 font-family: Verdana, Arial, Helvetica, sans-serif; | |
66 border: 2px solid lightcyan; | |
67 background-color: lightgrey; | |
68 text-align: center; | |
617
cd846b5c8be8
toggle view event handlers for bird's eye and 'about windows
hertzhaft
parents:
616
diff
changeset
|
69 display: none; |
616 | 70 z-index: 1000; |
71 } | |
708
120ace160386
img reload works for fullscreen, but somehow not precise
hertzhaft
parents:
694
diff
changeset
|
72 |
120ace160386
img reload works for fullscreen, but somehow not precise
hertzhaft
parents:
694
diff
changeset
|
73 div.bgDrag { |
120ace160386
img reload works for fullscreen, but somehow not precise
hertzhaft
parents:
694
diff
changeset
|
74 background-color: grey; |
712 | 75 z-index: 0; |
708
120ace160386
img reload works for fullscreen, but somehow not precise
hertzhaft
parents:
694
diff
changeset
|
76 } |
616 | 77 |
607 | 78 </style> |
614 | 79 |
607 | 80 <script type="text/javascript" src="jquery-1.4.4.js"></script> |
609 | 81 <script type="text/javascript" src="dlGeometry.js"></script> |
694 | 82 <script type="text/javascript" src="jquery.cookie.js"></script> |
607 | 83 <script type="text/javascript" src="jquery.digilib.js"></script> |
614 | 84 |
607 | 85 |
86 <script type="text/javascript"> | |
87 $(document).ready(function(){ | |
657 | 88 var opts = { |
89 interactionMode : 'fullscreen', | |
693 | 90 scalerBaseUrl : 'http://digilib.biblhertz.it/digilib04/servlet/Scaler' |
657 | 91 }; |
609 | 92 $('div.digilib').digilib(opts); |
607 | 93 }); |
94 | |
95 </script> | |
96 </head> | |
97 | |
98 <body> | |
614 | 99 |
607 | 100 <div id="digilib-1" class="digilib single"> |
614 | 101 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/FransHals-WillemVanHeythuysen" /> |
607 | 102 </div> |
103 </body> | |
104 </html> | |
105 |