Mercurial > hg > digilib-old
annotate client/digitallibrary/jquery/jquery-test-full.html @ 670:11d96bc0ac09 jquery
birdview: nice animation for embedded mode, none for fullscreen
author | hertzhaft |
---|---|
date | Mon, 24 Jan 2011 23:07:57 +0100 |
parents | ad4a2edcbdbc |
children | fe2bb8f926be |
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 float: left; | |
14 padding: 10px; | |
15 } | |
614 | 16 |
612 | 17 div.buttons { |
18 position: fixed; | |
19 right: 5px; | |
20 top: 5px; | |
21 padding: 3px; | |
614 | 22 background-color: silver; |
23 } | |
612 | 24 |
614 | 25 img.button:hover { |
26 background-image: url('../greyskin/corona.png'); | |
27 } | |
28 | |
654 | 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 } | |
668 | 49 |
615 | 50 div.birdview { |
51 border: 1px solid white; | |
52 position: fixed; | |
53 bottom: 8px; | |
54 right: 48px; | |
617
cd846b5c8be8
toggle view event handlers for bird's eye and 'about windows
hertzhaft
parents:
616
diff
changeset
|
55 display: none; |
615 | 56 z-index: 1; |
57 } | |
58 | |
616 | 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; | |
617
cd846b5c8be8
toggle view event handlers for bird's eye and 'about windows
hertzhaft
parents:
616
diff
changeset
|
70 display: none; |
616 | 71 z-index: 1000; |
72 } | |
73 | |
607 | 74 </style> |
614 | 75 |
607 | 76 <script type="text/javascript" src="jquery-1.4.4.js"></script> |
609 | 77 <script type="text/javascript" src="dlGeometry.js"></script> |
607 | 78 <script type="text/javascript" src="jquery.digilib.js"></script> |
614 | 79 |
607 | 80 |
81 <script type="text/javascript"> | |
82 $(document).ready(function(){ | |
657 | 83 var opts = { |
84 interactionMode : 'fullscreen', | |
85 scalerBaseUrl : 'http://digilib.biblhertz.it/digilib04/servlet/Scaler' | |
86 }; | |
609 | 87 $('div.digilib').digilib(opts); |
607 | 88 |
654 | 89 /* $('div.digilib').each(function(){ |
607 | 90 console.log($(this).data('digilib').settings); |
91 }); | |
641 | 92 $('div.digilib').digilib('showAboutDiv', 1); |
654 | 93 */ |
607 | 94 }); |
95 | |
96 </script> | |
97 </head> | |
98 | |
99 <body> | |
614 | 100 |
607 | 101 <div id="digilib-1" class="digilib single"> |
614 | 102 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/FransHals-WillemVanHeythuysen" /> |
607 | 103 </div> |
104 </body> | |
105 </html> | |
106 |