Desenvolvimento do jQuery lightBox plugin ao vivo

Desenvolvimento do jQuery lightBox plugin ao vivo é o nome da palestra que irei ministrar logo mais no iMasters interCon 2008.

Na apresentação contarei a história do jQuery lightBox plugin além de apresentar conceitos, técnicas e melhores práticas de desenvolvimento.

Vai estar no iMaster interCon 2008? Comente aí. Se não puder ir confira a transmissão ao vivo das palestras.

4 ideias sobre “Desenvolvimento do jQuery lightBox plugin ao vivo

  1. Hi Leandro,

    I am currently using your plugin on a django website (the website is martasmaldone.com but has not a webdesign interface still, simply a placeholder).

    I installed it without problems (except some trouble with the MEDIA_URL path in django… but I am a newbie) and is providing images from the django-photologue.

    So… great work, even a newbie can use it in a website… Thanks.

    I have also a question. Would it be possible to have the photo selection visible when browsing the photos?

    Something such as (randomly picked) http://sandbox.leigeber.com/slideshow/

    with the possibiliti to choose the foto.

    Anyway, thanks again

    Andrea

  2. function ___getPageSize() {
    var xScroll, yScroll;
    if (window.innerHeight && window.scrollMaxY) {
    xScroll = window.innerWidth + window.scrollMaxX;
    yScroll = window.innerHeight + window.scrollMaxY;
    } else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
    xScroll = document.body.scrollWidth;
    yScroll = document.body.scrollHeight;
    } else { // Explorer Mac…would also work in Explorer 6 Strict, Mozilla and Safari
    xScroll = document.body.offsetWidth;
    yScroll = document.body.offsetHeight;
    }
    var windowWidth, windowHeight;
    if (self.innerHeight) { // all except Explorer
    if(document.documentElement.clientWidth){
    windowWidth = document.documentElement.clientWidth;
    } else {
    windowWidth = self.innerWidth;
    }
    windowHeight = self.innerHeight;
    } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
    windowWidth = document.documentElement.clientWidth;
    windowHeight = document.documentElement.clientHeight;
    } else if (document.body) { // other Explorers
    windowWidth = document.body.clientWidth;
    windowHeight = document.body.clientHeight;
    }
    // for small pages with total height less then height of the viewport
    if(yScroll < windowHeight){
    pageHeight = windowHeight;
    } else {
    pageHeight = yScroll;
    }
    // for small pages with total width less then width of the viewport
    if(jQuery.browser.safari){
    pageWidth = $(document).width();
    } else {
    pageWidth = xScroll;
    }
    arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight);
    return arrayPageSize;
    };

  3. Hi, your jQuery lightbox plugin will cause other scripts to break when minified together with other plugins.

    Removing the comment, “Call and execute the function immediately passing the jQuery object” on line 472 solves this problem.

    Please remove the last comment on your next release. Thanks. :o )

  4. First, thanks for your excellent work! This is an elegant, easy-to-use extension.

    Is lightbox available under a license that permits modification? The bottom of the page says, “This work is licensed under a Creative Commons Attribution-Share Alike 2.5 Brazil License.” but the CC logo image and source code refer to the no-derivatives license.

    I’d really like to use this jQuery extension, but I’d need to tweak it a bit for my particular case. Thanks again!