Mercurial > hg > digilib-old
annotate client/digitallibrary/jquery/jquery-test-embedded.html @ 690:7c8d5bfc5243 jquery
more or less buttons buttons - with animation :-)
author | robcast |
---|---|
date | Wed, 26 Jan 2011 23:25:41 +0100 |
parents | 86c4174977f1 |
children | 0235a8e63818 |
rev | line source |
---|---|
666 | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 <html xmlns="http://www.w3.org/1999/xhtml"> | |
3 <head> | |
670
11d96bc0ac09
birdview: nice animation for embedded mode, none for fullscreen
hertzhaft
parents:
666
diff
changeset
|
4 <title>Digilib jQuery Test: embedded</title> |
666 | 5 |
6 <style type="text/css"> | |
7 body { | |
8 background: silver; | |
9 } | |
10 | |
11 div.digilib { | |
12 padding: 10px; | |
674 | 13 width: 220px; |
666 | 14 } |
15 | |
674 | 16 div.buttons { |
17 position: absolute; | |
18 margin-left: 184px; | |
19 top: 0px; | |
20 padding: 2px; | |
666 | 21 } |
674 | 22 |
666 | 23 div.button { |
24 } | |
25 | |
26 div.button:hover { | |
27 background-color: darkred; | |
28 } | |
29 | |
674 | 30 div.birdview { |
31 border: 1px solid white; | |
32 z-index: 1; | |
33 } | |
34 | |
35 div.about { | |
36 position: absolute; | |
37 width: 200px; | |
38 top: 100px; | |
39 left: 350px; | |
40 height: 200px; | |
41 padding: 0px 2px; | |
42 font-family: Verdana, Arial, Helvetica, sans-serif; | |
43 border: 2px solid lightcyan; | |
44 background-color: lightgrey; | |
45 text-align: center; | |
46 display: none; | |
47 z-index: 1000; | |
48 } | |
686 | 49 |
50 td { | |
51 vertical-align: top; | |
52 } | |
53 | |
54 #debug { | |
55 background-color: beige; | |
56 position: absolute; | |
57 top: 400px; | |
58 padding: 0px 10px; | |
59 font-family: Arial; | |
60 font-size: 9pt; | |
61 } | |
62 | |
63 div._log { | |
64 color: grey; | |
65 } | |
674 | 66 |
686 | 67 div._debug { |
68 color: darkgreen; | |
69 } | |
70 | |
71 div._error { | |
72 color: red; | |
73 } | |
74 | |
666 | 75 </style> |
76 | |
77 <script type="text/javascript" src="jquery-1.4.4.js"></script> | |
78 <script type="text/javascript" src="dlGeometry.js"></script> | |
79 <script type="text/javascript" src="jquery.digilib.js"></script> | |
80 | |
81 | |
82 <script type="text/javascript"> | |
83 $(document).ready(function(){ | |
674 | 84 $('div.digilib').digilib({ |
85 interactionMode : 'embedded', | |
86 birdDivWidth : 100, | |
87 birdDivHeight : 100 | |
88 }); | |
666 | 89 |
90 $('div.digilib').each(function(){ | |
91 console.log($(this).data('digilib').settings); | |
92 }); | |
93 | |
94 }); | |
95 | |
96 </script> | |
97 </head> | |
98 | |
99 <body> | |
686 | 100 <table> |
101 <tr> | |
102 <td> | |
103 <div id="digilib-1" class="digilib single"> | |
104 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/&pn=1" /> | |
105 </div> | |
106 </td> | |
107 | |
108 <td> | |
109 <div id="digilib-2" class="digilib"> | |
110 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/ferrara" /> | |
111 </div> | |
112 </td> | |
113 | |
114 <td> | |
115 <div id="digilib-3" class="digilib"> | |
116 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/weide" /> | |
117 </div> | |
118 </td> | |
119 | |
120 <td> | |
121 <div id="digilib-4" class="digilib"> | |
122 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/HansHolbein-NikolausKratzer" /> | |
123 </div> | |
124 </td> | |
125 </tr> | |
126 </table> | |
127 <div id="debug">DEBUG</div> | |
666 | 128 </body> |
129 </html> | |
130 |