X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=inline;f=experimental%2Fpalette%2Ftooltip.js;h=d084f826c1cab818cf22fd5f7956d27e8fe1097f;hb=0b5828435e5514ddd94dfbf7ae0cadf7fe09b128;hp=501493480c9d1d06e2c164762c9787f9cc185760;hpb=795b16307db2a673ba7aa3452f6f6b0e93baeb3a;p=dygraphs.git diff --git a/experimental/palette/tooltip.js b/experimental/palette/tooltip.js index 5014934..d084f82 100644 --- a/experimental/palette/tooltip.js +++ b/experimental/palette/tooltip.js @@ -27,45 +27,40 @@ function Tooltip(parent) { if (!parent) { - parent = document.getElementsByTagName("body")[0]; + parent = $("body")[0]; } - this.elem = Palette.createChild("div", parent); - this.title = Palette.createChild("div", this.elem); - this.elem.className = "tooltip"; - this.title.className = "title"; - this.type = Palette.createChild("div", this.elem); - this.type.className = "type"; - this.body = Palette.createChild("div", this.elem); - this.body.className = "body"; - this.hide(); -} + this.elem = $("