From 124c8b1458f7a486eb88d5c5e52980fd9f9e9fcc Mon Sep 17 00:00:00 2001 From: Max Goldman Date: Thu, 7 Jan 2021 12:31:14 -0500 Subject: [PATCH] Fixed footer for archived sites And disable heatmap reporting on archived sites. --- web/handout/course-setup.js | 3 +++ web/handout/handout-render.js | 4 ++++ web/handout/handout-run.js | 2 +- web/handout/handout-style.css | 24 +++++++++++++++++++++++- 4 files changed, 31 insertions(+), 2 deletions(-) diff --git a/web/handout/course-setup.js b/web/handout/course-setup.js index 2677180..f686fd4 100644 --- a/web/handout/course-setup.js +++ b/web/handout/course-setup.js @@ -15,6 +15,9 @@ HANDOUT_EXERCISES = [ 'reading-exercises' ]; // optional: location for videos // HANDOUT_VIDEO = 'https://example.com/6.HANDX/video/'; +// optional: add archived site footer +// HANDOUT_ARCHIVED = 'Archived IAP 2000'; + // optional: configuration for slides // HANDOUT_SLIDE_OPTIONS = { ratio: '16:9' }; diff --git a/web/handout/handout-render.js b/web/handout/handout-render.js index 831c30a..e881202 100644 --- a/web/handout/handout-render.js +++ b/web/handout/handout-render.js @@ -67,6 +67,10 @@ function renderPage() { $('footer:contains("\u00a9")').addClass('col-sm-2 footer-margin').html($('
').html(HANDOUT_AUTHORS)); // department footer $('body').append($('