diff --git a/content/pages/contact.md b/content/pages/contact.md index 491ed89ef99759c0f2095ca321890c7e9abfcd0a..478045e6a191c1873e7824ed9d14f1064ded5b0c 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 d51153826a01972a2d9456fc03ed03c86104ed2a..3d775fe44e4888981b8f65b7918a259a60569a4c 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 b5670f48501f4702371b0b1904f53e30fb52dfd1..e1c47c0dffadb4c70bcdb1b86202348bde4d0c44 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');