javascript/theme3.js
author Mahlon E. Smith <mahlon@martini.nu>
Wed, 02 Dec 2009 17:07:11 -0800
changeset 5 75ab86f72a38
parent 1 1ae1a79094fa
permissions -rw-r--r--
... aaaand, revert the header line to reflect real paths, instead of what is live on martini.nu.

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

});