X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=gallery%2Flink-interaction.js;h=e1d6faaa0b60a3c1915db876e3a989be8808f6c5;hb=685bae09233c9b19038965283653bc793d8bc338;hp=5d9b050fcf7aaf61d67f8dfbf357ad620639dc54;hpb=60bda09c058d85b1fad278ac4ce6df353e0a9275;p=dygraphs.git diff --git a/gallery/link-interaction.js b/gallery/link-interaction.js index 5d9b050..e1d6faa 100644 --- a/gallery/link-interaction.js +++ b/gallery/link-interaction.js @@ -1,20 +1,19 @@ -// Use this as a template for new Gallery entries. Gallery.register( 'link-interaction', { name: 'Link Interaction', setup: function(parent) { - parent.innerHTML = - "
" + - "Zoom:" + - "hour " + - "day " + - "week " + - "month " + - "full " + - "Pan: " + - "left " + - "right "; + parent.innerHTML = [ + "
", + "Zoom:", + "hour ", + "day ", + "week ", + "month ", + "full ", + "Pan: ", + "left ", + "right "].join("\n"); }, run: function() { var r = [ ]; @@ -87,4 +86,4 @@ Gallery.register( document.getElementById('left').onclick = function() { pan(-1); }; document.getElementById('right').onclick = function() { pan(+1); }; } - }); \ No newline at end of file + });