diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/campus.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/campus.js b/js/campus.js index a3bd87b..7eae60a 100644 --- a/js/campus.js +++ b/js/campus.js @@ -60,6 +60,13 @@ define(['campus-coords', 'd3'], function(coords, d3) { var text_block = document.createElement('p'); text_block.textContent = building.description; citems.appendChild(text_block); + + var links_block = document.createElement('p'); + var back_to_top = document.createElement('a'); + back_to_top.href = '#top'; + back_to_top.textContent = 'Back to top'; + links_block.appendChild(back_to_top); + citems.appendChild(links_block); }); }; }); |