summaryrefslogtreecommitdiff
path: root/static/src/mailinglist
diff options
context:
space:
mode:
Diffstat (limited to 'static/src/mailinglist')
-rw-r--r--static/src/mailinglist/finalize.md45
-rw-r--r--static/src/mailinglist/unsubscribe.md45
2 files changed, 0 insertions, 90 deletions
diff --git a/static/src/mailinglist/finalize.md b/static/src/mailinglist/finalize.md
deleted file mode 100644
index a80809d..0000000
--- a/static/src/mailinglist/finalize.md
+++ /dev/null
@@ -1,45 +0,0 @@
----
-layout: page
-title: ""
-nofollow: true
----
-
-<script async type="module" src="/assets/api.js"></script>
-
-<style>
-#result.success { color: green; }
-#result.fail { color: red; }
-</style>
-
-<span id="result"></span>
-
-<script>
-
-(async () => {
-
- const resultSpan = document.getElementById("result");
-
- try {
-
- const urlParams = new URLSearchParams(window.location.search);
- const subToken = urlParams.get('subToken');
-
- if (!subToken) throw "No subscription token provided";
-
- const api = await import("/assets/api.js");
-
- await api.call('/api/mailinglist/finalize', {
- body: { subToken },
- });
-
- resultSpan.className = "success";
- resultSpan.innerHTML = "Your email subscription has been finalized! Please go on about your day.";
-
- } catch (e) {
- resultSpan.className = "fail";
- resultSpan.innerHTML = e;
- }
-
-})();
-
-</script>
diff --git a/static/src/mailinglist/unsubscribe.md b/static/src/mailinglist/unsubscribe.md
deleted file mode 100644
index f6600c9..0000000
--- a/static/src/mailinglist/unsubscribe.md
+++ /dev/null
@@ -1,45 +0,0 @@
----
-layout: page
-title: ""
-nofollow: true
----
-
-<script async type="module" src="/assets/api.js"></script>
-
-<style>
-#result.success { color: green; }
-#result.fail { color: red; }
-</style>
-
-<span id="result"></span>
-
-<script>
-
-(async () => {
-
- const resultSpan = document.getElementById("result");
-
- try {
- const urlParams = new URLSearchParams(window.location.search);
- const unsubToken = urlParams.get('unsubToken');
-
- if (!unsubToken) throw "No unsubscribe token provided";
-
- const api = await import("/assets/api.js");
-
- await api.call('/api/mailinglist/unsubscribe', {
- body: { unsubToken },
- });
-
- resultSpan.className = "success";
- resultSpan.innerHTML = "You have been unsubscribed! Please go on about your day.";
-
- } catch (e) {
- resultSpan.className = "fail";
- resultSpan.innerHTML = e;
- }
-
-})();
-
-</script>
-