javascript/theme3.js
author Mahlon E. Smith <mahlon@martini.nu>
Wed, 02 Dec 2009 17:00:38 -0800
changeset 4 4fe151fd3b80
parent 1 1ae1a79094fa
permissions -rw-r--r--
Update the sample to reflect 0.6's changes.

$(document).ready(function(){

    // append content div
    $("body").prepend("<div id=\"content\">test</div>");
    $("#content").hide();

    // FIXME  - document.width + document.height
    $(".outline").click(function(){
        $("#content").html( $(this).html() );
        $("body").background("#7b7c8c");
        $("#content").show();
    });

    $("#content").click(function(){
        $(this).hide();
        $("body").background("#acadc3");
    });

    // re-activate links (the event is stomped on by the li event)
    $(".outline a").click(function(){ window.location.href = this; return false; });

});