X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=inline;f=gallery%2Flink-interaction.js;h=e1d6faaa0b60a3c1915db876e3a989be8808f6c5;hb=a12a78ae06c196aa0d3211ab57b584367504b9a0;hp=5d9b050fcf7aaf61d67f8dfbf357ad620639dc54;hpb=3c10a0f3519355ee651d04bf2972bd31298eff18;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 + });