javascript/theme3.js
changeset 1 1ae1a79094fa
equal deleted inserted replaced
0:868dae1581ff 1:1ae1a79094fa
       
     1 $(document).ready(function(){
       
     2 
       
     3     // append content div
       
     4     $("body").prepend("<div id=\"content\">test</div>");
       
     5     $("#content").hide();
       
     6 
       
     7     // FIXME  - document.width + document.height
       
     8     $(".outline").click(function(){
       
     9         $("#content").html( $(this).html() );
       
    10         $("body").background("#7b7c8c");
       
    11         $("#content").show();
       
    12     });
       
    13 
       
    14     $("#content").click(function(){
       
    15         $(this).hide();
       
    16         $("body").background("#acadc3");
       
    17     });
       
    18 
       
    19     // re-activate links (the event is stomped on by the li event)
       
    20     $(".outline a").click(function(){ window.location.href = this; return false; });
       
    21 
       
    22 });