diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-04-08 10:52:12 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2015-04-08 10:52:12 +0200 |
commit | 9cc9029ae34b911ba15a26865a4f38939d201839 (patch) | |
tree | de85aee28b7dd917e3db35756d54119393c8e94a /js/curriculum.js | |
parent | 3d8ae2e7438a8895582bc372816094c644ecddbd (diff) | |
download | site-9cc9029ae34b911ba15a26865a4f38939d201839.tar.gz |
Implement back to top handling
Diffstat (limited to 'js/curriculum.js')
-rw-r--r-- | js/curriculum.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/curriculum.js b/js/curriculum.js index 9b35cc4..a93b2e4 100644 --- a/js/curriculum.js +++ b/js/curriculum.js @@ -63,6 +63,13 @@ define(['courses'], function(courses) { var text_block = document.createElement('p'); text_block.textContent = course.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); }); }; }); |