Mercurial > hg > digilib
annotate client/digitallibrary/jquery/jquery-test-embedded.html @ 702:89ff5133d1c1 jquery
fixed some reset and cookie issues
author | hertzhaft |
---|---|
date | Sat, 29 Jan 2011 23:27:39 +0100 |
parents | 317f7033e6ed |
children | fc54b455f7f8 |
rev | line source |
---|---|
659 | 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> | |
663
fda2d9bd9ba7
birdview: nice animation for embedded mode, none for fullscreen
hertzhaft
parents:
659
diff
changeset
|
4 <title>Digilib jQuery Test: embedded</title> |
659 | 5 |
6 <style type="text/css"> | |
7 body { | |
8 background: silver; | |
9 } | |
10 | |
11 div.digilib { | |
12 padding: 10px; | |
667 | 13 width: 220px; |
659 | 14 } |
15 | |
667 | 16 div.buttons { |
17 position: absolute; | |
18 margin-left: 184px; | |
19 top: 0px; | |
20 padding: 2px; | |
689 | 21 background-color: grey; |
22 opacity: 0.4; | |
659 | 23 } |
681 | 24 |
659 | 25 div.button { |
26 } | |
27 | |
28 div.button:hover { | |
29 background-color: darkred; | |
30 } | |
31 | |
667 | 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 } | |
679 | 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 } | |
667 | 68 |
679 | 69 div._debug { |
70 color: darkgreen; | |
71 } | |
688
7ef3bc87ab19
cookie control for birdview, works for fullscreen
hertzhaft
parents:
687
diff
changeset
|
72 |
679 | 73 div._error { |
74 color: red; | |
75 } | |
702 | 76 |
77 div#test:hover { | |
78 background-color: cornsilk; | |
79 } | |
688
7ef3bc87ab19
cookie control for birdview, works for fullscreen
hertzhaft
parents:
687
diff
changeset
|
80 |
659 | 81 </style> |
82 | |
83 <script type="text/javascript" src="jquery-1.4.4.js"></script> | |
84 <script type="text/javascript" src="dlGeometry.js"></script> | |
687 | 85 <script type="text/javascript" src="jquery.cookie.js"></script> |
659 | 86 <script type="text/javascript" src="jquery.digilib.js"></script> |
87 | |
88 | |
89 <script type="text/javascript"> | |
90 $(document).ready(function(){ | |
667 | 91 $('div.digilib').digilib({ |
92 interactionMode : 'embedded', | |
93 birdDivWidth : 100, | |
94 birdDivHeight : 100 | |
95 }); | |
659 | 96 |
97 $('div.digilib').each(function(){ | |
98 console.log($(this).data('digilib').settings); | |
99 }); | |
100 | |
101 }); | |
102 | |
103 </script> | |
104 </head> | |
105 | |
106 <body> | |
679 | 107 <table> |
108 <tr> | |
109 <td> | |
110 <div id="digilib-1" class="digilib single"> | |
111 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/&pn=1" /> | |
112 </div> | |
113 </td> | |
685 | 114 |
679 | 115 <td> |
116 <div id="digilib-2" class="digilib"> | |
117 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/ferrara" /> | |
118 </div> | |
119 </td> | |
685 | 120 |
679 | 121 <td> |
122 <div id="digilib-3" class="digilib"> | |
123 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/weide" /> | |
124 </div> | |
125 </td> | |
685 | 126 |
679 | 127 <td> |
128 <div id="digilib-4" class="digilib"> | |
129 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/HansHolbein-NikolausKratzer" /> | |
130 </div> | |
131 </td> | |
132 </tr> | |
133 </table> | |
134 <div id="debug">DEBUG</div> | |
702 | 135 <div id="test"> |
136 <img id="test" src="img/black-glass-16.png"></img> | |
137 <img id="test2" src="img/black-glass-32.png"></img> | |
138 </div> | |
659 | 139 </body> |
140 </html> | |
141 |