From 6671dc0f2bc36cc97b7a3b235bf77591628281e5 Mon Sep 17 00:00:00 2001 From: Haydn Ady <108423994+haydn9000@users.noreply.github.com> Date: Wed, 27 Mar 2024 11:51:44 -0400 Subject: [PATCH 1/2] Update README.md --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 00975e1..5e44962 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,16 @@ # canvas-branding Top-level Canvas theme files. -## Build +## Build Process -Minified and un-minified versions of the combined CSS and JS files are automatically produced by a CodeBuild project when changes are made to this repository. +Changes made to this repository trigger an automatic build process via a CodeBuild project. This process generates both minified and un-minified versions of the combined CSS and JS files. -The resulting files can be found in `s3://at-build-artifacts/canvas-global-branding`. +Note: You can also manually initiate a build for a specific version of the project in CodeBuild. + +The resulting files can be found in `s3://at-build-artifacts/canvas-global-branding` and include: +- theme.css +- theme.min.css +- theme.js +- theme.min.js + +These files can be used to update the Canvas theme. From ed90139de6efaa774a3f831ddf3bf31f9d46ee5c Mon Sep 17 00:00:00 2001 From: Haydn Date: Thu, 18 Apr 2024 20:55:23 -0400 Subject: [PATCH 2/2] Add condition to skip adding footer content on OAuth2 login page --- js/footer_copyright.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/footer_copyright.js b/js/footer_copyright.js index 84fa9f6..2bd48e1 100644 --- a/js/footer_copyright.js +++ b/js/footer_copyright.js @@ -6,6 +6,11 @@ $(document).ready(function (e) { * lines */ function addFooterContent() { + // Do not add footer content if the user is on the OAuth2 login page. + if (window.location.href.match(/.*\/login\/oauth2\//)) { + return; + } + const copyYear = new Date().getFullYear(); const harvardCopy =