Mercurial > hg > digilib-old
annotate client/digitallibrary/jquery/jquery-test-embedded.html @ 709:fca26721e8dd jquery
fixed some reset and cookie issues
| author | hertzhaft |
|---|---|
| date | Sat, 29 Jan 2011 23:27:39 +0100 |
| parents | e05c60578bff |
| children | c1b1c463bc44 |
| 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 } | |
| 709 | 76 |
| 77 div#test:hover { | |
| 78 background-color: cornsilk; | |
| 79 } | |
|
695
5c39f5dd6296
cookie control for birdview, works for fullscreen
hertzhaft
parents:
694
diff
changeset
|
80 |
| 666 | 81 </style> |
| 82 | |
| 83 <script type="text/javascript" src="jquery-1.4.4.js"></script> | |
| 84 <script type="text/javascript" src="dlGeometry.js"></script> | |
| 694 | 85 <script type="text/javascript" src="jquery.cookie.js"></script> |
| 666 | 86 <script type="text/javascript" src="jquery.digilib.js"></script> |
| 87 | |
| 88 | |
| 89 <script type="text/javascript"> | |
| 90 $(document).ready(function(){ | |
| 674 | 91 $('div.digilib').digilib({ |
| 92 interactionMode : 'embedded', | |
| 93 birdDivWidth : 100, | |
| 94 birdDivHeight : 100 | |
| 95 }); | |
| 666 | 96 |
| 97 $('div.digilib').each(function(){ | |
| 98 console.log($(this).data('digilib').settings); | |
| 99 }); | |
| 100 | |
| 101 }); | |
| 102 | |
| 103 </script> | |
| 104 </head> | |
| 105 | |
| 106 <body> | |
| 686 | 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> | |
| 692 | 114 |
| 686 | 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> | |
| 692 | 120 |
| 686 | 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> | |
| 692 | 126 |
| 686 | 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> | |
| 709 | 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> | |
| 666 | 139 </body> |
| 140 </html> | |
| 141 |
