diff --git a/archive-viewer/index.html b/archive-viewer/index.html
new file mode 100644
index 0000000..aed1b5f
--- /dev/null
+++ b/archive-viewer/index.html
@@ -0,0 +1,497 @@
+
+
+
+
+
+ Applicant archive
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/content.js b/content.js
index f712e3b..1e2b5f2 100644
--- a/content.js
+++ b/content.js
@@ -219,504 +219,14 @@ function createApplicantsCsv(applicantDetailsList) {
return rows.join("\n")
}
-function createApplicantsIndexHtml() {
- return `
-
-
-
-
- Applicant archive
-
-
-
-
-
-
-
-
-
-
-
-
-
-`
+ return response.text()
}
async function getArchiveViewerJsZipSource() {
@@ -945,7 +455,7 @@ function rip(event) {
zip.file("applicants.csv", createApplicantsCsv(successfulApplicants))
console.log("Creating index.html")
- zip.file("index.html", createApplicantsIndexHtml())
+ zip.file("index.html", await getArchiveViewerHtmlSource())
console.log("Adding viewer Javascript to archive")
zip.file("jszip.min.js", await getArchiveViewerJsZipSource())
diff --git a/manifest.json b/manifest.json
index dd98771..d82c48f 100644
--- a/manifest.json
+++ b/manifest.json
@@ -23,6 +23,7 @@
"web_accessible_resources": [
{
"resources": [
+ "archive-viewer/index.html",
"lib/jszip.js",
"lib/jszip.min.js"
],