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.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     1
$(document).ready(function(){
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     2
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     3
    // append content div
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     4
    $("body").prepend("<div id=\"content\">test</div>");
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     5
    $("#content").hide();
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     6
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     7
    // FIXME  - document.width + document.height
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     8
    $(".outline").click(function(){
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     9
        $("#content").html( $(this).html() );
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    10
        $("body").background("#7b7c8c");
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    11
        $("#content").show();
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    12
    });
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    13
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    14
    $("#content").click(function(){
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    15
        $(this).hide();
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    16
        $("body").background("#acadc3");
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    17
    });
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    18
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    19
    // re-activate links (the event is stomped on by the li event)
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    20
    $(".outline a").click(function(){ window.location.href = this; return false; });
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    21
1ae1a79094fa ModPerl2 update. This code was actually released (before it was in a
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    22
});