Skip to content

Commit e01dd5f

Browse files
committed
Replace contact form with email link
1 parent b865822 commit e01dd5f

File tree

1 file changed

+1
-93
lines changed

1 file changed

+1
-93
lines changed

app/public/help.html

+1-93
Original file line numberDiff line numberDiff line change
@@ -320,73 +320,9 @@ <h4>
320320
<h3>Couldn't find what you need?</h3>
321321

322322
<p>
323-
If you'd like to contact the team for any reason, please feel free to get in touch.
323+
Email us at <strong><a href="mailto:[email protected]">[email protected]</a></strong> and we'll get back to you as soon as possible.
324324
</p>
325325

326-
<form id="contact-form" class="contact-form" role="form" method="POST" action="#" enctype="application/x-www-form-urlencoded">
327-
328-
<div class="form-group">
329-
<input type="text" name="name" class="form-control" placeholder="Name:" />
330-
</div>
331-
332-
<div class="form-group">
333-
<input type="text" name="email" class="form-control" placeholder="E-mail:" />
334-
</div>
335-
336-
<div class="form-group">
337-
<textarea class="form-control" name="message" placeholder="Message:" rows="6"></textarea>
338-
</div>
339-
340-
<div class="form-group text-right">
341-
<button class="btn btn-primary" name="send">Send</button>
342-
</div>
343-
344-
</form>
345-
346-
</div>
347-
348-
<div class="col-sm-offset-1 col-sm-4">
349-
350-
<div class="info-entry">
351-
352-
<h3>Support</h3>
353-
354-
<p>
355-
E-Mail: <a href="mailto:[email protected]">[email protected]</a><br />
356-
</p>
357-
358-
</div>
359-
360-
<!-- <div class="info-entry">
361-
362-
<h4>Call Us</h4>
363-
364-
<p>
365-
Phone: +1 (52) 2215-251<br />
366-
Fax: +1 (22) 5138-219<br />
367-
368-
</p>
369-
370-
<ul class="social-networks">
371-
<li>
372-
<a href="#">
373-
<i class="entypo-instagram"></i>
374-
</a>
375-
</li>
376-
<li>
377-
<a href="#">
378-
<i class="entypo-twitter"></i>
379-
</a>
380-
</li>
381-
<li>
382-
<a href="#">
383-
<i class="entypo-facebook"></i>
384-
</a>
385-
</li>
386-
</ul>
387-
388-
</div> -->
389-
390326
</div>
391327

392328
</div>
@@ -425,33 +361,5 @@ <h4>Call Us</h4>
425361
<!-- JavaScripts initializations and stuff -->
426362
<script src="/js/neon-custom.js"></script>
427363

428-
<script type="text/javascript">
429-
function submitForm(e) {
430-
e.preventDefault();
431-
432-
var name = $("form input[name=name]").val();
433-
var email = $("form input[name=email]").val();
434-
var message = $("form textarea[name=message]").val();
435-
436-
$.post("https://api.ipa.ucdavis.edu/contactFormSubmission", {
437-
name: name,
438-
email: email,
439-
message: message
440-
}, function() {
441-
$("form#contact-form").html("<p><b style=\"color: #111;\">Thanks for your feedback. Our team has received it and will be in touch.</b></p>");
442-
}).fail(function() {
443-
$("form#contact-form").html("<p><b style=\"color: #f11;\">Uh oh, something went wrong while submitting your message. Please alert IT of this issue.</b></p>");
444-
console.error("Server returned non-OK status code.");
445-
})
446-
}
447-
448-
$("form#contact-form button").on("click", submitForm);
449-
450-
$('#portfolio-toggle').click(function(){
451-
var isCollapsed = this.classList.contains("collapsed");
452-
this.innerHTML = this.value = isCollapsed ? 'Hide video tutorials' : 'Show video tutorials';
453-
});
454-
</script>
455-
456364
</body>
457365
</html>

0 commit comments

Comments
 (0)