Mercurial > hg > digilib-old
annotate client/digitallibrary/jquery/jquery-test-embedded.html @ 696:e05c60578bff jquery
add toggle for last buttonset
author | hertzhaft |
---|---|
date | Thu, 27 Jan 2011 15:37:39 +0100 |
parents | 5c39f5dd6296 |
children | fca26721e8dd |
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; | |
696 | 21 background-color: grey; |
22 opacity: 0.4; | |
666 | 23 } |
688 | 24 |
666 | 25 div.button { |
26 } | |
27 | |
28 div.button:hover { | |
29 background-color: darkred; | |
30 } | |
31 | |
674 | 32 div.birdview { |
33 border: 1px solid white; | |
34 z-index: 1; | |
35 } | |
36 | |
37 div.about { | |
38 position: absolute; | |
39 width: 200px; | |
40 top: 100px; | |
41 left: 350px; | |
42 height: 200px; | |
43 padding: 0px 2px; | |
44 font-family: Verdana, Arial, Helvetica, sans-serif; | |
45 border: 2px solid lightcyan; | |
46 background-color: lightgrey; | |
47 text-align: center; | |
48 display: none; | |
49 z-index: 1000; | |
50 } | |
686 | 51 |
52 td { | |
53 vertical-align: top; | |
54 } | |
55 | |
56 #debug { | |
57 background-color: beige; | |
58 position: absolute; | |
59 top: 400px; | |
60 padding: 0px 10px; | |
61 font-family: Arial; | |
62 font-size: 9pt; | |
63 } | |
64 | |
65 div._log { | |
66 color: grey; | |
67 } | |
674 | 68 |
686 | 69 div._debug { |
70 color: darkgreen; | |
71 } | |
695
5c39f5dd6296
cookie control for birdview, works for fullscreen
hertzhaft
parents:
694
diff
changeset
|
72 |
686 | 73 div._error { |
74 color: red; | |
75 } | |
695
5c39f5dd6296
cookie control for birdview, works for fullscreen
hertzhaft
parents:
694
diff
changeset
|
76 |
666 | 77 </style> |
78 | |
79 <script type="text/javascript" src="jquery-1.4.4.js"></script> | |
80 <script type="text/javascript" src="dlGeometry.js"></script> | |
694 | 81 <script type="text/javascript" src="jquery.cookie.js"></script> |
666 | 82 <script type="text/javascript" src="jquery.digilib.js"></script> |
83 | |
84 | |
85 <script type="text/javascript"> | |
86 $(document).ready(function(){ | |
674 | 87 $('div.digilib').digilib({ |
88 interactionMode : 'embedded', | |
89 birdDivWidth : 100, | |
90 birdDivHeight : 100 | |
91 }); | |
666 | 92 |
93 $('div.digilib').each(function(){ | |
94 console.log($(this).data('digilib').settings); | |
95 }); | |
96 | |
97 }); | |
98 | |
99 </script> | |
100 </head> | |
101 | |
102 <body> | |
686 | 103 <table> |
104 <tr> | |
105 <td> | |
106 <div id="digilib-1" class="digilib single"> | |
107 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/&pn=1" /> | |
108 </div> | |
109 </td> | |
692 | 110 |
686 | 111 <td> |
112 <div id="digilib-2" class="digilib"> | |
113 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/ferrara" /> | |
114 </div> | |
115 </td> | |
692 | 116 |
686 | 117 <td> |
118 <div id="digilib-3" class="digilib"> | |
119 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/weide" /> | |
120 </div> | |
121 </td> | |
692 | 122 |
686 | 123 <td> |
124 <div id="digilib-4" class="digilib"> | |
125 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/HansHolbein-NikolausKratzer" /> | |
126 </div> | |
127 </td> | |
128 </tr> | |
129 </table> | |
130 <div id="debug">DEBUG</div> | |
666 | 131 </body> |
132 </html> | |
133 |