From 893e80b335d22afed5743150aca766445a4268e2 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Wed, 8 Apr 2015 11:12:57 +0200 Subject: campus: Add back to top --- js/campus.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'js') 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); }); }; }); -- cgit v1.2.1