Skip to content

Instantly share code, notes, and snippets.

@jgv
Created January 19, 2011 19:57
Show Gist options
  • Select an option

  • Save jgv/786740 to your computer and use it in GitHub Desktop.

Select an option

Save jgv/786740 to your computer and use it in GitHub Desktop.
_hoverLocation = $(".hp_hoverlocation");
// add focus styles for location form
_setLocationForm.focusin(
function() {
_setLocation.addClass("expose_form");
_protipArrow.addClass("protip_transparent");
_protip.addClass("protip_transparent");
_hoverCover.addClass("darkbody").css("height", $(document).height()).show();
console.log(_hoverLocation.length);
if ( _hoverLocation.length === 0 ) {
var o = $(this).offset();
elem = $("<div/>")
.addClass("hp_hoverlocation")
.css({
"position" : "absolute",
"top" : $(this).height() + o.top + "px",
"left" : o.left + "px"
})
.appendTo(document.body);
elem.show();
list = $("<ul/>").appendTo(elem);
var li = $("<li/>").html("Set Location").appendTo(list)[0];
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment