Mercurial > hg > digilib-old
annotate client/digitallibrary/jquery/jquery-test-embedded.html @ 694:940c77d6e0e2 jquery
COOOOKIES
| author | hertzhaft |
|---|---|
| date | Thu, 27 Jan 2011 00:47:19 +0100 |
| parents | ab8054bba8d3 |
| children | 5c39f5dd6296 |
| 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 } |
| 688 | 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> | |
| 694 | 79 <script type="text/javascript" src="jquery.cookie.js"></script> |
| 666 | 80 <script type="text/javascript" src="jquery.digilib.js"></script> |
| 81 | |
| 82 | |
| 83 <script type="text/javascript"> | |
| 84 $(document).ready(function(){ | |
| 674 | 85 $('div.digilib').digilib({ |
| 86 interactionMode : 'embedded', | |
| 87 birdDivWidth : 100, | |
| 88 birdDivHeight : 100 | |
| 89 }); | |
| 666 | 90 |
| 91 $('div.digilib').each(function(){ | |
| 92 console.log($(this).data('digilib').settings); | |
| 93 }); | |
| 94 | |
| 95 }); | |
| 96 | |
| 97 </script> | |
| 98 </head> | |
| 99 | |
| 100 <body> | |
| 686 | 101 <table> |
| 102 <tr> | |
| 103 <td> | |
| 104 <div id="digilib-1" class="digilib single"> | |
| 105 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/&pn=1" /> | |
| 106 </div> | |
| 107 </td> | |
| 692 | 108 |
| 686 | 109 <td> |
| 110 <div id="digilib-2" class="digilib"> | |
| 111 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/ferrara" /> | |
| 112 </div> | |
| 113 </td> | |
| 692 | 114 |
| 686 | 115 <td> |
| 116 <div id="digilib-3" class="digilib"> | |
| 117 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/weide" /> | |
| 118 </div> | |
| 119 </td> | |
| 692 | 120 |
| 686 | 121 <td> |
| 122 <div id="digilib-4" class="digilib"> | |
| 123 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/HansHolbein-NikolausKratzer" /> | |
| 124 </div> | |
| 125 </td> | |
| 126 </tr> | |
| 127 </table> | |
| 128 <div id="debug">DEBUG</div> | |
| 666 | 129 </body> |
| 130 </html> | |
| 131 |
