From f940c74530b013250bc5caeb52438d9ef58d5bbc Mon Sep 17 00:00:00 2001
From: Anton Sarukhanov <code@ant.sr>
Date: Sun, 3 Nov 2019 20:51:42 -0500
Subject: [PATCH] Contact page fixes. - Tweak text. - Name/email boxes should
 be hidden by default...

---
 content/pages/contact.md   | 5 +----
 theme/static/css/style.css | 3 +++
 theme/static/js/script.js  | 3 ++-
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/content/pages/contact.md b/content/pages/contact.md
index 491ed89..478045e 100644
--- a/content/pages/contact.md
+++ b/content/pages/contact.md
@@ -1,12 +1,9 @@
 Title: Contact
 
-Have a question, or something to tell me? A project you'd like my help with?
-Please reach out and I'll do my best to reply in a timely manner.
+Have a question? A project you'd like my help with?
 
 Submit the form below, write to [mail@ant.sr](mailto:mail@ant.sr) or leave a message at 848-228-3802.
 
-Looking forward to hearing from you!
-
 <form class="xhr" action="https://api.ant.sr/api/contact" method="post">
     <textarea name="text" placeholder="Your message" required autofocus></textarea>
     <input name="name" data-reveal-after="[name=text]" placeholder="Your Name" required>
diff --git a/theme/static/css/style.css b/theme/static/css/style.css
index d511538..3d775fe 100644
--- a/theme/static/css/style.css
+++ b/theme/static/css/style.css
@@ -93,6 +93,9 @@ img.profile {
     margin: 1em;
     width: 150px;
 }
+input[data-reveal-after] {
+    display: none;
+}
 
 /* Headings */
 h1,
diff --git a/theme/static/js/script.js b/theme/static/js/script.js
index b5670f4..e1c47c0 100644
--- a/theme/static/js/script.js
+++ b/theme/static/js/script.js
@@ -48,9 +48,10 @@
  *                      the input will be hidden until the target element has
  *                      been changed to a non-empty value.
  */
+
 (function(selector) {
     var triggers = [];
-    $(selector).find(":input[data-reveal-after]")
+    $(selector).find("input[data-reveal-after]")
         .each(function() {
             var trigger = $(this).data('reveal-after');
             var deps = $(trigger).data('dependents');
-- 
GitLab