- Timestamp:
- Feb 11, 2011, 11:15:54 PM (13 years ago)
- Location:
- shared/js
- Files:
-
- 26 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
shared/js/tools.js
r233 r235 148 148 149 149 /** 150 * technikum29.de | Lightbox-Implementierung 151 * 152 * Nutze Fancybox (http://www.fancybox.net) als Lightbox-Variante seit 153 * Februar 2011, an verschiedenen Stellen. 154 * 155 **/ 156 t29.lightbox = function() { 157 var elements = $("#content .popup"); 158 if(elements.length) { 159 // we have fancybox elements on this page. Load Javascript and CSS 160 $("<style type='text/css'/>").html('@import url("/shared/js/fancybox/jquery.fancybox-1.3.4.css")').appendTo("head"); 161 $.getScript('/shared/js/fancybox/jquery.fancybox-1.3.4.pack.js', function(){ 162 elements.fancybox(); 163 }); 164 } // if lightbox elements 165 } 166 167 /** 150 168 * technikum29.de | javscripts: auto-bildbreite 151 169 * … … 248 266 $(t29.heading_links); 249 267 $(t29.tr.preloader.onload); 268 $(t29.lightbox);
Note: See TracChangeset
for help on using the changeset viewer.