Changeset 235 in t29-www for shared


Ignore:
Timestamp:
Feb 11, 2011, 11:15:54 PM (9 years ago)
Author:
sven
Message:

Fancybox-Implementierung hinzugefügt.

Location:
shared/js
Files:
26 added
1 edited

Legend:

Unmodified
Added
Removed
  • shared/js/tools.js

    r233 r235  
    148148
    149149/**
     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 **/
     156t29.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/**
    150168 * technikum29.de | javscripts: auto-bildbreite
    151169 *
     
    248266$(t29.heading_links);
    249267$(t29.tr.preloader.onload);
     268$(t29.lightbox);
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License