One More For The Ghetto

You know what? This one’s simpler and better. Here’s a “Show/Hide” button.  It’ll work until they change the layout, but it’ll take ’em longer to do it than it will for me to rewrite it. Put that in your console and smoke it.

$("h2.title").append("<a href='#' onclick='$(this).parents(\".node\").find(\"div.content, div.node-links, div.picture\").toggle(); return false;'>(Show/Hide)</a>");

You’re welcome, ghetto.

You know what? This one’s simpler and better. Here’s a “Show/Hide” button.  It’ll work until they change the layout, but it’ll take ’em longer to do it than it will for me to rewrite it. Put that in your console and smoke it.

$("h2.title").append("<a href='#' onclick='$(this).parents(\".node\").find(\"div.content, div.node-links, div.picture\").toggle(); return false;'>(Show/Hide)</a>");

You’re welcome, ghetto.

(No Ratings Yet)
Loading...

Leave a Reply