javascript/theme3.js
author Mahlon E. Smith <mahlon@martini.nu>
Fri, 24 Jul 2009 07:49:06 -0700
changeset 1 1ae1a79094fa
permissions -rw-r--r--
ModPerl2 update. This code was actually released (before it was in a repo) in February of 2005.

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

});