Mercurial > hg > digilib-old
annotate client/digitallibrary/jquery/jquery-test-full.html @ 655:72acc47f1831 jquery
first try at birdview indicator
author | hertzhaft |
---|---|
date | Fri, 21 Jan 2011 00:33:33 +0100 |
parents | 8f40f7b6fd20 |
children | 436e10669df8 |
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> | |
5 <title>Digilib jQuery Test HTML</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 | |
615 | 29 div.birdview { |
30 border: 1px solid white; | |
31 position: fixed; | |
32 bottom: 8px; | |
33 right: 48px; | |
617
cd846b5c8be8
toggle view event handlers for bird's eye and 'about windows
hertzhaft
parents:
616
diff
changeset
|
34 display: none; |
615 | 35 z-index: 1; |
36 } | |
37 | |
616 | 38 div.about { |
39 position: absolute; | |
40 width: 200px; | |
41 top: 100px; | |
42 left: 350px; | |
43 height: 200px; | |
44 padding: 0px 2px; | |
45 font-family: Verdana, Arial, Helvetica, sans-serif; | |
46 border: 2px solid lightcyan; | |
47 background-color: lightgrey; | |
48 text-align: center; | |
617
cd846b5c8be8
toggle view event handlers for bird's eye and 'about windows
hertzhaft
parents:
616
diff
changeset
|
49 display: none; |
616 | 50 z-index: 1000; |
51 } | |
52 | |
655 | 53 div.birdzoom { |
54 border: 2px solid yellow; | |
55 } | |
56 | |
607 | 57 </style> |
614 | 58 |
607 | 59 <script type="text/javascript" src="jquery-1.4.4.js"></script> |
609 | 60 <script type="text/javascript" src="dlGeometry.js"></script> |
607 | 61 <script type="text/javascript" src="jquery.digilib.js"></script> |
614 | 62 |
607 | 63 |
64 <script type="text/javascript"> | |
65 $(document).ready(function(){ | |
614 | 66 var opts = {interactionMode : 'fullscreen', |
67 scalerBaseUrl : 'http://digilib.biblhertz.it/digilib04/servlet/Scaler'}; | |
609 | 68 $('div.digilib').digilib(opts); |
607 | 69 |
70 $('div.digilib').each(function(){ | |
71 console.log($(this).data('digilib').settings); | |
72 }); | |
641 | 73 $('div.digilib').digilib('showAboutDiv', 1); |
607 | 74 }); |
75 | |
76 </script> | |
77 </head> | |
78 | |
79 <body> | |
614 | 80 |
607 | 81 <div id="digilib-1" class="digilib single"> |
614 | 82 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/FransHals-WillemVanHeythuysen" /> |
607 | 83 </div> |
84 </body> | |
85 </html> | |
86 |