javascript/theme3.js
author Mahlon E. Smith <mahlon@martini.nu>
Fri, 24 Jul 2009 07:49:52 -0700
changeset 2 fdcab4072085
parent 1 1ae1a79094fa
permissions -rw-r--r--
Added tag mod_perl_1 for changeset 868dae1581ff

$(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; });

});