From 5ac1c24481e3d319810be70478c1fc9b035c8e3d Mon Sep 17 00:00:00 2001 From: Leopere Date: Sat, 10 May 2025 17:04:31 -0400 Subject: [PATCH] Fix CSP for PDF download button by moving to external script --- docker/resume/Dockerfile | 1 + docker/resume/index.html-E | 21 +-------------------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/docker/resume/Dockerfile b/docker/resume/Dockerfile index 715baa0..bb9452f 100644 --- a/docker/resume/Dockerfile +++ b/docker/resume/Dockerfile @@ -6,6 +6,7 @@ COPY index.html /srv/ COPY theme.js /srv/ COPY utils.js /srv/ COPY styles.css /srv/ +COPY pdf-download.js /srv/ # Expose port 8080 EXPOSE 8080 diff --git a/docker/resume/index.html-E b/docker/resume/index.html-E index c1b630d..f5102b6 100644 --- a/docker/resume/index.html-E +++ b/docker/resume/index.html-E @@ -7,6 +7,7 @@ Colin Knapp Portfolio +
@@ -23,7 +24,6 @@ aria-label="Download as PDF" title="Download resume as PDF" tabindex="0" - onclick="downloadAsPDF()" >📄
@@ -202,24 +202,5 @@

Accessibility: This website is designed and developed to meet WCAG 2.1 Level AAA standards, ensuring the highest level of accessibility for all users. Features include high contrast ratios, keyboard navigation, screen reader compatibility, and responsive design. The site supports both light and dark modes with automatic system preference detection.

- \ No newline at end of file