X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=inline;f=experimental%2Fpalette%2Ftooltip.js;h=d084f826c1cab818cf22fd5f7956d27e8fe1097f;hb=94ee0648098ec6d817772829a900e6f2fa7df61a;hp=20479b09ea91b001be9a226b35fe945e299f01b4;hpb=58a18b025156273cc34cd7555f77369e1f924d74;p=dygraphs.git diff --git a/experimental/palette/tooltip.js b/experimental/palette/tooltip.js index 20479b0..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.elem = $("