Mercurial > hg > digilib-old
annotate client/digitallibrary/jquery/jquery-test-embedded.html @ 896:76b01d51add4 jquery
oops - test with jquery-1.5.1
author | hertzhaft |
---|---|
date | Wed, 20 Apr 2011 09:08:04 +0200 |
parents | 01b875d668b1 |
children |
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 { | |
725 | 12 /* padding for buttons and bird-div */ |
13 padding-right: 18px; | |
14 padding-bottom: 100px; | |
15 /* width: 220px; */ | |
666 | 16 } |
17 | |
762 | 18 div.svg { |
19 position: absolute; | |
20 background: transparent; | |
21 } | |
22 | |
686 | 23 td { |
24 vertical-align: top; | |
25 } | |
715 | 26 |
686 | 27 #debug { |
28 background-color: beige; | |
29 position: absolute; | |
30 top: 400px; | |
31 padding: 0px 10px; | |
32 font-family: Arial; | |
33 font-size: 9pt; | |
34 } | |
715 | 35 |
686 | 36 div._log { |
37 color: grey; | |
38 } | |
674 | 39 |
686 | 40 div._debug { |
41 color: darkgreen; | |
42 } | |
695
5c39f5dd6296
cookie control for birdview, works for fullscreen
hertzhaft
parents:
694
diff
changeset
|
43 |
686 | 44 div._error { |
45 color: red; | |
46 } | |
715 | 47 |
709 | 48 div#test:hover { |
49 background-color: cornsilk; | |
50 } | |
695
5c39f5dd6296
cookie control for birdview, works for fullscreen
hertzhaft
parents:
694
diff
changeset
|
51 |
666 | 52 </style> |
53 | |
896 | 54 <script type="text/javascript" src="jquery-1.5.1.js"></script> |
694 | 55 <script type="text/javascript" src="jquery.cookie.js"></script> |
666 | 56 <script type="text/javascript" src="jquery.digilib.js"></script> |
785 | 57 <script type="text/javascript" src="jquery.digilib.geometry.js"></script> |
795 | 58 <script type="text/javascript" src="jquery.digilib.birdseye.js"></script> |
846 | 59 <script type="text/javascript" src="jquery.digilib.regions.js"></script> |
60 <script type="text/javascript" src="jquery.digilib.pluginstub.js"></script> | |
725 | 61 <link rel="stylesheet" type="text/css" href="jquery.digilib.css" /> |
666 | 62 |
63 | |
64 <script type="text/javascript"> | |
65 $(document).ready(function(){ | |
846 | 66 var opts = { |
847 | 67 interactionMode : 'embedded', |
846 | 68 scalerBaseUrl : 'http://digilib.biblhertz.it/digilib04/servlet/Scaler', |
852 | 69 showRegionNumbers : false, |
879 | 70 autoRegionLinks : true |
846 | 71 }; |
72 var $div = $('div.digilib'); | |
73 $div.digilib(opts); | |
74 | |
849 | 75 // $('div.digilib').each(function(){ |
76 // console.log($(this).data('digilib').settings); | |
77 // }); | |
666 | 78 }); |
79 | |
80 </script> | |
81 </head> | |
82 | |
83 <body> | |
686 | 84 <table> |
85 <tr> | |
86 <td> | |
87 <div id="digilib-1" class="digilib single"> | |
870
80cc227c1d50
keep title and alt attributes from HTML for scaler img
hertzhaft
parents:
852
diff
changeset
|
88 <img title="test" alt="testalt" src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/&pn=1" /> |
686 | 89 </div> |
90 </td> | |
692 | 91 |
686 | 92 <td> |
93 <div id="digilib-2" class="digilib"> | |
94 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/ferrara" /> | |
95 </div> | |
96 </td> | |
692 | 97 |
686 | 98 <td> |
99 <div id="digilib-3" class="digilib"> | |
846 | 100 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/FransHals-WillemVanHeythuysen" /> |
101 <div class="keep regioncontent"> | |
852 | 102 <a href="http://www.mpiwg-berlin.mpg.de" coords="0.1,0.1,0.4,0.1">MPI fuer Wissenschaftsgeschichte</a> |
103 <a href="http://www.biblhertz.it" coords="0.5,0.8,0.4,0.1">Bibliotheca Hertziana</a> | |
104 <a coords="0.3,0.5,0.15,0.1" /> | |
846 | 105 </div> |
686 | 106 </div> |
107 </td> | |
692 | 108 |
686 | 109 <td> |
110 <div id="digilib-4" class="digilib"> | |
111 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/HansHolbein-NikolausKratzer" /> | |
112 </div> | |
113 </td> | |
114 </tr> | |
115 </table> | |
116 <div id="debug">DEBUG</div> | |
709 | 117 <div id="test"> |
118 <img id="test" src="img/black-glass-16.png"></img> | |
119 <img id="test2" src="img/black-glass-32.png"></img> | |
120 </div> | |
666 | 121 </body> |
122 </html> | |
123 |