Mercurial > hg > digilib
annotate client/digitallibrary/jquery/jquery-test-full.html @ 705:e740c0b86508 jquery
'reset' should reset fitwidth/fitheight, too
author | hertzhaft |
---|---|
date | Sun, 30 Jan 2011 16:38:54 +0100 |
parents | d16dffcaeee1 |
children | fc54b455f7f8 |
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 } | |
607 | 14 |
605 | 15 div.buttons { |
16 position: fixed; | |
17 right: 5px; | |
18 top: 5px; | |
19 padding: 3px; | |
705 | 20 background-color: transparent; |
21 z-index: 20; | |
607 | 22 } |
605 | 23 |
607 | 24 img.button:hover { |
25 background-image: url('../greyskin/corona.png'); | |
26 } | |
27 | |
647 | 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; | |
705 | 46 z-index: 100; |
647 | 47 } |
661 | 48 |
608 | 49 div.birdview { |
50 border: 1px solid white; | |
51 position: fixed; | |
52 bottom: 8px; | |
53 right: 48px; | |
610
2f2cd8c44a1c
toggle view event handlers for bird's eye and 'about windows
hertzhaft
parents:
609
diff
changeset
|
54 display: none; |
608 | 55 z-index: 1; |
56 } | |
57 | |
609 | 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; | |
610
2f2cd8c44a1c
toggle view event handlers for bird's eye and 'about windows
hertzhaft
parents:
609
diff
changeset
|
69 display: none; |
609 | 70 z-index: 1000; |
71 } | |
701
2660b733a1e7
img reload works for fullscreen, but somehow not precise
hertzhaft
parents:
687
diff
changeset
|
72 |
2660b733a1e7
img reload works for fullscreen, but somehow not precise
hertzhaft
parents:
687
diff
changeset
|
73 div.bgDrag { |
2660b733a1e7
img reload works for fullscreen, but somehow not precise
hertzhaft
parents:
687
diff
changeset
|
74 background-color: grey; |
705 | 75 z-index: 0; |
701
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 |