diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-04-08 11:12:57 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2015-04-08 11:12:57 +0200 |
commit | 893e80b335d22afed5743150aca766445a4268e2 (patch) | |
tree | 51358893057bc149a6a5ff0cfb3e9d501d50e4ba /js | |
parent | 8f5499085c5d12a5fcf84e26592197e4f3470165 (diff) | |
download | site-893e80b335d22afed5743150aca766445a4268e2.tar.gz |
campus: Add back to top
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); }); }; }); |