aboutsummaryrefslogtreecommitdiff
path: root/src/html
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2020-08-13 13:41:27 -0500
committerMark Powers <markppowers0@gmail.com>2020-08-13 13:41:27 -0500
commit8541ecceb35971c76b6cb13613597cd07f95d6e0 (patch)
tree1d0bf1bb200a71e5c79223564e15540153302994 /src/html
parent69d905dad713253b63da55fb044e68f8a6ed5a55 (diff)
Remove client JS requirement from /email
Diffstat (limited to 'src/html')
-rw-r--r--src/html/email-success.html22
-rw-r--r--src/html/email.html13
2 files changed, 22 insertions, 13 deletions
diff --git a/src/html/email-success.html b/src/html/email-success.html
new file mode 100644
index 0000000..db2dee2
--- /dev/null
+++ b/src/html/email-success.html
@@ -0,0 +1,22 @@
+<!doctype html>
+<html lang="en">
+
+<head>
+ <title>Mark's Kitchen - Email</title>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+ <link rel="stylesheet" type="text/css" href="/css/styles.css">
+</head>
+
+<body>
+ <div>
+ <h1>
+ <a class="navigation" href="/" title="marks.kitchen">&lt;</a>
+ Email
+ </h1>
+ <h2 id="status" v-if='show'>Success, thank you!</h2>
+ </div>
+ </div>
+</body>
+
+</html> \ No newline at end of file
diff --git a/src/html/email.html b/src/html/email.html
index 13f34d5..cdf1030 100644
--- a/src/html/email.html
+++ b/src/html/email.html
@@ -6,18 +6,6 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" type="text/css" href="/css/styles.css">
- <!-- <script src="https://cdn.jsdelivr.net/npm/vue"></script> -->
- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
- <script>
- window.onload = function(){
- var feed = new Vue({
- el: '#status',
- data: {
- show: window.location.hash == '#success'
- },
- });
- }
- </script>
</head>
<body>
@@ -27,7 +15,6 @@
Email
</h1>
<p>Sign up to receive Mark's email newsletter</p>
- <h2 id="status" v-if='show'>Success, thank you!</h2>
<div class="form">
<form action="/email" method="post" enctype="application/x-www-form-urlencoded">
<input type="text" placeholder="Your name" name="name" required>