Moved the website code to ./web/ to make it easier to maintain for me. No code changes. (0.40.5)
This commit is contained in:
parent
bebe6dfda0
commit
71576be449
71 changed files with 3354 additions and 1 deletions
69
web/contact/contact.html
Normal file
69
web/contact/contact.html
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
---
|
||||
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>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue