author | Mahlon E. Smith <mahlon@martini.nu> |
Wed, 02 Dec 2009 17:00:38 -0800 | |
changeset 4 | 4fe151fd3b80 |
parent 1 | 1ae1a79094fa |
permissions | -rw-r--r-- |
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 |
}); |