Skip to content

Commit

Permalink
Cursor and other styles
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Sep 11, 2009
1 parent d868a0e commit fb77058
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 1 addition & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,17 @@ <h2>Perl Modules</h2>

var clickSetup = function( link, item ) {
return function () {
$(item).css({backgroundColor: '#eeeeee'});
var linkdest = link.attr('href');
$("div.content",item).remove();
$(item).children().hide('fast');
$(item).append($(document.createElement('div')).addClass('content'));
$("div.content", item).load( linkdest, function(){
$(item).css({backgroundColor: '#eeffee'});
});
$("div.content", item).load( linkdest );
};
};

$('div.crossref').each(function(ino, item){
var link = $("div.link a:eq(0)", item);
link.parent().remove();
$(item).css({backgroundColor: '#ffeeee'});
$(item).children('.name').each(createFalseLink(link));
$(item).toggle(clickSetup( link, item ), function(){
$("div.content",item).remove();
Expand Down
7 changes: 6 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ div.title div.name {
div.title div.abstract {
font-size: 0.7em;
}

div.crossref {
cursor: pointer;
}
div.crossref div.content {
cursor: auto;
}
div.crossref div.name {
font-size: 1em;
}
Expand Down

0 comments on commit fb77058

Please sign in to comment.