Skip to content

Instantly share code, notes, and snippets.

@jeromegn
Created June 18, 2009 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeromegn/132147 to your computer and use it in GitHub Desktop.
Save jeromegn/132147 to your computer and use it in GitHub Desktop.
var cont = $(jetpack.tabs.focused.contentDocument).find("body");
// Loading the default active corners template
$.ajax({
url: "http://test.jeromegn.is-a-geek.com/widget/base",
type: "GET",
success: function(data, textStatus) {
cont.append(data);
},
complete: function(){
$(".triggeredContent").css({
"background-color": "transparent",
"background-image": "url(http://test.jeromegn.is-a-geek.com/images/corner_bg_sprite.png)",
"background-repeat": "no-repeat",
"position": "fixed",
"width": "300px",
"height": "300px",
"display": "none"
});
$(".activeCorner").css({
"background-color": "transparent",
"position": "fixed",
"width": "40px",
"height": "40px"
});
$(".activeCorner").mouseover(function(){
relCorner = $($(this).attr("rel"));
relCorner.fadeIn();
});
$(".triggeredContent").mouseout(function(){
$(this).fadeOut();
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment