1
0
Fork 0
forked from fun/fun
fun/web/contact/contact.html

69 lines
2 KiB
HTML

---
layout: page
published: true
noToc: true
noDate: false
noPermalink: true
noComments: true
title: Contact
subtitle: Please use the following form to contact us directly, anonymously if you prefer.
description: Contact
permalink: /contact/
tags:
- contact
---
<script>
function doSubmit() {
$("#loader").removeClass("hidden");
event.preventDefault();
var form = $('#contactform')[0];
var data = new FormData(form);
$.ajax({
type: "POST",
enctype: 'multipart/form-data',
data: data,
url: "/cgi/mail/",
processData: false,
contentType: false,
cache: false,
success: function(data){
window.alert(data);
$("#challenge").load("/cgi/challenge/");
$("#loader").addClass("hidden");
}
});
return false;
}
$(document).ready(function(){
$("#challenge").load("/cgi/challenge/");
});
</script>
<div style="margin:0;padding0;text-align:left;">
<form id="contactform" method="post" onsubmit="return doSubmit();">
<div><label>Name:<span style="color:red;">*</span></label>
<input type="text" name="name" id="name" required></div>
<div><label>Email:</label>
<input type="email" name="email" id="email"></div>
<div><label>Website:</label>
<input type="text" name="website" id="website"></div>
<div><label>Subject:</label>
<input type="text" name="subject" id="subject"></div>
<div><label>Message:<span style="color:red;">*</span></label>
<textarea name="message" id="message" required style="font-size:1em;font-family:OpenSans-Regular;"></textarea></div>
<div style="text-align:left;width:50%;float:left;"><label>Challenge: <span id="challenge" name="challenge">NULL</span>?
<span style="color:red;">*</span></label>
<input style="width:10%;text-align:center;" type="text" name="sum" id="sum" required></div>
<div style="text-align:right;width:50%;float:right;"><span style="color:red;">*</span> = Required fields</div>
<div><input type="submit" value="Send!" id="button"></div>
</form>
</div>