Skip to content
Snippets Groups Projects
Commit f940c745 authored by Anton Sarukhanov's avatar Anton Sarukhanov
Browse files

Contact page fixes.

- Tweak text.
- Name/email boxes should be hidden by default...
parent 6cd6aeac
No related branches found
No related tags found
No related merge requests found
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>
......
......@@ -93,6 +93,9 @@ img.profile {
margin: 1em;
width: 150px;
}
input[data-reveal-after] {
display: none;
}
/* Headings */
h1,
......
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment