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