X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=inline;f=gallery%2Fdrawing.js;h=6443cf4152459484991b400f27ec820336f7bd2f;hb=3bdeeb9b9d123e9e45159a6801b6e7fe74f08690;hp=63d7fdd647ba731437424894ecd6547dde60690e;hpb=60bda09c058d85b1fad278ac4ce6df353e0a9275;p=dygraphs.git diff --git a/gallery/drawing.js b/gallery/drawing.js index 63d7fdd..6443cf4 100644 --- a/gallery/drawing.js +++ b/gallery/drawing.js @@ -4,15 +4,15 @@ Gallery.register( name: 'Time Series Drawing Demo', title: 'Time Series Drawing Demo', setup: function(parent) { - parent.innerHTML = - "
Toolbar/cursor icons are CC-licensed from " + - "FatCow.
"; + parent.innerHTML = [ + "Toolbar/cursor icons are CC-licensed from ", + "FatCow.
"].join("\n"); }, run: function() { @@ -20,7 +20,7 @@ Gallery.register( zoom.onclick = function() { change_tool(zoom) }; var pencil = document.getElementById('tool_pencil'); pencil.onclick = function() { change_tool(pencil) }; - var eraser = document.getElementById('tool_pencil'); + var eraser = document.getElementById('tool_eraser'); eraser.onclick = function() { change_tool(eraser) }; var start_date = new Date("2002/12/29").getTime();